Bug#971057: gnome-shell: [Wayland] Session crashes if any window is opened in the first ~10 seconds

Santiago Batista santibatista at gmail.com
Sat Sep 26 23:47:20 BST 2020


Thank you for the quick reply.

On Sat, 2020-09-26 at 23:18 +0100, Simon McVittie wrote:
> Are you using any GNOME Shell extensions? If you are, please try
> disabling
> them and see whether this still happens.

I'm not using any extensions, precisely to remove that factor when
testing.


> > From the kernel log:
> > gnome-shell[3136]: segfault at 1c ip 00007f1520c0de27 sp 00007ffd81363130 error 4 in libmutter-7.so.0.0.0[7f1520b89000+115000]
> 
> Can you get a backtrace from this crash?

Sure thing, you can find it attached.


> It would also be useful if you could log in to a Wayland session, *not*
> open any windows (so this crash doesn't happen), then look at the systemd
> journal for the log messages that happened around 10 seconds after login -
> that might give us some clues about what event you have to wait for to
> avoid this crash.

The error messages in the gnome-shell journal are not terribly useful,
whether I open or not windows. It will still spit something about the
clutter stage. Sorry for not clarying this earlier. I will try to get
cleaner logs, meanwhile, the last bit is interesting.


-----------------------------------
After a bit more of testing, I can now reliably fix/reproduce this
issue.

1. I have a laptop and an external monitor. Sometimes I use this as a
two display configuration (laptop being the main display). When testing
this, my laptop lid was closed.

2. It seems that mutter assumed for some reason that my laptop screen
was still active. That's where the mouse was "hiding".

3. Upon opening a window, gnome-shell tried to open it in the display
where the mouse was. *Here* is the crash.

4. If upon logging in I move my mouse up (a lot) to "move it" to my
external monitor (from the ghost laptop display), then windows can be
opened safely and no crash happens.


So it seems that the display settings are behaving weirdly across
sessions. 

To reproduce reliably (at least for me):

1. Use a two-monitor configuration (two active displays)
2. Log out while the mouse is in the laptop screen (primary display)
3. While in GDM, close the lid (so only the external monitor is on)
3. Log in, mouse is "lost"
4. Open a window quickly using the keyboard -> crash



Hope it helps,
Santiago
-------------- next part --------------
coredumpctl gdb
Hint: You are currently not seeing messages from other users and the system.
      Users in groups 'adm', 'systemd-journal' can see all messages.
      Pass -q to turn off this notice.
           PID: 6385 (gnome-shell)
           UID: 1000 (santi)
           GID: 1000 (santi)
        Signal: 11 (SEGV)
     Timestamp: Sat 2020-09-26 18:30:48 EDT (26s ago)
  Command Line: /usr/bin/gnome-shell
    Executable: /usr/bin/gnome-shell
 Control Group: /user.slice/user-1000.slice/user at 1000.service/session.slice/org.gnome.Shell at wayland.service
          Unit: user at 1000.service
     User Unit: org.gnome.Shell at wayland.service
         Slice: user-1000.slice
     Owner UID: 1000 (santi)
       Boot ID: e139577ce6f44483a3c529225c071a15
    Machine ID: f7263c2151e147e98482ab09b3588304
      Hostname: T540p
       Storage: /var/lib/systemd/coredump/core.gnome-shell.1000.e139577ce6f44483a3c529225c071a15.6385.1601159448000000.zst
       Message: Process 6385 (gnome-shell) of user 1000 dumped core.
                
                Stack trace of thread 6385:
                #0  0x00007fd5215fbe27 meta_window_place (libmutter-7.so.0 + 0xcbe27)
                #1  0x00007fd5215e606c place_window_if_needed (libmutter-7.so.0 + 0xb606c)
                #2  0x00007fd52160a262 meta_window_move_resize_internal (libmutter-7.so.0 + 0xda262)
                #3  0x00007fd52160a40a meta_window_force_placement (libmutter-7.so.0 + 0xda40a)
                #4  0x00007fd521663455 xdg_toplevel_set_maximized (libmutter-7.so.0 + 0x133455)
                #5  0x00007fd520a6cccd n/a (libffi.so.7 + 0x6ccd)
                #6  0x00007fd520a6c25a n/a (libffi.so.7 + 0x625a)
                #7  0x00007fd520ff64d2 n/a (libwayland-server.so.0 + 0xd4d2)
                #8  0x00007fd520ff1ae2 n/a (libwayland-server.so.0 + 0x8ae2)
                #9  0x00007fd520ff4492 wl_event_loop_dispatch (libwayland-server.so.0 + 0xb492)
                #10 0x00007fd521643aa7 wayland_event_source_dispatch (libmutter-7.so.0 + 0x113aa7)
                #11 0x00007fd5221cab8b g_main_context_dispatch (libglib-2.0.so.0 + 0x51b8b)
                #12 0x00007fd5221cae38 n/a (libglib-2.0.so.0 + 0x51e38)
                #13 0x00007fd5221cb12b g_main_loop_run (libglib-2.0.so.0 + 0x5212b)
                #14 0x00007fd5215f4a6e meta_run (libmutter-7.so.0 + 0xc4a6e)
                #15 0x0000560c06f72838 n/a (gnome-shell + 0x2838)
                #16 0x00007fd52138fcca __libc_start_main (libc.so.6 + 0x26cca)
                #17 0x0000560c06f72a1a n/a (gnome-shell + 0x2a1a)
                
                Stack trace of thread 6395:
                #0  0x00007fd52145c4bf __GI___poll (libc.so.6 + 0xf34bf)
                #1  0x00007fd5221cadce n/a (libglib-2.0.so.0 + 0x51dce)
                #2  0x00007fd5221caeef g_main_context_iteration (libglib-2.0.so.0 + 0x51eef)
                #3  0x00007fd5221caf41 n/a (libglib-2.0.so.0 + 0x51f41)
                #4  0x00007fd5221f3ddd n/a (libglib-2.0.so.0 + 0x7addd)
                #5  0x00007fd5209d7ea7 start_thread (libpthread.so.0 + 0x8ea7)
                #6  0x00007fd521466eaf __clone (libc.so.6 + 0xfdeaf)
                
                Stack trace of thread 6397:
                #0  0x00007fd52145c4bf __GI___poll (libc.so.6 + 0xf34bf)
                #1  0x00007fd5221cadce n/a (libglib-2.0.so.0 + 0x51dce)
                #2  0x00007fd5221cb12b g_main_loop_run (libglib-2.0.so.0 + 0x5212b)
                #3  0x00007fd52241c746 n/a (libgio-2.0.so.0 + 0x11b746)
                #4  0x00007fd5221f3ddd n/a (libglib-2.0.so.0 + 0x7addd)
                #5  0x00007fd5209d7ea7 start_thread (libpthread.so.0 + 0x8ea7)
                #6  0x00007fd521466eaf __clone (libc.so.6 + 0xfdeaf)
                
                Stack trace of thread 6396:
                #0  0x00007fd521461a79 syscall (libc.so.6 + 0xf8a79)
                #1  0x00007fd52221bcd2 g_cond_wait_until (libglib-2.0.so.0 + 0xa2cd2)
                #2  0x00007fd52219a591 n/a (libglib-2.0.so.0 + 0x21591)
                #3  0x00007fd5221f481a n/a (libglib-2.0.so.0 + 0x7b81a)
                #4  0x00007fd5221f3ddd n/a (libglib-2.0.so.0 + 0x7addd)
                #5  0x00007fd5209d7ea7 start_thread (libpthread.so.0 + 0x8ea7)
                #6  0x00007fd521466eaf __clone (libc.so.6 + 0xfdeaf)
                
                Stack trace of thread 6415:
                #0  0x00007fd5209de7b2 futex_wait_cancelable (libpthread.so.0 + 0xf7b2)
                #1  0x00007fd5200e2777 _ZN7mozilla6detail21ConditionVariableImpl4waitERNS0_9MutexImplE (libmozjs-78.so.0 + 0x9eb777)
                #2  0x00007fd5200e2958 _ZN7mozilla6detail21ConditionVariableImpl8wait_forERNS0_9MutexImplERKNS_16BaseTimeDurationINS_27TimeDurationValueCalculatorEEE (libmozjs-78.so.0 + 0x9eb958)
                #3  0x00007fd51f958c15 n/a (libmozjs-78.so.0 + 0x261c15)
                #4  0x00007fd51f958cb4 n/a (libmozjs-78.so.0 + 0x261cb4)
                #5  0x00007fd51f9547d5 n/a (libmozjs-78.so.0 + 0x25d7d5)
                #6  0x00007fd5209d7ea7 start_thread (libpthread.so.0 + 0x8ea7)
                #7  0x00007fd521466eaf __clone (libc.so.6 + 0xfdeaf)
                
                Stack trace of thread 6403:
                #0  0x00007fd52145c4bf __GI___poll (libc.so.6 + 0xf34bf)
                #1  0x00007fd5221cadce n/a (libglib-2.0.so.0 + 0x51dce)
                #2  0x00007fd5221caeef g_main_context_iteration (libglib-2.0.so.0 + 0x51eef)
                #3  0x00007fd51967c38d n/a (libdconfsettings.so + 0xa38d)
                #4  0x00007fd5221f3ddd n/a (libglib-2.0.so.0 + 0x7addd)
                #5  0x00007fd5209d7ea7 start_thread (libpthread.so.0 + 0x8ea7)
                #6  0x00007fd521466eaf __clone (libc.so.6 + 0xfdeaf)
                
                Stack trace of thread 6416:
                #0  0x00007fd5209de7b2 futex_wait_cancelable (libpthread.so.0 + 0xf7b2)
                #1  0x00007fd5200e2777 _ZN7mozilla6detail21ConditionVariableImpl4waitERNS0_9MutexImplE (libmozjs-78.so.0 + 0x9eb777)
                #2  0x00007fd5200e2958 _ZN7mozilla6detail21ConditionVariableImpl8wait_forERNS0_9MutexImplERKNS_16BaseTimeDurationINS_27TimeDurationValueCalculatorEEE (libmozjs-78.so.0 + 0x9eb958)
                #3  0x00007fd51f958c15 n/a (libmozjs-78.so.0 + 0x261c15)
                #4  0x00007fd51f958cb4 n/a (libmozjs-78.so.0 + 0x261cb4)
                #5  0x00007fd51f9547d5 n/a (libmozjs-78.so.0 + 0x25d7d5)
                #6  0x00007fd5209d7ea7 start_thread (libpthread.so.0 + 0x8ea7)
                #7  0x00007fd521466eaf __clone (libc.so.6 + 0xfdeaf)
                
                Stack trace of thread 6410:
                #0  0x00007fd5209de7b2 futex_wait_cancelable (libpthread.so.0 + 0xf7b2)
                #1  0x00007fd50b7898fb n/a (i965_dri.so + 0x5498fb)
                #2  0x00007fd50b7893d7 n/a (i965_dri.so + 0x5493d7)
                #3  0x00007fd5209d7ea7 start_thread (libpthread.so.0 + 0x8ea7)
                #4  0x00007fd521466eaf __clone (libc.so.6 + 0xfdeaf)
                
                Stack trace of thread 6409:
                #0  0x00007fd5209de7b2 futex_wait_cancelable (libpthread.so.0 + 0xf7b2)
                #1  0x00007fd50b7898fb n/a (i965_dri.so + 0x5498fb)
                #2  0x00007fd50b7893d7 n/a (i965_dri.so + 0x5493d7)
                #3  0x00007fd5209d7ea7 start_thread (libpthread.so.0 + 0x8ea7)
                #4  0x00007fd521466eaf __clone (libc.so.6 + 0xfdeaf)
                
                Stack trace of thread 6421:
                #0  0x00007fd5209de7b2 futex_wait_cancelable (libpthread.so.0 + 0xf7b2)
                #1  0x00007fd5200e2777 _ZN7mozilla6detail21ConditionVariableImpl4waitERNS0_9MutexImplE (libmozjs-78.so.0 + 0x9eb777)
                #2  0x00007fd5200e2958 _ZN7mozilla6detail21ConditionVariableImpl8wait_forERNS0_9MutexImplERKNS_16BaseTimeDurationINS_27TimeDurationValueCalculatorEEE (libmozjs-78.so.0 + 0x9eb958)
                #3  0x00007fd51f958c15 n/a (libmozjs-78.so.0 + 0x261c15)
                #4  0x00007fd51f958cb4 n/a (libmozjs-78.so.0 + 0x261cb4)
                #5  0x00007fd51f9547d5 n/a (libmozjs-78.so.0 + 0x25d7d5)
                #6  0x00007fd5209d7ea7 start_thread (libpthread.so.0 + 0x8ea7)
                #7  0x00007fd521466eaf __clone (libc.so.6 + 0xfdeaf)
                
                Stack trace of thread 7326:
                #0  0x00007fd521461a79 syscall (libc.so.6 + 0xf8a79)
                #1  0x00007fd52221bcd2 g_cond_wait_until (libglib-2.0.so.0 + 0xa2cd2)
                #2  0x00007fd52219a591 n/a (libglib-2.0.so.0 + 0x21591)
                #3  0x00007fd5221f481a n/a (libglib-2.0.so.0 + 0x7b81a)
                #4  0x00007fd5221f3ddd n/a (libglib-2.0.so.0 + 0x7addd)
                #5  0x00007fd5209d7ea7 start_thread (libpthread.so.0 + 0x8ea7)
                #6  0x00007fd521466eaf __clone (libc.so.6 + 0xfdeaf)
                
                Stack trace of thread 6419:
                #0  0x00007fd5209de7b2 futex_wait_cancelable (libpthread.so.0 + 0xf7b2)
                #1  0x00007fd5200e2777 _ZN7mozilla6detail21ConditionVariableImpl4waitERNS0_9MutexImplE (libmozjs-78.so.0 + 0x9eb777)
                #2  0x00007fd5200e2958 _ZN7mozilla6detail21ConditionVariableImpl8wait_forERNS0_9MutexImplERKNS_16BaseTimeDurationINS_27TimeDurationValueCalculatorEEE (libmozjs-78.so.0 + 0x9eb958)
                #3  0x00007fd51f958c15 n/a (libmozjs-78.so.0 + 0x261c15)
                #4  0x00007fd51f958cb4 n/a (libmozjs-78.so.0 + 0x261cb4)
                #5  0x00007fd51f9547d5 n/a (libmozjs-78.so.0 + 0x25d7d5)
                #6  0x00007fd5209d7ea7 start_thread (libpthread.so.0 + 0x8ea7)
                #7  0x00007fd521466eaf __clone (libc.so.6 + 0xfdeaf)
                
                Stack trace of thread 6411:
                #0  0x00007fd5209de7b2 futex_wait_cancelable (libpthread.so.0 + 0xf7b2)
                #1  0x00007fd50b7898fb n/a (i965_dri.so + 0x5498fb)
                #2  0x00007fd50b7893d7 n/a (i965_dri.so + 0x5493d7)
                #3  0x00007fd5209d7ea7 start_thread (libpthread.so.0 + 0x8ea7)
                #4  0x00007fd521466eaf __clone (libc.so.6 + 0xfdeaf)
                
                Stack trace of thread 6408:
                #0  0x00007fd5209de7b2 futex_wait_cancelable (libpthread.so.0 + 0xf7b2)
                #1  0x00007fd50b7898fb n/a (i965_dri.so + 0x5498fb)
                #2  0x00007fd50b7893d7 n/a (i965_dri.so + 0x5493d7)
                #3  0x00007fd5209d7ea7 start_thread (libpthread.so.0 + 0x8ea7)
                #4  0x00007fd521466eaf __clone (libc.so.6 + 0xfdeaf)
                
                Stack trace of thread 6422:
                #0  0x00007fd5209de7b2 futex_wait_cancelable (libpthread.so.0 + 0xf7b2)
                #1  0x00007fd5200e2777 _ZN7mozilla6detail21ConditionVariableImpl4waitERNS0_9MutexImplE (libmozjs-78.so.0 + 0x9eb777)
                #2  0x00007fd5200e2958 _ZN7mozilla6detail21ConditionVariableImpl8wait_forERNS0_9MutexImplERKNS_16BaseTimeDurationINS_27TimeDurationValueCalculatorEEE (libmozjs-78.so.0 + 0x9eb958)
                #3  0x00007fd51f958c15 n/a (libmozjs-78.so.0 + 0x261c15)
                #4  0x00007fd51f958cb4 n/a (libmozjs-78.so.0 + 0x261cb4)
                #5  0x00007fd51f9547d5 n/a (libmozjs-78.so.0 + 0x25d7d5)
                #6  0x00007fd5209d7ea7 start_thread (libpthread.so.0 + 0x8ea7)
                #7  0x00007fd521466eaf __clone (libc.so.6 + 0xfdeaf)
                
                Stack trace of thread 6417:
                #0  0x00007fd5209de7b2 futex_wait_cancelable (libpthread.so.0 + 0xf7b2)
                #1  0x00007fd5200e2777 _ZN7mozilla6detail21ConditionVariableImpl4waitERNS0_9MutexImplE (libmozjs-78.so.0 + 0x9eb777)
                #2  0x00007fd5200e2958 _ZN7mozilla6detail21ConditionVariableImpl8wait_forERNS0_9MutexImplERKNS_16BaseTimeDurationINS_27TimeDurationValueCalculatorEEE (libmozjs-78.so.0 + 0x9eb958)
                #3  0x00007fd51f958c15 n/a (libmozjs-78.so.0 + 0x261c15)
                #4  0x00007fd51f958cb4 n/a (libmozjs-78.so.0 + 0x261cb4)
                #5  0x00007fd51f9547d5 n/a (libmozjs-78.so.0 + 0x25d7d5)
                #6  0x00007fd5209d7ea7 start_thread (libpthread.so.0 + 0x8ea7)
                #7  0x00007fd521466eaf __clone (libc.so.6 + 0xfdeaf)
                
                Stack trace of thread 6420:
                #0  0x00007fd5209de7b2 futex_wait_cancelable (libpthread.so.0 + 0xf7b2)
                #1  0x00007fd5200e2777 _ZN7mozilla6detail21ConditionVariableImpl4waitERNS0_9MutexImplE (libmozjs-78.so.0 + 0x9eb777)
                #2  0x00007fd5200e2958 _ZN7mozilla6detail21ConditionVariableImpl8wait_forERNS0_9MutexImplERKNS_16BaseTimeDurationINS_27TimeDurationValueCalculatorEEE (libmozjs-78.so.0 + 0x9eb958)
                #3  0x00007fd51f958c15 n/a (libmozjs-78.so.0 + 0x261c15)
                #4  0x00007fd51f958cb4 n/a (libmozjs-78.so.0 + 0x261cb4)
                #5  0x00007fd51f9547d5 n/a (libmozjs-78.so.0 + 0x25d7d5)
                #6  0x00007fd5209d7ea7 start_thread (libpthread.so.0 + 0x8ea7)
                #7  0x00007fd521466eaf __clone (libc.so.6 + 0xfdeaf)
                
                Stack trace of thread 6418:
                #0  0x00007fd5209de7b2 futex_wait_cancelable (libpthread.so.0 + 0xf7b2)
                #1  0x00007fd5200e2777 _ZN7mozilla6detail21ConditionVariableImpl4waitERNS0_9MutexImplE (libmozjs-78.so.0 + 0x9eb777)
                #2  0x00007fd5200e2958 _ZN7mozilla6detail21ConditionVariableImpl8wait_forERNS0_9MutexImplERKNS_16BaseTimeDurationINS_27TimeDurationValueCalculatorEEE (libmozjs-78.so.0 + 0x9eb958)
                #3  0x00007fd51f958c15 n/a (libmozjs-78.so.0 + 0x261c15)
                #4  0x00007fd51f958cb4 n/a (libmozjs-78.so.0 + 0x261cb4)
                #5  0x00007fd51f9547d5 n/a (libmozjs-78.so.0 + 0x25d7d5)
                #6  0x00007fd5209d7ea7 start_thread (libpthread.so.0 + 0x8ea7)
                #7  0x00007fd521466eaf __clone (libc.so.6 + 0xfdeaf)




More information about the pkg-gnome-maintainers mailing list