feat(libkernel): implement coredump user data calls #4197
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4197"
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 MarcZX10 on 2026-10-12T01:06:38Z.
What
Carries only screamm’s first ready commit from #4144, preserving its original author. Implements
sceCoredumpWriteUserDataandsceCoredumpDebugTextOut: because the core dump handler is not invoked in this runtime,WriteUserDatareturns the not-in-handler error and stores no data, while debug text is written to stderr with the existing coredump prefix.The signatures come from Orbital and SharpProspero; the outside-handler rule is supported by Vita documentation. Error
0x81180003is shadPS4’s PS4 numbering and is unverified on PS5; that uncertainty is recorded in TechnicalDebt.sceCoredumpWriteUserStringand the other undocumented calls remain throwing stubs.Coordination: open #3821 implements the separate attach calls. It shares the error constant and region-validation helper in
Coredump.cpp; this PR does not implement those attach calls. The changes are independent, but a small textual rebase may be needed if #3821 lands first.Tested
BUILD_TESTING=ON, andANYPS5_ENABLE_SPIRV_TOOLS=ONcompleted.guest_coredump_user_data_testswith Ninja (62/62 steps).ctest --test-dir /tmp/AnyPS5-4173-build -R '^guest_coredump_user_data$' --output-on-failure --timeout 60passed (1/1).python3 tools/check_conventions.py --base upstream/main --head HEADpassed.git diff --checkpassed.Checklist
main; no other open PR implements these callsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T01:06:57Z.
Progress report (
e51428b→c8379be)📈 System libraries: 87.98% (+0.06%, +2 implemented functions)
✅ 2 implemented
sceCoredumpDebugTextOutsceCoredumpWriteUserDataImported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-12T17:32:06Z.
Independent verification of your rebase — the new head builds and passes the full local suite on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release,
BUILD_TESTING=ON, AMD RX 9070 XT / RADV): 960/960, conventions green. From my side this is merge-ready.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T19:43:42Z.
Thanks for independently verifying the rebased head. The full Linux suite result (960/960) and conventions check are useful confirmation.
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-12T20:40:45Z.
Windows test of head
7fc689fbemerged onto currentmain(fa0cc752a, clean merge; built together with four other open PRs, so the run is for the combination): Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, full build 0 errors,-j2.guest_coredump_user_data(the test this PR changes) passes. The seven tests of the five PRs (guest_coredump_user_data,guest_np_web_api2,guest_execvp,guest_math,guest_wide_conversion,guest_wide_strings,guest_character) all pass.Not checked: that the test fails without the change, Linux, a title run.
AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T00:58:07Z.
Needs a rebase: it conflicts with #3821 in
Coredump.cpp, the CMake list and two files underdocs/dev/debt/. Please put it on top of the helper #3821 added.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T04:44:13Z.
Rebased onto current
mainand resolved the overlap with merged #3821, preserving screamm as the commit author and the existing commit metadata.Linux validation (GCC 12.2, Release, Ninja,
BUILD_TESTING=ON, SPIRV-Tools off): configured successfully; builtguest_coredump_user_data_testsandguest_coredump_attach_tests;guest_coredump_user_dataandguest_coredump_attachboth passed (2/2).tools/check_conventions.py --base upstream/main --head HEADandgit diff --checkpass.The focused Linux tests passed; I did not run a Windows build. Updated head:
c8379be9226271befd37624611390822de276d6c.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T04:48:13Z.
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/Unimplemented.cppL8-17