aco: Segfault with RMG and mupen64plus-video-parallel
Description
When using the mupen64plus-video-parallel
plugin (N64 Vulkan plugin) using the RMG frontend and starting any N64 rom it will immediately segfault.
Log files (for system lockups / game freezes / crashes)
RMG-gdb.log (ACO)
RMG-gdb-radv-llvm.log (RADV_DEBUG=llvm
)
dmesg
[1111582.215325] Thread::Emulati[3017]: segfault at 7f23d9b06f00 ip 00007f23ffc726bd sp 00007f23d9b06ed0 error 6 in libc.so[7f23ffc24000+62000] likely on CPU 3 (core 3, socket 0)
[1111582.215349] Code: 74 24 10 49 09 fd e9 47 ff ff ff 66 90 41 57 48 0f af f2 41 56 41 55 41 54 55 53 48 81 ec 48 03 00 00 66 0f 6f 05 b3 57 04 00 <0f> 29 44 24 30 48 85 f6 0f 84 c6 01 00 00 48 89 f5 66 48 0f 6e c2
Steps to reproduce
- Compile or otherwise install RMG.
- Run any N64 rom.
- Segfault.
System information
- OS:
Gentoo
- GPU:
VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Vega 10 XL/XT [Radeon RX Vega 56/64] [1002:687f] (rev c3)
- CPU:
x86_64 AMD FX(tm)-6350 Six-Core Processor AuthenticAMD
- Kernel version:
Linux 6.1.41 x86_64
- Mesa version:
OpenGL version string: 4.6 (Compatibility Profile) Mesa 24.1.0-devel (git-42fc83a6e3)
- Desktop environment: Spectrwm
- Xserver version:
X.Org X Server 1.21.1.99
- llvm version:
17.0.6
- musl:
1.2.4
Regression
Unknown.
Further information (optional)
This occurs both with and without RADV_DEBUG=llvm
.
This PR is required to build RMG on a musl system. https://github.com/Themaister/Granite/pull/129
I also made an issue for RMG: https://github.com/Rosalie241/RMG/issues/219
This doesn't occur on my other Gentoo system which has a different CPU, GPU and uses glibc instead of musl.
- libc:
glibc-2.38
- CPU:
Intel(R) Core(TM) i5-7600K CPU
- GPU:
[AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] (rev c1)
Edited by orbea