guest_audio_out_port_bounds crashes in libpulse (pa_stream_unref) on PipeWire hosts under parallel ctest #23020
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by PxT00 on 2026-11-18T16:43:13Z.
What happens
guest_audio_out_port_boundscrashes with SIGSEGV on about 14% of runs when the host has a real PulseAudio server (here PipeWire'spipewire-pulse) and the machine is under load, as during a parallelctest. It passes when run alone. The test does not setSDL_AUDIODRIVER, so SDL opens real PulseAudio streams for its 32 ports; other AudioOut tests setdummyordisk(the vibration tests inlibSceAudioOut/CMakeLists.txt,AudioOutShutdown.cpp,AudioOut2Timing.cpp).All four cores I inspected stop in the same place, on libpulse's mainloop thread, while the main thread is inside
PULSEAUDIO_OpenDevicefromsceAudioOutOpen:Title, test or build step
ctest
guest_audio_out_port_boundsAnyPS5 commit
maincbbeedc99d, no pull requests on top.System
CachyOS, Linux 7.3.4-1-cachyos, GCC 16.2.1, Release. AMD Ryzen 5 5500, AMD Radeon RX 7600 (RADV NAVI33, Mesa 26.2.5). Audio: PulseAudio 17.0 client libraries on PipeWire 1.6.11. Bundled SDL2
release-2.32.0-260-g74be4c283.Host report
Steps to reproduce
BUILD_TESTING=ONon a Linux host whose PulseAudio server is running (PipeWire or PulseAudio).build/core/libs/prx/libSceAudioOut, start 12 copies at once, ten times:for r in $(seq 10); do for i in $(seq 12); do ../../../../tests/guest_audio_out_port_bounds_tests >/dev/null 2>&1; echo $? & done; wait; done | sort | uniq -ccoredumpctl gdbon one shows the stack above.Log
What was checked
ctest -R, 5 runs) it passes; only concurrent runs crash, so it depends on timing.Require(exit 139, not the 134 ofabort).SDL_AUDIODRIVER=dummythe crash disappears (120/120), and throughctestwith the property set, 120/120.