fix(libkernel): boot Dreaming Sarah past unwind and debug raise #279

Merged
Pouare514 merged 1 commit from upstream-pr/279 into main 2026-10-02 19:38:50 +00:00
Pouare514 commented 2026-10-01 21:46:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Pouare514 on 2026-10-01T21:46:40Z.


What

Unblocks Dreaming Sarah PPSA02929 boot to gameplay:

  • Implement \sceKernelGetModuleInfoForUnwind\ (VirtualQuery on Windows, /proc/self/maps on Linux), mirroring \sceSysmoduleGetModuleInfoForUnwind. The bundled libc unwinds at startup and previously terminated with \sceKernelGetModuleInfoForUnwind not implemented.
  • Make \sceKernelDebugRaiseException\ / \OnReleaseMode\ log-and-continue (debugger notification, same as KytyPS5). The game raises it on a handled parse path; throwing there kills a bootable title.

Tested

Windows 11, RTX 4080, MinGW GCC 15.2.0. Relinked unwrapped eboot (--windows, SELF unwrapped beforehand: upstream relinker rejects SELF containers) with fresh \libs\ build:

  • Before: \FAIL: unresolved ELF import kbw4UHHSYy0\ (stale patched libs), then \sceKernelGetModuleInfoForUnwind not implemented, then \sceKernelDebugRaiseException not implemented.
  • After: C2 BOOT completes, 108 resources background-loaded, Vulkan swapchain up, window runs, orderly exit 0 on close.
  • Note: game also needs /app0/~INDEX\ present in the layout (opened first at boot).
  • \ctest -E agc_driver_graphics|guest_rendering_wait: 93/93 passed.

Checklist

  • Based on current \main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (\NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md\ files or images added to the repository
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4710017123 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/279). Originally posted by [Pouare514](https://github.com/Pouare514) on 2026-10-01T21:46:40Z. --- ### What Unblocks Dreaming Sarah PPSA02929 boot to gameplay: - Implement \sceKernelGetModuleInfoForUnwind\ (VirtualQuery on Windows, /proc/self/maps on Linux), mirroring \sceSysmoduleGetModuleInfoForUnwind\. The bundled libc unwinds at startup and previously terminated with \sceKernelGetModuleInfoForUnwind not implemented\. - Make \sceKernelDebugRaiseException\ / \OnReleaseMode\ log-and-continue (debugger notification, same as KytyPS5). The game raises it on a handled parse path; throwing there kills a bootable title. ### Tested Windows 11, RTX 4080, MinGW GCC 15.2.0. Relinked unwrapped eboot (\--windows\, SELF unwrapped beforehand: upstream relinker rejects SELF containers) with fresh \libs\ build: - Before: \FAIL: unresolved ELF import kbw4UHHSYy0\ (stale patched libs), then \sceKernelGetModuleInfoForUnwind not implemented\, then \sceKernelDebugRaiseException not implemented\. - After: C2 BOOT completes, 108 resources background-loaded, Vulkan swapchain up, window runs, orderly exit 0 on close. - Note: game also needs \/app0/~INDEX\ present in the layout (opened first at boot). - \ctest -E agc_driver_graphics|guest_rendering_wait\: 93/93 passed. ### Checklist - [x] Based on current \main\; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw (\NotImplemented_nid_no_patch\); silent stubs are listed in TechnicalDebt - [x] No notes, investigation \.md\ files or images added to the repository - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-01 21:47:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-01T21:47:02Z.


Progress report (e1654a9 → f1a3d60)

📈 System libraries: 80.87% (+0.11%, +3 implemented functions)

✅ 3 implemented
Library Name
libkernel sceKernelDebugRaiseException
libkernel sceKernelDebugRaiseExceptionOnReleaseMode
libkernel sceKernelGetModuleInfoForUnwind
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5941325752 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/279#issuecomment-5941325752). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-01T21:47:02Z. --- <!-- progress-report --> ### Progress report (e1654a9 → f1a3d60) 📈 **System libraries**: 80.87% (+0.11%, +3 implemented functions) <details> <summary>✅ 3 implemented</summary> | Library | Name | | - | - | | libkernel | `sceKernelDebugRaiseException` | | libkernel | `sceKernelDebugRaiseExceptionOnReleaseMode` | | libkernel | `sceKernelGetModuleInfoForUnwind` | </details>
Sign in to join this conversation.
No reviewers
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!279
No description provided.