victory-loader: dump thread stacks when the title entry returns #63

Manually merged
github merged 2 commits from github-bot/gh-63 into gh-pr/63/base 2026-12-01 09:31:59 +00:00 AGit
Owner

@⁠TheRifai on GitHub · 2026-12-01 09:18 UTC · original
TheRifai:loader-entry-return-diag → main · +11 −1 · 1 files · 2 commits · merged 2026-12-01 09:30 UTC

What

The stability task (issue #16) asks for the title's entry-point return to be caught and the title threads' last calls/caller chain logged. In spawn_main, after entry(...) returns, a diagnostics-only block now logs the code and calls crate::dump_stacks() — every other thread's unwound frames as module+rva, which names the last HLE call each thread was in.

Evidence and limits

  • tools/build.sh (diagnostics profile) compiles.
  • A 70 s house run reached the world and was clean.
  • The new line did not fire in that run (it ended at its timeout). That is consistent with the earlier exit-1 finding: those runs end on the Unix side without coming back through the entry point. This diagnostic covers the subset of exits that do return; it is not claimed as a fix or as having reproduced the exit.

Note: dump_stacks uses SuspendThread, whose Wine side can nest a SIGUSR1 exception (issue #62); at entry return it runs once, during teardown.

**@⁠TheRifai** on GitHub · 2026-12-01 09:18 UTC · [original](https://github.com/vktory6/VKtory/pull/63) `TheRifai:loader-entry-return-diag` → `main` · +11 −1 · 1 files · 2 commits · merged 2026-12-01 09:30 UTC ## What The stability task (issue #16) asks for the title's entry-point return to be caught and the title threads' last calls/caller chain logged. In `spawn_main`, after `entry(...)` returns, a diagnostics-only block now logs the code and calls `crate::dump_stacks()` — every other thread's unwound frames as `module+rva`, which names the last HLE call each thread was in. ## Evidence and limits - `tools/build.sh` (diagnostics profile) compiles. - A 70 s house run reached the world and was clean. - The new line did **not** fire in that run (it ended at its timeout). That is consistent with the earlier exit-1 finding: those runs end on the Unix side without coming back through the entry point. This diagnostic covers the subset of exits that do return; it is not claimed as a fix or as having reproduced the exit. Note: `dump_stacks` uses `SuspendThread`, whose Wine side can nest a SIGUSR1 exception (issue #62); at entry return it runs once, during teardown.
Issue #16's next step: catch the return of the title's entry point and log what
the other title threads were in, with module+rva frames naming the last HLE
calls, before the process tears down. Diagnostics builds only.

tools/build.sh compiles; a 70 s house run is clean. The line did not fire in
that run (it ended at its timeout), which is itself consistent with the finding
that these exits do not come back through the entry point.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 09:21:19 +00:00
github-bot changed target branch from main to gh-pr/63/base 2026-12-01 09:31:57 +00:00
github manually merged commit 77ff941266 into gh-pr/63/base 2026-12-01 09:31:59 +00:00
Author
Owner

@⁠vktory6 on GitHub · 2026-12-01 09:30 UTC · original

Merged, thanks! This is the step the task names, and you are clear about what it covers (only exits that come back through the entry point). One commit of mine on top (77ff941): the dump runs only for a failure code, so a normal quit (0) does not fill the log with stacks.

Check on the reference system (RX 9070 XT): the PE build with diagnostics, tests and policy pass, and the house-scene validation run shows no new error.

**@⁠vktory6** on GitHub · 2026-12-01 09:30 UTC · [original](https://github.com/vktory6/VKtory/pull/63#issuecomment-7306803912) Merged, thanks! This is the step the task names, and you are clear about what it covers (only exits that come back through the entry point). One commit of mine on top (77ff941): the dump runs only for a failure code, so a normal quit (0) does not fill the log with stacks. Check on the reference system (RX 9070 XT): the PE build with diagnostics, tests and policy pass, and the house-scene validation run shows no new error.
This discussion has been locked. Commenting is limited to contributors.
No description provided.