modules: a crash report survives an address below its module's base #147
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!147
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/147/head"
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?
@gefydev on GitHub · 2026-11-23 15:35 UTC · original
gefydev:gta6-startup→main· +37 −1 · 1 files · 1 commits · closed without mergingRunning the 2026 retail build (
MicrosoftGame.Configtitle memory "Advanced") under Wine with the console's own files, XCL's report of a title fault panicked instead of being printed:describe_addressscans raw stack words; Wine'sGetModuleHandleExWanswered one of them with a module handle above the address, andaddr - hoverflowed. In a debug build that is a panic (the crash report was lost and the process ended with 0xC0000409); in release it is a nonsense offset.The offset now goes through
checked_suband an address below its module's handle is printed as the bare address. Two unit tests cover it.Verified: the same title under Wine now prints its actual fault instead of panicking (
CRASH: unhandled exception 0xc0000005 ...), andcargo test --target x86_64-pc-windows-gnu -p xcl --lib modules::testspasses (550 lib tests in that binary; the two new ones and the rest of the filter ran).No relation to the
D3D12ConfigureVirtualMemoryXstartup fix in #142 – that one is needed first to get this far.@ivall on GitHub · 2026-11-23 21:09 UTC · original
Merged as a squash commit (36fcd9a-equivalent on main, "modules: a crash report survives an address below its module's base (PR #147, gefydev)") so the commit message carries no game title. Checked on an RX 9070 (RDNA4) with the 22 PRs merged together on main
eaa36b6:cargo build --workspace && cargo test --workspace -- --test-threads=4- 582 unit tests passed, 0 failed (20 ignored), the integration and e2e tests passed too; and the retail game still reaches its first menu (646 frames in 30 s, no device removal).Pull request closed