windows-boot: collect private crash dumps and stack traces on request #1693

Open
github-bot wants to merge 1 commit from github-bot/gh-1693 into main AGit
Owner

@⁠sodove on GitHub · 2026-11-25 08:23 UTC · original
sodove:feat/windows-boot-private-minidump → main · +427 −2 · 6 files · 1 commits · open

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

  • Built the monitor and synthetic fixture with MSVC, Windows x64, RelWithDebInfo. All 10 native monitor tests passed, including two runs through the PowerShell boot entry point.
  • Verified the exception stream's code and thread ID against the stack, resolved the synthetic worker by name, and checked that an explicit exit has no exception stream. Successful runs, handled exceptions and the harness timeout produced no dump.
  • Boot trace tests passed (39), text writer checks passed (3), translator semantic suite passed (6,279 tests across 487 files). The no-game-data check passed on all six changed files.

GPUs tested: n/a (CPU-only synthetic tests).

AI-assisted: yes

Checklist

  • Based on current main and checked for conflicts.
  • One topic.
  • No game data, keys or decryption in the change, tests or report.
**@⁠sodove** on GitHub · 2026-11-25 08:23 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1693) `sodove:feat/windows-boot-private-minidump` → `main` · +427 −2 · 6 files · 1 commits · open Claimed in the coordination issue as [WIN-BOOT-PRIVATE-MINIDUMP](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608). ### 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 - Built the monitor and synthetic fixture with MSVC, Windows x64, RelWithDebInfo. All 10 native monitor tests passed, including two runs through the PowerShell boot entry point. - Verified the exception stream's code and thread ID against the stack, resolved the synthetic worker by name, and checked that an explicit exit has no exception stream. Successful runs, handled exceptions and the harness timeout produced no dump. - Boot trace tests passed (39), text writer checks passed (3), translator semantic suite passed (6,279 tests across 487 files). The no-game-data check passed on all six changed files. GPUs tested: n/a (CPU-only synthetic tests). AI-assisted: yes ### Checklist - [x] Based on current main and checked for conflicts. - [x] One topic. - [x] No game data, keys or decryption in the change, tests or report.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:01:04 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1693/head:github-bot/gh-1693'
git switch 'github-bot/gh-1693'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1693'
git switch 'github-bot/gh-1693'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1693'
git switch 'github-bot/gh-1693'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1693'
git switch 'main'
git merge --squash 'github-bot/gh-1693'
git switch 'main'
git merge --ff-only 'github-bot/gh-1693'
git switch 'main'
git merge 'github-bot/gh-1693'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.