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 662931 - gdm 3.2 fails to start
gdm 3.2 fails to start
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
3.2.x
Other Linux
: Normal major
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2011-10-28 12:56 UTC by Tomas M.
Modified: 2012-03-07 11:34 UTC
See Also:
GNOME target: ---
GNOME version: 3.1/3.2


Attachments
gdb output of t a a bt full (5.50 KB, text/plain)
2011-10-28 12:56 UTC, Tomas M.
Details
second gdb trace (5.51 KB, text/plain)
2011-10-28 14:57 UTC, Tomas M.
Details

Description Tomas M. 2011-10-28 12:56:01 UTC
Created attachment 200167 [details]
gdb output of  t a a bt full

when xorg starts, instead of the gdm greeter, i get a dark screen + busy cursor.

/var/log/gdm/:0-greeter.log.0 does not exists (deleted old file...)
/var/log/gdm/:0-slave.log is 0 bytes long.

starting with the gdm daemon or through inittab has the same effect. (archlinux)

if i start X with

exec ck-launch-session gnome-session through xinitrc

my session starts correctly (gnome-shell).

i dont remember what update broke it. but it did work with 3.2 at some point.

$ ps aux |grep gdm
gdm       3846  0.0  0.0   2632   724 ?        Ss   Oct27   0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
gdm      14238  0.0  0.0   2632   340 ?        Ss   07:52   0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
root     14327  0.0  0.2  16344  2440 ?        Ssl  07:55   0:00 /usr/sbin/gdm-binary -nodaemon
root     14331  0.0  0.3  19816  3556 ?        Sl   07:55   0:00 /usr/lib/gdm/gdm-simple-slave --display-id /org/gnome/DisplayManager/Display1
root     14333  0.0  1.0  29540 11044 tty7     Ss+  07:55   0:00 /usr/bin/Xorg :0 -br -verbose -logverbose 7 -auth /var/run/gdm/auth-for-gdm-o2sbTq/database -no listen tcp vt7
gdm      14343  0.0  0.0      0     0 ?        Zs   07:55   0:00 [dbus-launch] <defunct>
gdm      14347  0.0  0.0   2632   344 ?        Ss   07:55   0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
tomas    14563  0.0  0.0   4328   820 pts/2    S+   08:46   0:00 grep --color gdm



Im attaching a gdb trace for gdm-simple-slave

for more reference, some nice guy helped me do all this: https://bbs.archlinux.org/viewtopic.php?pid=1009227
Comment 1 Ray Strode [halfline] 2011-10-28 14:49:20 UTC
if you do it again do you get the same backtrace?

That backtrace looks like either

1) dbus-launch is stalling an never finishing
or
2) you took the backtrace really quickly during boot before dbus-launch finished
Comment 2 Tomas M. 2011-10-28 14:57:09 UTC
posting a new backtrace since i dont know what makes it 'the same backtrace'

1. yes, this can stay like that for hours

2. i dont think this is the case. even if i did kill everything (init 3), and started from scratch, i waited a considerable amount of time for everything to settle.
Comment 3 Tomas M. 2011-10-28 14:57:38 UTC
Created attachment 200176 [details]
second gdb trace
Comment 4 Ray Strode [halfline] 2011-10-28 15:10:45 UTC
Okay, so you definitely seem to be afflicted by 1) not 2).

Can you post a backtrace of dbus-launch since it's the thing that's stuck?
Comment 5 Ionut Biru 2011-10-28 15:31:29 UTC
@Tomas for that you need to recompile dbus-core and dbus with debug symbols.

read about it here: https://wiki.archlinux.org/index.php/Debug_-_Getting_Traces#One_package_settings_only
Comment 6 Ray Strode [halfline] 2011-10-28 15:32:43 UTC
oh looking at your ps output in comment 0 dbus-launch isn't stuck it's dead,
which is what we expect.  So the question is, why is g_spawn_sync stuck in
select()...
Comment 7 Tomas M. 2011-10-28 15:42:54 UTC
so i take it from comment 6 that a dbus backtrace is not needed?
Comment 8 Ray Strode [halfline] 2011-10-28 15:44:33 UTC
Right, I don't think you would be able to get one anyway, since the process is already undead.
Comment 9 Ray Strode [halfline] 2011-10-28 15:46:53 UTC
Have you upgraded your glib recently? This may be some sort of glib regression.
Comment 10 Ray Strode [halfline] 2011-10-28 16:08:46 UTC
Looking in the GDM code, there's some weird looking to me.

We use a child_setup_func that adjusts stdout/stderr to a log file, but that can't be right since we need to parse the dbus launch output from stdout.

I must be misreading, but will have to take a closer look later.
Comment 11 Tomas M. 2011-10-28 21:04:26 UTC
downgraded glib2 which was recently upgraded from 2.30.0 to 2.30.1 (yet prior to breakage).

still the same issue. 
-
are there any config files i might have inadvertedly broken from a previous release of gdm? i did disable the power management plugin on gdm through dconf-editor.

this is an old install which might carry some cruft from gnome2.
Comment 12 André Klapper 2012-03-07 10:04:10 UTC
Tomas M.: Is this still a problem in a recent version?
Comment 13 Tomas M. 2012-03-07 11:34:02 UTC
no, this got fixed in some update. i cannot say which since its a server i update remotely.