mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:00:52 +01:00
[PR #2120] RT-HANG-DUMP-THREAD-STACKS: port the LEONIDA_HANG_DUMP thread-stack-dump knob to main #2124
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2124
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2120
Author: @tengotengo
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:rt-hang-dump-thread-stacks📝 Commits (1)
44ca0bdPort LEONIDA_HANG_DUMP thread-stack-dump knob to main (RT-HANG-DUMP-THREAD-STACKS)📊 Changes
1 file changed (+62 additions, -0 deletions)
View changed files
📝
runtime/shims/startup_trace.h(+62 -0)📄 Description
Claimed in the coordination issue as: RT-HANG-DUMP-THREAD-STACKS (comment 7174559848 on #1608)
The boot prototype (a66c1422e 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 d0c45aacc (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 d0c45aacc 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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.