[Pkg-utopia-maintainers] Bug#516532: consolekit: leaks file descriptors when reading run-session.d

Andrew Deason adeason2 at uiuc.edu
Sun Feb 22 05:50:21 UTC 2009


Package: consolekit
Version: 0.2.10-5
Tags: patch

After a machine with consolekit installed has been running for a while,
I see messages in syslog a la:

Feb 21 20:12:38 zaphod.acm.uiuc.edu console-kit-daemon[19801]: WARNING: Unable to open directory /etc/ConsoleKit/run-session.d: Error opening directory '/etc/ConsoleKit/run-session.d': Too many open files
Feb 21 20:12:38 zaphod.acm.uiuc.edu console-kit-daemon[19801]: WARNING: Unable to open directory /usr/lib/ConsoleKit/run-session.d: Error opening directory '/usr/lib/ConsoleKit/run-session.d': Too many open files
Feb 21 20:12:38 zaphod.acm.uiuc.edu console-kit-daemon[19801]: WARNING: Cannot create file /var/run/ConsoleKit/database~: Too many open files
Feb 21 20:12:38 zaphod.acm.uiuc.edu console-kit-daemon[19801]: WARNING: Cannot unlink /var/run/ConsoleKit/database: No such file or directory
Feb 21 20:12:38 zaphod.acm.uiuc.edu console-kit-daemon[19801]: WARNING: Unable to open directory /etc/ConsoleKit/run-session.d: Error opening directory '/etc/ConsoleKit/run-session.d': Too many open files
Feb 21 20:12:38 zaphod.acm.uiuc.edu console-kit-daemon[19801]: WARNING: Unable to open directory /usr/lib/ConsoleKit/run-session.d: Error opening directory '/usr/lib/ConsoleKit/run-session.d': Too many open files

And lsof shows that console-kit-daemon has a ton of FDs open for the two
run-session.d directories mentioned above. consolekit opens these
directories, but never closes the fd. The attached patch should fix it.
I'm not able to test it myself right now, since #516253 is preventing me
from building the package (easily).

-- 
Andrew Deason
adeason2 at uiuc.edu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: consolekit-close-runsession.patch
Type: text/x-diff
Size: 1144 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20090221/eb998ad5/attachment.patch 


More information about the Pkg-utopia-maintainers mailing list