Mesa HEAD builds linked with recent LLVM 15 HEAD versions unusable (crashes even glxgears, SDDM locks up)
System information
Note that in the inxi
output shows Mesa 22.1 from Debian's packages that I had to go back to to get a working DE again. I am building an older LLVM 15 that worked before, but is no longer available from apt.llvm.org, at the moment to get back to my last working Mesa 22.2.0-devel build. All the backtraces and the bug report is about Mesa commit 3e679219 and the LLVM snapshot packages from apt.llvm.org at version 1:15~++20220604100742+416a5080d890-1~exp1~20220604220828.540
(you can obtain the source package from https://llvm-jenkins.debian.net/job/llvm-toolchain-source/540/).
System:
Host: citadel Kernel: 5.18.1-citadel arch: x86_64 bits: 64 compiler: gcc
v: 11.3.0 Desktop: KDE Plasma v: 5.24.5 tk: Qt v: 5.15.2 wm: kwin_x11
dm: SDDM Distro: Debian GNU/Linux bookworm/sid
CPU:
Info: 12-core model: AMD Ryzen 9 5900X bits: 64 type: MT MCP arch: Zen 3
rev: 2 cache: L1: 768 KiB L2: 6 MiB L3: 64 MiB
Speed (MHz): avg: 2962 high: 3593 min/max: 2200/4950 boost: enabled
cores: 1: 2870 2: 3348 3: 2870 4: 2872 5: 3591 6: 2869 7: 2196 8: 2195
9: 2193 10: 2190 11: 3587 12: 2875 13: 3287 14: 2911 15: 2871 16: 3235
17: 3589 18: 2874 19: 3593 20: 2872 21: 2871 22: 2873 23: 3587 24: 2871
bogomips: 177269
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
Device-1: AMD Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M]
vendor: Sapphire driver: amdgpu v: kernel pcie: speed: 16 GT/s lanes: 16
ports: active: DP-3 empty: DP-1,DP-2,HDMI-A-1 bus-ID: 07:00.0
chip-ID: 1002:73df
Display: x11 server: X.Org v: 1.21.1.3 compositor: kwin_x11 driver: X:
loaded: amdgpu unloaded: fbdev,modesetting,radeon,vesa gpu: amdgpu
display-ID: :0 screens: 1
Screen-1: 0 s-res: 2560x1440 s-dpi: 96
Monitor-1: DP-3 mapped: DisplayPort-2 model: Samsung SMS27A850
res: 2560x1440 dpi: 126 diag: 611mm (24.1")
OpenGL: renderer: AMD Radeon RX 6700 XT (navy_flounder LLVM 14.0.3 DRM
3.46 5.18.1-citadel)
v: 4.6 Mesa 22.1.0 direct render: Yes
Describe the issue
Running even simple 3D applications like glxgears
is impossible (they crash right away) after updating LLVM 15 to 1:15~++20220604100742+416a5080d890-1~exp1~20220604220828.540
from apt.llvm.org. The Mesa build is of commit 3e679219 and the build was done against LLVM 1:15~++20220604100742+416a5080d890-1~exp1~20220604220828.540
. Starting SDDM with this version combination of Mesa and LLVM just locks up the system and I had to do a hard reset. Older versions of Mesa (eg. commit 0eee0710) also fail with the newest LLVM, but that is nothing new. Sometimes updates of LLVM require rebuilds of Mesa.
Regression
The issue started with today's update of LLVM 15 to 1:15~++20220604100742+416a5080d890-1~exp1~20220604220828.540
from 1:15~++20220601100758+8c8a2679a20f-1~exp1~20220601220850.532
– therefore this might be a LLVM regression. Or just some change in LLVM 15 that needs some change to Mesa as well? First guess would be some more fallout from LLVM's "opaque pointer" transition?
Log files as attachment
I've recorded full backtraces and register dumps of a crashing glxgears
with radeonsi
and LLVMpipe
.