Bug#1143220: mesa-vulkan-drivers: lavapipe SIGSEGV or hang at process teardown on riscv64

Dominique Belhachemi <[email protected]> Fri, 31 Jul 2026 21:53:25 -0400
Newsgroups gmane.linux.debian.devel.x
Message-ID <CAAvaLCzdPgWW4Wk3DonUzmLqBFNxExop3OTVeV49pW98cBY4tA__6763.78119257919$1785549341$gmane$org@mail.gmail.com>
Package: mesa-vulkan-drivers
Version: 26.1.5-1
Severity: important
X-Debbugs-Cc: [email protected]
Tags: patch
User: [email protected]
Usertags: riscv64
Control: forwarded -1
https://gitlab.freedesktop.org/mesa/mesa/-/work_items/15946
Control: affects -1 + src:dawn

Dear maintainer,

I am using Mesa's software rasterizer (lavapipe) on a riscv64 SBC
(StarFive VisionFive 2, JH7110 SoC)
via Dawn/WebGPU in a normal desktop session.

lavapipe works, but any Vulkan program that
creates a VkDevice via lavapipe and lets that device be destroyed from
an atexit handler
or C++ file-scope destructor crashes with exit code 139 (SIGSEGV), 134
(SIGABRT), or just hangs for hours (Debian CI).

dawn's riscv64 autopkgtest reproduces this exactly:
https://ci.debian.net/data/autopkgtest/unstable/riscv64/d/dawn/73952498/log.gz

run-simple-vulkan-program (hung, killed by the 20000s autopkgtest timeout):
  1263s Building simple-vulkan-program...
  1263s Running simple-vulkan-program (lavapipe)...
  21263s autopkgtest [21:26:07]: ERROR: timed out on command ...
run-simple-vulkan-program
  21264s run-simple-vulkan-program FAIL timed out

run-simple-dawn-program (segfault):
  21758s Building simple-dawn-program...
  21763s Running simple-dawn-program (lavapipe)...
  21763s Segmentation fault
  21764s run-simple-dawn-program FAIL non-zero exit status 139

The same 2 tiny test programs work fine on amd64 and arm64.

I added a reproducer and patch to the upstream issue:
https://gitlab.freedesktop.org/mesa/mesa/-/work_items/15946

Can Debian's Mesa carry the patch or should I wait until upstream fixes it?

Best
-Dominique