Crash: VICTORY_STACKS_AT_KILL=1 prints every thread's stack when the title writes to address 0, its GPU watchdog's kill #1121

Manually merged
github merged 4 commits from github-bot/gh-1121 into main 2026-11-29 08:20:52 +00:00 AGit
Owner

@⁠101Leafy on GitHub · 2026-11-28 13:42 UTC · original
101Leafy:nv/stacks-at-kill → main · +43 −17 · 11 files · 4 commits · merged 2026-11-29 08:16 UTC

Problem

When the frame loop stops, the title's GPU watchdog (the thread at image+0x2215a60) waits 30 s and then writes to address 0 to end the process. The crash report names that write and the watchdog's own stack, but not what the frame loop was stuck in. VICTORY_STACKS=<seconds> can catch it only when the hang time is known ahead.

Change

VICTORY_STACKS_AT_KILL=1 (diagnostics builds) prints every thread's stack, through the existing stacks::dump_stacks, at the first access violation that writes to address 0. It runs once per process, from the first-chance handler, after the usual report. Off by default, and the plain build is unchanged.

Tested

Built with and without diagnostics. It only does something when set.

Tested on: not run on a GPU yet. It was only built (see above), so there is no before and after to report.

**@⁠101Leafy** on GitHub · 2026-11-28 13:42 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1121) `101Leafy:nv/stacks-at-kill` → `main` · +43 −17 · 11 files · 4 commits · merged 2026-11-29 08:16 UTC ### Problem When the frame loop stops, the title's GPU watchdog (the thread at image+0x2215a60) waits 30 s and then writes to address 0 to end the process. The crash report names that write and the watchdog's own stack, but not what the frame loop was stuck in. `VICTORY_STACKS=<seconds>` can catch it only when the hang time is known ahead. ### Change `VICTORY_STACKS_AT_KILL=1` (diagnostics builds) prints every thread's stack, through the existing `stacks::dump_stacks`, at the first access violation that writes to address 0. It runs once per process, from the first-chance handler, after the usual report. Off by default, and the plain build is unchanged. ### Tested Built with and without `diagnostics`. It only does something when set. Tested on: not run on a GPU yet. It was only built (see above), so there is no before and after to report.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 14:33:45 +00:00
github-bot changed title from Crash: VICTORY_STACKS_AT_KILL=1 prints every thread's stack when the title writes to address 0, its GPU watchdog's kill to [pr-diagnostics, crash] Crash: VICTORY_STACKS_AT_KILL=1 prints every thread's stack when the title writes to address 0, its GPU watchdog's kill 2026-11-28 21:25:28 +00:00
github-bot changed title from [pr-diagnostics, crash] Crash: VICTORY_STACKS_AT_KILL=1 prints every thread's stack when the title writes to address 0, its GPU watchdog's kill to Crash: VICTORY_STACKS_AT_KILL=1 prints every thread's stack when the title writes to address 0, its GPU watchdog's kill 2026-11-28 21:37:45 +00:00
github-bot force-pushed github-bot/gh-1121 from 2171c5cb96 to c6d5c4d7c2 2026-11-29 01:46:10 +00:00 Compare
github manually merged commit 9c317f337c into main 2026-11-29 08:20:52 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!1121
No description provided.