GNOME Bugzilla – Bug 671486
FD leak
Last modified: 2012-03-08 20:38:14 UTC
It seems that gnome-shell is leaking two file descriptors every time an authentication dialog is shown You should be able to reproduce it like this [davidz@lucifer ~]$ ls -l /proc/`pidof gnome-shell`/fd |wc -l 45 [davidz@lucifer ~]$ pkexec bash Error executing command as another user: Request dismissed [davidz@lucifer ~]$ ls -l /proc/`pidof gnome-shell`/fd |wc -l 47 It could be a libpolkit-agent-1.so bug but this hasn't changed in a long time so not sure what's going on. Both leaked FDs are pipes. Maybe it's a leak in the GLib version I'm using? (glib2-2.31.18-1.fc17.x86_64)
(Btw, running gc.global() had no effect either. Also just verified that the bug is also present with glib2-2.31.20-1.fc17.x86_64. And the polkit version is 0.104-5.fc17.x86_64.)
Also seems to happen on F16 so I'm guessing libpolkit-agent-1 is actually to blame. Will investigate, stay tuned.
Turned out to be a polkit problem, fix is here http://cgit.freedesktop.org/PolicyKit/commit/?id=4aa6dd28476e12a5265d71b6bc19c730f1036785