Repository navigation
Conversation
The startup trace writes each exception's code as a hex string and the summary printed it bare, so a run that stops on the title's own int3 after a refused call reads as 'code 0x80000003' followed by a heap-corruption exit, which sends triage toward a heap bug that is not there (ItsNotRexed#6824). Add the code-to-name map the report needs (same shape as tools/image_fuzz.py's NTSTATUS table), carry the name in the JSON summary, and note the pattern in the boot runbook. Unknown, absent or non-hex codes print exactly as before. AI-assisted.
devnull34
approved these changes
Nov 23, 2026
devnull34
left a comment
There was a problem hiding this comment.
Code Review & Verification
- Host: Windows 11 Build 26300 x64
- Toolchain: Python 3.15
Verification Summary
-
test_boot_trace.py:- Passed all 22 tests (0.140s).
- Validated that
tools/boot_trace.pymaps common NTSTATUS and Win32 exception codes (e.g.0x80000003->STATUS_BREAKPOINT,0xc0000005->STATUS_ACCESS_VIOLATION,0xc0000374->STATUS_HEAP_CORRUPTION) to human-readable symbolic names in both console output and JSON summaries, avoiding confusing debugbreak aborts with heap corruptions. - Verified that unknown, non-hex, or malformed exception codes fall back cleanly to original formatting.
-
Hygiene & Compliance:
- Clean-room compliant: pure synthetic trace JSON unit tests; zero game assets or proprietary code.
git diff HEAD~1..HEAD --check: Clean (0 whitespace/formatting defects).
LGTM!
Contributor
|
Tested 204d981 merged with main 8575d36 on Linux/Python 3.12.16: concern
Concern: four entries in the new
Side note: the text line for a C++ throw changes from |
Contributor
|
Tested 204d981 on Windows 11, Python 3.15.2, NVIDIA RTX 4060 Ti (driver 621.24; CPU-only checks, no game files, no GPU/llvm-mc/MSVC used): pass. Ran the test files this PR adds or changes, from a clean checkout of the PR head: AI-assisted (Claude Code). |
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 the coordination issue as: #6910 (comment)
Depends on: builds on none. Conflicts with the other open
tools/boot_trace.pyPRs #6543, #4834, #6516, #4851 and #6025, since they edit the same file. Mine only touches the exception block, so it should rebase under whichever of those lands first.What and why
The startup trace writes each exception's code as a hex string (
"0xc0000005", seeruntime/shims/startup_trace.h) and the summary printed it bare, so the line readscode 0x80000003 at game.exe+0x4a00. On the boot path that is the wrong thing to leave to the reader: #6824 reports that every stop so far was the title's ownint3after a call that refused it, and the process then ends with0xc0000374, which reads as heap corruption when the break above it is the actual cause.So the report now names the codes it knows, in the same shape as the
NTSTATUSmaptools/image_fuzz.pyalready keeps:The name also rides along in
--jsonasexceptions[].name, anddocs/boot.mdstep 4 says what the pair means. Two details worth a look:_code_name()takes a number as well as a string, and masks to 32 bits, because a trace that went throughConvertFrom-Json/ConvertTo-Jsonor a hand-written fixture can carry-1073741819instead of"0xc0000374".cpp: trueprinted(C++ throw)before; with the map naming0xe06d7363as "C++ exception" that line becamecode 0xe06d7363 C++ exception at ... (C++ throw), so the parenthetical is now(throw). The JSON fieldcppis unchanged, andruntime/README.mddocuments that field, not the text.Tested
Synthetic fixtures only, no game data, no Windows, no GPU. Python 3.14.10.
Red before the change:
Green after, whole file, rebased onto current
origin/main(8f208d09):The two needles in
test_text_report_has_the_triage_unitsthat pinned the old code lines are updated with the format.AI-assisted: yes
Checklist
docs/design.md, with how it was confirmed. (not applicable, this touches no translator rule)