Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 172450

Summary: knemo has fd-leakage in sys backend
Product: Gentoo Linux Reporter: Alberto Zennaro <morpheusz>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: normal CC: anton.bugs
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: The proper patch

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...