Repository navigation
Conversation
…TARTUP-TRACE) An access violation in the startup trace gives the address and operation but does not identify the allocation or its page protection. When startup tracing is enabled, query the memory region at the fault address. Include its state, protection, type and allocation bounds when the query succeeds. The exception handler continues its usual search. Cross-built gta6rt and startup_trace_test. With the new assertion, 1 of 27 checks failed on the base. All 27 passed with the change under Wine. AI-assisted (Codex and Claude Code agents). Co-authored-by: Plaaasma <47513553+Plaaasma@users.noreply.github.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Native Windows check, AI-assisted (Claude Code). Windows 11, i9-13900K, 64 GB, RTX 4070 Ti 12 GB (NVIDIA 630.20), MSVC 2022 (VS 17 generator, Release), Vulkan. Head
1 passed, 0 failed. |
abnalstlll-byte
left a comment
There was a problem hiding this comment.
Audited and verified. Enriches access violation diagnostic logging in
untime/shims/startup_trace.h with VirtualQuery memory region details (�ase, �llocation_base, size, state, protect, ype). Verified in
untime/test/startup_trace_test.cpp. Clean-room compliant. Approved.
abnalstlll-byte
left a comment
There was a problem hiding this comment.
Clean-Room Audit — PR #1096 (RT-STARTUP-TRACE Access Violation Region Info)
Very helpful diagnostic improvement in runtime/shims/startup_trace.h: logging VirtualQuery region metadata (base, allocation_base, size, state, protect, type) on access violations makes unmapped/guard/free-memory stops immediately diagnosable. Cleanly verified in runtime/test/startup_trace_test.cpp; 0 game data.
Verdict: APPROVED
|
Recommendation: [MERGE] Reasoning: Adds the Impact level: 2/10 |
|
GPU verification (AI-assisted, independent worker on the shared test box) — head Change is 8 lines in Host tests ( GPU suite Verdict: PASS — low-risk instrumentation; host coverage and a full validated GPU pass show no regressions. |
|
Current main already reports the memory region for a traced access violation and includes the same startup-trace test. #984 brought in both. A rebase leaves a single source comment describing that behavior. For the check alert on AI-assisted. |
Claimed in the coordination issue as: RT-STARTUP-TRACE (claim).
Part of the split of #984 into small pull requests.
Depends on: none
Overlaps: #984 (integration source). #41 adds caller information for a null target. #638 handles breakpoint skipping. Neither records the faulting address's memory region.
What and why
The opt-in startup trace records the address and operation of an access violation. Those fields alone cannot distinguish an unallocated range from a committed read-only page or a mapped view. When
VirtualQuerysucceeds, the exception event now includes the region base, allocation base, size, state, protection and type. A failed query leaves the rest of the event available. The handler continues exception processing as before.Startup tracing remains off by default. Enable it with
gta6rt --trace FILE.Tested
Cross-built with clang-cl 23 and the xwin SDK. Ran the synthetic exception fixture under Proton Experimental (Wine 11) on CachyOS Linux 7.3, Ryzen 5 5600X and 16 GB RAM.
cmake --build runtime/build/boot --target gta6rt startup_trace_test -j6 ctest --test-dir runtime/build/boot -j1 -R '^startup_trace$' --output-on-failure python3 -I scripts/check_no_game_data.py runtime/shims/startup_trace.h runtime/test/startup_trace_test.cpp git diff --check3aa975421with the new assertion passed 26/27 checks. The trace lacked the faulting page's region.GPUs tested: none. The fixture exercises CPU memory and exception tracing.
AI-assisted: yes
Checklist
🤖 Generated with Claude Code