mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:55:52 +01:00
[PR #576] [CLOSED] RT-HANG-DUMP: LEONIDA_HANG_DUMP writes every thread's stack after N seconds #620
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#620
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/576
Author: @CLHelper
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:runtime/hang-dump📝 Commits (1)
e6438ebstartup_trace: LEONIDA_HANG_DUMP writes every thread's stack after N seconds📊 Changes
3 files changed (+72 additions, -0 deletions)
View changed files
📝
docs/boot.md(+3 -0)📝
runtime/README.md(+1 -0)📝
runtime/shims/startup_trace.h(+68 -0)📄 Description
Claimed in the coordination issue as: RT-HANG-DUMP (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7126610928)
What and why
A retail boot that faults leaves a last exception in the trace; one that hangs leaves nothing to look at. With
LEONIDA_HANG_DUMP=<seconds>,gta6rtwaits that long and then writes the stack of every thread in the process to thestartup trace (each thread is suspended briefly while its context is read, then resumed), so a stalled boot shows
where each thread waits. Unset, nothing changes: no thread is started.
The code is in
runtime/shims/startup_trace.h;docs/boot.mdandruntime/README.mdname the variable.The commit is 4ld0-vito's (from their fork, where it was used for the boot work), carried over unchanged with its
author kept.
Tested
gta6rt,gta6rt_tls_host,unimplemented_policy_testandxapu_chad_testwith MSVC 2022 (Windows 11,RelWithDebInfo, Ninja) on this branch: all link; the two shim tests that include
startup_trace.hpass.GPUs tested: n/a (no GPU code)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.