Bug 782275 - iftop memory leak
Summary: iftop memory leak
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: iftop
Version: el5
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Robert Scheck
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-17 02:52 UTC by golden_sun64
Modified: 2014-01-03 22:43 UTC (History)
4 users (show)

Fixed In Version: iftop-1.0-0.6.pre2.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-21 02:08:09 UTC
Type: ---
Embargoed:
bugzilla.redhat.com: needinfo+


Attachments (Terms of Use)

Description golden_sun64 2012-01-17 02:52:18 UTC
Description of problem:
* iftop when turned off DNS resolution causes exponential growth in memory usage. This growth continues until all memory is used up.

Version-Release number of selected component (if applicable):
Version    : 1.0
Release    : 0.1.pre2.el5


How reproducible:
Turn off DNS resolution when running iftop

Steps to Reproduce:
1. run top to show memory usage of processes
2. #/usr/sbin/iftop -n
3. perform a wget on a large file.
4. observe the increase in RES usage in top.
  
Actual results:


Expected results:
RES does not increase a lot when DNS resolution is turned on.

Additional info:
This does not happen in the previous rpm build. I have also verified with flexbox repo's iftop and it seems to be working correctly without exponential growth in memory usage.

Comment 1 Robert Scheck 2012-08-09 23:00:03 UTC
Thank you very much for the report, I have notified upstream about this.

Comment 2 Robert Scheck 2012-08-10 09:02:27 UTC
Do you use IPv6? If you kill the wget process before the machine runs out
of memory, does the memory usage recover?

Comment 3 David Heidelberg (okias) 2013-11-02 00:54:15 UTC
is this bug still valid for iftop-1.0pre2 ?

Is this bug still valid? And if yes, does iftop-0.17 suffer too from this issue?

Comment 4 John Schmitt 2013-11-07 02:21:49 UTC
iftop-1.0-0.4.pre2.fc19.x86_64

Is this the same issue?

ftop: ../src/nss-myhostname/ifconf.h:44: PROTO_ADDRESS_SIZE: Assertion `proto == 2 || proto == 10' failed.
                                                                                                          Aborted (core dumped)

Comment 5 Robert Scheck 2013-11-16 18:35:40 UTC
(In reply to John Schmitt from comment #4)
> iftop-1.0-0.4.pre2.fc19.x86_64
> 
> Is this the same issue?
> 
> ftop: ../src/nss-myhostname/ifconf.h:44: PROTO_ADDRESS_SIZE: Assertion
> `proto == 2 || proto == 10' failed.
>                                                                             
> Aborted (core dumped)

I'm not sure if this is really the same issue, I would guess bug #756441.

Comment 7 ojab 2013-12-12 09:19:25 UTC
I have an issue with 
"iftop: ../src/nss-myhostname/ifconf.h:44: PROTO_ADDRESS_SIZE: Assertion `proto == 2 || proto == 10' failed." on x86_64 F20, but unfortunately koji told me "You don't have permission to access /work/tasks/8544/6188544/iftop-1.0-0.6.pre2.fc20.x86_64.rpm on this server."

Can I haz RPM for testing?

Comment 8 ojab 2013-12-12 09:26:42 UTC
Installed Packages
Name        : iftop
Arch        : x86_64
Epoch       : 0
Version     : 1.0
Release     : 0.5.pre2.fc20

Comment 9 ojab 2013-12-12 09:45:47 UTC
[Also we're probably need to move to Bug 839750 with Assertion issue?]

Comment 10 Robert Scheck 2013-12-18 23:32:20 UTC
(In reply to ojab from comment #7)
> I have an issue with 
> "iftop: ../src/nss-myhostname/ifconf.h:44: PROTO_ADDRESS_SIZE: Assertion
> `proto == 2 || proto == 10' failed." on x86_64 F20, but unfortunately koji
> told me "You don't have permission to access
> /work/tasks/8544/6188544/iftop-1.0-0.6.pre2.fc20.x86_64.rpm on this server."
> 
> Can I haz RPM for testing?

The assertion failure is a second issue which should be solved now. However I
am personally unable to reproduce the issue at all. Can you please try one of
these scratch builds please and give me some feedback?

 - F21: http://koji.fedoraproject.org/koji/taskinfo?taskID=6311472
 - F20: http://koji.fedoraproject.org/koji/taskinfo?taskID=6311487
 - F19: http://koji.fedoraproject.org/koji/taskinfo?taskID=6311493
 - F18: http://koji.fedoraproject.org/koji/taskinfo?taskID=6311501

As this second issue is specific to nss-myhostname it does not affect RHEL 5
and 6, thus I will not provide any scratch builds therefore.

Comment 11 ojab 2013-12-19 10:56:03 UTC
I've tested build for F20 and cannot reproduce assertion failure anymore, thanks.

Comment 12 Fedora Update System 2013-12-19 19:14:56 UTC
iftop-1.0-0.6.pre2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/iftop-1.0-0.6.pre2.fc20

Comment 13 Fedora Update System 2013-12-19 19:16:07 UTC
iftop-1.0-0.6.pre2.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/iftop-1.0-0.6.pre2.fc19

Comment 14 Fedora Update System 2013-12-19 19:17:14 UTC
iftop-1.0-0.6.pre2.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/iftop-1.0-0.6.pre2.fc18

Comment 15 Fedora Update System 2013-12-19 19:18:28 UTC
iftop-1.0-0.6.pre2.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/iftop-1.0-0.6.pre2.el6

Comment 16 Fedora Update System 2013-12-19 19:20:17 UTC
iftop-1.0-0.6.pre2.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/iftop-1.0-0.6.pre2.el5

Comment 17 Fedora Update System 2013-12-20 16:51:34 UTC
Package iftop-1.0-0.6.pre2.el6:
* should fix your issue,
* was pushed to the Fedora EPEL 6 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing iftop-1.0-0.6.pre2.el6'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2013-12431/iftop-1.0-0.6.pre2.el6
then log in and leave karma (feedback).

Comment 18 Fedora Update System 2013-12-21 02:08:09 UTC
iftop-1.0-0.6.pre2.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 19 Fedora Update System 2013-12-21 18:50:12 UTC
iftop-1.0-0.6.pre2.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 20 Fedora Update System 2013-12-23 03:50:12 UTC
iftop-1.0-0.6.pre2.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 21 Fedora Update System 2013-12-28 23:41:53 UTC
iftop-1.0-0.6.pre2.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 22 Fedora Update System 2014-01-03 22:43:00 UTC
iftop-1.0-0.6.pre2.el5 has been pushed to the Fedora EPEL 5 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.