fix(libc): size the codecvt facet vtable to 104 bytes #10165
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10165"
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 mazen320 on 2026-10-23T11:40:50Z.
What
Export
codecvt<char,char,_Mbstatet>'s vtable (NIDaK1Ymf-NhAs) as thirteen zeroeduintptr_tslots so titles that resolve it as data get a 104-byte object matching console titlelibc.prx(PPSA26344) andlibSceLibcInternal.sprx. The previous sixteen-slot export was long by three entries. Facet calls through the slots still fault until methods are wired (debt note).#9038 (sixteen-slot codecvt declaration /
_Getcat) has landed. This head keeps the thirteen-slot (104-byte) export size.Tested
ctest/guest_locale_tests— passed (Windows MinGW):Guest locale checks passedafter sizing the export and addingCheckCodecvtVtableObject().py -3.12 tools/check_conventions.py --base upstream/main— passed.aK1Ymf-NhAsis STT_OBJECTst_size104 in PPSA26344sce_module/libc.prxand in/system/common/lib/libSceLibcInternal.sprx(dynsym, FTP).Checklist
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T11:42:15Z.
Review: APPROVED
Reviewed head c88607d643caa5bb5919909228073ea0ebfd592f. The exported data object is now 13 zeroed uintptr_t slots (104 bytes), and the focused test checks the full declared range is zero-initialized and writable. The description cites matching 104-byte STT_OBJECT evidence from both a title libc.prx and system libSceLibcInternal.sprx, and records that the exported slots remain unimplemented. The PR reports guest_locale_tests and conventions passing; hosted conventions, intake, eligibility, labels and report checks pass. Full Linux/Windows product builds are skipped under repository policy; the relinker matrix was still running at review time. #9038 implements _Getcat through its internal facet vtable and does not add this exported array, so I found no duplicate implementation or required dependency. No blocking issue found.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T08:44:00Z.
Review: APPROVED
Re-reviewed exact head
37f9015eabf0503f97a5acd8add1a11d40b7c6c7against currentmainaaccd0ba39. The merge preview is clean; the effective change is limited to declaring thecodecvt<char,char,_Mbstatet>vtable as 13 slots, sizing the zero-initialized export to those 13 slots, adding an exact-size/slot regression, and recording the debt. The report ties the 104-byte object size to the title and internal-module symbol tables, and reportsguest_locale_testspassing on Windows. I inspected the current-main diff and whitespace check; I did not rerun CTest locally. Hosted checks are still queued.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T19:58:33Z.
Review: CHANGES_REQUESTED
Re-checked — new head, changes requested
The codecvt-vtable change remains present, but the rebased PR still changes two unrelated SPIRV submodule revisions relative to current
main.What I ran
8bc81c2283121c209903ded9ca30d07fe8d81625.mainat420b6a064eadaa7c5e50b080c7fad59c41150b4b; merge preview is clean (78e6657bde165820367e46ce903b942e23dd2242).Results
78e6657bde165820367e46ce903b942e23dd2242.git diff --checkmain.Unedited output
Negative control
Not applicable: the finding concerns unrelated dependency changes, not a test assertion.
Findings
Blocking
The codecvt-vtable implementation does not require these SPIRV-Headers or SPIRV-Tools updates. Please restore both gitlinks to their current
mainrevisions so this PR stays scoped to the locale change and its declared dependencies.Non-blocking
The vtable-size constant and
sizeofregression check address the earlier export-extent concern. I found no new issue in those locale changes in this rebase.Sources
Not verified
I did not build the target or run
guest_locale_testslocally. Hosted test jobs had not completed when checked; Linux product tests were skipped.To get this to a good state
Restore the two submodule pins to current
main, rerunguest_locale_testsand conventions on the corrected head, and request re-review. I will rerun the same merge, diff, and convention checks on that head.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T20:11:11Z.
Review: CHANGES_REQUESTED
Re-checked — new head, changes requested
The codecvt-vtable rebase still changes two unrelated SPIRV submodule pins that are unchanged on current
main.What I ran
69724ba94228198c94026aaae3b1e8ae621f6e16; base:fd9b3f62d43d6753d28a31a7c285e1f51e9c1b42.gh) against the GitHub API.Results
mergeable: true01e0577914a75a2569c846778c2f93aa8e6fedddtob824a462d4256d720bebb40e78b9eb8f78bbb305.7f2d9ee926f98fc77a3ed1e1e0f113b8c9c49458to262bdab48146c937467f826699a40da0fdfc0f1a.Unedited API output for the pin comparison
Negative control
Findings
Blocking
The codecvt-vtable implementation does not require either SPIRV submodule update. Please restore both gitlinks to the current
mainpins so this PR contains only the locale change and its declared dependencies.Non-blocking
The vtable-size constant and
sizeofregression check remain in the diff. I found no new locale-code issue in the available file diff; the focused locale tests were not run on this head.Sources
mainatfd9b3f62d43d6753d28a31a7c285e1f51e9c1b4269724ba94228198c94026aaae3b1e8ae621f6e16Not verified
No local compilation, focused locale tests, conventions run, or diff check on this exact head. Pending hosted jobs and the skipped Linux product job are not verified results.
To get this to a good state
Restore the two submodule pins to current
main, rerunguest_locale_testsand conventions on the corrected head, then request re-review. I will recheck the same scope and tests on the new head.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T23:42:47Z.
Review: APPROVED
Re-checked — new head, looks good
The submodule mismatch from my previous review is fixed: both SPIR-V pins now match current
main, and the reviewed locale source and regression remain unchanged.What I ran
c6f3908d0aa4534b08bf87cc960000f045a670f8.mainat1189ec3003672bb364dd9f3119ead7b3976e3c83.Results
mainRelevant unedited command output
The exact-head API response reported
mergeable: MERGEABLE,mergeStateStatus: UNSTABLE; the latter reflects the queued checks above.Not verified
I did not build or run tests locally. The author previously reported
guest_locale_testspassing on Windows MinGW at an earlier code tip; this re-check only confirms that the latest commit changes the SPIR-V pins and that the current hosted test jobs are still queued. The locale implementation and test are unchanged from the prior source review: implementation at this commit, regression at this commit.Findings
Blocking
None found in the current diff.
Non-blocking
The remaining hosted checks were queued at review time; this approval is based on the unchanged locale source/test and the corrected submodule pins.