Repository navigation
feat(libSceAddressSanitizer): add skeleton library and 301 ps5rs-listed stubs - #12106
Conversation
Progress report (4a60059 → 312c586)📉 System libraries: 47.72% (-1.06%, +301 declared functions) 🆕 301 declared as stubs
Changed libraries (implemented exports)
|
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed exact head 312c586d8b931cc42efc5ba4544809fb4c08cf68. Independent checks: the pinned ps5rs list and Export.cpp each contain exactly 301 names; tools/nid_names.py computes every listed NID with zero mismatches; the public-header audit reports 369 libraries and 13,120 exports with unique declarations and umbrella coverage; Export.cpp passes C++20 syntax-only compilation; and the merge preview against current main is clean. Hosted policy checks pass; the Windows build is still running.\n\nOne scope question before treating this as a resolution of #12063: that issue names libSceDbgAddressSanitizer, while this PR adds libSceAddressSanitizer and does not add a ModuleTable.hpp mapping. The seven exports identified in the issue overlap this inventory, but the 301 throwing stubs do not provide usable ASan behavior: even __asan_init and instrumented load/store calls throw. That is consistent with the repository’s rule for unknown exports, but it only helps import resolution if this exact library name is what the loader expects. Could you clarify the evidence tying this library name to the target import/module path, and whether this PR is intended to address any part of #12063? The issue’s proposed silent or functional runtime paths are separate from the throwing skeleton here.
|
@MarcZX10 Thanks for the thorough review and checks! To clarify: this PR is scoped strictly as an import-resolution throwing skeleton derived from the pinned ps5rs module list (libSceAddressSanitizer_nosubmission.txt, following the exact pattern of #10697). It is not intended to resolve #12063 or claim runtime ASan behavior / silent stubs. The evidence for libSceAddressSanitizer comes directly from the retail module list in ps5rs, whereas #12063 specifically discusses libSceDbgAddressSanitizer runtime hooks. Keeping them decoupled ensures proper NID/export cataloging without conflating it with the functional runtime work tracked in #12063. |
MarcZX10
left a comment
There was a problem hiding this comment.
Follow-up on the scope clarification: I agree this is an import-resolution skeleton for libSceAddressSanitizer, separate from the libSceDbgAddressSanitizer runtime work in #12063. I independently rechecked the exact head 312c586d8b931cc42efc5ba4544809fb4c08cf68: all 301 declarations have matching definitions, both name sets are unique, the public-header audit passes (368 libraries / 12,822 exports), conventions and git diff --check pass, the current-main merge preview is clean, and hosted Windows succeeds. I did not independently rerun the pinned ps5rs NID computation in this pass; the PR body records it as checked. No blocking issue found in this scope. The only hosted build job shown is Windows; Linux and macOS build jobs were skipped by workflow selection, so this is not a claim of cross-platform validation.
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The change is scoped to the AddressSanitizer skeleton and its declared stub exports; the inventory and generated NID declarations were checked on this head. Windows hosted configure/link and convention, intake, eligibility, and report checks pass; CTest and Linux were skipped.
Reviewed head 312c586 against base 4a60059; no blocking finding. This approval covers this exact diff.
|
Merged: 301 export stubs all throw NotImplemented_nid_no_patch, headers and debt entry present, definitions match declarations, Conventions and Windows green; merged. |
What
libSceAddressSanitizerdeclaring 301 export stubs derived from claimore22/ps5rs (data/stubs/by_library/libSceAddressSanitizer_nosubmission.txt, commit5f252a658ff470bcb2b6cd15205fd8ca64ae4477).tools/nid_names.pycompute_nid.core/libs/prx/libSceAddressSanitizer/libSceAddressSanitizer.hppandcore/libs/prx/libSceAddressSanitizer/include/Api.hpp) satisfyingtest_public_headers.py.docs/dev/debt/libSceAddressSanitizer.md; each stub throwsNotImplemented_nid_no_patch.Tested
python core/libs/tests/test_public_headers.py --audit-onlyon Windows 11.python tools/check_conventions.py --base origin/main.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)