vulkan: wsi deadlocks on destruction
#0 0x00007f3b85c2572a in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1 0x00007f3b85c2a5f4 in __pthread_clockjoin_ex () from /lib64/libc.so.6
#2 0x00007f3b7ccdb9d5 in x11_swapchain_destroy (anv_chain=0xb10d00, pAllocator=0x8bae30) at ../src/vulkan/wsi/wsi_common_x11.c:1842
#3 0x00007f3b7ccd4860 in wsi_DestroySwapchainKHR (_device=0x8badf0, _swapchain=0xb10d00, pAllocator=0x0) at ../src/vulkan/wsi/wsi_common.c:792
#4 0x00007f3b84e90d8e in destroy_swapchain (screen=0x73d9d0, cswap=0xb10c40) at ../src/gallium/drivers/zink/zink_kopper.c:142
#5 0x00007f3b84e90f84 in zink_kopper_deinit_displaytarget (screen=0x73d9d0, cdt=0xb10820) at ../src/gallium/drivers/zink/zink_kopper.c:199
#6 0x00007f3b84e91b4b in zink_kopper_displaytarget_destroy (screen=0x73d9d0, cdt=0xb10820) at ../src/gallium/drivers/zink/zink_kopper.c:444
#7 0x00007f3b84f0a7cc in zink_destroy_resource_object (screen=0x73d9d0, obj=0xb105e0) at ../src/gallium/drivers/zink/zink_resource.c:105
#8 0x00007f3b84e4bd1b in zink_resource_object_reference (screen=0x73d9d0, dst=0x7fff9a0ecd78, src=0x0) at ../src/gallium/drivers/zink/zink_resource.h:215
#9 0x00007f3b84e4c920 in unref_resources (screen=0x73d9d0, bs=0xa5cdc0) at ../src/gallium/drivers/zink/zink_batch.c:122
#10 0x00007f3b84e4c97f in zink_clear_batch_state (ctx=0x6a3260, bs=0xa5cdc0) at ../src/gallium/drivers/zink/zink_batch.c:131
#11 0x00007f3b84e71e34 in zink_context_destroy (pctx=0x6a3260) at ../src/gallium/drivers/zink/zink_context.c:130
#12 0x00007f3b844161d4 in tc_destroy (_pipe=0xa6bda0) at ../src/gallium/auxiliary/util/u_threaded_context.c:4289
#13 0x00007f3b83e4e939 in st_destroy_context_priv (st=0xafa590, destroy_pipe=true) at ../src/mesa/state_tracker/st_context.c:394
#14 0x00007f3b83e5044d in st_destroy_context (st=0xafa590) at ../src/mesa/state_tracker/st_context.c:992
#15 0x00007f3b83e6a9cb in st_context_destroy (stctxi=0xafa590) at ../src/mesa/state_tracker/st_manager.c:944
#16 0x00007f3b839651f8 in dri_destroy_context (cPriv=0x69d130) at ../src/gallium/frontends/dri/dri_context.c:254
#17 0x00007f3b8396ae91 in driDestroyContext (pcp=0x69d130) at ../src/gallium/frontends/dri/dri_util.c:674
#18 0x00007f3b8572c2ce in drisw_destroy_context (context=0x69cfa0) at ../src/glx/drisw_glx.c:424
#19 0x00007f3b8572e913 in glXDestroyContext (dpy=0x686df0, ctx=0x69cfa0) at ../src/glx/glxcmds.c:523
#20 0x00007f3b85b60aec in glXDestroyContext (dpy=0x686df0, context=0x69cfa0) at libglx.c:332
#21 0x00007f3b863b5e7e in glXDestroyContext (dpy=0x686df0, ctx=0x69cfa0) at g_libglglxwrapper.c:384
#22 0x00007f3b85f5f3e1 in glx_context_destroy () from /lib64/libwaffle-1.so.0
#23 0x00007f3b862abed4 in piglit_wfl_framework_teardown (wfl_fw=0x686490) at /home/zmike/src/piglit/tests/util/piglit-framework-gl/piglit_wfl_framework.c:648
#24 0x00007f3b862ac5d9 in piglit_winsys_framework_teardown (winsys_fw=0x686490) at /home/zmike/src/piglit/tests/util/piglit-framework-gl/piglit_winsys_framework.c:244
#25 0x00007f3b862ad620 in destroy (gl_fw=0x686490) at /home/zmike/src/piglit/tests/util/piglit-framework-gl/piglit_x11_framework.c:212
#26 0x00007f3b8629a5b6 in destroy () at /home/zmike/src/piglit/tests/util/piglit-framework-gl.c:208
#27 0x00007f3b85bdfde5 in __run_exit_handlers () from /lib64/libc.so.6
#28 0x00007f3b85bdff60 in exit () from /lib64/libc.so.6
#29 0x00007f3b86159d72 in piglit_report_result (result=PIGLIT_PASS) at /home/zmike/src/piglit/tests/util/piglit-util.c:245
#30 0x00007f3b862ad3de in process_next_event (x11_fw=0x686490) at /home/zmike/src/piglit/tests/util/piglit-framework-gl/piglit_x11_framework.c:139
#31 0x00007f3b862ad479 in enter_event_loop (winsys_fw=0x686490) at /home/zmike/src/piglit/tests/util/piglit-framework-gl/piglit_x11_framework.c:153
#32 0x00007f3b862ac087 in run_test (gl_fw=0x686490, argc=1, argv=0x7fff9a0ed4e8) at /home/zmike/src/piglit/tests/util/piglit-framework-gl/piglit_winsys_framework.c:89
#33 0x00007f3b8629a670 in piglit_gl_test_run (argc=1, argv=0x7fff9a0ed4e8, config=0x7fff9a0ed350) at /home/zmike/src/piglit/tests/util/piglit-framework-gl.c:227
#34 0x00000000002011f7 in main (argc=1, argv=0x7fff9a0ed4e8) at /home/zmike/src/piglit/tests/hiz/hiz-depth-read-window-stencil0.c:40
repro cases:
/home/zmike/src/piglit/bin/hiz-depth-read-window-stencil0 -auto
/home/zmike/src/piglit/bin/hiz-depth-read-window-stencil1 -auto
Edited by Mike Blumenkrantz