fix(libSceAudioOut): run guest_audio_out_port_bounds with the dummy audio driver #23060
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/23060"
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 oneandonlydean on 2026-11-18T17:11:25Z.
What
guest_audio_out_port_boundsopens 32 ports without settingSDL_AUDIODRIVER, so SDL opens real PulseAudio streams. On a host with a PulseAudio server (PipeWire'spipewire-pulsehere) and a loaded machine, as in a parallelctest, the process crashes inside libpulse's mainloop thread (pa_stream_unref) while the main thread is inPULSEAUDIO_OpenDevice. The other AudioOut tests that open ports already set the dummy driver. This setsSDL_AUDIODRIVER=dummyfor this test the same way the vibration tests do. The test checks port number bounds and does not depend on a real device. Only the test registration changes.Tested
Linux, a built
guest_audio_out_port_bounds_tests, 12 copies at once, three rounds, against the host's PulseAudio server: 28 passed, 7 SIGSEGV (exit 139) and 1 abort (exit 134) of 36. WithSDL_AUDIODRIVER=dummyin the environment: 36 of 36 passed. I did not configure and rebuild to run the changed CMake line throughctest; the reporter in #23020 saw 120 of 120 throughctestwith the property set. This does not establish whether the fault is in SDL's PulseAudio backend or in libpulse, so a title that opens many ports on a PipeWire host may still be exposed; that is not addressed here.Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-18T17:45:17Z.
Review: APPROVED
Reviewed — looks good
The reviewed change sets the SDL dummy audio driver for the port bounds test, whose checks do not require a real audio device.
What I ran
Reviewed head
ada5e09213e4489a40af25200d90467c3f83baba. No tests or build commands were run; the reader was used to inspect the changed CMake registration and surrounding lines.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The test was not rebuilt or run on this head. The report's Linux stress results and
ctestresults were not independently verified. Readdescription.md,commits.md,manifest.json,diff.patch, and the changedcore/libs/prx/libSceAudioOut/CMakeLists.txt(lines 410–440). No changed files were excluded;files.jsonwas unavailable through the reader.To get this to a good state
Nothing is required.