feat(libkernel): implement coredump handlers, named shm_open, event e… #4219
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4219"
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 matthew565656 on 2026-10-12T01:39:42Z.
What
sceCoredumpUnregisterCoredumpHandler,sceKernelDebugWriteCppExceptionInfo,sceCoredumpAttachUserFile,sceCoredumpGetStopInfoGpu_Agc,sceCoredumpAttachMemoryRegionAsUserFile,sceCoredumpSetUserDataType,sceCoredumpDebugTextOut,sceCoredumpGetStopInfoCpu,sceCoredumpWriteUserString,sceCoredumpAttachUserMemoryFile,sceCoredumpAttachMemoryRegion,sceCoredumpWriteUserData).- Windows named
shm_openandshm_unlinkfile handling.- Event error accessor
sceKernelGetEventErrorreadingEvErrorflag fromKernelEvent.-
sceKernelGetPageTableStatsproviding default total and available page table statistics.- Allow
GuestAdviceProtectinmadvise_nid_postfix.- Safely populate
ModuleSegmentInfoinsceKernelInternalMemoryGetModuleSegmentInfo_nid_postfix.- Add
GuestCoredumpstandalone test and updateGuestEqueueEvents.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md)
- [x] Unimplemented paths throw (
NotImplemented_nid_no_patch); silent stubs are listed inTechnicalDebt
- [x] No notes, investigation
.mdfiles or images added to the repository (attach them to this PR)- [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
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T01:48:05Z.
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/DirectMemory/PosixMemory.cppL228core/libs/prx/libkernel/System/src/Coredump.cppL4, L9-11, L76-78, L81-84sceCoredumpAttachMemoryRegionsceCoredumpAttachUserMemoryFilecore/libs/prx/libkernel/Equeue/src/EventAccessors.cppL22-24core/libs/prx/libkernel/System/src/Coredump.cppL71-72, L76-77, L81-82sceCoredumpAttachMemoryRegionsceCoredumpAttachUserMemoryFilesceCoredumpWriteUserStringcore/libs/prx/libkernel/DirectMemory/Export.cppL387-392core/libs/prx/libkernel/DirectMemory/PosixMemory.cppL228, L230core/libs/prx/libkernel/Module/src/Module.cppL244-250core/libs/prx/libkernel/System/src/Coredump.cppL4, L9-11, L54-56sceCoredumpDebugTextOutsceCoredumpWriteUserDatacore/libs/prx/libkernel/File/src/SharedMemory.cppL474-475core/libs/prx/libkernel/Unimplemented.cppL8-12Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-12T07:37:36Z.
Closing: this turns thirteen throwing coredump stubs,
sceKernelGetPageTableStats,sceKernelGetEventError,madvise(MADV_PROTECT)andsceKernelInternalMemoryGetModuleSegmentInfointo calls that return made-up results (zeroed 128-byte stop info, 1048576 page tables), and here a function does what the console does or throws. Reopen as one PR per function, with the title ID, the log line where it stops on main and the source of the behaviour; namedshm_openon Windows is worth its own PR.Pull request closed