Crash with SIGTRAP due to X Window System error `'BadCursor (invalid Cursor parameter)'`
Using Debian sid/unstable with libmutter-12-0 44.8-2, gnome-shell 44.8-1, xserver-xorg 1:7.7+23, and xserver-xorg-core 2:21.1.11-2, in GNOME Shell with X.Org, dragging the Thunderbird window in the overview to another desktop, gnome-shell
terminated with signal SIGTRAP.
(gdb) bt
#0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=5, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
#1 0x00007feff50a81cf in __pthread_kill_internal (signo=5, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#2 0x00007feff505a472 in __GI_raise (sig=sig@entry=5) at ../sysdeps/posix/raise.c:26
#3 0x00005625c9e430d2 in dump_gjs_stack_on_signal_handler (signo=5) at ../src/main.c:466
#4 0x00007feff505a510 in <signal handler called> () at /lib/x86_64-linux-gnu/libc.so.6
#5 g_log_structured_array (log_level=<optimized out>, fields=0x7ffdcf32b230, n_fields=4) at ../../../glib/gmessages.c:556
#6 0x00007feff572f9e2 in g_log_default_handler
(log_domain=log_domain@entry=0x7feff53a548f "libmutter", log_level=log_level@entry=6, message=message@entry=0x5625cd57c700 "Received an X Window System error.\nThis probably reflects a bug in the program.\nThe error was 'BadCursor (invalid Cursor parameter)'.\n (Details: serial 43443 error_code 6 request_code 95 (core protoc"..., unused_data=unused_data@entry=0x0) at ../../../glib/gmessages.c:3284
#7 0x00007feff572fc50 in g_logv (log_domain=0x7feff53a548f "libmutter", log_level=G_LOG_LEVEL_ERROR, format=<optimized out>, args=args@entry=0x7ffdcf32b380)
at ../../../glib/gmessages.c:1392
#8 0x00007feff572ff03 in g_log
(log_domain=log_domain@entry=0x7feff53a548f "libmutter", log_level=log_level@entry=G_LOG_LEVEL_ERROR, format=format@entry=0x7feff53c3048 "Received an X Window System error.\nThis probably reflects a bug in the program.\nThe error was '%s'.\n (Details: serial %ld error_code %d request_code %d (%s) minor_code %d)\n (Note to programmers: nor"...)
at ../../../glib/gmessages.c:1461
#9 0x00007feff531add6 in display_error_event (error=0x7ffdcf32b500, x11_display=0x5625caeedbc0 [MetaX11Display]) at ../src/x11/meta-x11-errors.c:113
#10 meta_x_error (xdisplay=<optimized out>, error=0x7ffdcf32b500) at ../src/x11/meta-x11-errors.c:136
#11 meta_x_error (xdisplay=<optimized out>, error=0x7ffdcf32b500) at ../src/x11/meta-x11-errors.c:132
#12 0x00007feff4d0341b in _XError (dpy=dpy@entry=0x5625ca857380, rep=rep@entry=0x5625cd659670) at ../../src/XlibInt.c:1503
#13 0x00007feff4cfffc7 in handle_error (dpy=0x5625ca857380, err=0x5625cd659670, in_XReply=<optimized out>) at ../../src/xcb_io.c:211
#14 0x00007feff4d0007d in handle_response (dpy=dpy@entry=0x5625ca857380, response=0x5625cd659670, in_XReply=in_XReply@entry=0) at ../../src/xcb_io.c:403
#15 0x00007feff4d00b0a in _XEventsQueued (dpy=dpy@entry=0x5625ca857380, mode=mode@entry=2) at ../../src/xcb_io.c:442
#16 0x00007feff4cf1e17 in XPending (dpy=0x5625ca857380) at ../../src/Pending.c:55
#17 0x00007feff5726f46 in g_main_context_prepare_unlocked (context=context@entry=0x5625ca842df0, priority=priority@entry=0x7ffdcf32b730) at ../../../glib/gmain.c:3840
#18 0x00007feff57271b6 in g_main_context_prepare_unlocked (priority=0x7ffdcf32b730, context=0x5625ca842df0) at ../../../glib/gmain.c:3780
#19 g_main_context_iterate_unlocked (context=0x5625ca842df0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4330
#20 0x00007feff5727c1f in g_main_loop_run (loop=0x5625cc2d5c00) at ../../../glib/gmain.c:4551
#21 0x00007feff52da019 in meta_context_run_main_loop (context=context@entry=0x5625ca841190 [MetaContextMain], error=error@entry=0x7ffdcf32b7f0)
at ../src/core/meta-context.c:482
#22 0x00005625c9e429a3 in main (argc=<optimized out>, argv=<optimized out>) at ../src/main.c:683