"gnome-shell" received signal SIGSEGV in maybe_focus_default_window
On Wayland, running gpsprune (java/XWayland) and opening two files at once makes gnome-shell crash
Thread 1 "gnome-shell" received signal SIGSEGV, Segmentation fault.
0x00007f89df85f92c in maybe_focus_default_window (workspace=0x0, not_this_one=0x561119dc11e0, timestamp=2356196) at ../mutter/src/x11/window-x11.c:893
893 ../mutter/src/x11/window-x11.c: No such file or directory.
#0 0x00007f89df85f92c in maybe_focus_default_window (workspace=0x0, not_this_one=0x561119dc11e0, timestamp=2356196) at ../mutter/src/x11/window-x11.c:893
stack = 0x5af
focusable_windows = 0x0
focus_candidates = 0x561116fb6050
l = Python Exception <class 'gdb.MemoryError'> Cannot access memory at address 0x5:
#1 0x00007f89df85fc81 in meta_window_x11_focus (window=0x561119dc11e0, timestamp=2356196) at ../mutter/src/x11/window-x11.c:994
x11_display = 0x561116fb6050
window_x11 = 0x561119dc11e0
priv = 0x561119dc1180
#2 0x00007f89df839b5e in meta_window_focus (window=0x561119dc11e0, timestamp=2356196) at ../mutter/src/core/window.c:4766
workspace_manager = 0x561116fab340
modal_transient = 0x0
__func__ = "meta_window_focus"
#3 0x00007f89df842d23 in meta_workspace_focus_default_window (workspace=0x561116cf8640, not_this_one=0x561119dc18e0, timestamp=2356196) at ../mutter/src/core/workspace.c:1308
window = 0x561119dc11e0
#4 0x00007f89df833aed in meta_window_unmanage (window=0x561119dc18e0, timestamp=2356196) at ../mutter/src/core/window.c:1511
workspace_manager = 0x561116fab340
tmp = Python Exception <class 'gdb.MemoryError'> Cannot access memory at address 0xbaec8d9:
#5 0x00007f89df84cc0f in handle_other_xevent (x11_display=0x561116fb6050, event=0x7ffd4870d510) at ../mutter/src/x11/events.c:1368
timestamp = 2356196
display = 0x561116fa2010
workspace_manager = 0x561116fab340
modified = 25165940
window = 0x561119dc18e0
property_for_window = 0x0
frame_was_receiver = 0
bypass_gtk = 0
#6 0x00007f89df84db2e in meta_x11_display_handle_xevent (x11_display=0x561116fb6050, event=0x7ffd4870d510) at ../mutter/src/x11/events.c:1821
display = 0x561116fa2010
backend = 0x5611168d70e0
modified = 25165940
bypass_compositor = 0
bypass_gtk = 0
input_event = 0x0
cursor_tracker = 0x1
#7 0x00007f89df84dc04 in xevent_filter (xevent=0x7ffd4870d510, event=0x56111a2870a0, data=0x561116fb6050) at ../mutter/src/x11/events.c:1859
x11_display = 0x561116fb6050
#8 0x00007f89df63151f in () at /usr/lib/libgdk-3.so.0
#9 0x00007f89df63b9a4 in () at /usr/lib/libgdk-3.so.0
#10 0x00007f89df690acb in gdk_display_get_event () at /usr/lib/libgdk-3.so.0
#11 0x00007f89df63b704 in () at /usr/lib/libgdk-3.so.0
#12 0x00007f89e03bdcf4 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#13 0x00007f89e03bfb11 in () at /usr/lib/libglib-2.0.so.0
#14 0x00007f89e03c0a63 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0
#15 0x00007f89df81e7a3 in meta_run () at ../mutter/src/core/main.c:683
#16 0x0000561114a6c3a9 in ()
#17 0x00007f89e08e8ee3 in __libc_start_main () at /usr/lib/libc.so.6
#18 0x0000561114a6c50e in ()
I've had this crash in many other occasions but the gpsprune
is the only reliable way I have found to reproduce this crash.
Environment: Arch linux with: extra/mutter 3.32.2+40+gccab0f47-1 extra/gnome-shell 1:3.32.2+6+g8b9874089-1