feat(libc): export the __sce_v2 _Xbad_function_call and sized aligned delete #1120
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1120"
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 TideOPL on 2026-10-07T13:13:49Z.
What
PPSA16064 (Minecraft Dungeons II) ships its own
libc.prx, which imports two C++ runtime symbols from libSceLibcInternal that no host library exported, so the title failed to load:std::__sce_v2::_Xbad_function_call()(_ZNSt8__sce_v219_Xbad_function_callEv), the inline-namespace spelling of the existingstd::_Xbad_function_call. It throwsstd::bad_function_callthe same way.operator delete(void*, std::size_t, std::align_val_t)(_ZdlPvmSt11align_val_t), the sized form of the existing aligned delete. It frees the same way and ignores the size.Tested
ctest: 393/393.application_heap_default: frees an aligned block through the sized form and checks that a null pointer frees nothing.exception_runtime(Linux only): checks that the new thrower throwsstd::bad_function_call. Run on Ubuntu 24.04 (WSL), GCC 13.3: passes, and fails if the thrower is changed to throwstd::bad_alloc. Theapplication_heaptests pass there too.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-07T14:33:35Z.
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/libc/src/exception/StandardExceptions.cppL291core/libs/tests/ExceptionRuntime.cppL7, L20-21core/libs/prx/libc/src/exception/StandardExceptions.cppL291Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T04:36:36Z.
Progress report (
1e5bb88→88e7422)📈 System libraries: 86.14% (+0.01%, +2 implemented functions)
✅ 2 implemented
_ZNSt8__sce_v219_Xbad_function_callEv_nid_postfix_ZdlPvmSt11align_val_t_nid_postfixImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-08T07:40:17Z.
Checked build + full ctest (423/423) on current main, CI green on the head. Both NIDs match aerolib (
_ZNSt8__sce_v219_Xbad_function_callEv,_ZdlPvmSt11align_val_t), the thrower reuses the existingbad_function_callvtable, and the sized delete frees like the aligned one. Without the change the new tests don't link. Merging.