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 704644 - Login constantly hangs, freezes, crashes,...
Login constantly hangs, freezes, crashes,...
Status: RESOLVED DUPLICATE of bug 733068
Product: gnome-shell
Classification: Core
Component: lock-screen
3.8.x
Other Linux
: Normal critical
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2013-07-21 17:24 UTC by el
Modified: 2014-11-09 20:25 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description el 2013-07-21 17:24:30 UTC
Login constantly hangs, freezes, crashes and does whatever things with GDM 3.8.3/Gnome 3.8.x. I leave my laptop running for days with just suspend, and every 5th wake up from suspend or so I can basically just kill every gnome-related/gdm-related process and start the whole thing over because it just locks up.

Locking up can happen in a variety of cases: 1.) just grey backgronud but no login stuff or any controls visible except hte top bar, 2.) login form visible and usable, but after entering credentials and pressing eenter, the input form goes greyed out but nothing happens (stays greyed out and locked up forever). (that is the two situations I can recall immediately)

This is very annoying because unlike a freezing gnome shell when I'm logged in, I cannot simply restart GDM without losing my complete session with all open programs. As you can assume, not restarting and just suspending the laptop has the VERY PURPOSE of NOT losing all opened programs and such.
Comment 1 el 2013-07-21 17:41:21 UTC
As an additional information, the lockup usually doesn't occur right away (everything appears to be fine after the wake up at first), but as soon as I attempt to login.
Comment 2 André Klapper 2013-07-21 19:16:02 UTC
is there anything interesting in /var/log/gdm/ or /var/log/Xorg.*.log or the output of the "dmesg" command?
Comment 3 Ray Strode [halfline] 2013-07-24 17:21:05 UTC
someone came by my cube earlier today with similar symptoms.  backtrace showed the shell was deadlocked waiting on a g_cancellable mutex in g_cancellable_cancel and g_cancellable_release_fd.

The person with the offending laptop said he was going to file the backtrace in bugzilla, so i'll link to it when he does.
Comment 4 el 2013-08-10 03:08:40 UTC
I feel this is related to me typing too fast and pressing enter when gdm or that login form thing still want to do something (e.g. finish the animations?).

Also this did never occur in the previous Fedora/GNOME iteration (where those new fancy animations weren't present yet to that extent, most prominently that new "drag up" cover thing).

Nothing interesting in the log files to be found. (checked gdm, dmesg, X)

It appears to happen more often after wake up from suspend to ram, but I also had it happen after a while of idling locked without any suspend involved.

And it's not exactly rare here, so I suppose if you tried for a while it shouldn't be too hard to reproduce (a slower laptop as testing machine and typing the password fast might help, assuming this is some sort of race condition).
Comment 5 el 2013-08-21 04:39:46 UTC
It just recently happened again and I tried to attach gdb to gnome-shell, but gdb itself froze with the following backtrace:

  • #1 my_waitpid
    at ../../gdb/linux-nat.c line 373
  • #2 linux_nat_post_attach_wait
    at ../../gdb/linux-nat.c line 1389
  • #3 linux_nat_attach
    at ../../gdb/linux-nat.c line 1662
  • #4 target_attach
    at ../../gdb/target.c line 3804
  • #5 attach_command
    at ../../gdb/infcmd.c line 2578
  • #6 execute_command
    at ../../gdb/top.c line 487
  • #7 command_handler
    at ../../gdb/event-top.c line 436
  • #8 command_line_handler
    at ../../gdb/event-top.c line 634
  • #9 rl_callback_read_char
    at ../callback.c line 220
  • #10 rl_callback_read_char_wrapper
    at ../../gdb/event-top.c line 164
  • #11 process_event
    at ../../gdb/event-loop.c line 342
  • #12 gdb_do_one_event
    at ../../gdb/event-loop.c line 406
  • #13 start_event_loop
    at ../../gdb/event-loop.c line 431
  • #14 captured_command_loop
    at ../../gdb/main.c line 259
  • #15 catch_errors
    at ../../gdb/exceptions.c line 546
  • #16 captured_main
    at ../../gdb/main.c line 1134
  • #17 catch_errors
    at ../../gdb/exceptions.c line 546
  • #18 gdb_main
    at ../../gdb/main.c line 1144
  • #19 main
    at ../../gdb/gdb.c line 34

When killing the hanging gdb and gnome-shell and restarting gnome-shell, I successfully managed to be logged in without losing my session. (So apparently the hang happened after the login stuff itself was processed)
Comment 6 el 2013-10-14 17:08:43 UTC
Today I got another hang after login (when pressing enter after entering the password, the whole login form just stayed there forever), and this time I managed to attach gdb and get a backtrace:

  • #0 poll
    at ../sysdeps/unix/syscall-template.S line 81
  • #1 _xcb_conn_wait
    from /lib64/libxcb.so.1
  • #2 wait_for_reply
    from /lib64/libxcb.so.1
  • #3 xcb_wait_for_reply
    from /lib64/libxcb.so.1
  • #4 _XReply
    at xcb_io.c line 602
  • #5 _XIPassiveGrabDevice
    at XIPassiveGrab.c line 87
  • #6 XIGrabKeycode
    at XIPassiveGrab.c line 130
  • #7 meta_change_keygrab
    from /lib64/libmutter.so.0
  • #8 meta_screen_change_keygrabs
    from /lib64/libmutter.so.0
  • #9 meta_screen_grab_keys
    from /lib64/libmutter.so.0
  • #10 grab_key_bindings
    from /lib64/libmutter.so.0
  • #11 event_callback
    from /lib64/libmutter.so.0
  • #12 filter_func
    from /lib64/libmutter.so.0
  • #13 gdk_event_apply_filters
    from /lib64/libgdk-3.so.0
  • #14 _gdk_x11_display_queue_events
    from /lib64/libgdk-3.so.0
  • #15 gdk_display_get_event
    from /lib64/libgdk-3.so.0
  • #16 gdk_event_source_dispatch
    from /lib64/libgdk-3.so.0
  • #17 g_main_dispatch
    at gmain.c line 3054
  • #18 g_main_context_dispatch
    at gmain.c line 3630
  • #19 g_main_context_iterate
    at gmain.c line 3701
  • #20 g_main_loop_run
    at gmain.c line 3895
  • #21 meta_run
    from /lib64/libmutter.so.0
  • #22 main

Comment 7 el 2013-10-15 16:28:02 UTC
I had another case where I couldn't attach gdb to the shell (gdb attaching would hang).

The STAT entry of ps aux of gnome-shell was: Sl
After attempting to kill -9 it, it went to: D

In the end, the only thing I could do was kill the whole gnome-session off.


I will change the component to "gnome-shell" because in all cases I examined more thoroughly, that appears to be the program that got stuck. Comment 3 seems to hint at that aswell. Sorry if this is the wrong thing to do, but it appears this was originally misfiled on my behalf and I just hope to get this into the right hands so something can be done about it!

(this bug is a time eater due to all the programs being gone which I need to reopen and also it sadly is a frequent issue on my work laptop when resuming from suspend)
Comment 8 Bastien Nocera 2014-11-09 20:25:30 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 733068 ***