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. |
…984 LAYOUT_UNDEFINED, Wave-21b CMake & leonida-ce 525c44e1 ReadFile fast-path - ProjectLeonida/mandy#1100 (RT-PLACED-IMAGE-DEFER): unify Resource deferred memory binding onto leonida::DeferredImageBinding (deduping duplicate flags/mutex), add LEONIDA_PLACED_IMAGE_DEFER=0 rollback, defer placed depth/UAV/RT attachments + cpu_copy bind + race-free memory_flags(), preserve MemoryPriority, add check_placed_target_backing test & docs/d3d12_vulkan.md note. - ProjectLeonida/mandy#1099 (RT-STREAM-TRANSFER-BARRIER): deduped against existing ultimate CopyBuffer/CopyResource transfer barriers; add LEONIDA_ORDER_BUFFER_COPIES=0 opt-out toggle, --expect-unordered test mode, and docs/d3d12_vulkan.md note. - ProjectLeonida/mandy#1097 (SHADER-BUFFER-BOUNDS): use OobSelect::structured_with_offset for structured buffer SRVs in d3d12_vulkan_device.cpp, add cross-record GPU readbacks in d3d12_compute_test.cpp + cs_user_data.comp (and align Xbox slot-17 CBV expectations with wave18b vector-row encoding). - ProjectLeonida/mandy#1096 (RT-STARTUP-TRACE): add VirtualQuery memory region metadata on access violations in startup_trace.h & startup_trace_test.cpp. - ProjectLeonida/mandy#1023 & #1007: update docs/directstorage.md (measured factory IID & slot 8) and docs/d3d12_vulkan.md (device slot 62 5-arg arity & slot 76 FFX-only note). - Wave-21b deferred CMake: add loader TIMEOUT 180 (Reforge#169) and tiny_game_ga / run_tiny_game_ga_tls (ubiq#947 Patch 2). - ProjectLeonida/mandy#984 (self-contained Windows-native port): accept enhanced TextureBarrier into LAYOUT_UNDEFINED without violating VUID-VkImageMemoryBarrier2-newLayout-01198 (command_list.h, vulkan_replay.h, command_list_test, replay_texture_barrier_test, d3d12_close_parity_test). - IAmNotSiob/leonida-ce 525c44e1 (GPL-3.0, deduped): wire optional xmem::commit_physical_range_fn hook into file_system.cpp ReadFile ERROR_NOACCESS retry path to commit large console buffers without per-page VEH faults while keeping zero-cost fast path and touch_pages fallback. - DesignWithTommy/Neonbridge eaf7e7e0: audited and skipped (ultimate has no refresh read-back byte/time cap skipping Bink R8/R8G8 planes).
|
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