Repository navigation
tiny_game_abort_test: keep the native fail-fast runs out of Windows Error Reporting, so no tiny_game.exe is left locked - #6460
Open
kingzzim7-create wants to merge 1 commit into
Conversation
…rror Reporting The three native fail-fast cases (abort-return, abort-ignore, abort-default) were each reported to WER, which left the exited child as a zombie holding tiny_game.exe open, so the next build failed with LNK1168. The test now sets SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX before starting any child; the expected exit codes are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Tested |
Contributor
Author
|
Thanks @Ingenioeren for the independent run, especially the exclusive reopen of tiny_game.exe, which is the part that used to fail. AI-assisted (Claude) |
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in #6214 (new TEST item, finding posted there). The test was added in #3928.
Problem.
run_tiny_game_abort_exit_codesruns tiny_game natively in five abort modes. Three of them (abort-return,abort-ignore,abort-default) end with the UCRT fail-fast, 0xC0000409, and each is reported to Windows Error Reporting. On this machine every report leaves the exited child as a zombie process (44-48 KB, 0 CPU time, user N/A) thattaskkill /Frefuses with "Access is denied". It holdstiny_game.exeopen, so the next build fails at that target with LNK1168 until a reboot. The test itself passes.Change. The test calls
SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX)before it starts any child. Every child inherits it, so the fail-fast children end without a WER report. Nothing else changes: the expected exit codes stay the same (native 0xC0000409, gta6rt 3 and 43), and nothing outside the process is touched (no registry WER exclusion).Tested on Windows 11 26300, MSVC 14.52, against main 561b65a's own gta6rt.exe and tiny_game.exe:
The changed test was compiled outside the tree (
cl /W4 /O2 /std:c++17, with the same WIN32_LEAN_AND_MEAN/NOMINMAX defines as CMake), because the processes main's test leaves behind lock the in-tree tiny_game.exe. Its source is identical to this commit.Also measured: of the 14
run_tiny_*tests, only this one leaves a process behind, and a fullctest -j4run added exactly 3. Excluding tiny_game.exe from WER in the registry instead gives the same result (9 -> 9), which confirms WER as the cause.No game files, no GPU needed. AI-assisted (Claude).
🤖 Generated with Claude Code
https://claude.ai/code/session_0169um2NBao5UtDE866zCSLX