assert failure in multitail program when file arguments do not exist

Bug #403417 reported by Dominique Pellé
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
multitail (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: multitail

"multitail" program asserts when passing non existing file names. Bug is easily 100% reproducible on Ubuntu

Steps to reproduce:

1/ install "multitail" (in case it's not already installed)

$ sudo apt-get install multitail

2/ run "multitail" on non existing file names and observe the assert failure

$ multitail non-existing-file-1 non-existing-file-2
 --*- multitail 5.2.2 (C) 2003-2007 by <email address hidden> -*--

A problem occured at line 1010 in function do_commandline (from file cmdline.c):

Error opening file non-existing-file-1.

errno variable (if applicable): 2 which means No such file or directory

Binary build at May 22 2008 11:05:50
multitail: utils.c:197: stop_process: Assertion `pid > 1' failed.
Aborted

Expected behavior: it should report an error rather than an assert failure.

Oh, and while we're at it, notice also the typo in the error message:
"A problem occured at line 1010..." (*occured* is misspelled -> occurred)

Revision history for this message
Dominique Pellé (dominique-pelle) wrote :

I precise that I am using Ubuntu-9.04 (Jaunty) with all updates as of today (2009/07/23).

Revision history for this message
David Stansby (dstansby-deactivatedaccount) wrote :

Fixed in Maverick

Changed in multitail (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.