Bug 549745 - "iptraf -s lo" makes iptraf crash
Summary: "iptraf -s lo" makes iptraf crash
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: iptraf
Version: 12
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nikola Pajkovsky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-22 14:54 UTC by Nils Philippsen
Modified: 2014-02-02 22:14 UTC (History)
2 users (show)

Fixed In Version: 3.0.1-9.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-16 13:20:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
iptraf-3.0.1-servmon-fix.patch (655 bytes, patch)
2010-01-04 08:49 UTC, Nikola Pajkovsky
no flags Details | Diff

Description Nils Philippsen 2009-12-22 14:54:42 UTC
Description of problem:
SSIA, iptraf crashes when trying to get interface statistics broken down by TCP/UDP port.

Version-Release number of selected component (if applicable):
iptraf-3.0.1-8.fc12.x86_64

How reproducible:
Reproducible.

Steps to Reproduce:
Either go into "Statistical breakdowns" -> "By TCP/UDP port" -> some interface or e.g. run "iptraf -s lo" directly from the command line.
  
Actual results:

[root@gibraltar ~]# iptraf -s lo
Fatal: memory allocation error

If you suspect a bug, please report the exact circumstances under which this
error was generated.  If possible, include gdb or strace data which may point
out where the error occured.  Bug reports may be sent in to iptraf.

An attempt will be made to clear all lock files, but if stale lock files
remain, exit all other instances of IPTraf and restart with the -f
command-line parameter.

IPTraf process 16185 aborting on signal 11.

Expected results:

Shows me interface statistics broken down by TCP/UDP port.

Comment 1 ebird98 2009-12-28 03:27:36 UTC
Same error in Fedora-12-i386...

Comment 2 Nikola Pajkovsky 2009-12-28 13:58:56 UTC
Thanks for report. There was one wrong "else". 
try this build. http://koji.fedoraproject.org/koji/taskinfo?taskID=1893611

Comment 3 Nils Philippsen 2009-12-31 09:20:30 UTC
Works for me.

One thing to note, though: I wasn't exactly comfortable downloading a binary scratch build without having a chance to look at what you changed to fix this. Perhaps you could just commit your changes to the package repository and do a normal build next time? Having package numbers skip over some intermediary releases between published updates doesn't really hurt in my opinion.

Comment 4 Nikola Pajkovsky 2010-01-04 08:49:53 UTC
Created attachment 381499 [details]
iptraf-3.0.1-servmon-fix.patch

Sorry for that. I thought that you can see srpm. I can attach patches or I can simply commit patches to cvs and you can download from cvs. Is it ok for you?

Comment 5 Nils Philippsen 2010-01-04 14:58:11 UTC
Thanks for attaching the patch here and adding it to CVS!

From my point of view, you can now build the package with the patch and push it to testing (don't forget Rawhide).

Comment 6 Nikola Pajkovsky 2010-01-04 15:25:52 UTC
don't worry ;)

Comment 7 Fedora Update System 2010-01-04 15:45:03 UTC
iptraf-3.0.1-9.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/iptraf-3.0.1-9.fc12

Comment 8 Fedora Update System 2010-01-05 22:53:14 UTC
iptraf-3.0.1-9.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update iptraf'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-0187

Comment 9 Fedora Update System 2010-02-16 13:20:28 UTC
iptraf-3.0.1-9.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.