Ratchet & Clank: Rift Apart: SIGSEGV since #861, an address-less 64 GiB reservation now takes the addresses the title hints next #2704
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 EdouardSence on 2026-10-10T11:35:58Z.
Title: Ratchet & Clank: Rift Apart (PPSA01474)
Where it stops on main
b5f5362d3: SIGSEGV (SEGV_ACCERR) about 11 s after launch, on the main thread, in the guest libcmemset(0x12c4e03008, 0xff, 0x1000)called from the eboot. Nowhat(), the process dies on the signal. 3 of 3 runs.With #861 reverted locally (
git revert -m 1 b0cccf20a, nothing else changed), the crash is gone in 2 of 2 runs and the title runs on to the existing #2102 stop (AGC graphics: color views of several array slices are unsupported).What the memory trace shows
APS5_TRACE_MEMORY=1, plus a local trace line (not pushed) that prints the address the guest passes in toDoMapDirect/DoReserveVirtualbefore placement:then the fault at
0x12c4e03008, which is inside the 8 KiB block's requested address (hint + 0x3008), not inside where it was placed (0x22c2804000).hint=(nil), flags 0). Since #861 that reservation is placed at the lowest free address of the arena,0x12c2600000, directly after the title's last mapping.MAP_FIXED(flags0x400000, no-coalesce only), at0x12c4600000and0x12c4e00000, which are now inside its own 64 GiB reservation, so both are placed above it at0x22c2600000and0x22c2804000.0x12c4e03008and faults on thePROT_NONEreservation.Before #861 the same 64 GiB reservation went to
0x7ef4ffe00000(host top-downmmap), the hinted maps landed on their hints (map direct 0x12c4600000+0x204000,map direct 0x12c4e00000+0x8000), and the title later fills the reservation withremap fixed 0x7ef4ffe00000+0x30000 ... phys=0x237c00000and so on.I have no source for where the PS5 kernel places an address-less reservation, so I am not proposing a placement rule. The data says this title assumes an address-less 64 GiB reservation does not take the addresses it hints next, and it uses the hinted address rather than the returned one (or something derived from it).
Setup
b5f5362d3, headless gamescope,APS5_NO_SNAPSHOT_CHECK=1.si_code=2,si_addr=0x12c4e03008,rdi=0x12c4e03008 rsi=0xff rdx=0x1000, pc inlibc.prx.guest.prx. In the core,0x12c2600000-0x22c2600000is one 64 GiB segment with no access, and the RW segment before it ends at0x12c2600000.Related: #2603 (closed by #2647); this is the next stop on the same title.
Tested and written by Claude (AI assistant) on a contributor's machine.
Imported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-10T14:59:49Z.
This looks like the same failure as #2687: same title, a hinted non-fixed map inside the 64 GiB reservation is placed above it (
0x22c3100000there,0x22c2600000here), and the title then faults at the hinted address. That issue has a fix branch with aguest_memorycase; this one has the bisect and the memory trace. I have not reproduced either; this is from reading both reports.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-10T18:08:42Z.
Closing as a duplicate of #2687: the hinted map inside the 64 GiB reservation is placed above it there too, and that issue has a fix branch. The bisect to #861 here is linked from it.