libc: a guest free during exit waits 60 s for a lease and aborts after the AGC driver shut down (ProsperoEden quitting) #4846
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 David-cmrg on 2026-10-12T23:47:56Z.
Symptom
ProsperoEden (PPSA99008 v1.000.110, homebrew catalog) quits from its launcher through
sceSystemServiceLoadExec("exit"). The process then hangs forAPS5_PIN_WAIT_MS(60 s) and aborts with exit code 134 instead of exiting:The message reaches neither the console nor the title's own logs; I read it with gdb at
__cxa_throw.Order of events (gdb breakpoints)
sceSystemServiceLoadExec("exit")callsLibcRunShutdown_nid_postfix.Driver::stopdestroys bothVulkanDevices, and each runsClearImageMirrorsandClearHostImports.std::exit(0)reachesCxaFinalize_nid_no_patch, where a guest destructor frees a 10-byte heap block:ApplicationHeapFree,GuestHeapFree, thenGuestAllocationsRequireUnpinned.PinnedFailurefinds no handler and ends instd::terminate.Ruled out:
GuestAllocationsAcquireorGuestAllocationsAcquireAllafterLibcRunShutdown, so the lease was taken before the shutdown and outlives it.RegistrationPreparePool::Main(3),runJobsandDiskStore::run, all idle in a condition wait.APS5_NO_ADDRESS_SPACE_CACHE,APS5_NO_HOST_IMPORT,APS5_NO_LEASE_MIRROR,APS5_NO_RESOURCE_CACHE,APS5_NO_CONTEXT_CACHEandAPS5_NO_TEXTURE_CACHE. WithAPS5_PIN_WAIT_MS=3000, each run aborts after about 24 s.I haven't found which object holds the lease.
Reproduce
maind53960612, Mesa 26.2.4 llvmpipe (ANYPS5_GPU=llvmpipe).cabe26af81dbccfc6fc2d3c7e42e7a1295c85c6a2f631bee8043debdd9f7f8f6.eboot.binandsce_module/libc.prxare unwrapped and relinked with--to-intel --trap-sdk-syscall-stubs.datain the run folder by hand (#4643).app.elf, so the title finds noeboot.binin/app0and falls back to/data/homebrew/PPSA99008. It can't read its launcher font there and quits after about 19 s (launcher closed: no game (quit)indata/prosperoeden/logs/boot-trace.txt).mainthis run exits with code 134 after 82 s. All my other runs with unmodified libraries (#4690 creatingdata) reached the same failure, including the toggle runs above.On an Intel HD 520 (ANV) the title stops earlier, at the viewport depth range #4650 handles, so I only reached the exit path on llvmpipe.
Imported from boykopovar/AnyPS5. Originally posted by simonbbby on 2026-10-13T03:11:36Z.
Confirmed on another Linux GPU/driver, and on an older main:
2a5eca11cd1bf583db39ce67034e8453842ac244, RADV Mesa 25.2.8 on gfx1036 (Ryzen 9 9950X iGPU, PCI 1002:13c0), Ubuntu 24.04 / Linux 7.0, GCC 13.3 Release with SPIRV-Tools ON.Used ProsperoEden 1.000.110 from the catalog, with the exact SHA-256 in this issue. Unwrapped the executable and its bundled libc, relinked with
--registry --to-intel --trap-sdk-syscall-stubs, created the localdatadirectory, and kept the source eboot outside/app0so the title selects/data/homebrew/PPSA99008. The launcher reports its missing font,launcher closed: no game (quit), andexit: Launcher closed, then exits 134 withAPS5_PIN_WAIT_MS=3000.A second run under gdb, breaking on
GuestAllocations::PinnedFailure, reaches this stack on the main thread:The setup pins RADV with
VK_DRIVER_FILES=radeon_icd.jsonandANYPS5_GPU=RADV; the direct run disables the AnyPS5 shader cache. The original lavapipe attempt on this older baseline stops earlier withsubgroup capability 61 is unsupported for shader stage 1, so it is not shutdown evidence.This confirms the pinned-allocation exit path on RADV and shows the symptom already exists at the stated earlier revision. I have not identified the object retaining the lease, independently traced all shutdown cleanup, or tested a fix; this is not a current-main retest.