Fixed mapping inside a title's own virtual reservation aborts the process instead of mapping or returning a guest error #27525

Open
opened 2026-11-26 16:21:07 +00:00 by akkadbakkad89 · 0 comments
akkadbakkad89 commented 2026-11-26 16:21:07 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by akkadbakkad89 on 2026-11-26T16:21:07Z.


Title PPSA38500 (see discussion #27523) aborts nondeterministically during engine initialization with:

std::runtime_error: fixed mapping 0xf000000000+0xd00000 overlaps a registered guest allocation 0xb617000000+0x41e9000000

Two distinct problems here:

  1. The game fixed-maps a small region inside its own large virtual reservation (the reservation is ~0x41e9000000 bytes of arena). APS5_TRACE_MEMORY shows the reserve + remap-fixed pattern succeeding repeatedly for other arenas, so the mechanism mostly works; this failure is a specific interaction. Candidates to investigate: the GuestMapNoOverwrite (0x80) flag path skips the unmap-then-require logic in ReplaceFixedOverlap while FixedNoOverwriteConflict deliberately tolerates overlaps inside reservations — those two look inconsistent — or the reservation cannot be unmapped because driver workers pin every registered range (RequireResidentUnpinned).
  2. Whatever the correct guest-visible outcome is, a host std::runtime_error escaping across the library boundary into terminate is wrong on its own: the guest should receive a proper error code, and the process should not die in a host exception the title cannot handle.

Diagnosis is ongoing; the failing call sequence is being captured with APS5_TRACE_MEMORY and --trace-imports conversions of the title.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6630833307 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/27525). Originally posted by [akkadbakkad89](https://github.com/akkadbakkad89) on 2026-11-26T16:21:07Z. --- Title PPSA38500 (see discussion #27523) aborts nondeterministically during engine initialization with: ``` std::runtime_error: fixed mapping 0xf000000000+0xd00000 overlaps a registered guest allocation 0xb617000000+0x41e9000000 ``` Two distinct problems here: 1. The game fixed-maps a small region inside its own large virtual reservation (the reservation is ~0x41e9000000 bytes of arena). `APS5_TRACE_MEMORY` shows the reserve + remap-fixed pattern succeeding repeatedly for other arenas, so the mechanism mostly works; this failure is a specific interaction. Candidates to investigate: the `GuestMapNoOverwrite` (0x80) flag path skips the unmap-then-require logic in `ReplaceFixedOverlap` while `FixedNoOverwriteConflict` deliberately tolerates overlaps inside reservations — those two look inconsistent — or the reservation cannot be unmapped because driver workers pin every registered range (`RequireResidentUnpinned`). 2. Whatever the correct guest-visible outcome is, a host `std::runtime_error` escaping across the library boundary into `terminate` is wrong on its own: the guest should receive a proper error code, and the process should not die in a host exception the title cannot handle. Diagnosis is ongoing; the failing call sequence is being captured with `APS5_TRACE_MEMORY` and `--trace-imports` conversions of the title.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#27525
No description provided.