feat(libkernel): answer the coredump attach calls made outside the handler #3821
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3821"
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 13hourstilliland on 2026-10-11T17:13:26Z.
What
Picks up #3243 by @dantdmdarealguy (auto-closed by the intake pause), rebased onto current main with no changes.
sceCoredumpAttachMemoryRegionandsceCoredumpAttachUserMemoryFiletake(uint32_t userValue, const void* mem, size_t size), per Orbital and SharpProspero. Attaching only works inside the core dump handler, and AnyPS5 never invokes the handler. So both calls now returnNOT_IN_COREDUMP_HANDLERwithout recording anything. The value 0x81180003 is inferred from fpPS4's 0x8118000x codes plus the Vita error table. A null, empty or wrapping region throws.Tested
Linux x86-64, GCC 14, Release, BUILD_TESTING=ON. The new guest_coredump_attach passes, and check_conventions and check_test_registration pass. Not tested with a title.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T17:13:49Z.
Progress report (
9742ec1→5b73ecb)📈 System libraries: 86.48% (+0.05%, +2 implemented functions)
✅ 2 implemented
sceCoredumpAttachMemoryRegionsceCoredumpAttachUserMemoryFileImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T22:06:57Z.
Checked on Linux: build + ctest of libs/libkernel (113/113) with the PR on current main;
guest_coredump_attachpasses and fails without the Coredump.cpp change.Added a commit on your branch:
0x81180003; shadPS4'scoredump_error.hhasORBIS_COREDUMP_ERROR_NOT_IN_COREDUMP_HANDLER = 0x81180003, now cited (still not confirmed on a PS5).Merging once CI is green.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T23:57:01Z.
A title is required for this to merge: which title calls
sceCoredumpAttachMemoryRegionorsceCoredumpAttachUserMemoryFileon main? With the title ID and the log line where it stops, this can go in.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-12T20:06:40Z.
Rebased onto current main: TechnicalDebt entries now live in
docs/dev/debt/libkernel.md, so the updated Coredump line (with the shadPS4coredump_error.hcitation for0x81180003) moved there. Build + ctest of libs/libkernel on the rebase:guest_coredump_attachpasses.@oneandonlydean's request for a title that calls these exports is still open; no title in our static data imports them.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T20:12:42Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libkernel/CMakeLists.txtL1176core/libs/prx/libkernel/System/src/Coredump.cppL4, L11