Bug#425679: gksu: Uses CPU permanently while on the background

Javier Kohen jkohen at users.sourceforge.net
Wed May 23 08:45:06 UTC 2007


Package: gksu
Version: 2.0.0-4
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I detected some days ago that gksu was constantly using the CPU, even after the application it managed had been fully launched and was sitting idle. Particularly, I'm running Synaptic now, and strace gives the following output repeated at a very high frequency:
nanosleep({0, 1000000}, NULL)           = 0
select(14, [13], NULL, NULL, {0, 0})    = 0 (Timeout)
waitpid(31096, 0xbf8cb364, WNOHANG)     = 0
nanosleep({0, 200000}, NULL)            = 0
stat64("/proc/31096", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/proc/31096/stat", O_RDONLY)      = 14
read(14, "31096 (su) S 31091 31096 31096 3"..., 8191) = 219
close(14)                               = 0

I don't know much about the proc file system intrinsics or why gksu needs to poll that file so frequently, but isn't there something like inotify that can be used instead? I guess inotify proper would do, too.

It seems the PowerTop project was also recently informed about this (see http://www.linuxpowertop.org/known.php#gksu), but I'm still openning this report because I haven't seen the bug reported either here or on Savannah.


Thanks,

- -- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.21.1-ck2
Locale: LANG=es_AR.UTF-8, LC_CTYPE=es_AR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gksu depends on:
ii  gnome-keyring               0.8.1-2      GNOME keyring services (daemon and
ii  libatk1.0-0                 1.18.0-2     The ATK accessibility toolkit
ii  libc6                       2.5-7        GNU C Library: Shared libraries
ii  libcairo2                   1.4.6-1      The Cairo 2D vector graphics libra
ii  libfontconfig1              2.4.2-1.2    generic font configuration library
ii  libgconf2-4                 2.18.0.1-3   GNOME configuration database syste
ii  libgksu2-0                  2.0.3-9      library providing su and sudo func
ii  libglib2.0-0                2.12.12-1    The GLib library of C routines
ii  libgnome-keyring0           0.8.1-2      GNOME keyring services library
ii  libgtk2.0-0                 2.10.12-2    The GTK+ graphical user interface 
ii  liborbit2                   1:2.14.7-0.1 libraries for ORBit2 - a CORBA ORB
ii  libpango1.0-0               1.16.4-1     Layout and rendering of internatio
ii  libstartup-notification0    0.9-1        library for program launch feedbac
hi  libx11-6                    2:1.0.3-7    X11 client-side library
ii  libxcursor1                 1:1.1.8-2    X cursor management library
ii  libxext6                    1:1.0.3-2    X11 miscellaneous extension librar
ii  libxfixes3                  1:4.0.3-2    X11 miscellaneous 'fixes' extensio
ii  libxi6                      1:1.0.1-4    X11 Input extension library
ii  libxinerama1                1:1.0.2-1    X11 Xinerama extension library
ii  libxrandr2                  2:1.2.1-1    X11 RandR extension library
ii  libxrender1                 1:0.9.2-1    X Rendering Extension client libra
ii  sudo                        1.6.8p12-5   Provide limited super user privile

gksu recommends no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGU/8S823633cP2P8RAmjXAJ9QI/UgQs0C8ehqNYyQR1xHRUVfawCgnL2t
OluGYAP/wNyEiZ6WvGvukDI=
=OKG4
-----END PGP SIGNATURE-----





More information about the pkg-gnome-maintainers mailing list