Bug#222601: marked as done (gdm: gdmlogin eats CPU time for nothing)

Debian Bug Tracking System owner@bugs.debian.org
Tue, 06 Jul 2004 23:48:21 -0700


Your message dated Wed, 07 Jul 2004 02:32:04 -0400
with message-id <E1Bi5yO-00047i-00@newraff.debian.org>
and subject line Bug#222601: fixed in gdm 2.6.0.3-1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 1 Dec 2003 09:30:40 +0000
>From herbert@gondor.apana.org.au Mon Dec 01 03:30:38 2003
Return-path: <herbert@gondor.apana.org.au>
Received: from arnor.apana.org.au (arnor.me.apana.org.au) [203.14.152.115] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AQkO3-0003YY-00; Mon, 01 Dec 2003 03:30:36 -0600
Received: from gondolin.me.apana.org.au ([192.168.0.6] ident=mail)
	by arnor.me.apana.org.au with esmtp (Exim 3.35 #1 (Debian))
	id 1AQkO0-0005I1-00
	for <submit@bugs.debian.org>; Mon, 01 Dec 2003 20:30:32 +1100
Received: from herbert by gondolin.me.apana.org.au with local (Exim 3.36 #1 (Debian))
	id 1AQkNy-0004Fm-00
	for <submit@bugs.debian.org>; Mon, 01 Dec 2003 20:30:30 +1100
From: <herbert@gondor.apana.org.au>
Subject: gdm: gdmlogin eats CPU time for nothing
To: submit@bugs.debian.org
X-Mailer: bug 3.3.10.2
Message-Id: <E1AQkNy-0004Fm-00@gondolin.me.apana.org.au>
Date: Mon, 01 Dec 2003 20:30:30 +1100
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 
	2.60-master.debian.org_2003_11_25-bugs.debian.org_2003_11_20 
	(1.212-2003-09-23-exp) on master.debian.org
X-Spam-Status: No, hits=-3.5 required=4.0 tests=HAS_PACKAGE,NO_REAL_NAME 
	autolearn=no 
	version=2.60-master.debian.org_2003_11_25-bugs.debian.org_2003_11_20
X-Spam-Level: 

Package: gdm
Version: 2.4.1.6-1
Severity: normal

In its default configuration, gdmlogin will talk to X a few times a second
and hence consume CPU time even when it is idle.

The strace looks something like:

20:28:05.900428 gettimeofday({1070270885, 900651}, NULL) = 0
20:28:05.900739 ioctl(3, FIONREAD, [0]) = 0
20:28:05.900883 ioctl(4, FIONREAD, [0]) = 0
20:28:05.900960 gettimeofday({1070270885, 900982}, NULL) = 0
20:28:05.901026 poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=0, events=POLLIN|POLLPRI}], 3, 316) = 0
20:28:06.228108 gettimeofday({1070270886, 228164}, NULL) = 0
20:28:06.228395 gettimeofday({1070270886, 228510}, NULL) = 0
20:28:06.228632 ioctl(3, FIONREAD, [0]) = 0
20:28:06.228715 ioctl(4, FIONREAD, [0]) = 0
20:28:06.228790 gettimeofday({1070270886, 228811}, NULL) = 0
20:28:06.228858 poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=0, events=POLLIN|POLLPRI}], 3, 0) = 0
20:28:06.228965 gettimeofday({1070270886, 228987}, NULL) = 0
20:28:06.229703 write(3, "5\30\4\0^^Z\0*\0@\0\366\0\21\0007\6\6\0_^Z\0^^Z\0\4\0\1"..., 500) = 500
20:28:06.230742 read(3, "\1\2\370m\0\0\0\0\7\0@\0\0\0\0\0\0\0\0\0\t\0\0\0X\214^"..., 32) = 32
20:28:06.230911 ioctl(3, FIONREAD, [0]) = 0
20:28:06.230995 ioctl(4, FIONREAD, [0]) = 0
20:28:06.231067 gettimeofday({1070270886, 231092}, NULL) = 0
20:28:06.231141 poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=0, events=POLLIN|POLLPRI}], 3, 790) = 0

After 45 days of operations, it manages to chew up a significant amount
of CPU time even though not a single user has logged in or even touched
it:

gdm        554  0.1  2.4 34636 6180 ?        S    Oct13  79:11 /usr/bin/gdmlogin

-- System Information
Debian Release: testing/unstable
Kernel Version: Linux gondolin 2.4.22-1-686-smp #5 SMP Sat Oct 4 14:35:05 EST 2003 i686 GNU/Linux

Versions of the packages gdm depends on:
ii  adduser        3.51           Add and remove users and groups
ii  bonobo-activat 2.2.4-1        Bonobo Activation Framework
ii  debconf        1.3.15         Debian configuration management system
ii  dpkg           1.10.18        Package maintenance system for Debian
ii  libart-2.0-2   2.3.16-1       Library of functions for 2D graphics - runti
ii  libatk1.0-0    1.4.1-1        The ATK accessibility toolkit
ii  libaudiofile0  0.2.3-4        The Audiofile Library
ii  libbonobo-acti 2.2.4-1        Bonobo Activation Framework -- runtime libra
ii  libbonobo2-0   2.2.3-1        Bonobo CORBA interfaces library
ii  libbonoboui2-0 2.2.4-2        The Bonobo UI library
ii  libc6          2.3.2-9        GNU C Library: Shared libraries and Timezone
ii  libesd0        0.2.29-1       Enlightened Sound Daemon - Shared libraries
ii  libgconf2-4    2.2.1-4        GNOME configuration database system librarie
ii  libgcrypt1     1.1.12-4       LGPL Crypto library - runtime library
ii  libglade2-0    2.0.1-6        Library to load .glade files at runtime
ii  libglib2.0-0   2.2.3-1        The GLib library of C routines
ii  libgnome2-0    2.2.3-2        The GNOME 2 library - runtime files
ii  libgnomecanvas 2.4.0-1        A powerful object-oriented display - runtime
ii  libgnomeui-0   2.2.2-2        The GNOME 2 libraries (User Interface) - run
ii  libgnomevfs2-0 2.2.5-3        The GNOME virtual file-system libraries (for
ii  libgnomevfs2-c 2.2.5-3        The GNOME virtual file-system library common
ii  libgnutls7     0.8.9-2        GNU TLS library - runtime library
ii  libgtk2.0-0    2.2.4-1        The GTK+ graphical user interface library
ii  libjpeg62      6b-9           The Independent JPEG Group's JPEG runtime li
ii  liblinc1       1.0.3-4        library to simplify creating networked clien
ii  liborbit2      2.6.3-2        Libraries for ORBit2 - a CORBA ORB
ii  libpam-modules 0.76-14        Pluggable Authentication Modules for PAM
ii  libpam-runtime 0.76-14        Runtime support for the PAM library
ii  libpam0g       0.76-14        Pluggable Authentication Modules library
ii  libpango1.0-0  1.2.5-2        Layout and rendering of internationalized te
ii  libpopt0       1.7-2          lib for parsing cmdline parameters
ii  librsvg2-2     2.4.0-2        SAX-based renderer library for SVG files. (f
ii  libtasn1-0     0.1.2-1        Manage ASN.1 structures (runtime)
ii  libwrap0       7.6-ipv6.1-3   Wietse Venema's TCP wrappers library
ii  libxml2        2.5.11-2       GNOME XML library
ii  xlibs          4.2.1-12.1     X Window System client libraries
ii  zlib1g         1.1.4-16       compression library - runtime
libesd-alsa0	Not installed or no info

--- Begin /etc/gdm/gdm.conf (modified conffile)
[daemon]
AutomaticLoginEnable=false
AutomaticLogin=
TimedLoginEnable=false
TimedLogin=
TimedLoginDelay=30
LocalNoPasswordUsers=
AlwaysRestartServer=true
Configurator=/usr/bin/gdmsetup --disable-sound --disable-crash-dialog
GnomeDefaultSession=/usr/share/gnome/default.session
Chooser=/usr/bin/gdmchooser
DefaultPath=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
RootPath=/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin:/usr/games
DisplayInitDir=/etc/gdm/Init
Greeter=/usr/bin/gdmlogin
RemoteGreeter=/usr/bin/gdmlogin
User=gdm
Group=gdm
KillInitClients=true
LogDir=/var/log/gdm
PidFile=/var/run/gdm.pid
PostSessionScriptDir=/etc/gdm/PostSession/
PreSessionScriptDir=/etc/gdm/PreSession/
FailsafeXServer=
XKeepsCrashing=/etc/gdm/XKeepsCrashing
RebootCommand=/sbin/shutdown -r now "Rebooted from gdm menu."
HaltCommand=/sbin/shutdown -h now "Halted from gdm menu."
SuspendCommand=/usr/bin/apm --suspend
ServAuthDir=/var/lib/gdm
SessionDir=/etc/gdm/Sessions/
UserAuthDir=
UserAuthFBDir=/tmp
UserAuthFile=.Xauthority
StandardXServer=/usr/X11R6/bin/X
FlexibleXServers=5
Xnest=/usr/X11R6/bin/Xnest -name Xnest
FirstVT=7
VTAllocation=true
[security]
AllowRoot=false
AllowRemoteRoot=false
AllowRemoteAutoLogin=false
RelaxPermissions=0
RetryDelay=3
UserMaxFile=65536
SessionMaxFile=524388
[xdmcp]
Enable=true
HonorIndirect=true
MaxPending=4
MaxPendingIndirect=4
MaxSessions=16
MaxWait=15
MaxWaitIndirect=15
DisplaysPerHost=2
PingInterval=1
Port=177
Willing=/etc/gdm/Xwilling
[gui]
GtkRC=/usr/share/themes/Default/gtk/gtkrc
MaxIconWidth=128
MaxIconHeight=128
[greeter]
TitleBar=true
ConfigAvailable=true
Browser=false
DefaultFace=/usr/share/pixmaps/nobody.png
Exclude=bin,daemon,adm,lp,sync,shutdown,halt,mail,news,uucp,operator,nobody,gdm,postgres,pvm,rpm
MinimalUID=100
GlobalFaceDir=/usr/share/faces/
Icon=/usr/share/pixmaps/gdm.png
LocaleFile=/etc/gdm/locale.conf
Logo=/usr/share/pixmaps/gdmDebianLogo.xpm
Quiver=true
SystemMenu=true
SecureSystemMenu=true
Welcome=Welcome to %n
LockPosition=false
SetPosition=false
PositionX=0
PositionY=0
XineramaScreen=0
BackgroundType=2
BackgroundImage=
BackgroundScaleToFit=true
BackgroundColor=#363047
BackgroundRemoteOnlyColor=true
BackgroundProgram=
RunBackgroundProgramAlways=false
ShowGnomeChooserSession=true
ShowGnomeFailsafeSession=true
ShowXtermFailsafeSession=true
Use24Clock=false
UseCirclesInEntry=false
GraphicalTheme=circles
GraphicalThemeDir=/usr/share/gdm/themes/
[chooser]
DefaultHostImg=/usr/share/pixmaps/nohost.png
HostImageDir=/usr/share/hosts/
ScanTime=3
Hosts=
Broadcast=true
[debug]
Enable=false
[servers]
0=Standard
[server-Standard]
name=Standard server
command=/usr/bin/X11/X -deferglyphs 16 -nolisten tcp
flexible=true

--- End /etc/gdm/gdm.conf

---------------------------------------
Received: (at 222601-close) by bugs.debian.org; 7 Jul 2004 06:38:07 +0000
>From katie@ftp-master.debian.org Tue Jul 06 23:38:07 2004
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Bi64F-0003e2-00; Tue, 06 Jul 2004 23:38:07 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1Bi5yO-00047i-00; Wed, 07 Jul 2004 02:32:04 -0400
From: Ryan Murray <rmurray@debian.org>
To: 222601-close@bugs.debian.org
X-Katie: $Revision: 1.51 $
Subject: Bug#222601: fixed in gdm 2.6.0.3-1
Message-Id: <E1Bi5yO-00047i-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Wed, 07 Jul 2004 02:32:04 -0400
Delivered-To: 222601-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 2

Source: gdm
Source-Version: 2.6.0.3-1

We believe that the bug you reported is fixed in the latest version of
gdm, which is due to be installed in the Debian FTP archive:

gdm_2.6.0.3-1.diff.gz
  to pool/main/g/gdm/gdm_2.6.0.3-1.diff.gz
gdm_2.6.0.3-1.dsc
  to pool/main/g/gdm/gdm_2.6.0.3-1.dsc
gdm_2.6.0.3-1_i386.deb
  to pool/main/g/gdm/gdm_2.6.0.3-1_i386.deb
gdm_2.6.0.3.orig.tar.gz
  to pool/main/g/gdm/gdm_2.6.0.3.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 222601@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ryan Murray <rmurray@debian.org> (supplier of updated gdm package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


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

Format: 1.7
Date: Tue,  6 Jul 2004 22:42:12 -0700
Source: gdm
Binary: gdm
Architecture: i386 source 
Version: 2.6.0.3-1
Distribution: unstable
Urgency: low
Maintainer: Ryan Murray <rmurray@debian.org>
Changed-By: Ryan Murray <rmurray@debian.org>
Description: 
 gdm        - GNOME Display Manager
Closes: 176652 222601 240265 241607 250755 251144 255516 256322
Changes: 
 gdm (2.6.0.3-1) unstable; urgency=low
 .
   * New upstream release (closes: #255516, #222601, #241607, #250755, #240265)
   * Fix typo in prerm script (closes: #251144)
   * Don't fail in the postinst if debconf calls do (closes: #176652)
   * Add Build-Depends on libxt-dev (closes: #256322)
   * Relibtoolize.
Files: 
 1850193b11c59387ca7b13efe5cfc633 2923526 gnome optional gdm_2.6.0.3-1_i386.deb
 228143f63f0b18a535066e4b71847c79 5192718 gnome optional gdm_2.6.0.3.orig.tar.gz
 f0aa58065eee8ede8c35a9628637b542 720 gnome optional gdm_2.6.0.3-1.dsc
 c51b1b0136d5543f2b1dc50e0a2d2d1f 172542 gnome optional gdm_2.6.0.3-1.diff.gz

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

iD8DBQFA65VXN2Dbz/1mRasRAt8hAKDEXb+BQ/VGlgRk1shgvG9ymhNuVQCfSysE
QDCzk8x79iaoKGanIr8MHPw=
=WQha
-----END PGP SIGNATURE-----