https://bugs.winehq.org/show_bug.cgi?id=50649
Bernhard Übelacker bernhardu@mailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bernhardu@mailbox.org
--- Comment #6 from Bernhard Übelacker bernhardu@mailbox.org --- For me this gets triggered when running current wine versions inside firejail, also with desktop mode.
Unfortunately it just prints the "failed to initialize" and because this happens during process creation it is kind of hard to find out where exactly it is crashing or why. Therefore it took me a while to get to this bug.
WINEDEBUG=+pid,+tid,+vulkan,+seh wine winecfg ... 013c:0140:trace:vulkan:X11DRV_vkDestroyInstance 0x7e43b620 (nil) 013c:0140:trace:seh:dispatch_exception code=c0000005 flags=0 addr=749C1543 ip=749c1543 tid=0140 ... 013c:0140:err:module:LdrInitializeThunk "comctl32.dll" failed to initialize, aborting 013c:0140:err:module:LdrInitializeThunk Initializing dlls for L"C:\windows\system32\winecfg.exe" failed, status c0000005
A plaing gdb attached shows unfortunately just the last frame, when doing "add-symbol-file /usr/lib/i386-linux-gnu/libvulkan_lvp.so 0x7d46b000" with the address from the executable entry in /proc/$PID/maps:
#0 0x7d5f5543 in draw_prepare_shader_outputs (draw=0x7e92cab0) at ../src/gallium/auxiliary/draw/draw_context.c:676
(I guess the addr2line method would just work if ASLR is disabled.)
As a workaround for me I can add `blacklist /usr/lib/*-linux-gnu/libvulkan.so*` to firejail to make it work, until fixed mesa versions arrive in distributions.
Another workaround, that I found, was renaming the wine-preloader.