feat(libSceSysmodule): implement sceSysmoduleGetModuleHandleInternal #3041

Merged
CouchRiv merged 3 commits from upstream-pr/3041 into main 2026-10-11 07:50:47 +00:00
CouchRiv commented 2026-10-10 20:55:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CouchRiv on 2026-10-10T20:55:34Z.


What

/work/runtime/app.elf: symbol lookup error: /work/runtime/app.elf: undefined symbol: D8cuU4d72xM

Prospero Win (PPSA99995) stops on that NID at load on main. It is sceSysmoduleGetModuleHandleInternal in libSceSysmodule.

The call returns a KernelModule handle for a module id that is already loaded (sceSysmoduleLoadModule / internal load), for later sceKernelDlsym. Invalid id 0, a null out-pointer, or an id absent from the module table throw like the neighbouring internal load/unload paths. If the id is known but the load count is zero, the function returns 0x805A1001 (SCE_SYSMODULE_ERROR_UNLOADED). Otherwise it reuses a cached host open of the table name, or opens it once through dlopen_nid_postfix.

Signature and use match Prospero Win (pw_hid_ps5.c: int sceSysmoduleGetModuleHandleInternal(uint32_t id, int32_t *handle), success == 0 && handle >= 0), prosperodev-libprospero, and OpenOrbis. Unloaded / invalid-id behaviour follows shadPS4 / getModuleHandle, mapped to AnyPS5's throw-or-0x805A1001 style. Module names come from existing ModuleTable.hpp.

Which title needs it

Prospero Win (PPSA99995, catalog 0.2.0, LGPL-2.1) on main 1476f769 on Linux stops at load with the line above. With this change the same sandbox run binds the symbol (D8cuU4d72xM class implemented) and the first stop becomes signal SIGILL after guest sceKernelOpen attempts on dev.conf / lapy.elf. Remaining absent load import: __udivti3 (802pFCwC9w0).

Tested

CachyOS Linux, GCC as in the worktree build; RTX 4070 Ti (NVIDIA) and Radeon 610M (RADV).

  • guest_sysmodule extended for handle unload/invalid/unknown/load/sceKernelDlsym on Fiber — passed on NVIDIA and RADV (gpu-test.sh both -R guest_sysmodule) after rebase onto current main.
  • python3 tools/check_conventions.py --base origin/main passed; git diff --check clean.
  • Prospero Win sandbox run on this branch after rebase: past D8cuU4d72xM; first stop signal SIGILL (see above).

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4814374667 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3041). Originally posted by [CouchRiv](https://github.com/CouchRiv) on 2026-10-10T20:55:34Z. --- ### What ```text /work/runtime/app.elf: symbol lookup error: /work/runtime/app.elf: undefined symbol: D8cuU4d72xM ``` Prospero Win (PPSA99995) stops on that NID at load on `main`. It is `sceSysmoduleGetModuleHandleInternal` in `libSceSysmodule`. The call returns a `KernelModule` handle for a module id that is already loaded (`sceSysmoduleLoadModule` / internal load), for later `sceKernelDlsym`. Invalid id 0, a null out-pointer, or an id absent from the module table throw like the neighbouring internal load/unload paths. If the id is known but the load count is zero, the function returns `0x805A1001` (`SCE_SYSMODULE_ERROR_UNLOADED`). Otherwise it reuses a cached host open of the table name, or opens it once through `dlopen_nid_postfix`. Signature and use match Prospero Win ([`pw_hid_ps5.c`](https://github.com/mpereiraesaa/prospero-win/blob/644e32e400c555e340d507383398c5d21b39b0b0/native/pw_hid_ps5.c#L180-L212): `int sceSysmoduleGetModuleHandleInternal(uint32_t id, int32_t *handle)`, success `== 0 && handle >= 0`), [prosperodev-libprospero](https://github.com/prosperodev/prosperodev-libprospero/blob/master/libSceSysmodule/include/libSceSysmodule.h#L50), and [OpenOrbis](https://github.com/OpenOrbis/OpenOrbis-PS4-Toolchain/blob/80fc9b559e7a82c620a6113846536b142f92c1f3/include/orbis/Sysmodule.h#L34). Unloaded / invalid-id behaviour follows [shadPS4](https://github.com/shadps4-emu/shadPS4/blob/caec23154c27/src/core/libraries/sysmodule/sysmodule.cpp#L22-L30) / [`getModuleHandle`](https://github.com/shadps4-emu/shadPS4/blob/caec23154c27/src/core/libraries/sysmodule/sysmodule_internal.cpp#L34-L51), mapped to AnyPS5's throw-or-`0x805A1001` style. Module names come from existing `ModuleTable.hpp`. ### Which title needs it Prospero Win (PPSA99995, catalog 0.2.0, LGPL-2.1) on `main` 1476f769 on Linux stops at load with the line above. With this change the same sandbox run binds the symbol (`D8cuU4d72xM` class implemented) and the first stop becomes `signal SIGILL` after guest `sceKernelOpen` attempts on `dev.conf` / `lapy.elf`. Remaining absent load import: `__udivti3` (`802pFCwC9w0`). ### Tested CachyOS Linux, GCC as in the worktree build; RTX 4070 Ti (NVIDIA) and Radeon 610M (RADV). - `guest_sysmodule` extended for handle unload/invalid/unknown/load/`sceKernelDlsym` on Fiber — passed on NVIDIA and RADV (`gpu-test.sh both -R guest_sysmodule`) after rebase onto current `main`. - `python3 tools/check_conventions.py --base origin/main` passed; `git diff --check` clean. - Prospero Win sandbox run on this branch after rebase: past `D8cuU4d72xM`; first stop `signal SIGILL` (see above). ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-10 20:55:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T20:55:55Z.


Progress report (bd06925 → f1af668)

📈 System libraries: 85.81% (+0.01%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceSysmodule sceSysmoduleGetModuleHandleInternal
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6102087902 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3041#issuecomment-6102087902). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-10T20:55:55Z. --- <!-- progress-report --> ### Progress report (bd06925 → f1af668) 📈 **System libraries**: 85.81% (+0.01%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceSysmodule | `sceSysmoduleGetModuleHandleInternal` | </details>
screamm commented 2026-10-10 21:40:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-10T21:40:08Z.


Windows validation of the current head fc2d3014 (already on main 262c0316), Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release, BUILD_TESTING=ON, full build including libs. Three things stop the test on Windows:

  1. The test does not link. guest_sysmodule_tests links libSceSysmodule libkernel only, and the new try/catch needs the personality routine the other guest tests get from libc:
    GuestSysmodule.cpp.obj:GuestSysmodule.cpp:(.data+0x8): undefined reference to `__gxx_personality_v0'
    
    Adding libc to target_link_libraries(guest_sysmodule_tests ...) fixes the link.
  2. With that, the exception is not caught. The run ends with [libc] unhandled exception 'St13runtime_error' / what(): sceSysmoduleGetModuleHandleInternal: invalid id 0 (exit 0xc0000409). The test target is missing configure_windows_unwind(guest_sysmodule_tests), which every neighbouring guest test that catches a library exception has (for example guest_dynamic_loader_tests and guest_filesystem_tests). With both CMake changes the ThrowsRuntimeError checks pass.
  3. openHostModule cannot open the module. The run then stops at what(): sceSysmoduleGetModuleHandleInternal: failed to open libSceFiber. Both dlopen("libs/libSceFiber.prx") and dlopen("libSceFiber.prx") fail on Windows from the test's core/libs working directory, while guest_dynamic_loader opens its module through an absolute host path. The relative-path lookup through ResolvePath_nid_no_patch is what works differently here; the Windows dlopen reports Windows loader error for it.

So the change cannot be validated on Windows as it stands. I did not run the suite past that point. Happy to rerun once the branch is updated.

Validation run with Claude Code assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6102460646 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3041#issuecomment-6102460646). Originally posted by [screamm](https://github.com/screamm) on 2026-10-10T21:40:08Z. --- Windows validation of the current head `fc2d3014` (already on `main` `262c0316`), Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release, `BUILD_TESTING=ON`, full build including `libs`. Three things stop the test on Windows: 1. **The test does not link.** `guest_sysmodule_tests` links `libSceSysmodule libkernel` only, and the new `try`/`catch` needs the personality routine the other guest tests get from `libc`: ``` GuestSysmodule.cpp.obj:GuestSysmodule.cpp:(.data+0x8): undefined reference to `__gxx_personality_v0' ``` Adding `libc` to `target_link_libraries(guest_sysmodule_tests ...)` fixes the link. 2. **With that, the exception is not caught.** The run ends with `[libc] unhandled exception 'St13runtime_error'` / `what(): sceSysmoduleGetModuleHandleInternal: invalid id 0` (exit `0xc0000409`). The test target is missing `configure_windows_unwind(guest_sysmodule_tests)`, which every neighbouring guest test that catches a library exception has (for example `guest_dynamic_loader_tests` and `guest_filesystem_tests`). With both CMake changes the `ThrowsRuntimeError` checks pass. 3. **`openHostModule` cannot open the module.** The run then stops at `what(): sceSysmoduleGetModuleHandleInternal: failed to open libSceFiber`. Both `dlopen("libs/libSceFiber.prx")` and `dlopen("libSceFiber.prx")` fail on Windows from the test's `core/libs` working directory, while `guest_dynamic_loader` opens its module through an absolute host path. The relative-path lookup through `ResolvePath_nid_no_patch` is what works differently here; the Windows `dlopen` reports `Windows loader error` for it. So the change cannot be validated on Windows as it stands. I did not run the suite past that point. Happy to rerun once the branch is updated. Validation run with Claude Code assistance.
TheAggie commented 2026-10-10 22:01:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by TheAggie on 2026-10-10T22:01:33Z.


@CouchRiv I opened #3050 for the same function about half an hour after this one, without seeing yours. Yours came first, so I'm closing mine.

I built yours on Windows, cherry-picked onto main b8a083b2 (Windows 11, MinGW-w64 GCC 15.2.0, Release). The implementation works there: libs/<name>.prx resolves through the guest root to the host library folder in the usual run layout, and Prospero Win (PPSA99995) gets past D8cuU4d72xM.

guest_sysmodule doesn't pass on Windows, though:

  1. Link: guest_sysmodule_tests fails with undefined reference to '__gxx_personality_v0'. The new try/catch needs libc in its link libraries, as the other libkernel tests have (target_link_libraries(guest_sysmodule_tests PRIVATE libSceSysmodule libkernel libc)).
  2. Exceptions: with that added, it aborts with terminate called after throwing ... sceSysmoduleGetModuleHandleInternal: invalid id 0. The std::runtime_error thrown inside libSceSysmodule.prx comes from the guest libc's C++ runtime, so the test executable's catch (const std::runtime_error&) doesn't match it there. If the throwing cases are worth keeping in the test, a death test-style subprocess, or checking only the non-throwing paths on Windows, would avoid that.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6102638605 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3041#issuecomment-6102638605). Originally posted by [TheAggie](https://github.com/TheAggie) on 2026-10-10T22:01:33Z. --- @CouchRiv I opened #3050 for the same function about half an hour after this one, without seeing yours. Yours came first, so I'm closing mine. I built yours on Windows, cherry-picked onto `main` b8a083b2 (Windows 11, MinGW-w64 GCC 15.2.0, Release). The implementation works there: `libs/<name>.prx` resolves through the guest root to the host library folder in the usual run layout, and Prospero Win (PPSA99995) gets past `D8cuU4d72xM`. `guest_sysmodule` doesn't pass on Windows, though: 1. **Link:** `guest_sysmodule_tests` fails with `undefined reference to '__gxx_personality_v0'`. The new `try`/`catch` needs `libc` in its link libraries, as the other libkernel tests have (`target_link_libraries(guest_sysmodule_tests PRIVATE libSceSysmodule libkernel libc)`). 2. **Exceptions:** with that added, it aborts with `terminate called after throwing ... sceSysmoduleGetModuleHandleInternal: invalid id 0`. The `std::runtime_error` thrown inside `libSceSysmodule.prx` comes from the guest libc's C++ runtime, so the test executable's `catch (const std::runtime_error&)` doesn't match it there. If the throwing cases are worth keeping in the test, a `death test`-style subprocess, or checking only the non-throwing paths on Windows, would avoid that. AI-assisted (Claude Code).
adriadam10 commented 2026-10-10 22:05:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T22:05:15Z.

Review: CHANGES_REQUESTED


Thanks, and thanks to @screamm and @TheAggie for the Windows runs. guest_sysmodule passes on Linux here, and fails without the change (the test does not link), but the Windows reports show it breaks there:

  • core/libs/prx/libSceSysmodule/CMakeLists.txt:8: add libc to target_link_libraries(guest_sysmodule_tests ...); the new try/catch needs __gxx_personality_v0 (as other guest tests that catch do).
  • Same file: add configure_windows_unwind(guest_sysmodule_tests), as guest_dynamic_loader_tests and guest_filesystem_tests have; without it the ThrowsRuntimeError checks abort on Windows (core/libs/tests/GuestSysmodule.cpp:58-61). If a library exception still can't be caught from the test on Windows, check only the non-throwing paths there.
  • core/libs/prx/libSceSysmodule/Export.cpp:35-42: @screamm reports openHostModule fails for libs/libSceFiber.prx and libSceFiber.prx from core/libs on Windows, while @TheAggie sees it resolve in the normal run layout. Please make the test's working directory/path work on Windows (or open through the same path guest_dynamic_loader uses).

Please rerun guest_sysmodule on Windows after these and say the result.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5480967824 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3041#pullrequestreview-5480967824). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-10T22:05:15Z. **Review:** CHANGES_REQUESTED --- Thanks, and thanks to @screamm and @TheAggie for the Windows runs. `guest_sysmodule` passes on Linux here, and fails without the change (the test does not link), but the Windows reports show it breaks there: - `core/libs/prx/libSceSysmodule/CMakeLists.txt:8`: add `libc` to `target_link_libraries(guest_sysmodule_tests ...)`; the new `try`/`catch` needs `__gxx_personality_v0` (as other guest tests that catch do). - Same file: add `configure_windows_unwind(guest_sysmodule_tests)`, as `guest_dynamic_loader_tests` and `guest_filesystem_tests` have; without it the `ThrowsRuntimeError` checks abort on Windows (`core/libs/tests/GuestSysmodule.cpp:58-61`). If a library exception still can't be caught from the test on Windows, check only the non-throwing paths there. - `core/libs/prx/libSceSysmodule/Export.cpp:35-42`: @screamm reports `openHostModule` fails for `libs/libSceFiber.prx` and `libSceFiber.prx` from `core/libs` on Windows, while @TheAggie sees it resolve in the normal run layout. Please make the test's working directory/path work on Windows (or open through the same path `guest_dynamic_loader` uses). Please rerun `guest_sysmodule` on Windows after these and say the result.
screamm commented 2026-10-10 22:10:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-10T22:10:18Z.


@TheAggie on the exception point: here the catch (const std::runtime_error&) does match once the test target gets configure_windows_unwind(guest_sysmodule_tests) in addition to the libc link, the same pair the other guest tests that catch library exceptions use (guest_filesystem_tests, guest_dynamic_loader_tests). With both CMake lines the four ThrowsRuntimeError checks pass on this Windows 11 / GCC 15.2.0 r7 build, so no subprocess is needed. What remains for me is the failed to open libSceFiber stop from the test's core/libs working directory; your Prospero Win run shows the lookup works in the real run layout, so that is the test's path rather than the implementation.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6102711402 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3041#issuecomment-6102711402). Originally posted by [screamm](https://github.com/screamm) on 2026-10-10T22:10:18Z. --- @TheAggie on the exception point: here the `catch (const std::runtime_error&)` does match once the test target gets `configure_windows_unwind(guest_sysmodule_tests)` in addition to the `libc` link, the same pair the other guest tests that catch library exceptions use (`guest_filesystem_tests`, `guest_dynamic_loader_tests`). With both CMake lines the four `ThrowsRuntimeError` checks pass on this Windows 11 / GCC 15.2.0 r7 build, so no subprocess is needed. What remains for me is the `failed to open libSceFiber` stop from the test's `core/libs` working directory; your Prospero Win run shows the lookup works in the real run layout, so that is the test's path rather than the implementation.
oneandonlydean commented 2026-10-11 05:05:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T05:05:36Z.


openHostModule tries libs/<name>.prx and then <name>.prx when that fails (libSceSysmodule/Export.cpp:35-42). Retrying another path after a failure isn't allowed here; please keep only libs/<name>.prx, and give guest_sysmodule a working directory with libs/libSceFiber.prx in it instead of the module's own folder.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6105681666 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3041#issuecomment-6105681666). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-11T05:05:36Z. --- `openHostModule` tries `libs/<name>.prx` and then `<name>.prx` when that fails (`libSceSysmodule/Export.cpp:35-42`). Retrying another path after a failure isn't allowed here; please keep only `libs/<name>.prx`, and give `guest_sysmodule` a working directory with `libs/libSceFiber.prx` in it instead of the module's own folder.
CouchRiv commented 2026-10-11 06:14:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CouchRiv on 2026-10-11T06:14:54Z.


Thanks. Pushed 23b4fd35a on top of 0b8c556c6, which already has the libc link and configure_windows_unwind(guest_sysmodule_tests).

  • core/libs/prx/libSceSysmodule/Export.cpp:35-37: openHostModule opens only libs/<name>.prx. The retry on <name>.prx is gone.
  • core/libs/prx/libSceSysmodule/CMakeLists.txt:10-20: guest_sysmodule now runs from core/libs/prx/libSceSysmodule/guest_sysmodule in the build tree. That directory holds libs/libSceFiber.prx, copied from the libSceFiber output by a guest_sysmodule_runtime target (add_custom_target + copy_if_different, as agc_driver_visual_runtime does). The test depends on it. The copy is the unpatched module, from the same output directory as the libc and libkernel the test process already has loaded.

Tested on CachyOS Linux, GCC 16.2.1, Release, BUILD_TESTING=ON:

  • With only the Export.cpp change on top of 0b8c556c6 (working dir still the module's own folder), ctest -R guest_sysmodule aborts with sceSysmoduleGetModuleHandleInternal: failed to open libSceFiber.
  • With the CMake change it passes, and LD_DEBUG=files shows libSceFiber.prx loaded from guest_sysmodule/libs/.
  • ctest -R ^guest_: 216 of 216 passed (guest_video_out_output_mode skipped). check_conventions.py --base origin/main, check_test_registration.py and git diff --check are clean.
  • Merge with current main is clean. #2541 and #3227 are still open and touch the same test and CMake lines, so whichever merges second needs a rebase.

Not run on Windows: I have no Windows machine and no MinGW toolchain here. @adriadam10 asked for a Windows rerun; @screamm, @TheAggie, could one of you run guest_sysmodule on 23b4fd35a and post the result? On Windows the module is now opened as <working dir>\libs\libSceFiber.prx; I did not check that it loads there.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6106151627 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3041#issuecomment-6106151627). Originally posted by [CouchRiv](https://github.com/CouchRiv) on 2026-10-11T06:14:54Z. --- Thanks. Pushed `23b4fd35a` on top of `0b8c556c6`, which already has the `libc` link and `configure_windows_unwind(guest_sysmodule_tests)`. - `core/libs/prx/libSceSysmodule/Export.cpp:35-37`: `openHostModule` opens only `libs/<name>.prx`. The retry on `<name>.prx` is gone. - `core/libs/prx/libSceSysmodule/CMakeLists.txt:10-20`: `guest_sysmodule` now runs from `core/libs/prx/libSceSysmodule/guest_sysmodule` in the build tree. That directory holds `libs/libSceFiber.prx`, copied from the `libSceFiber` output by a `guest_sysmodule_runtime` target (`add_custom_target` + `copy_if_different`, as `agc_driver_visual_runtime` does). The test depends on it. The copy is the unpatched module, from the same output directory as the `libc` and `libkernel` the test process already has loaded. Tested on CachyOS Linux, GCC 16.2.1, Release, `BUILD_TESTING=ON`: - With only the `Export.cpp` change on top of `0b8c556c6` (working dir still the module's own folder), `ctest -R guest_sysmodule` aborts with `sceSysmoduleGetModuleHandleInternal: failed to open libSceFiber`. - With the CMake change it passes, and `LD_DEBUG=files` shows `libSceFiber.prx` loaded from `guest_sysmodule/libs/`. - `ctest -R ^guest_`: 216 of 216 passed (`guest_video_out_output_mode` skipped). `check_conventions.py --base origin/main`, `check_test_registration.py` and `git diff --check` are clean. - Merge with current `main` is clean. #2541 and #3227 are still open and touch the same test and CMake lines, so whichever merges second needs a rebase. Not run on Windows: I have no Windows machine and no MinGW toolchain here. @adriadam10 asked for a Windows rerun; @screamm, @TheAggie, could one of you run `guest_sysmodule` on `23b4fd35a` and post the result? On Windows the module is now opened as `<working dir>\libs\libSceFiber.prx`; I did not check that it loads there.
screamm commented 2026-10-11 07:23:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-11T07:23:15Z.


Windows rerun of 23b4fd35a merged with current main 833e5eb5 (clean merge). Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release, BUILD_TESTING=ON, full build including libs.

  • ctest -R '^guest_sysmodule$': passes (also with --repeat until-fail:3). All four ThrowsRuntimeError checks go through with the libc link and configure_windows_unwind.
  • The module is opened from the working directory, not from PATH: guest_sysmodule/libs/libSceFiber.prx is byte-identical to core/libs/libs/unpatched/libSceFiber.prx, and with that copy moved away the test aborts with sceSysmoduleGetModuleHandleInternal: failed to open libSceFiber, even though core/libs/libs/unpatched/ (prepended to PATH by the test) still holds libSceFiber.prx. Put back, it passes again. So <working dir>\libs\libSceFiber.prx is what loads on Windows.
  • ctest -R '^guest_': 260 of 260 passed, guest_video_out_wqhd_detection_no_vulkan skipped.
  • check_conventions.py --base origin/main, check_test_registration.py and git diff --check are clean.

No further changes needed from the Windows side.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6106639862 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3041#issuecomment-6106639862). Originally posted by [screamm](https://github.com/screamm) on 2026-10-11T07:23:15Z. --- Windows rerun of `23b4fd35a` merged with current `main` `833e5eb5` (clean merge). Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release, `BUILD_TESTING=ON`, full build including `libs`. - `ctest -R '^guest_sysmodule$'`: passes (also with `--repeat until-fail:3`). All four `ThrowsRuntimeError` checks go through with the `libc` link and `configure_windows_unwind`. - The module is opened from the working directory, not from `PATH`: `guest_sysmodule/libs/libSceFiber.prx` is byte-identical to `core/libs/libs/unpatched/libSceFiber.prx`, and with that copy moved away the test aborts with `sceSysmoduleGetModuleHandleInternal: failed to open libSceFiber`, even though `core/libs/libs/unpatched/` (prepended to `PATH` by the test) still holds `libSceFiber.prx`. Put back, it passes again. So `<working dir>\libs\libSceFiber.prx` is what loads on Windows. - `ctest -R '^guest_'`: 260 of 260 passed, `guest_video_out_wqhd_detection_no_vulkan` skipped. - `check_conventions.py --base origin/main`, `check_test_registration.py` and `git diff --check` are clean. No further changes needed from the Windows side.
Mouhand-Kaddo commented 2026-10-11 07:25:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Mouhand-Kaddo on 2026-10-11T07:25:10Z.


Additional platform validation of standalone PR head 23b4fd35a826295a175d4a82e1992c58a202b025 (2026-10-11):

Windows: passed — Windows 11, WinLibs GCC 15.2.0 UCRT/POSIX/SEH r7; CMake 4.3.1 / Ninja; Release, BUILD_TESTING=ON.

1 checks, 0 failures, 0 CTest skips. Built the selected targets and dependencies; this is focused validation, not a full build or full-suite run.

Checks: guest_sysmodule.

Command after building: ctest --test-dir <build> --verbose --no-tests=error --timeout 30 -R "^guest_sysmodule$".

No title/gameplay validation. These results cover the standalone head, not a merge with current main.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6106654163 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3041#issuecomment-6106654163). Originally posted by [Mouhand-Kaddo](https://github.com/Mouhand-Kaddo) on 2026-10-11T07:25:10Z. --- <!-- anyps5-platform-validation:23b4fd35a826295a175d4a82e1992c58a202b025 --> Additional platform validation of standalone PR head `23b4fd35a826295a175d4a82e1992c58a202b025` (2026-10-11): **Windows: passed** — Windows 11, WinLibs GCC 15.2.0 UCRT/POSIX/SEH r7; CMake 4.3.1 / Ninja; Release, `BUILD_TESTING=ON`. 1 checks, 0 failures, 0 CTest skips. Built the selected targets and dependencies; this is focused validation, not a full build or full-suite run. Checks: `guest_sysmodule`. Command after building: `ctest --test-dir <build> --verbose --no-tests=error --timeout 30 -R "^guest_sysmodule$"`. No title/gameplay validation. These results cover the standalone head, not a merge with current main.
CouchRiv commented 2026-10-11 07:32:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CouchRiv on 2026-10-11T07:32:14Z.


Thanks @screamm. Since your run, the branch is rebased onto main after #3227 (f1af6683a, no merge commit). The only change in our diff is that #3227's new Linux-only guest_sysmodule_maps_scan test also runs from guest_sysmodule/, so it finds libs/libSceFiber.prx like guest_sysmodule. Both pass on Linux (ctest -R '^guest_sysmodule': 2 of 2), and check_conventions.py --base origin/main is clean. The Windows path is unchanged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6106707636 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3041#issuecomment-6106707636). Originally posted by [CouchRiv](https://github.com/CouchRiv) on 2026-10-11T07:32:14Z. --- Thanks @screamm. Since your run, the branch is rebased onto `main` after #3227 (`f1af6683a`, no merge commit). The only change in our diff is that #3227's new Linux-only `guest_sysmodule_maps_scan` test also runs from `guest_sysmodule/`, so it finds `libs/libSceFiber.prx` like `guest_sysmodule`. Both pass on Linux (`ctest -R '^guest_sysmodule'`: 2 of 2), and `check_conventions.py --base origin/main` is clean. The Windows path is unchanged.
adriadam10 commented 2026-10-11 07:50:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T07:50:44Z.

Review: APPROVED


Checked on Linux (PR merged onto current main): guest_sysmodule and guest_sysmodule_maps_scan pass, and the test does not link without the Export.cpp change. Windows reruns by @screamm and @Mouhand-Kaddo on the previous head are green, and Dean's single libs/<name>.prx path request is addressed. Merging.

Note: #2541 and #3227 touch the same test/CMake lines; they may need a rebase after this lands.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5482433874 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3041#pullrequestreview-5482433874). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T07:50:44Z. **Review:** APPROVED --- Checked on Linux (PR merged onto current main): `guest_sysmodule` and `guest_sysmodule_maps_scan` pass, and the test does not link without the `Export.cpp` change. Windows reruns by @screamm and @Mouhand-Kaddo on the previous head are green, and Dean's single `libs/<name>.prx` path request is addressed. Merging. Note: #2541 and #3227 touch the same test/CMake lines; they may need a rebase after this lands.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!3041
No description provided.