tests: proposed sys-provider fixtures miss the common __error provider on Windows #9616
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 UnhealthyKraken on 2026-10-22T04:35:06Z.
What happens
The proposed
GuestKernelSysPwrite.cppin #9019 stops on Windows atMissing symbol __error_nid_postfix(unpatched) orMissing symbol 9BcDykPmo1I(patched), before calling the function under test. The fixture queries thelibkernel.prxhandle; the actual built provider islibc.prx.Title, test or build step
Independent native execution of #9019's exact 144-line test fixture, in unpatched and NID-patched modes. This report concerns the proposed fixture, not a new failure claimed in a current-main CTest registration. No game was run.
AnyPS5 commit
Libraries: clean upstream
d9c99c9ba4dbcbb0a724bad5064e7cb9b1e5f9ef, built locally from public sources. Test source: #9019 ataaad8e9b8a7b2393a170d0dd2d6f5144117a3b00; copied verbatim from its added file and compiled against that checkout'sNidCompute.cppandSha1.cpp.The same module-provider limitation is also visible by source inspection in #9162's
GuestKernelSysWait.cppat3802fb65fbaa0d99010aeab331462da43e82cd4c; that fixture has not been executed here. These are existing contributors' proposals; no duplicate implementation or remote branch edit is proposed.System
Windows x86-64, reported OS version
10.0.26300.0, supported WinLibs MinGW-w64 GCC 15.2.0, Release libraries. GPU/driver: n/a, native CPU/DLL test.Steps to reproduce
Build the full
libstarget, then compile the proposed fixture with:Put the supported toolchain's runtime directory on
PATHand run separate processes:Both stop during symbol setup. Inspecting the PE export tables confirms that
__error_nid_postfix/9BcDykPmo1Iexists in the corresponding commonlibc.prx, and is absent fromlibkernel.prx.Log
The patched run reports
Missing symbol 9BcDykPmo1Iat the same assertion. Both terminate with0xc0000409after that assertion.What was checked
A local fixture-only control explicitly loads the corresponding
libc.prxand resolves the error accessor there. With every behavioral assertion unchanged, both modes advance past setup and reach the expected current-mainpwrite_nid_postfix not implementedfailure. This distinguishes the test's provider lookup problem from the already-known missing sys implementation. Candidate implementation validation is separate and must not be inferred from this report.This direct native lookup differs from a relinked guest import:
GetProcAddresson a module handle does not apply AnyPS5's generated guest fallback chain. Closed #8853 / merged #8867 fixed scoped guest kernel-variant imports; they do not make this native fixture lookup search dependent DLLs. The fixture should resolve from the actual common provider or use an explicitly controlled test resolver. No production export alias is needed for this fixture setup problem.Current issue/PR searches for
__error, Windows andGetProcAddressfound no dedicated report for these proposed fixture calls; #8853 was reviewed to distinguish its scope. AI-assisted: yes. No firmware files, proprietary captures, host settings or existing game/runtime processes were used or changed.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T11:50:23Z.
This issue also appears relevant to open PR #9162: its new
GuestKernelSysWait.cppfixture resolves__errorfromlibkernel.prx. The Windows review on #9019 and this issue indicate that__erroris exported by libc and is not found byGetProcAddresswhen queried on the kernel module. I have asked #9162 to resolve it from the correct module and validate both patched and unpatched Windows cases.Imported from boykopovar/AnyPS5. Originally posted by UnhealthyKraken on 2026-10-22T14:20:22Z.
The same provider rule applies to #9162: resolving
__errorwithGetProcAddressonlibkernel.prxcannot find the common libc export. I have linked that proposal to this fixture issue. My earlier Windows reproduction covered #9019; I have not counted a current-head Windows run of #9162 as completed. This remains open until the affected fixtures use libc and both raw/patched Windows cases are validated.