After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 671486 - FD leak
FD leak
Status: RESOLVED NOTGNOME
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2012-03-06 18:51 UTC by David Zeuthen (not reading bugmail)
Modified: 2012-03-08 20:38 UTC
See Also:
GNOME target: 3.4
GNOME version: ---



Description David Zeuthen (not reading bugmail) 2012-03-06 18:51:16 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)
Comment 1 David Zeuthen (not reading bugmail) 2012-03-06 18:54:04 UTC
(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.)
Comment 2 David Zeuthen (not reading bugmail) 2012-03-08 14:38:32 UTC
Also seems to happen on F16 so I'm guessing libpolkit-agent-1 is actually to blame. Will investigate, stay tuned.
Comment 3 David Zeuthen (not reading bugmail) 2012-03-08 20:38:14 UTC
Turned out to be a polkit problem, fix is here

http://cgit.freedesktop.org/PolicyKit/commit/?id=4aa6dd28476e12a5265d71b6bc19c730f1036785