Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 172450 - knemo has fd-leakage in sys backend
Summary: knemo has fd-leakage in sys backend
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-27 19:40 UTC by Alberto Zennaro
Modified: 2007-04-01 22:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The proper patch (knemo-0.4.6-sysbackend.patch,528 bytes, patch)
2007-03-28 20:46 UTC, Anton Bolshakov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alberto Zennaro 2007-03-27 19:40:52 UTC
KNemo opens a socket every second and forgets to close
it, thus filling the fd-table of kded up to the limit 1024 open files.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=409707


Reproducible: Always

Steps to Reproduce:
1. emerge -av knemo
2. configure knemo to use sys backend
3. ls -l /proc/`pidof kded`/fd | wc -l
50
4. wait some minutes
5. ls -l /proc/`pidof kded`/fd | wc -l
1024
Comment 1 Matteo Azzali (RETIRED) gentoo-dev 2007-03-28 14:24:48 UTC
Applied, tested and actually in CVS.
Comment 2 Anton Bolshakov 2007-03-28 20:32:40 UTC
Guys,

Percy didn't mention that you he fixed it in 2 places:
http://websvn.kde.org/trunk/extragear/network/knemo/knemod/backends/sysbackend.cpp?r1=593092&r2=608080&pathrev=608080

Please re-open the bug and apply this patch instead.
Comment 3 Anton Bolshakov 2007-03-28 20:46:10 UTC
Created attachment 114818 [details, diff]
The proper patch

sorry, /s/you// in my previous post.
Comment 4 Matteo Azzali (RETIRED) gentoo-dev 2007-03-29 06:32:42 UTC
Modified in cvs. However no more revbump as the first patch already seems to stop the leak here, so if you experience issues you need just to re-emerge.
Comment 5 Carsten Lohrke (RETIRED) gentoo-dev 2007-04-01 22:16:17 UTC
i am so free...