Creating a graphics pipeline from a specific (valid, bounds-checked) SPIR-V
fragment shader crashes the NVIDIA shader compiler with a SIGSEGV inside
libnvidia-gpucomp.so.595.99.02. The crash is deterministic and happens during
vkCreateGraphicsPipelines.
Thread "..." received signal SIGSEGV, Segmentation fault.
#0 0x...b3fd in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-gpucomp.so.595.99.02
#1 0x...b9a7 in ?? () from libnvidia-gpucomp.so.595.99.02
#2 0x...c5e5 in ?? () from libnvidia-gpucomp.so.595.99.02
...
#13 0x... in _nv002nvvm () from libnvidia-glvkspirv.so.595.99.02
... (full chain in repro/gdb-backtrace.txt)
The shader is a small fragment shader produced by a WGSL fuzzer (wgslsmith) and
translated to SPIR-V by Tint; all array indices are bounds-clamped, so the input is
well-defined. repro/reconditioned.spv is the exact SPIR-V; repro/reconditioned.wgsl
is the source. The faulting instruction is always the same address in
libnvidia-gpucomp, reached through the SPIR-V→NVVM path (_nv002nvvm in
libnvidia-glvkspirv).
Reachable from a web page via WebGPU (Chrome/Dawn): a page that creates a WebGPU
pipeline with this shader crashes the browser’s GPU process.
Steps to reproduce
Create a Vulkan application that consumes reconditioned.spv(which you will find inside shader.zip).
I assume Nvidia can do this easily; if not, I can provide the Vulkan application I use to repro this.
Configuration
- GPU: NVIDIA RTX PRO 1000 Blackwell Generation Laptop GPU; deviceUUID
f099654f-795e-84b4-28cb-7b229434a5ee - Driver: 595.99.02 (
DRIVER_ID_NVIDIA_PROPRIETARY), Vulkan 1.4.3.3 - OS: Ubuntu 26.04 LTS, kernel 7.0.0-38-generic
gdb-backtrace.txt (5.4 KB)
shader.zip (3.0 KB)