test(libs): load every patched library with its imports bound #1828
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1828"
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 LeandroLP23 on 2026-10-08T20:41:50Z.
What
Closes #1827.
patched_librariesloads each.prxinbuild/core/libs/libs, withLoadLibraryEx(LOAD_WITH_ALTERED_SEARCH_PATH)on Windows anddlopen(RTLD_NOW | RTLD_LOCAL)on Linux. It prints each library that fails to load and fails the test if any does.libstarget, so the patched files are current even when only the default target is built. CI already buildslibsbefore ctest.libc. With MinGW it is linked statically and built with-fasynchronous-unwind-tables, asnid_patcherandsavedata_memory_metadata_testsare, so the unpatchedlibc.prxisn't already in the process under the same name when the patched libraries bind to theirs.Tested
Windows 11, MinGW-w64 GCC 15.2.0, Release:
main4b6ab6bb: passes,122 patched libraries loaded, 0 failed, 0.25 s.main+ #1613: fails withlibScePosixForWebKit.prx: LoadLibraryEx failed with error 127,121 patched libraries loaded, 1 failed.tools/check_test_registration.pyandtools/check_conventions.pypass.Linux: fork CI run https://github.com/LeandroLP23/AnyPS5/actions/runs/37838975025: all jobs pass,
patched_librariesincluded (the failing case was checked on Windows only).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 MarcZX10 on 2026-10-08T20:54:31Z.
Current-main check: head
942433eis based on merge base4b6ab6band diverges from upstreammainaa277b3(1 commit ahead, 2 behind). CONTRIBUTING requires PRs to be based on currentmain; please rebase now so the queued Linux/Windows checks validate the final head.Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-08T20:57:11Z.
Rebased onto
mainaa277b38; the only new commits there are the CI change from #1821.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-08T21:47:42Z.
The full current-head Build and Conventions checks are green. One current-main follow-up: this head is 11 commits behind
main(94b1eecb; merge baseaa277b38). CONTRIBUTING asks branches to stay up to date; please rebase and rerun checks on the final head. The CMake overlap with #1627/#1686 remains visible in the overlap report, so resolve any actual conflict without duplicating their scope.Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-08T21:56:26Z.
Rebased onto
main94b1eecb; no conflicts.Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-08T22:13:24Z.
The Windows failure is
guest_font_writing_line(reserve the guest arena range: Attempt to access invalid address, 0xc0000409), which this PR doesn't touch;patched_librariespassed. It doesn't reproduce here in 30 serial and 10 parallel runs onmainae91d978, so it looks like an intermittent arena reservation failure on the runner. Could someone re-run the job?Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T01:43:16Z.
I checked whether I can rerun the failed Windows job. My repository permissions are pull-only, so GitHub does not let me rerun Actions on this upstream PR. The failure report is specific to
guest_font_writing_linearena reservation (0xc0000409); the PR-specificpatched_librariestest passed, per the author. Could an authorized maintainer rerun the failed Windows job so we can confirm whether it was transient?Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T05:53:00Z.
I reviewed the full two-file diff and current checks. The Linux job is green, and your report says
patched_librariespassed on Windows; the current Windows failure isguest_font_writing_line, outside this change, and I previously asked for a maintainer rerun. Since that rebase, upstreammainhas moved tof1451396; the current PR head is 17 commits behind and 1 ahead. CONTRIBUTING asks branches to stay current, so please rebase onto currentmainand rerun both platform jobs before merge. I have not approved this head while it is stale and its Windows check is red.