Memory: a crash report names the faulting address's memory state #1177
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1186"
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?
Imported from ivall/xcl. Originally posted by themaoci on 2026-11-24T12:58:00Z.
Part of the retail-title bring-up (no issue filed for it). A newer retail title now boots through its first-boot screens and menus at 30 fps, decodes its BCPack streams and loads into the world; it then dies with an access violation as it spawns into the first cutscene. The old crash report gave the faulting module and address but not what that address was, which is exactly the distinction this crash needs.
With this change the unhandled-access-violation line says what the faulting address is in Windows (
reserve/commit/free, protection, region) and, inside unified memory, which UMA window and whether a live sparse allocation or a free reservation holds it.kernelx::lazy::markwarns when it is given an address that is not 64 KiB aligned – the fault handler keys the fault's own 64 KiB page, so such a mark can never be claimed – and a fault nobody claims names the page and the marks around it.What it showed on the title:
0x80994ca20–reserve, no access, private region 0x80994c000+0x2024000;0x84cae0dc0–reserve, no access, private region 0x84cae0000+0x3b8b10000;What is in it
crates/xcl/src/eh.rs:describe_fault, appended to the access-violation line; a unit test for reserved versus committed pages.crates/xcl/src/gpu/uma.rs:Uma::describe(window kind, live sparse allocation or free reservation), withtry_lockin the report path so a fault on a lock holder cannot deadlock the report.crates/xcl/src/hle/kernelx/lazy.rs: an unalignedmarkwarning naming its caller, and an unclaimed-fault log with the page and the nearby marks.Tested
cargo test --workspace --no-fail-fast -- --test-threads=4: 742 passed, 0 failed, 41 ignored, no SKIPPED.Regression run
main (
47efa2e):this PR (
681c0c8):Not tested
AI use
deepseek-v4.1-flash; it wrote the code, the test and this description. A person ran the tests, the smoke runs and the title. The model is disclosed as written: CONTRIBUTING.md does not accept it for code, so thePR checksworkflow refuses this description.Imported from ivall/xcl. Originally posted by themaoci on 2026-11-24T13:06:30Z.
no idea why no deepseek - where this one is more accurate then any other ai i was using so far and way cheaper
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T13:07:51Z.
Independent verification on current
main384f7f7(branch already contains it — clean).Machine: Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug.
cargo test -p xcl --lib lazy: 4 passed, 0 failed — lazy-page commit paths intact.cargo test -p xcl --lib uma: 10 passed, 0 failed — the new fault-report naming ingpu/uma.rs+kernelx/lazy.rsdoesn't disturb the UMA suite (gpu_uma_import_check_at_initgreen on this adapter).AI use: test runs by Devin (Cognition, SWE-2); no code changes.
upstream-sync referenced this pull request2026-11-24 19:06:45 +00:00
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:02:20Z.
Triage (#1607) – head
681c0c8No open or merged PR makes the same change (#3027 dumps memory around the pointers, #488 is about failed lazy commits).
eh::describe_faultandUma::describe(withtry_lock) look correct.In
kernelx/lazy.rs::handlerthe new warning fires for the first 8 access violations the lazy handler does not claim and says such a fault ends the process. This is a vectored handler that returns CONTINUE_SEARCH, so later handlers (the title's own SEH, for example) can still handle the fault, and the log can report faults that did no harm. The two lazy.rs warnings are also a second change beyond the crash line in the title. CI fails only on the PR description check, and the branch conflicts with main.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.