feat(libSceLibcInternal): run the deleting destructors of future_error, overflow_error and underflow_error #14834
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14834"
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 miguelcoxcaballero on 2026-11-01T19:17:31Z.
What
Implements three
libSceLibcInternalexports that threwNotImplemented:rNYLEsL7M0k(_ZNSt12future_errorD0Ev)y1dYQsc67ys(_ZNSt14overflow_errorD0Ev)iHILAmwYRGY(_ZNSt15underflow_errorD0Ev)They are the deleting (
D0) destructors. The Itanium C++ ABI defines the deleting destructor as the complete-object destructor followed by the class'soperator delete, and these classes declare none of their own. So each export runs the existinglibcexport of theD1name (_ZNSt12future_errorD1Ev,_ZNSt14overflow_errorD1Ev,_ZNSt15underflow_errorD1Ev) and then_ZdlPv, which frees on the application heap thatoperator newallocates from. The three stubs, thefuture_errordeclaration, one table row and two stub entries are removed, and a debt entry records what is unverified: the console'slibSceLibcInternal.sprxwas not read and no title was seen calling them.libc's ownD0exports of the other exception classes release withstd::free; this PR does not change them.This builds on #14659, which adds the base-object destructors in the same file.
Tested
Ubuntu 24.04, GCC 13.3, Release,
BUILD_TESTING=ON, full build:tools/check_conventions.py --base origin/mainpasses.guest_libc_internal_exception_destructorsis extended: theoverflow_errorandunderflow_errordeleting destructors free the object once throughoperator delete, and thefuture_errorone frees its heap message and then the object, in that order. It passes, together withguest_libc_internal_aligned_new,guest_libc_internal_mtx,guest_init_once,guest_localeandguest_libc_threads.libSceLibcInternal.prxexports each of the three NIDs once.libSceLibcInternalbranches (#14659, #14660, #14664, #14666) and the merged tree builds and passes their tests.Not tested on Windows, macOS or a PS5, nor with any title.
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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T19:28:45Z.
Review: COMMENTED
Reviewed — no blocking findings
I reviewed all eight changed files at head
63c2093c498c6c9bd00b2c090857ed27e9d7af2aand found no source-level blocker; approval is withheld while hosted Windows is pending.What I ran
The PR is based on
f2d874c1fdccf781c0fa5d86619bb5dd8894b958and depends on #14659. The stack check confirms the dependency head is included and both PRs preview cleanly against currentmain(e0caf1360035286bd22b9f2a3030e97b880ffb28). Environment: Linux x86_64, Debian 12, Python 3.11.2, Git 2.39.5. No build or C++ tests were run.Results
Captured command output
Negative control
Not run. I did not alter the destructor or deallocation call to test whether the new C++ test detects incorrect destruction or freeing.
Findings
Blocking
None found in the eight changed files. The three deleting destructors call the corresponding existing
libcD1destructors before_ZdlPv; the added test is registered and checks message/object release order. The six ABI-audit warnings are removed inventory placeholder names whose NIDs are explicitly present on the replacement exports.Non-blocking
The PR reports a full Ubuntu 24.04/GCC 13.3 build and focused tests passing; I did not independently rerun them. The hosted Windows job is pending, so this review does not approve the change yet.
Sources
Not verified
No local build, C++ test, Windows/macOS, PS5 or title run was performed. Hosted Windows was pending; Linux and specialized jobs were skipped. The author's build and tests were read from the PR description only.
To get this to a good state
No source change is requested. Once Windows finishes, I will refresh the exact head and checks before deciding whether approval is appropriate.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T19:41:41Z.
Review: APPROVED
Re-checked — hosted checks passed, approved
The exact head is unchanged, its hosted Windows build and tests passed, and my earlier full review found no blocking source issue.
What I ran
Rechecked head
63c2093c498c6c9bd00b2c090857ed27e9d7af2aagainst basef2d874c1fdccf781c0fa5d86619bb5dd8894b958using GitHub’s live PR and check state. Environment: Debian 12 x86_64; no local build or compiler run.Results
Captured hosted-check output
Findings
Blocking
None found in the previously reviewed source.
Non-blocking
The author-reported Linux build and test results were not independently rerun here.
Sources
Not verified
No local build, C++ test execution, Linux/macOS test, console run or title compatibility test was performed in this follow-up. Linux and specialized hosted jobs were skipped.
To get this to a good state
No further action is needed for the reviewed head. If it changes, I will review the new head and its checks.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T06:31:52Z.
Review: COMMENTED
Reviewed — no blocking findings
The changed code and tests are readable and internally consistent, but I did not run the reported build or checks, so a formal approval is not justified.
What I ran
Inspected the prepared diff and all seven changed files at head
fc07e3713546f76729c8d2af8368b6d853a45713usingrepo_read.pyreader tools. No build, test, or precheck command was run. The description reports author-run checks; those results are not independently verified.Results
Negative control
Not run; no test command was run.
Findings
Blocking
None.
Non-blocking
None.
Not verified
The console's
libSceLibcInternal.sprx, title behavior, and the reported build, tests, convention check, export check, and merged-preview checks were not independently verified. All seven files marked changed in the manifest were read:ExceptionDestructors.cpp,InventoryExports.cpp,InventoryExports6.cpp,Api.hpp,InventoryExports.hpp,GuestLibcInternalExceptionDestructors.cpp, andlibSceLibcInternal.md. No changed files were excluded.To get this to a good state
Nothing is required. Optional: independently run the reported checks on this head and verify behavior on a console or with a title that calls these exports.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T13:16:35Z.
Review: COMMENTED
Checked the branch sources and built the focused tests against the existing Linux runtime.
GuestLibcInternalExceptionDestructorspassed.AI-assisted: yes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.