Bug#681830: gdm3: spawns X continuously when gnome-session dies

Sébastien Villemot sebastien at debian.org
Wed Feb 6 09:16:17 UTC 2013


Hi,

AIUI, GDM considers that an X server that has lasted more than 3 seconds
has not failed. The fact that it respawns it indefinitely is therefore
an intended and desirable behavior (one could discuss whether 3 seconds
is enough, but I think this is a different topic). This is what Neil's
debug logs are about.

For the case where X lasts less than 3 seconds, GDM has a mechanism that
is supposed to stop respawning after a certain number of tries. This
mechanism however does not work, as Cyril initially reported, and as
Neil reproduced by replacing /usr/bin/Xorg with a simple "exit 1" shell
script.

I attach a debug log corresponding to that latter case. As one can see,
before moving into GDM_DISPLAY_FAILED state, the display is first moved
to the GDM_DISPLAY_FINISHED state. The problem is that the code handling
the GDM_DISPLAY_FINISHED state resets to zero the counter of the number
of failures (line 330 of gdm-local-display-factory.c). Hence the maximum
number of failures is never reached, and GDM spawns X servers like
crazy.

-- 
 .''`.    Sébastien Villemot
: :' :    Debian Developer
`. `'     http://www.dynare.org/sebastien
  `-      GPG Key: 4096R/381A7594

-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug.log.xz
Type: application/x-xz
Size: 14956 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20130206/04f01341/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20130206/04f01341/attachment-0001.pgp>


More information about the pkg-gnome-maintainers mailing list