#1513·wslg

Adreno X1-85 (arm64): every process that used the GPU through dzn hangs, aborts or segfaults in exit(), inside qcgpuarm64compilercore.so's fini() → llvm_shutdown()

Author: sebgodCreated Sep 22, 2026Updated Sep 22, 2026

Windows build number

10.0.26200.9457 (Windows 11 Pro, arm64). GPU: Qualcomm Adreno X1-85, Windows driver 31.0.170.0 (2026-07-25). The guest loads the package mirrored as /usr/lib/wsl/drivers/qcdx8380.inf_arm64_be52f1b0c83c4f02/.

Your Distribution version

Ubuntu 24.04.4 LTS (aarch64), glibc 2.39, Vulkan loader 1.3.275, vulkan-tools 1.3.275. Mesa 26.0.8 dzn built from source (no ICD ships for arm64), selected with VK_DRIVER_FILES.

Your WSL versions

WSL version: 2.7.3.0
Kernel version: 6.6.114.1-1
WSLg version: 1.0.73
MSRDC version: 1.2.6676
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26200.9457

Steps to reproduce

bash
export VK_DRIVER_FILES=/path/to/dzn_icd.aarch64.json
timeout 60 vkcube --c 240; echo $?          # 124, ten runs of ten
timeout 60 vulkaninfo --summary; echo $?    # 124, ten runs of ten

Under lavapipe (VK_DRIVER_FILES=/usr/share/vulkan/icd.d/lvp_icd.json) both exit 0 immediately.

Stop either one under gdb once it has finished its work (timeout -s INT 30 gdb -batch -ex run -ex bt --args vkcube --c 240) and the main thread is here, identically for both tools:

#0  futex_wait (private=0, expected=2, futex_word=0xaaaaaab6f0d0)
#3  ___pthread_mutex_lock (mutex=0xaaaaaab6f0d0)
#4  llvm37::sys::MutexImpl::acquire()        from qcdx8380.inf_arm64_be52f1b0c83c4f02/qcgpuarm64compilercore.so
#5  llvm37::sys::SmartMutex<false>::lock()
#6  llvm37::MutexGuard::MutexGuard(llvm37::sys::SmartMutex<false>&)
#7  llvm37::llvm_shutdown()
#8  cleanupLLVM()
#9  fini()                                    qcgpuarm64compilercore.so
#10 _dl_call_fini
#11 _dl_fini
#12 __run_exit_handlers
#13 __GI_exit
#14 __libc_start_call_main

main has returned and every Vulkan object was destroyed before this. The process is in exit(), running the shared objects' destructors; the Adreno shader compiler's fini() calls its bundled LLVM 3.7's llvm_shutdown(), which locks a mutex that has already been freed.

WSL logs

None needed; the process is not talking to WSL at this point. (vulkaninfo > file shows nothing, not even the summary, because stdio is flushed after the destructors run and the buffer is still unwritten when the process is killed. On a terminal the output appears and then the prompt never returns.)

WSL dumps

WSL's crash capture (%TEMP%\wsl-crashes) recorded cores from our own applications on the same stack. In those the mutex memory reads 0x0000adb700000002 0x0000adb7b30eca70: the second word is a heap pointer and the first carries the heap's 0x0000adb7 prefix in its high half, i.e. the forward and back links of a chunk on a free list. The lock attempt reads the link as "locked", writes its 2 into the low half of the pointer, and that write corrupts the bin. So the same bug shows up three ways, depending only on whether another thread happens to retire afterwards:

  • a single-threaded process (vkcube, vulkaninfo) hangs for ever at exit;
  • a .NET NativeAOT application aborts with glibc's corrupted double-linked list (exit 134) when a thread-pool worker's tcache teardown frees into the damaged bin — about one exit in six;
  • a .NET test host segfaults (exit 139) in __nptl_deallocate_tsd when a retiring thread's TLS destructor jumps into code that is no longer mapped — every run.

Cores available on request (170-500 MB each).

Expected behavior

A process that used the GPU through dzn exits when it returns from main.

Actual behavior

Every process that has loaded qcgpuarm64compilercore.so hangs, aborts or segfaults inside exit(), in that library's destructor. Nothing the application does after vkDestroyInstance changes it, and _exit() is the only workaround. This looks like a driver-package bug rather than a WSLg one, but the package reaches the guest through WSL's driver mirroring and there is no public Qualcomm tracker for it, so filing here in the hope it can be routed.