Repository navigation
RT-HANG-DUMP-THREAD-STACKS: port the LEONIDA_HANG_DUMP thread-stack-dump knob to main - #2120
Draft
tengotengo wants to merge 1 commit into
Draft
tengotengo wants to merge 1 commit into
tengotengo wants to merge 1 commit into
Conversation
Contributor
Author
|
The knob fires on post-#984 main: launch-4 run-1 (b9320a1 + this commit, RTX 5060 Ti / Proton 11 SLR) with LEONIDA_HANG_DUMP=1200 logged 91 thread_stack trace events at exactly t=1200.201583 s (trace 155 → 246 events), one per TID, with guest frames — that dump pinned the storm's character (38 threads parked in the 0x2215eca supervisor frame; one deep worker stack; a wine XInput1_4.dll thread) and is what makes the input dead-end finding above diagnosable. No game data. AI-assisted. |
… document the knob (RT-HANG-DUMP-THREAD-STACKS)
tengotengo
force-pushed
the
rt-hang-dump-thread-stacks
branch
from
November 27, 2026 06:54
44ca0bd to
1b771c3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: RT-HANG-DUMP-THREAD-STACKS (comment 7174559848 on #1608)
The boot prototype (a66c142 line, public in this repo) has a LEONIDA_HANG_DUMP= env knob that dumps every thread's stack into the run. It is absent on post-#984 main: launch-3's LEONIDA_HANG_DUMP=30 was a silent no-op (grep-verified), so every defused-watchdog stall had to be diagnosed with eu-stack from the host instead.
This PR ports the minimal unit from the public boot-prototype commit d0c45aa (code: DadaCap) into runtime/shims/startup_trace.h — a single file, +62 lines: the includes (tlhelp32.h, , ), the log_thread_stack/log_thread_stack_guarded/dump_thread_stacks/start_hang_dump block, and the one-line open() hook. Env-gated, off by default, stdlib-only. The doc-comment hunk of d0c45aa does not apply to current main (header drift) and is dropped; the code is complete without it.
Verified: compiles clean in the cross build on current main (gta6rt + gta6rt_tls_host, RelWithDebInfo, xwin). A live run (RTX 5060 Ti / Proton 11 SLR, post-#1558/#1723 main) is starting with the knob set — I'll report the fired dump as a follow-up.
No game data. AI-assisted.