mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:30:53 +01:00
[PR #1096] [CLOSED] runtime: report the memory region for a traced access violation (RT-STARTUP-TRACE) #1130
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1130
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1096
Author: @Moriz82
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:split/rt-startup-trace📝 Commits (1)
51868dfruntime: report the memory region for a traced access violation (RT-STARTUP-TRACE)📊 Changes
2 files changed (+10 additions, -0 deletions)
View changed files
📝
runtime/shims/startup_trace.h(+8 -0)📝
runtime/test/startup_trace_test.cpp(+2 -0)📄 Description
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.
3aa975421with 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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.