Repository navigation
feat(libkernel): answer sceCoredumpGetThreadContextInfo outside the coredump handler - #5901
Merged
adriadam10 merged 1 commit intoOct 16, 2026
Conversation
…oredump handler sceCoredumpGetThreadContextInfo takes (void* threadContextInfo, size_t threadContextInfoSize) as in Orbital's IDA type database, and the 144-byte block of 18 64-bit registers follows SharpProspero. It answers as sceCoredumpGetStopInfoCpu: the handler is never invoked here, so an aligned 144-byte request returns NOT_IN_COREDUMP_HANDLER without reading or writing the block, and null, unaligned or wrapping buffers and other sizes throw, as the console validation order is unverified. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 15, 2026
|
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.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
This was referenced Oct 15, 2026
Closed
Collaborator
|
Checked build and ctest on current main (175 tests green), |
11 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
sceCoredumpGetThreadContextInfois still the throwing export added by #3373. This gives it the behaviour #4882 gave its siblingsceCoredumpGetStopInfoCpu: AnyPS5 records coredump handlers but never invokes them, so every call happens outside a handler.SCE_COREDUMP_ERROR_NOT_IN_COREDUMP_HANDLER(0x81180003) and leaves the caller's block untouched.sceCoredumpGetStopInfoCpu.Source of the behaviour.
int32_t (struct _SceCoredumpThreadContextInfo*, size_t): Orbital type database, the same file feat(libkernel): answer CPU stop-info queries outside the coredump handler #4882 cites.SceCoredumpThreadContextInfo, the handler note and the import.sceCoredumpGetStopInfoCpu.sceCoredumpGetStopInfoCpu(feat(libkernel): answer CPU stop-info queries outside the coredump handler #4882), with 144 in place of 16.These are public references, not a PS5 measurement; the remaining uncertainty is recorded in the libkernel debt file.
Progress on the base below: 3274/3692 (88.68%) → 3275/3692 (88.71%), one implemented function.
Tested
Head
352a300dd8b39950ba9cb57130cad21df3570d7a, base979ad7b6aaa0a3e0df120586230193e6f9a055b5.BUILD_TESTING=ON: 1192/1192 tests pass, includingguest_coredump_attach.BUILD_TESTING=ON(run under QEMU 8.2 user mode with-cpu EPYC-Rome, as the build host lacks AVX2):guest_coredump_attachpasses 5/5 runs.core/libs/prx/libkernel/System/src/Coredump.cppwith the base version. It builds and fails withsceCoredumpGetThreadContextInfo not implemented. Restoring the PR source and rebuilding passes 5/5 runs again.+1misalignment,UINTPTR_MAX - 7, sizes 0, 1, 143, 145 andSIZE_MAX).git diff --checkpass. The Linux job of the Build workflow now targets the project's self-hosted runner, so it was not run on the fork; no title was run.Duplicate and overlap check
No open pull request implements or names
sceCoredumpGetThreadContextInfo(NIDShChva57wIM), and none touchescore/libs/prx/libkernel/System/src/Coredump.cpporcore/libs/tests/GuestCoredumpAttach.cpp. 28 open pull requests also editdocs/dev/debt/libkernel.md(re-checked on 2026-10-15); this change only rewrites the function's own entry, and a three-way merge of this branch with each of them, rebased onmain, gives no conflict. Earlier work on the function: #3373 (merged) declared the export; the closed #2383 and issue #4144 covered broader coredump sets.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)