victory-loader: dump thread stacks when the title entry returns #63
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/vktory6--VKtory!63
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-63"
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?
@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 UTCWhat
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, afterentry(...)returns, a diagnostics-only block now logs the code and callscrate::dump_stacks()— every other thread's unwound frames asmodule+rva, which names the last HLE call each thread was in.Evidence and limits
tools/build.sh(diagnostics profile) compiles.Note:
dump_stacksusesSuspendThread, whose Wine side can nest a SIGUSR1 exception (issue #62); at entry return it runs once, during teardown.@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.