mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:20:53 +01:00
[PR #1693] windows-boot: collect private crash dumps and stack traces on request #1705
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#1705
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/1693
Author: @sodove
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:feat/windows-boot-private-minidump📝 Commits (1)
1b9e496windows-boot: capture private minidumps and stacks on abnormal exit📊 Changes
6 files changed (+427 additions, -2 deletions)
View changed files
📝
runtime/CMakeLists.txt(+9 -0)➕
runtime/test/windows_crash_fixture.cpp(+38 -0)📝
scripts/windows-boot/README.md(+12 -0)📝
scripts/windows-boot/boot.ps1(+31 -2)➕
scripts/windows-boot/crash_monitor.cpp(+204 -0)➕
scripts/windows-boot/test_crash_monitor.py(+133 -0)📄 Description
Claimed in the coordination issue as WIN-BOOT-PRIVATE-MINIDUMP.
What and why
A Windows boot can exit with a numeric status before the runtime writes a diagnostic. With
boot.ps1 -CrashDump, a small native helper observes the child from a separate process. It passes first-chance exceptions through and records the faulting thread on an unhandled exception. An explicit nonzero exit gets an exit-time snapshot even when the exit code happens to match a Windows exception code. This also covers a case that the in-process exception handler in #994 cannot observe.The helper writes a minidump and a best-effort stack to a fresh directory under the user's external run folder. It uses local symbols. The stack at explicit exit can already be in shutdown, and unwinding can stop in manually mapped code. Each child keeps its original exit code. The harness's own timeout produces no dump. The dump and stack are private and must stay on the machine.
Tested
GPUs tested: n/a (CPU-only synthetic tests).
AI-assisted: yes
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.