revert(relinker): run guest preinit arrays before the module initializer (#6112) #7646

Merged
oneandonlydean merged 1 commit from upstream-pr/7646 into main 2026-10-18 21:10:21 +00:00
oneandonlydean commented 2026-10-18 19:25:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-18T19:25:17Z.


What

Reverts #6112 (merge 376c04029), which makes every title abort at start-up on Linux with Thread destructor callback is already registered (#7636).

SCE-built modules run their own preinit array from their initializer. In a recent libc.prx the DT_INIT function loads the start of DT_PREINIT_ARRAY and calls each non-null entry before going on. #6112 calls those entries again from the stub it places in front of DT_INIT on Linux and macOS, and before InitRva on Windows. So libc's early start-up runs twice, and the second thread destructor registration is refused by ThreadLifecycle::SetThreadDtors.

Running a module's preinit array outside its initializer would need a module that doesn't run its own, and none has been seen yet. That can come back as a new pull request with such a module as its test case.

Tested

  • Linux (CachyOS, kernel 7.2, GCC, Release), the revert 441190cf6 on main 8a7f434f1: the full build succeeds, and the relinker tests plus every guest_ test (518 in all) give 512 passed, 6 skipped (the guest_video_out_* display tests, which need a display) and 0 failed. guest_preinit is removed with the change.
  • The cause was checked in a recent SDK libc.prx: DT_PREINIT_ARRAY holds one entry, and the DT_INIT function loads that array and calls each non-null entry before going on. With #6112 the same entries also run from the stub in front of DT_INIT (and before InitRva on Windows).
  • No title was run with the revert. The abort in #7636 comes from titles that ship such a libc.prx, and the ctests don't load one, so the ctests above show the revert breaks nothing but not that it fixes the start-up. The first parent of the #6112 merge, d7a455a90, is the bisected good build in #7636, and this revert restores its relinker sources byte for byte.

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 under Silent stubs in their library's technical debt file
  • 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
  • Fixes: Fixes #7636
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4912108836 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7646). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-18T19:25:17Z. --- ### What Reverts #6112 (merge `376c04029`), which makes every title abort at start-up on Linux with `Thread destructor callback is already registered` (#7636). SCE-built modules run their own preinit array from their initializer. In a recent `libc.prx` the `DT_INIT` function loads the start of `DT_PREINIT_ARRAY` and calls each non-null entry before going on. #6112 calls those entries again from the stub it places in front of `DT_INIT` on Linux and macOS, and before `InitRva` on Windows. So libc's early start-up runs twice, and the second thread destructor registration is refused by `ThreadLifecycle::SetThreadDtors`. Running a module's preinit array outside its initializer would need a module that doesn't run its own, and none has been seen yet. That can come back as a new pull request with such a module as its test case. ### Tested - Linux (CachyOS, kernel 7.2, GCC, Release), the revert `441190cf6` on `main` `8a7f434f1`: the full build succeeds, and the relinker tests plus every `guest_` test (518 in all) give 512 passed, 6 skipped (the `guest_video_out_*` display tests, which need a display) and 0 failed. `guest_preinit` is removed with the change. - The cause was checked in a recent SDK `libc.prx`: `DT_PREINIT_ARRAY` holds one entry, and the `DT_INIT` function loads that array and calls each non-null entry before going on. With #6112 the same entries also run from the stub in front of `DT_INIT` (and before `InitRva` on Windows). - No title was run with the revert. The abort in #7636 comes from titles that ship such a `libc.prx`, and the ctests don't load one, so the ctests above show the revert breaks nothing but not that it fixes the start-up. The first parent of the #6112 merge, `d7a455a90`, is the bisected good build in #7636, and this revert restores its relinker sources byte for byte. ### Checklist - [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 under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [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] Fixes: Fixes #7636 - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-10-18 19:26:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T19:26:10Z.


CI note: the conventions check currently fails on this head for both commit 441190cf6 (the generated Revert "Merge pull request ..." subject) and the PR title (Revert "fix(relinker): ..." (#6112)). Please retitle/reword the commit and PR to the repository’s Conventional Commits format (for example, fix(relinker): revert duplicate guest preinit execution). The relinker jobs are still pending; the failing conventions output is available in run 39158694737.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6254138865 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7646#issuecomment-6254138865). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-18T19:26:10Z. --- CI note: the conventions check currently fails on this head for both commit `441190cf6` (the generated `Revert "Merge pull request ..."` subject) and the PR title (`Revert "fix(relinker): ..." (#6112)`). Please retitle/reword the commit and PR to the repository’s Conventional Commits format (for example, `fix(relinker): revert duplicate guest preinit execution`). The relinker jobs are still pending; the failing conventions output is available in run 39158694737.
MarcZX10 commented 2026-10-18 19:26:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T19:26:21Z.


Scope correction for the PR description: #7636’s initial “every title” report has a counterexample now. MXGP 26 PPSA30839 reached the 140-second limit twice on Linux with #6112 and its own libc.prx, so the description should say the regression affects at least the reported titles/startup paths, not every title or every bundled libc. The exact Wind Waker call trace is still being collected in #7636; it should help decide whether reverting all preinit handling is necessary or whether the callback-registration collision is narrower.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6254140625 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7646#issuecomment-6254140625). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-18T19:26:21Z. --- Scope correction for the PR description: #7636’s initial “every title” report has a counterexample now. MXGP 26 PPSA30839 reached the 140-second limit twice on Linux with #6112 and its own `libc.prx`, so the description should say the regression affects at least the reported titles/startup paths, not every title or every bundled libc. The exact Wind Waker call trace is still being collected in #7636; it should help decide whether reverting all preinit handling is necessary or whether the callback-registration collision is narrower.
github-actions[bot] commented 2026-10-18 19:43:55 +00:00 (Migrated from github.com)

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


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 2780 core/relinker/CMakeLists.txt
PR 5021 core/relinker/CMakeLists.txt
docs/dev/debt/relinker.md
PR 5925 docs/dev/ARCHITECTURE.md
PR 6044 core/relinker/CMakeLists.txt
docs/dev/ARCHITECTURE.md
PR 6328 docs/dev/debt/relinker.md
PR 6412 docs/dev/ARCHITECTURE.md
PR 6503 docs/dev/ARCHITECTURE.md
PR 6684 core/relinker/CMakeLists.txt
core/relinker/elfpatcher/src/linux/LinuxGuestModuleWriter.cpp
core/relinker/elfpatcher/src/macos/MacOsGuestModuleWriter.cpp
core/relinker/elfpatcher/src/windows/WindowsGuestModuleWriter.cpp
core/relinker/relinker/include/relinker/guest/GuestImage.hpp
core/relinker/relinker/src/guest/GuestImageReader.cpp
PR 6763 docs/dev/ARCHITECTURE.md
PR 6772 docs/dev/ARCHITECTURE.md
PR 6879 core/relinker/CMakeLists.txt
PR 6931 docs/dev/ARCHITECTURE.md
PR 6946 docs/dev/ARCHITECTURE.md
PR 6947 docs/dev/ARCHITECTURE.md
PR 6977 core/relinker/CMakeLists.txt
core/relinker/domain/include/domain/GuestRuntime.hpp
core/relinker/elfpatcher/src/linux/LinuxGuestModuleWriter.cpp
core/relinker/elfpatcher/src/macos/MacOsGuestModuleWriter.cpp
core/relinker/elfpatcher/src/windows/WindowsGuestModuleWriter.cpp
core/relinker/relinker/include/relinker/guest/GuestImage.hpp
core/relinker/relinker/src/guest/GuestImageReader.cpp
docs/dev/debt/relinker.md
PR 7173 core/relinker/CMakeLists.txt
docs/dev/debt/relinker.md
PR 7332 core/relinker/CMakeLists.txt
core/relinker/elfpatcher/include/elfpatcher/macos/MacOsImage.hpp
core/relinker/elfpatcher/src/macos/MacOsImage.cpp
docs/dev/debt/relinker.md
PR 7450 core/relinker/CMakeLists.txt
core/relinker/domain/include/domain/GuestRuntime.hpp
core/relinker/elfpatcher/include/elfpatcher/macos/MacOsImage.hpp
core/relinker/elfpatcher/src/linux/LinuxGuestModuleWriter.cpp
core/relinker/elfpatcher/src/macos/MacOsGuestModuleWriter.cpp
core/relinker/elfpatcher/src/macos/MacOsImage.cpp
core/relinker/elfpatcher/src/windows/WindowsGuestModuleWriter.cpp
core/relinker/elfpatcher/src/windows/WindowsGuestStartup.cpp
core/relinker/relinker/include/relinker/guest/GuestImage.hpp
core/relinker/relinker/src/guest/GuestImageReader.cpp
core/relinker/relinker/tests/test_guest_preinit.py
docs/dev/ARCHITECTURE.md
docs/dev/debt/relinker.md
PR 7531 core/relinker/CMakeLists.txt
docs/dev/debt/relinker.md
PR 7642 docs/dev/ARCHITECTURE.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6254314913 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7646#issuecomment-6254314913). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-18T19:43:55Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 2780](https://www.github.com/boykopovar/AnyPS5/pull/2780) | `core/relinker/CMakeLists.txt` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/relinker/CMakeLists.txt`<br>`docs/dev/debt/relinker.md` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `docs/dev/ARCHITECTURE.md` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/relinker/CMakeLists.txt`<br>`docs/dev/ARCHITECTURE.md` | | [PR 6328](https://www.github.com/boykopovar/AnyPS5/pull/6328) | `docs/dev/debt/relinker.md` | | [PR 6412](https://www.github.com/boykopovar/AnyPS5/pull/6412) | `docs/dev/ARCHITECTURE.md` | | [PR 6503](https://www.github.com/boykopovar/AnyPS5/pull/6503) | `docs/dev/ARCHITECTURE.md` | | [PR 6684](https://www.github.com/boykopovar/AnyPS5/pull/6684) | `core/relinker/CMakeLists.txt`<br>`core/relinker/elfpatcher/src/linux/LinuxGuestModuleWriter.cpp`<br>`core/relinker/elfpatcher/src/macos/MacOsGuestModuleWriter.cpp`<br>`core/relinker/elfpatcher/src/windows/WindowsGuestModuleWriter.cpp`<br>`core/relinker/relinker/include/relinker/guest/GuestImage.hpp`<br>`core/relinker/relinker/src/guest/GuestImageReader.cpp` | | [PR 6763](https://www.github.com/boykopovar/AnyPS5/pull/6763) | `docs/dev/ARCHITECTURE.md` | | [PR 6772](https://www.github.com/boykopovar/AnyPS5/pull/6772) | `docs/dev/ARCHITECTURE.md` | | [PR 6879](https://www.github.com/boykopovar/AnyPS5/pull/6879) | `core/relinker/CMakeLists.txt` | | [PR 6931](https://www.github.com/boykopovar/AnyPS5/pull/6931) | `docs/dev/ARCHITECTURE.md` | | [PR 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `docs/dev/ARCHITECTURE.md` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `docs/dev/ARCHITECTURE.md` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `core/relinker/CMakeLists.txt`<br>`core/relinker/domain/include/domain/GuestRuntime.hpp`<br>`core/relinker/elfpatcher/src/linux/LinuxGuestModuleWriter.cpp`<br>`core/relinker/elfpatcher/src/macos/MacOsGuestModuleWriter.cpp`<br>`core/relinker/elfpatcher/src/windows/WindowsGuestModuleWriter.cpp`<br>`core/relinker/relinker/include/relinker/guest/GuestImage.hpp`<br>`core/relinker/relinker/src/guest/GuestImageReader.cpp`<br>`docs/dev/debt/relinker.md` | | [PR 7173](https://www.github.com/boykopovar/AnyPS5/pull/7173) | `core/relinker/CMakeLists.txt`<br>`docs/dev/debt/relinker.md` | | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `core/relinker/CMakeLists.txt`<br>`core/relinker/elfpatcher/include/elfpatcher/macos/MacOsImage.hpp`<br>`core/relinker/elfpatcher/src/macos/MacOsImage.cpp`<br>`docs/dev/debt/relinker.md` | | [PR 7450](https://www.github.com/boykopovar/AnyPS5/pull/7450) | `core/relinker/CMakeLists.txt`<br>`core/relinker/domain/include/domain/GuestRuntime.hpp`<br>`core/relinker/elfpatcher/include/elfpatcher/macos/MacOsImage.hpp`<br>`core/relinker/elfpatcher/src/linux/LinuxGuestModuleWriter.cpp`<br>`core/relinker/elfpatcher/src/macos/MacOsGuestModuleWriter.cpp`<br>`core/relinker/elfpatcher/src/macos/MacOsImage.cpp`<br>`core/relinker/elfpatcher/src/windows/WindowsGuestModuleWriter.cpp`<br>`core/relinker/elfpatcher/src/windows/WindowsGuestStartup.cpp`<br>`core/relinker/relinker/include/relinker/guest/GuestImage.hpp`<br>`core/relinker/relinker/src/guest/GuestImageReader.cpp`<br>`core/relinker/relinker/tests/test_guest_preinit.py`<br>`docs/dev/ARCHITECTURE.md`<br>`docs/dev/debt/relinker.md` | | [PR 7531](https://www.github.com/boykopovar/AnyPS5/pull/7531) | `core/relinker/CMakeLists.txt`<br>`docs/dev/debt/relinker.md` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `docs/dev/ARCHITECTURE.md` |
DProkos commented 2026-10-18 19:51:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by DProkos on 2026-10-18T19:51:02Z.


Windows check of 441190cf6 merged onto current main (48d61f53b, clean merge).

Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7 UCRT, Ninja, Release, ANYPS5_RELINKER_ONLY=ON, BUILD_TESTING=ON, Python 3.11.0.

  • Relinker-only build succeeds.
  • Full relinker suite: 195/195 passed (196 on main; guest_preinit is removed with the change).

Like the Linux run, this shows the revert breaks nothing in the Windows output's ctests. It does not show that it fixes start-up: no title and no SDK libc.prx was run.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6254385036 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7646#issuecomment-6254385036). Originally posted by [DProkos](https://github.com/DProkos) on 2026-10-18T19:51:02Z. --- Windows check of 441190cf6 merged onto current `main` (`48d61f53b`, clean merge). Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7 UCRT, Ninja, Release, `ANYPS5_RELINKER_ONLY=ON`, `BUILD_TESTING=ON`, Python 3.11.0. - Relinker-only build succeeds. - Full relinker suite: 195/195 passed (196 on `main`; `guest_preinit` is removed with the change). Like the Linux run, this shows the revert breaks nothing in the Windows output's ctests. It does not show that it fixes start-up: no title and no SDK `libc.prx` was run. AI-assisted: yes
MarcZX10 commented 2026-10-18 20:05:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T20:05:45Z.

Review: COMMENTED


The implementation diff has passing relinker builds/tests across Linux, Windows, macOS, and ASan, but the required conventions check currently fails because the revert commit subject is Revert "Merge pull request #6112 ...", which is not Conventional Commits. Could you amend the commit subject to something like revert(relinker): run guest preinit arrays before the module initializer and rerun CI? The check annotation points to this exact commit subject.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5564722380 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7646#pullrequestreview-5564722380). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-18T20:05:45Z. **Review:** COMMENTED --- The implementation diff has passing relinker builds/tests across Linux, Windows, macOS, and ASan, but the required `conventions` check currently fails because the revert commit subject is `Revert "Merge pull request #6112 ..."`, which is not Conventional Commits. Could you amend the commit subject to something like `revert(relinker): run guest preinit arrays before the module initializer` and rerun CI? The check annotation points to this exact commit subject.
simonbbby commented 2026-10-18 20:25:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by simonbbby on 2026-10-18T20:25:07Z.


Native Linux generated-module check of exact head 441190cf6955dc7a1822e4f4fd09be9efa525910 against its parent 8a7f434f19052c75d6cb54ba2342905e5f0b238e (Ubuntu 24.04, kernel 7.0.0-38, GCC 13.3, Release).

This adds an execution control for the double-preinit mechanism, without loading an SDK libc. I extended the removed test_guest_preinit.py's recording_module() fixture so its DT_INIT calls each non-null pointer in its own preinit array, then records its original initializer arguments and returns 0x5a17. Every converted module is loaded through ctypes.CDLL in a fresh subprocess with the existing guest_module_args_host provider.

Generated module Callback executions with parent With this revert
DT_INIT runs its two preinit callbacks 4 2
DT_INIT runs one callback; the other slot is null 2 1
DT_INIT sees two null slots 0 0
DT_INIT does not run its two callbacks 2 0

All eight conversions and native loads complete. The body of DT_INIT records its nonzero argument pair exactly once, and the result is 0x5a17 exactly once in every case; each input hash stays unchanged. Thus the duplicated events in the first two rows are the preinit callbacks, not two loader executions of the whole initializer or a damaged argument/result bridge. The non-self-initializing row also explicitly confirms the revert's tradeoff rather than hiding it.

On the restored, clean PR worktree, guest_module_args, guest_deferred_dependencies, guest_module_fini and init_array_roots pass (4/4).

This demonstrates the reported mechanism for a self-initializing module and the changed behavior for a module that leaves its preinit array to the converter. It does not reproduce ThreadLifecycle's registration abort, establish which real modules self-initialize, or prove that every title is affected/fixed. No title, SDK module, Windows/macOS execution or full-suite result is claimed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6254730990 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7646#issuecomment-6254730990). Originally posted by [simonbbby](https://github.com/simonbbby) on 2026-10-18T20:25:07Z. --- Native Linux generated-module check of exact head `441190cf6955dc7a1822e4f4fd09be9efa525910` against its parent `8a7f434f19052c75d6cb54ba2342905e5f0b238e` (Ubuntu 24.04, kernel 7.0.0-38, GCC 13.3, Release). This adds an execution control for the double-preinit mechanism, without loading an SDK libc. I extended the removed `test_guest_preinit.py`'s `recording_module()` fixture so its `DT_INIT` calls each non-null pointer in its own preinit array, then records its original initializer arguments and returns `0x5a17`. Every converted module is loaded through `ctypes.CDLL` in a fresh subprocess with the existing `guest_module_args_host` provider. | Generated module | Callback executions with parent | With this revert | |---|---:|---:| | `DT_INIT` runs its two preinit callbacks | 4 | 2 | | `DT_INIT` runs one callback; the other slot is null | 2 | 1 | | `DT_INIT` sees two null slots | 0 | 0 | | `DT_INIT` does **not** run its two callbacks | 2 | 0 | All eight conversions and native loads complete. The body of `DT_INIT` records its nonzero argument pair exactly once, and the result is `0x5a17` exactly once in every case; each input hash stays unchanged. Thus the duplicated events in the first two rows are the preinit callbacks, not two loader executions of the whole initializer or a damaged argument/result bridge. The non-self-initializing row also explicitly confirms the revert's tradeoff rather than hiding it. On the restored, clean PR worktree, `guest_module_args`, `guest_deferred_dependencies`, `guest_module_fini` and `init_array_roots` pass (4/4). This demonstrates the reported **mechanism** for a self-initializing module and the changed behavior for a module that leaves its preinit array to the converter. It does not reproduce `ThreadLifecycle`'s registration abort, establish which real modules self-initialize, or prove that every title is affected/fixed. No title, SDK module, Windows/macOS execution or full-suite result is claimed.
MarcZX10 commented 2026-10-18 20:28:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T20:28:12Z.


Thanks for updating the PR title and adding the generated-module execution control. The new check is useful for the self-initializing-module mechanism, and the description correctly states that it does not reproduce title startup.

The latest conventions run (39160782891) now reports only the commit subject as failing: Revert "Merge pull request #6112 ...". Could you reword that commit to a Conventional Commit subject such as fix(relinker): revert duplicate guest preinit execution and rerun conventions? The PR title itself now passes.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6254762532 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7646#issuecomment-6254762532). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-18T20:28:12Z. --- Thanks for updating the PR title and adding the generated-module execution control. The new check is useful for the self-initializing-module mechanism, and the description correctly states that it does not reproduce title startup. The latest conventions run (39160782891) now reports only the commit subject as failing: `Revert "Merge pull request #6112 ..."`. Could you reword that commit to a Conventional Commit subject such as `fix(relinker): revert duplicate guest preinit execution` and rerun conventions? The PR title itself now passes. AI-assisted: yes
MarcZX10 commented 2026-10-18 20:39:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T20:39:11Z.


Thanks for rewording the commit. The latest conventions check now passes on c3b900159; the relinker platform matrix and ASan jobs are running on this head. I will treat the title-startup result separately from the generated-module control already reported.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6254874358 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7646#issuecomment-6254874358). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-18T20:39:11Z. --- Thanks for rewording the commit. The latest conventions check now passes on `c3b900159`; the relinker platform matrix and ASan jobs are running on this head. I will treat the title-startup result separately from the generated-module control already reported.
MarcZX10 commented 2026-10-18 20:43:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T20:43:57Z.


The issue reporter has now run the reverted head (main 6e27fc8f0 + this PR c3b900159) on Linux with rebuilt libraries across eight titles. None hit the duplicate-registration abort; each returned to its previously observed stop point (including Wind Waker, XashPS5, vkQuake, PICO-8, Ruffle, VLC, XPSemu and PS5CEMU-HAR). This is title-startup validation for those cases, distinct from the generated-module control. CI currently passes Linux, macOS arm64/x86_64, ASan and conventions; the Windows relinker job is still pending in run 39164239098.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6254923575 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7646#issuecomment-6254923575). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-18T20:43:57Z. --- The issue reporter has now run the reverted head (`main` `6e27fc8f0` + this PR `c3b900159`) on Linux with rebuilt libraries across eight titles. None hit the duplicate-registration abort; each returned to its previously observed stop point (including Wind Waker, XashPS5, vkQuake, PICO-8, Ruffle, VLC, XPSemu and PS5CEMU-HAR). This is title-startup validation for those cases, distinct from the generated-module control. CI currently passes Linux, macOS arm64/x86_64, ASan and conventions; the Windows relinker job is still pending in run 39164239098. AI-assisted: yes
MarcZX10 commented 2026-10-18 20:44:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T20:44:30Z.


Additional title validation is now reported on #7636: Sword of the Sea (PPSA25344, retail 01.510.000) was freshly converted and run on Windows 11 with the relinker and libraries built at this PR's head 441190cf6. It produced no duplicate-registration throw, reached the title screen, and loaded New Game into the opening cutscene before the reporter's 240-second limit. This is one Windows run; it validates startup for this title, not sustained gameplay. Combined with the eight Linux title runs, the original startup regression has direct reverted-head evidence on both host OSes.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6254928948 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7646#issuecomment-6254928948). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-18T20:44:30Z. --- Additional title validation is now reported on #7636: Sword of the Sea (PPSA25344, retail 01.510.000) was freshly converted and run on Windows 11 with the relinker and libraries built at this PR's head `441190cf6`. It produced no duplicate-registration throw, reached the title screen, and loaded New Game into the opening cutscene before the reporter's 240-second limit. This is one Windows run; it validates startup for this title, not sustained gameplay. Combined with the eight Linux title runs, the original startup regression has direct reverted-head evidence on both host OSes. AI-assisted: yes
MarcZX10 commented 2026-10-18 20:44:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T20:44:54Z.


The GitHub run has now completed successfully: Linux and Windows relinker builds, macOS arm64/x86_64, ASan, eligibility, conventions and labels passed; the path-scoped full Linux/Windows suites were skipped. Together with the reported Linux title matrix and the single Windows Sword of the Sea run, both startup validation and the generated-module control are now documented. The Windows title reached its opening cutscene, not a sustained gameplay result.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6254933012 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7646#issuecomment-6254933012). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-18T20:44:54Z. --- The GitHub run has now completed successfully: Linux and Windows relinker builds, macOS arm64/x86_64, ASan, eligibility, conventions and labels passed; the path-scoped full Linux/Windows suites were skipped. Together with the reported Linux title matrix and the single Windows Sword of the Sea run, both startup validation and the generated-module control are now documented. The Windows title reached its opening cutscene, not a sustained gameplay result. AI-assisted: yes
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!7646
No description provided.