[Regression] Xwayland rootful crashes on shutdown after commit cad42fcb
With commit cad42fcb, Xwayland rootful crashes on shutdown.
Steps to reproduce:
- Run Xwayland rootful
- Close the Xwayland rootful window
Actual result:
(gdb) bt
#0 0x0000000000435ca1 in dixGetPrivateAddr (privates=0x3d0, key=0x6cb640 <glamor_screen_private_key>) at ../include/privates.h:123
#1 0x0000000000435d07 in dixGetPrivate (privates=0x3d0, key=0x6cb640 <glamor_screen_private_key>) at ../include/privates.h:137
#2 0x0000000000435db3 in dixLookupPrivate (privates=0x3d0, key=0x6cb640 <glamor_screen_private_key>) at ../include/privates.h:167
#3 0x0000000000435eec in glamor_get_screen_private (screen=0x0) at ../glamor/glamor.c:48
#4 0x000000000045cf38 in glamor_pixmap_destroy_fbo (pixmap=0x11b56c0) at ../glamor/glamor_fbo.c:306
#5 0x0000000000437f53 in glamor_close_screen (screen=0x723360) at ../glamor/glamor.c:956
#6 0x0000000000600a70 in dri3_close_screen (screen=0x723360) at ../dri3/dri3.c:40
#7 0x0000000000435b84 in xwl_glamor_xv_close_screen (pScreen=0x723360) at ../hw/xwayland/xwayland-glamor-xv.c:392
#8 0x000000000056cb81 in XvCloseScreen (pScreen=0x723360) at ../Xext/xvmain.c:309
#9 0x000000000041eaa2 in xwl_close_screen (screen=0x723360) at ../hw/xwayland/xwayland-screen.c:259
#10 0x0000000000577224 in CursorCloseScreen (pScreen=0x723360) at ../xfixes/cursor.c:205
#11 0x000000000053f448 in AnimCurCloseScreen (pScreen=0x723360) at ../render/animcur.c:100
#12 0x0000000000504bb2 in compCloseScreen (pScreen=0x723360) at ../composite/compinit.c:84
#13 0x000000000052c9c9 in damageCloseScreen (pScreen=0x723360) at ../miext/damage/damage.c:1605
#14 0x0000000000542652 in present_close_screen (screen=0x723360) at ../present/present_screen.c:63
#15 0x0000000000612dee in glxCloseScreen (pScreen=0x723360) at ../glx/glxscreens.c:171
#16 0x00000000004bd1a9 in dix_main (argc=3, argv=0x7fffffffd7c8, envp=0x7fffffffd7e8) at ../dix/main.c:319
#17 0x0000000000435c47 in main (argc=3, argv=0x7fffffffd7c8, envp=0x7fffffffd7e8) at ../dix/stubmain.c:34
Reverting commit cad42fcb avoids the crash.
See also #1621 (closed)