xcl run: name a title's deliberate write of a tag to address 0 in the crash line #1055

Open
papasmurph0 wants to merge 1 commit from upstream-pr/1062 into main
papasmurph0 commented 2026-11-24 11:08:24 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by papasmurph0 on 2026-11-24T11:08:24Z.


Part of #505; the stop of #746 is the second of the two below.

Titles end themselves on purpose with mov dword ptr [0], imm32. XCL's line for the unhandled exception showed only write at address 0x0, which reads like a bug in XCL. The retail title of #505 does it twice:

  • its GPU watchdog ("GPU Loc Sig") at +0x23cf683 writes 0x4d8bd421;
  • when the watchdog's function returns, its thread's exit path at +0x2215c35 writes 0 (#746).

Read from the title's code: the watchdog function reports the stall, then reaches the write on both of its paths; after the write it only returns (add rsp, 0x48; ret). The thread procedure that called it calls an optional hook, then writes 0 to address 0.

The crash line now ends with – the title's own deliberate crash: mov dword ptr [0], <tag> when the faulting instruction is that one and lies in a title's image. The same bytes in any other module (XCL's own code, a system DLL) keep the plain line. Nothing else changes.

What is in it

  • crates/xcl/src/eh.rs: deliberate_null_write (the instruction's tag), deliberate_crash_tag (a write to address 0 by that instruction inside a mapped title image, asked of modules::image_base_for_addr) and its use in unhandled_filter. Tests: a_write_of_a_tag_to_address_0_is_named_a_deliberate_crash, only_a_title_image_s_write_to_address_0_is_named_a_deliberate_crash.

Changed since the first version (0117b92)

  • Rebased onto main 078358a; still one commit.
  • The label is added only for an instruction inside a title's image. The merge-check of 2026-12-02 showed the first version named the title for an address in a host module; the second test covers that case (host-owned memory, then the same memory as a title image, a read, a write elsewhere, another instruction).
  • code_at has its doc comment back (noted in three reviews).

Tested

  • NVIDIA GeForce RTX 4080 SUPER (driver 32.0.16.1088), Ryzen 7 7800X3D, Windows 11 build 26200, rustc 1.98.1 MSVC, DXC 1.8.2502.11, debug.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 (XCL_DXC_DIR set) on head 05d03e3: 3008 passed, 0 failed, 52 ignored. SKIPPED: 22 lines with "no wave64" (among them gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware), and heap_window_out_of_memory_falls_back_to_the_switch_form, two_pass_binds_set_the_shared_view_heap (no heap windows).
  • A first run of the same command on the same tree did not complete: the library's test program ended with 0xc0000005 after about 88 tests, and in that run test_title_draws_with_a_root_signature_under_the_debug_layer failed. Neither repeated: the library tests alone then passed twice (2856 passed, 0 failed, 32 ignored), that test passed alone, and the complete run above is clean. On main 078358a the library tests alone: 2854 passed, 0 failed, 32 ignored. I do not know the cause of the one abort.
  • The two addresses and instructions above are from runs of the retail title of #505 on this machine and from its code bytes.

Regression run

main:

xcl-smoke v1
commit: 078358a058f7ba5d16690dba8dc4e55d2c88ae0a
gpu: NVIDIA GeForce RTX 4080 SUPER
title: ea3b5e4d
seconds: 60
exit: 0x0
frames shown: 1647 (PresentX 1647)
presents per 2 s (last 3): 60 60 61
device removals: 0
crashes: 0
peak commit: 15229 MB

this PR:

xcl-smoke v1
commit: 05d03e36af1d7bae5e87391a9a84b256b1ff0749
gpu: NVIDIA GeForce RTX 4080 SUPER
title: ea3b5e4d
seconds: 60
exit: 0x0
frames shown: 1641 (PresentX 1641)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15797 MB

Not tested

  • A crash line written by this change in a real run on this machine: neither 60 s run reaches the title's world load, where it ends itself. A tester's run of the first version under Wine showed the line (see the comments); it was not repeated on this head.
  • The filter with a raised exception: the tests cover the instruction match and the decision the filter makes (access, target, title image), not the path through the OS.
  • AMD and Intel GPUs; Wine; a release build of the test suite.

AI use

  • Claude Code with Claude Opus 5.5: read the title's code at the two addresses, wrote the first version, its test and description.
  • Claude Code with Claude Fable 5.2: the rebase, the title-image check and its test, this description; it ran the test suite and both regression runs on my PC.
<!-- greyfinch-sync:ivall/xcl:issue:5470982483 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1062). Originally posted by [papasmurph0](https://github.com/papasmurph0) on 2026-11-24T11:08:24Z. --- Part of #505; the stop of #746 is the second of the two below. Titles end themselves on purpose with `mov dword ptr [0], imm32`. XCL's line for the unhandled exception showed only `write at address 0x0`, which reads like a bug in XCL. The retail title of #505 does it twice: - its GPU watchdog ("GPU Loc Sig") at `+0x23cf683` writes `0x4d8bd421`; - when the watchdog's function returns, its thread's exit path at `+0x2215c35` writes `0` (#746). Read from the title's code: the watchdog function reports the stall, then reaches the write on both of its paths; after the write it only returns (`add rsp, 0x48; ret`). The thread procedure that called it calls an optional hook, then writes 0 to address 0. The crash line now ends with `– the title's own deliberate crash: mov dword ptr [0], <tag>` when the faulting instruction is that one and lies in a title's image. The same bytes in any other module (XCL's own code, a system DLL) keep the plain line. Nothing else changes. **What is in it** - `crates/xcl/src/eh.rs`: `deliberate_null_write` (the instruction's tag), `deliberate_crash_tag` (a write to address 0 by that instruction inside a mapped title image, asked of `modules::image_base_for_addr`) and its use in `unhandled_filter`. Tests: `a_write_of_a_tag_to_address_0_is_named_a_deliberate_crash`, `only_a_title_image_s_write_to_address_0_is_named_a_deliberate_crash`. **Changed since the first version (`0117b92`)** - Rebased onto `main` `078358a`; still one commit. - The label is added only for an instruction inside a title's image. The merge-check of 2026-12-02 showed the first version named the title for an address in a host module; the second test covers that case (host-owned memory, then the same memory as a title image, a read, a write elsewhere, another instruction). - `code_at` has its doc comment back (noted in three reviews). **Tested** - NVIDIA GeForce RTX 4080 SUPER (driver 32.0.16.1088), Ryzen 7 7800X3D, Windows 11 build 26200, rustc 1.98.1 MSVC, DXC 1.8.2502.11, debug. - `cargo test --workspace --no-fail-fast -- --test-threads=4` (`XCL_DXC_DIR` set) on head `05d03e3`: 3008 passed, 0 failed, 52 ignored. SKIPPED: 22 lines with "no wave64" (among them `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`), and `heap_window_out_of_memory_falls_back_to_the_switch_form`, `two_pass_binds_set_the_shared_view_heap` (no heap windows). - A first run of the same command on the same tree did not complete: the library's test program ended with `0xc0000005` after about 88 tests, and in that run `test_title_draws_with_a_root_signature_under_the_debug_layer` failed. Neither repeated: the library tests alone then passed twice (2856 passed, 0 failed, 32 ignored), that test passed alone, and the complete run above is clean. On `main` `078358a` the library tests alone: 2854 passed, 0 failed, 32 ignored. I do not know the cause of the one abort. - The two addresses and instructions above are from runs of the retail title of #505 on this machine and from its code bytes. **Regression run** main: ``` xcl-smoke v1 commit: 078358a058f7ba5d16690dba8dc4e55d2c88ae0a gpu: NVIDIA GeForce RTX 4080 SUPER title: ea3b5e4d seconds: 60 exit: 0x0 frames shown: 1647 (PresentX 1647) presents per 2 s (last 3): 60 60 61 device removals: 0 crashes: 0 peak commit: 15229 MB ``` this PR: ``` xcl-smoke v1 commit: 05d03e36af1d7bae5e87391a9a84b256b1ff0749 gpu: NVIDIA GeForce RTX 4080 SUPER title: ea3b5e4d seconds: 60 exit: 0x0 frames shown: 1641 (PresentX 1641) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15797 MB ``` **Not tested** - A crash line written by this change in a real run on this machine: neither 60 s run reaches the title's world load, where it ends itself. A tester's run of the first version under Wine showed the line (see the comments); it was not repeated on this head. - The filter with a raised exception: the tests cover the instruction match and the decision the filter makes (access, target, title image), not the path through the OS. - AMD and Intel GPUs; Wine; a release build of the test suite. **AI use** - Claude Code with Claude Opus 5.5: read the title's code at the two addresses, wrote the first version, its test and description. - Claude Code with Claude Fable 5.2: the rebase, the title-image check and its test, this description; it ran the test suite and both regression runs on my PC.
futurepro62 commented 2026-11-24 15:05:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T14:25:01Z.


Full-suite run, since this PR has no test report yet. Tested exact head 0117b92 (on its base 384f7f7).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 738 passed, 0 failed, 41 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • The new tests ran and passed: a_write_of_a_tag_to_address_0_is_named_a_deliberate_crash.

Not tested

  • AMD, a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7134338383 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1062#issuecomment-7134338383). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-24T14:25:01Z. --- Full-suite run, since this PR has no test report yet. Tested exact head `0117b92` (on its base `384f7f7`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4`: **738 passed, 0 failed, 41 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - The new tests ran and passed: `a_write_of_a_tag_to_address_0_is_named_a_deliberate_crash`. **Not tested** - AMD, a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Royalflamejlh commented 2026-11-24 15:06:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Royalflamejlh on 2026-11-24T14:54:07Z.


Linux (Wine + vkd3d-proton) + NVIDIA: with 0117b92 the crash line of a run that ends at the title's GPU watchdog names it, with the tag the description gives. 1 run.

Setup: Fedora 44 (kernel 7.2.9), Wine 11.21 Staging (Wayland driver), vkd3d-proton v3.1-90-g30b0eb9b with the relaxed-vtable patch from #175 and a local dxil-spirv patch. RTX 4070 12 GB (driver 615.71.09), Ryzen 9 9950X3D, 64 GB RAM. Release, cross-compiled to x86_64-pc-windows-gnu (rustc 1.98.0), XCL_NETWORK=0, XCL_PSO_PRELOAD=0. Retail title 1.0.2.1, the first-run screens completed once and no story progress, one A press at 44.8 s, 140 s asked for. 0117b92 (on main 384f7f7) with #684 (e56dbc3) merged in, because main alone faults in copy_from before the watchdog.

Tested

  • cargo test --release -p xcl --lib a_write_of_a_tag under Wine, on the merge: 1 passed, 0 failed.

Presents stopped at 102 s and the title ended itself at 130.6 s:

[  130.633] unhandled exception 0xc0000005 in game+0x23cf683 (write at address 0x0) – the title's own deliberate crash: mov dword ptr [0], 0x4d8bd421 rax=0x0 rbx=0x0 …; on the stack: kernelbase.dll+0x663ac, game+0x4e4ba89, game+0x2215c35, game+0x71b9a20, game+0x2215eca, kernel32.dll+0x11709

The same stop without this change reads … (write at address 0x0) rax=0x0 … (the base runs of our reports on #684 and #899).

Read

  • eh.rs:276 (deliberate_null_write, used at :82) matches only C7 04 25 00 00 00 00 imm32, and the text is added after (write at address 0x0) and before the registers, so a tool that reads the module and offset from the start of the line still finds them. Ours did.
  • The second write the description names, 0 at +0x2215c35, did not come in this run: the process ended on the first. +0x2215c35 is on the stack of the line above, as the description says of the thread procedure.

Not tested: the stop of #746 at +0x2215c35; the rest of the test suite.

AI use: Claude Code (Claude Fable 5.2) read the diff, built the tree, ran the title once and wrote this note.

<!-- greyfinch-sync:ivall/xcl:comment:7135134131 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1062#issuecomment-7135134131). Originally posted by [Royalflamejlh](https://github.com/Royalflamejlh) on 2026-11-24T14:54:07Z. --- Linux (Wine + vkd3d-proton) + NVIDIA: with `0117b92` the crash line of a run that ends at the title's GPU watchdog names it, with the tag the description gives. 1 run. **Setup:** Fedora 44 (kernel 7.2.9), Wine 11.21 Staging (Wayland driver), vkd3d-proton v3.1-90-g30b0eb9b with the relaxed-vtable patch from #175 and a local dxil-spirv patch. RTX 4070 12 GB (driver 615.71.09), Ryzen 9 9950X3D, 64 GB RAM. Release, cross-compiled to `x86_64-pc-windows-gnu` (rustc 1.98.0), `XCL_NETWORK=0`, `XCL_PSO_PRELOAD=0`. Retail title 1.0.2.1, the first-run screens completed once and no story progress, one A press at 44.8 s, 140 s asked for. `0117b92` (on `main` `384f7f7`) with #684 (`e56dbc3`) merged in, because `main` alone faults in `copy_from` before the watchdog. **Tested** - `cargo test --release -p xcl --lib a_write_of_a_tag` under Wine, on the merge: 1 passed, 0 failed. Presents stopped at 102 s and the title ended itself at 130.6 s: ``` [ 130.633] unhandled exception 0xc0000005 in game+0x23cf683 (write at address 0x0) – the title's own deliberate crash: mov dword ptr [0], 0x4d8bd421 rax=0x0 rbx=0x0 …; on the stack: kernelbase.dll+0x663ac, game+0x4e4ba89, game+0x2215c35, game+0x71b9a20, game+0x2215eca, kernel32.dll+0x11709 ``` The same stop without this change reads `… (write at address 0x0) rax=0x0 …` (the base runs of our reports on #684 and #899). **Read** - `eh.rs:276` (`deliberate_null_write`, used at `:82`) matches only `C7 04 25 00 00 00 00 imm32`, and the text is added after `(write at address 0x0)` and before the registers, so a tool that reads the module and offset from the start of the line still finds them. Ours did. - The second write the description names, 0 at `+0x2215c35`, did not come in this run: the process ended on the first. `+0x2215c35` is on the stack of the line above, as the description says of the thread procedure. **Not tested:** the stop of #746 at `+0x2215c35`; the rest of the test suite. **AI use:** Claude Code (Claude Fable 5.2) read the diff, built the tree, ran the title once and wrote this note.
DavidM1911 commented 2026-11-25 09:08:24 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T09:04:40Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7157843631 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1062#issuecomment-7157843631). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T09:04:40Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
oni-swr commented 2026-11-25 19:09:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by oni-swr on 2026-11-25T18:54:53Z.


AMD RDNA3 full-suite run on exact head 0117b92 (0117b92df882ded62dda4060a4f0444499ee4c2d), merged onto main 3f27770 (clean merge, local detached merge commit, nothing pushed).

Tested

  • AMD Radeon RX 7800 XT (driver 32.0.31035.1003, wave64 hardware), Ryzen 7 5700X3D, Windows 11 Pro 10.0.26200, rustc 1.100.0 MSVC, DXC from Windows SDK 10.0.26100.0, debug build.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 on the merged tree: 1356 passed, 2 failed, 46 ignored. eh::tests::a_write_of_a_tag_to_address_0_is_named_a_deliberate_crash passed.
  • The 2 failures are in main too: gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 and gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier.
  • Baseline, main 3f27770 alone, same command and machine: 1352 passed, 5 failed, 46 ignored. The 3 extra baseline failures (title_textures::placed_title_textures_share_vram_and_preserve_pixels, title_textures::transitions_apply_when_their_list_is_submitted, vram::d32s8_targets_take_their_own_size_of_video_memory) passed in this run; I did not rerun the baseline, so I can't say if they are flaky or load-dependent.
  • SKIPPED (the same set as on main): f16_programs_on_the_gpu and f32_programs_on_the_gpu (refusals for unsupported V_*_F16 forms), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).

Not tested

  • scripts/smoke.ps1 / the regression run, any retail title, a release build, other GPUs. A single run, not repeated.

AI use

  • Claude Code (Claude Sonnet 5.5) ran the tests and wrote this report; I read the logs for the counts above.
<!-- greyfinch-sync:ivall/xcl:comment:7171573603 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1062#issuecomment-7171573603). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-25T18:54:53Z. --- AMD RDNA3 full-suite run on exact head `0117b92` (`0117b92df882ded62dda4060a4f0444499ee4c2d`), merged onto `main` `3f27770` (clean merge, local detached merge commit, nothing pushed). **Tested** - AMD Radeon RX 7800 XT (driver 32.0.31035.1003, wave64 hardware), Ryzen 7 5700X3D, Windows 11 Pro 10.0.26200, rustc 1.100.0 MSVC, DXC from Windows SDK 10.0.26100.0, debug build. - `cargo test --workspace --no-fail-fast -- --test-threads=4` on the merged tree: **1356 passed, 2 failed, 46 ignored**. `eh::tests::a_write_of_a_tag_to_address_0_is_named_a_deliberate_crash` passed. - The 2 failures are in `main` too: `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` and `gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier`. - Baseline, `main` `3f27770` alone, same command and machine: 1352 passed, 5 failed, 46 ignored. The 3 extra baseline failures (`title_textures::placed_title_textures_share_vram_and_preserve_pixels`, `title_textures::transitions_apply_when_their_list_is_submitted`, `vram::d32s8_targets_take_their_own_size_of_video_memory`) passed in this run; I did not rerun the baseline, so I can't say if they are flaky or load-dependent. - SKIPPED (the same set as on `main`): `f16_programs_on_the_gpu` and `f32_programs_on_the_gpu` (refusals for unsupported V_*_F16 forms), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). **Not tested** - `scripts/smoke.ps1` / the regression run, any retail title, a release build, other GPUs. A single run, not repeated. **AI use** - Claude Code (Claude Sonnet 5.5) ran the tests and wrote this report; I read the logs for the counts above.
ClosetPie107 commented 2026-11-25 20:08:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-11-25T19:54:40Z.


Independent AMD RDNA4 / Linux (RADV, native wave64) test report for head 0117b92df882ded62dda4060a4f0444499ee4c2d (merged cleanly onto main 2898511).

Hardware & environment

  • AMD Radeon RX 9070 16 GB (RDNA4, RADV GFX1201, Mesa 26.3.1, native wave64), Ryzen 5 9600X, 30 GiB RAM, CachyOS Linux
  • Proton Experimental (experimental-11.0-20261112), vkd3d-proton master ec207194 (3.2.0) + dxil-spirv b540c8a2 + relaxed-vtable patch (-Db_ndebug=true), DXVK v3.1.1-209, DXC 1.9.2609.5, Rust x86_64-pc-windows-gnu (debug)

Unit tests (XCL_REQUIRE_GPU=wave64, XCL_DXC_DIR, VKD3D_CONFIG=ignore_shared_fence, --test-threads=1 --nocapture)

  • eh::: 7 passed, 0 failed, 0 ignored (0 skipped; includes a_write_of_a_tag_to_address_0_is_named_a_deliberate_crash)

Not tested

  • Full workspace test suite, native Windows, or a retail-title smoke pair.

AI use

  • T3 Code / Antigravity (Gemini 4 Neon) merged the PR onto main, ran the tests under Proton on this machine, and drafted this report.
<!-- greyfinch-sync:ivall/xcl:comment:7172930837 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1062#issuecomment-7172930837). Originally posted by [ClosetPie107](https://github.com/ClosetPie107) on 2026-11-25T19:54:40Z. --- Independent AMD RDNA4 / Linux (RADV, native wave64) test report for head `0117b92df882ded62dda4060a4f0444499ee4c2d` (merged cleanly onto `main` `2898511`). **Hardware & environment** - AMD Radeon RX 9070 16 GB (RDNA4, RADV GFX1201, Mesa 26.3.1, native wave64), Ryzen 5 9600X, 30 GiB RAM, CachyOS Linux - Proton Experimental (`experimental-11.0-20261112`), `vkd3d-proton` `master` `ec207194` (3.2.0) + `dxil-spirv` `b540c8a2` + relaxed-vtable patch (`-Db_ndebug=true`), DXVK `v3.1.1-209`, DXC `1.9.2609.5`, Rust `x86_64-pc-windows-gnu` (debug) **Unit tests** (`XCL_REQUIRE_GPU=wave64`, `XCL_DXC_DIR`, `VKD3D_CONFIG=ignore_shared_fence`, `--test-threads=1 --nocapture`) - `eh::`: **7 passed, 0 failed, 0 ignored** (0 skipped; includes `a_write_of_a_tag_to_address_0_is_named_a_deliberate_crash`) **Not tested** - Full workspace test suite, native Windows, or a retail-title smoke pair. **AI use** - T3 Code / Antigravity (Gemini 4 Neon) merged the PR onto `main`, ran the tests under Proton on this machine, and drafted this report.
bmjask commented 2026-11-25 21:24:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-11-25T21:24:09Z.

Review: COMMENTED


No concrete source-level defect found. Exact 11-byte matching avoids false labels and cross-page instruction reads are handled; unit and external evidence are sound. Current official Windows CI is not visible despite reported external full-suite/AMD evidence. Please refresh required CI, but I found no blocker.

<!-- greyfinch-sync:ivall/xcl:review:6065180162 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1062#pullrequestreview-6065180162). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-25T21:24:09Z. **Review:** COMMENTED --- No concrete source-level defect found. Exact 11-byte matching avoids false labels and cross-page instruction reads are handled; unit and external evidence are sound. Current official Windows CI is not visible despite reported external full-suite/AMD evidence. Please refresh required CI, but I found no blocker.
brainhay5 commented 2026-11-30 05:17:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-11-30T05:17:30Z.


merge-check claim
head: 0117b92df8

<!-- greyfinch-sync:ivall/xcl:comment:7269529223 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1062#issuecomment-7269529223). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-11-30T05:17:30Z. --- merge-check claim head: 0117b92df882ded62dda4060a4f0444499ee4c2d
brainhay5 commented 2026-11-30 05:24:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-11-30T05:24:02Z.


merge-check
base: d52ff48caa
head: 0117b92df8
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2876 passed, 2 failed, 51 ignored; 29 SKIPPED lines
failing: gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16
failing: test_title_runs_and_game_folder_is_untouched
review: automated overnight check - diff inspected for safety only (no build/CI/toolchain/script changes, no process/network/runtime-loading code); no duplicate search performed; no line-by-line code review.
performance: not assessed beyond the suite.
verdict: safe to merge
correction: this check first reported the PR as "not yet" because of a test failure that is not the PR's. The base-comparison step failed to run (test names contain a double colon, not a legal Windows filename), so an empty read was mistaken for "passes on base". gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16 fails on base d52ff48c by itself (verified separately with the same command: "assertion failed: 2D D16 resinfo clobbered v2/v3"). Verdict corrected. Apologies for the noise.
hardware / tool and model: RTX 5070 Ti 16 GB, driver 610.88 (32.0.16.1088); Ryzen 7 5800X3D, 64 GB; Windows 11 22631; OpenCode agent, DeepSeek V4.1 Flash 1017

<!-- greyfinch-sync:ivall/xcl:comment:7269631989 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1062#issuecomment-7269631989). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-11-30T05:24:02Z. --- merge-check base: d52ff48caade1f5350d513bfffd370396dadfeb6 head: 0117b92df882ded62dda4060a4f0444499ee4c2d merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2876 passed, 2 failed, 51 ignored; 29 SKIPPED lines failing: gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16 failing: test_title_runs_and_game_folder_is_untouched review: automated overnight check - diff inspected for safety only (no build/CI/toolchain/script changes, no process/network/runtime-loading code); no duplicate search performed; no line-by-line code review. performance: not assessed beyond the suite. verdict: safe to merge correction: this check first reported the PR as "not yet" because of a test failure that is not the PR's. The base-comparison step failed to run (test names contain a double colon, not a legal Windows filename), so an empty read was mistaken for "passes on base". `gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16` fails on base d52ff48c by itself (verified separately with the same command: "assertion failed: 2D D16 resinfo clobbered v2/v3"). Verdict corrected. Apologies for the noise. hardware / tool and model: RTX 5070 Ti 16 GB, driver 610.88 (32.0.16.1088); Ryzen 7 5800X3D, 64 GB; Windows 11 22631; OpenCode agent, DeepSeek V4.1 Flash 1017
thehollowedone commented 2026-11-30 07:46:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-30T07:46:14Z.


Follow-up on the #1062 test result: the D16 failure is present on current main d52ff48c and the clean #1062 merge, so it is not introduced by this PR. The fixture initializes v2/v3 and v6/v7 only in KernelState, then expects them in the output. The direct runner exports only vector registers the guest program touches; this fixture never reads those sentinels, so the result slots stay zero. Test fixture · runner export logic.

I tested a test-only correction on main: initialize the four sentinels in guest code with V_MOV_B32 literal instructions before the queries. This preserves the original register-preservation assertions and makes the values observable. The focused test failed on unmodified main (0 passed, 1 failed, 0 ignored) and passed with the candidate (1 passed, 0 failed, 0 ignored, 0 skips) on an RTX 3080 Ti (driver 621.40), Windows 11 build 26300, Rust 1.99.1 MSVC, DXC 1.8.2502.11.

cargo test -p xcl --lib gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16 -- --exact --nocapture --test-threads=1
Candidate fixture diff
@@
 fn gpu_direct_image_get_resinfo_d16() {
     let mut code = Vec::new();
+    // The direct runner exports registers touched by the program. Initialize the trailing
+    // sentinels in guest code so preservation by both queries is observable in the result.
+    for (reg, value) in [(2, 0xDEAD_BEEF), (3, 0xCAFE_BABE), (6, 0x1122_3344), (7, 0x5566_7788)] {
+        code.extend(encode("V_MOV_B32", "ENC_VOP1", &[("VDST", reg), ("SRC0", 255)], Some(value)).unwrap());
+    }
@@
     for r in &mut st.vgpr {
-        r[2] = 0xDEAD_BEEF;
-        r[3] = 0xCAFE_BABE;
-        r[6] = 0x1122_3344;
-        r[7] = 0x5566_7788;
         r[10] = 0; // mip 0

AI use: OpenAI Codex (GPT-6.2 Sol) ran the paired focused test and prepared this candidate; GPT-6.2 Astra checked the runner/register diagnosis.

<!-- greyfinch-sync:ivall/xcl:comment:7272102703 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1062#issuecomment-7272102703). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-30T07:46:14Z. --- Follow-up on the #1062 test result: the D16 failure is present on current `main` `d52ff48c` and the clean #1062 merge, so it is not introduced by this PR. The fixture initializes v2/v3 and v6/v7 only in `KernelState`, then expects them in the output. The direct runner exports only vector registers the guest program touches; this fixture never reads those sentinels, so the result slots stay zero. [Test fixture](https://github.com/xcl-dev/xcl/blob/d52ff48caade1f5350d513bfffd370396dadfeb6/crates/xcl/src/gpu/dxil/msaa_tests.rs#L306-L345) · [runner export logic](https://github.com/xcl-dev/xcl/blob/d52ff48caade1f5350d513bfffd370396dadfeb6/crates/xcl/src/gpu/dxil/kernel.rs#L1055-L1074). I tested a test-only correction on `main`: initialize the four sentinels in guest code with `V_MOV_B32` literal instructions before the queries. This preserves the original register-preservation assertions and makes the values observable. The focused test failed on unmodified `main` (0 passed, 1 failed, 0 ignored) and passed with the candidate (1 passed, 0 failed, 0 ignored, 0 skips) on an RTX 3080 Ti (driver 621.40), Windows 11 build 26300, Rust 1.99.1 MSVC, DXC 1.8.2502.11. ```text cargo test -p xcl --lib gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16 -- --exact --nocapture --test-threads=1 ``` <details> <summary>Candidate fixture diff</summary> ```diff @@ fn gpu_direct_image_get_resinfo_d16() { let mut code = Vec::new(); + // The direct runner exports registers touched by the program. Initialize the trailing + // sentinels in guest code so preservation by both queries is observable in the result. + for (reg, value) in [(2, 0xDEAD_BEEF), (3, 0xCAFE_BABE), (6, 0x1122_3344), (7, 0x5566_7788)] { + code.extend(encode("V_MOV_B32", "ENC_VOP1", &[("VDST", reg), ("SRC0", 255)], Some(value)).unwrap()); + } @@ for r in &mut st.vgpr { - r[2] = 0xDEAD_BEEF; - r[3] = 0xCAFE_BABE; - r[6] = 0x1122_3344; - r[7] = 0x5566_7788; r[10] = 0; // mip 0 ``` </details> AI use: OpenAI Codex (GPT-6.2 Sol) ran the paired focused test and prepared this candidate; GPT-6.2 Astra checked the runner/register diagnosis.
Pipodi commented 2026-11-30 08:33:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Pipodi on 2026-11-30T08:33:51Z.


merge-check claim
head: 0117b92df8

<!-- greyfinch-sync:ivall/xcl:comment:7273062382 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1062#issuecomment-7273062382). Originally posted by [Pipodi](https://github.com/Pipodi) on 2026-11-30T08:33:51Z. --- merge-check claim head: 0117b92df882ded62dda4060a4f0444499ee4c2d
Pipodi commented 2026-11-30 10:11:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Pipodi on 2026-11-30T10:11:51Z.


merge-check
base: d52ff48caa
head: 0117b92df8
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2877 passed, 1 failed, 51 ignored; failing: gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16 (also fails on main d52ff48c, fixed by #3513). New test eh::tests::a_write_of_a_tag_to_address_0_is_named_a_deliberate_crash passes. 25 SKIPPED: 21 "no wave64", plus two_pass_binds_set_the_shared_view_heap and heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows), pso_measurement_compiles_an_exact_synthetic_record (cannot disable the driver cache: Developer Mode needed).
review: read the whole diff (crates/xcl/src/eh.rs +26). No blocker. (1) eh.rs:507-513: the new fn deliberate_null_write sits between the doc comment of code_at and code_at, so code_at loses its doc line (cosmetic). (2) The raw read at eh.rs:79 is guarded by code_bytes_at(addr, 11) >= 11 (page-aware, uses the readable check), so the handler cannot fault; it runs only for a write fault at address 0 and only adds text to the crash line. (3) The test covers the byte matcher only, not the filter path. No game data in the diff.
performance: none in normal runs; the code runs only inside the unhandled-exception filter, on a crash.
verdict: safe to merge
hardware / tool and model: Claude Code, Claude Opus 5.5 (review) and Claude Sonnet 5.5 (build, tests, draft). NVIDIA RTX 4090, driver 621.40; i9-13900K; Windows 11 Pro 10.0.26300; rustc 1.100.0; debug.

<!-- greyfinch-sync:ivall/xcl:comment:7275261433 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1062#issuecomment-7275261433). Originally posted by [Pipodi](https://github.com/Pipodi) on 2026-11-30T10:11:51Z. --- merge-check base: d52ff48caade1f5350d513bfffd370396dadfeb6 head: 0117b92df882ded62dda4060a4f0444499ee4c2d merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2877 passed, 1 failed, 51 ignored; failing: gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16 (also fails on main d52ff48c, fixed by #3513). New test eh::tests::a_write_of_a_tag_to_address_0_is_named_a_deliberate_crash passes. 25 SKIPPED: 21 "no wave64", plus two_pass_binds_set_the_shared_view_heap and heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows), pso_measurement_compiles_an_exact_synthetic_record (cannot disable the driver cache: Developer Mode needed). review: read the whole diff (crates/xcl/src/eh.rs +26). No blocker. (1) eh.rs:507-513: the new fn deliberate_null_write sits between the doc comment of code_at and code_at, so code_at loses its doc line (cosmetic). (2) The raw read at eh.rs:79 is guarded by code_bytes_at(addr, 11) >= 11 (page-aware, uses the readable check), so the handler cannot fault; it runs only for a write fault at address 0 and only adds text to the crash line. (3) The test covers the byte matcher only, not the filter path. No game data in the diff. performance: none in normal runs; the code runs only inside the unhandled-exception filter, on a crash. verdict: safe to merge hardware / tool and model: Claude Code, Claude Opus 5.5 (review) and Claude Sonnet 5.5 (build, tests, draft). NVIDIA RTX 4090, driver 621.40; i9-13900K; Windows 11 Pro 10.0.26300; rustc 1.100.0; debug.
Blelle commented 2026-11-30 10:13:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Blelle on 2026-11-30T10:13:30Z.


merge-check
base: 9dfbe3ea66
head: 0117b92df8
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2878 passed, 10 failed, 51 ignored; SKIPPED: 6 (1 no heap windows opt-in XCL_HEAP_WINDOWS=1, 1 no heap windows, 1 cannot disable Windows driver cache, 3 no D3D12 debug layer / d3d12SDKLayers.dll); failing: gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 (also fails on base), gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_3 (also fails on base), gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16 (also fails on base), gpu::recomp::heap_window_tests::gpu_smem_flat_descriptor_windows_and_limits (also fails on base), gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu (also fails on base), gpu::recomp::tests::gpu_f32_compares_with_nan (also fails on base), gpu::recomp::tests::gpu_float_compares_random (also fails on base), gpu::recomp::tests::gpu_ps_readfirstlane_loop_on_a_primitive_edge_ends (also fails on base), two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs (gpu_two_pass_cache_e2e parent+child, also fails on base); eh::tests::a_write_of_a_tag_to_address_0_is_named_a_deliberate_crash passed
review: read the full diff (+26/-0 in crates/xcl/src/eh.rs) and checked #1607 plus open/merged PRs on eh.rs / #505 / #746 (no duplicate found). Matching is exact 11-byte C7 04 25 00 00 00 00 imm32 gated on ExceptionInformation[0] == 1 && ExceptionInformation[1] == 0 && code_bytes_at(addr, 11) >= 11. Minor non-blocking nit: deliberate_null_write was inserted immediately below code_at's doc comment (/// The first 16 code bytes at rip...), leaving code_at without its doc comment. Unit test covers deliberate_null_write directly rather than unhandled_filter end-to-end; no retail-game smoke run performed here.
performance: none (only runs inside unhandled_filter on an unhandled write access violation at address 0).
verdict: safe to merge
hardware / tool and model: AMD Radeon RX 9060 XT 16 GB (driver 32.0.32029.2010), AMD Ryzen 5 9600X, 32 GB RAM, Windows build 26200.9974 (25H2), rustc 1.100.1 (20ddd0171 2026-11-25) MSVC, DXC 1.9.2602.17 / Antigravity, Gemini 4 Neon

<!-- greyfinch-sync:ivall/xcl:comment:7275298926 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1062#issuecomment-7275298926). Originally posted by [Blelle](https://github.com/Blelle) on 2026-11-30T10:13:30Z. --- merge-check base: 9dfbe3ea6653a9c76ef3ea0d66187a4b5407483b head: 0117b92df882ded62dda4060a4f0444499ee4c2d merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2878 passed, 10 failed, 51 ignored; SKIPPED: 6 (1 no heap windows opt-in XCL_HEAP_WINDOWS=1, 1 no heap windows, 1 cannot disable Windows driver cache, 3 no D3D12 debug layer / d3d12SDKLayers.dll); failing: gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 (also fails on base), gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_3 (also fails on base), gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16 (also fails on base), gpu::recomp::heap_window_tests::gpu_smem_flat_descriptor_windows_and_limits (also fails on base), gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu (also fails on base), gpu::recomp::tests::gpu_f32_compares_with_nan (also fails on base), gpu::recomp::tests::gpu_float_compares_random (also fails on base), gpu::recomp::tests::gpu_ps_readfirstlane_loop_on_a_primitive_edge_ends (also fails on base), two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs (gpu_two_pass_cache_e2e parent+child, also fails on base); eh::tests::a_write_of_a_tag_to_address_0_is_named_a_deliberate_crash passed review: read the full diff (+26/-0 in crates/xcl/src/eh.rs) and checked #1607 plus open/merged PRs on eh.rs / #505 / #746 (no duplicate found). Matching is exact 11-byte `C7 04 25 00 00 00 00 imm32` gated on `ExceptionInformation[0] == 1 && ExceptionInformation[1] == 0 && code_bytes_at(addr, 11) >= 11`. Minor non-blocking nit: `deliberate_null_write` was inserted immediately below `code_at`'s doc comment (`/// The first 16 code bytes at `rip`...`), leaving `code_at` without its doc comment. Unit test covers `deliberate_null_write` directly rather than `unhandled_filter` end-to-end; no retail-game smoke run performed here. performance: none (only runs inside `unhandled_filter` on an unhandled write access violation at address 0). verdict: safe to merge hardware / tool and model: AMD Radeon RX 9060 XT 16 GB (driver 32.0.32029.2010), AMD Ryzen 5 9600X, 32 GB RAM, Windows build 26200.9974 (25H2), rustc 1.100.1 (20ddd0171 2026-11-25) MSVC, DXC 1.9.2602.17 / Antigravity, Gemini 4 Neon
Foniass commented 2026-12-01 04:43:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:43:25Z.


Triage (#1607) – head 0117b92

No open or merged PR makes the same change; main's eh.rs has nothing that names a mov dword ptr [0], imm32 write.
One small problem in eh.rs: deliberate_null_write and its doc comment are inserted between code_at's doc comment ("The first 16 code bytes at rip, as hex") and code_at. That line now documents deliberate_null_write and code_at has none. The match (C7 04 25 00000000, imm32 at bytes 7-10, read only when 11 bytes are readable) and the test are correct.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7301031381 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1062#issuecomment-7301031381). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T04:43:25Z. --- **Triage (#1607)** – head 0117b92 No open or merged PR makes the same change; main's `eh.rs` has nothing that names a `mov dword ptr [0], imm32` write. One small problem in `eh.rs`: `deliberate_null_write` and its doc comment are inserted between `code_at`'s doc comment ("The first 16 code bytes at `rip`, as hex") and `code_at`. That line now documents `deliberate_null_write` and `code_at` has none. The match (C7 04 25 00000000, imm32 at bytes 7-10, read only when 11 bytes are readable) and the test are correct. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
hackluminence commented 2026-12-02 18:14:12 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by hackluminence on 2026-12-02T18:14:12Z.


merge-check
base: 817eb1fc9f
head: 0117b92df8
merge: clean, uncommitted trial-merge tree 344db35f078a1443208b98cbfe6a6fc46b513900. git diff --cached --check passed.
build: cargo build --workspace -> ok on the merged tree. Clean main and original head also built in release mode for the retail comparison.
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 3004 passed, 1 failed, 52 ignored across 44 harnesses, exit 101. SKIPPED: 28 notices (22 no native wave64, 2 no heap windows, 3 missing D3D12 debug-layer components, 1 cannot disable the driver cache). XCL_SAMPLE_* unset. The new decoder test passed. The failing test was hle::d3d12x::vram::tests::spares_stay_out_of_dump_tracking_until_handed_out. It stopped at “spares were made for it” in vram.rs:6305. A single exact-name rerun on the merge passed, with no skip. It also passed in the complete four-thread unmodified base library run (2852 passed, 0 failed, 32 ignored). The one failing run on the merge remains unexplained.
title run: Fresh 60-second retail smoke runs on clean main and clean original head both exited 0 with zero crashes and zero device removals. No world entry or real crash-line observation confirmed. The report-writing behavior was exercised separately using synthetic records.
review: The process-wide unhandled-exception filter labels the recognized store “the title's own deliberate crash” regardless of which module owns the instruction (eh.rs:80–82 in the trial merge). A separate test fixture passed synthetic records directly to the real filter. With the reported address verified inside the native host test executable and outside all title mappings, the merged logger named that executable and still blamed the title. The read control kept its generic diagnostic. Two supplemental checks: base 2 passed, 0 failed; merge 1 passed, 1 failed. Neither ran the fixture bytes or raised an OS exception. Code review covered the full one-file +26-line diff. The decoder checks the length, encoding and little-endian tag; access type and destination are checked at the call site. The PR's unit test covers the decoder, not source attribution. A doc comment describing code_at's hex output has also moved onto the new decoder.
performance: The added work occurs during unhandled-exception reporting. No normal frame-path operations changed. The clean original head showed 281 frames and 15753 MB peak commit, versus 1443 frames and 15867 MB on current main. Frames were 19.5% of base (required >=80%) and peak commit was 99.3% (required <=125%). The original branch is 2112 main commits behind. This pair cannot isolate the cost of the logging change.
verdict: not yet: a confirmed diagnostic regression attributes a host-module write to the title. Check the instruction address against mapped title images before attributing ownership, or describe only the observed store. Add a filter-level test with a host-owned address.
hardware / tool and model: NVIDIA GeForce RTX 5060 Ti, driver 32.0.16.2101, Intel Core i5-14400, Windows 11 Enterprise build 26300, Rust 1.100.1 stable-x86_64-pc-windows-msvc, DXC 1.9 / Codex, GPT-6.2 Astra.

<!-- greyfinch-sync:ivall/xcl:comment:7354184905 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1062#issuecomment-7354184905). Originally posted by [hackluminence](https://github.com/hackluminence) on 2026-12-02T18:14:12Z. --- merge-check base: 817eb1fc9fb0763008ae5d8de1f7f586f442b51d head: 0117b92df882ded62dda4060a4f0444499ee4c2d merge: clean, uncommitted trial-merge tree 344db35f078a1443208b98cbfe6a6fc46b513900. git diff --cached --check passed. build: cargo build --workspace -> ok on the merged tree. Clean main and original head also built in release mode for the retail comparison. tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 3004 passed, 1 failed, 52 ignored across 44 harnesses, exit 101. SKIPPED: 28 notices (22 no native wave64, 2 no heap windows, 3 missing D3D12 debug-layer components, 1 cannot disable the driver cache). XCL_SAMPLE_* unset. The new decoder test passed. The failing test was hle::d3d12x::vram::tests::spares_stay_out_of_dump_tracking_until_handed_out. It stopped at “spares were made for it” in vram.rs:6305. A single exact-name rerun on the merge passed, with no skip. It also passed in the complete four-thread unmodified base library run (2852 passed, 0 failed, 32 ignored). The one failing run on the merge remains unexplained. title run: Fresh 60-second retail smoke runs on clean main and clean original head both exited 0 with zero crashes and zero device removals. No world entry or real crash-line observation confirmed. The report-writing behavior was exercised separately using synthetic records. review: The process-wide unhandled-exception filter labels the recognized store “the title's own deliberate crash” regardless of which module owns the instruction (eh.rs:80–82 in the trial merge). A separate test fixture passed synthetic records directly to the real filter. With the reported address verified inside the native host test executable and outside all title mappings, the merged logger named that executable and still blamed the title. The read control kept its generic diagnostic. Two supplemental checks: base 2 passed, 0 failed; merge 1 passed, 1 failed. Neither ran the fixture bytes or raised an OS exception. Code review covered the full one-file +26-line diff. The decoder checks the length, encoding and little-endian tag; access type and destination are checked at the call site. The PR's unit test covers the decoder, not source attribution. A doc comment describing code_at's hex output has also moved onto the new decoder. performance: The added work occurs during unhandled-exception reporting. No normal frame-path operations changed. The clean original head showed 281 frames and 15753 MB peak commit, versus 1443 frames and 15867 MB on current main. Frames were 19.5% of base (required >=80%) and peak commit was 99.3% (required <=125%). The original branch is 2112 main commits behind. This pair cannot isolate the cost of the logging change. verdict: not yet: a confirmed diagnostic regression attributes a host-module write to the title. Check the instruction address against mapped title images before attributing ownership, or describe only the observed store. Add a filter-level test with a host-owned address. hardware / tool and model: NVIDIA GeForce RTX 5060 Ti, driver 32.0.16.2101, Intel Core i5-14400, Windows 11 Enterprise build 26300, Rust 1.100.1 stable-x86_64-pc-windows-msvc, DXC 1.9 / Codex, GPT-6.2 Astra.
papasmurph0 commented 2026-12-03 00:33:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by papasmurph0 on 2026-12-03T00:33:21Z.


Thanks for the tests and the checks on this.

@hackluminence: your merge-check was right, the line named the title wherever the instruction was. Head 05d03e3 (one commit, rebased onto main 078358a) adds the label only when the faulting instruction is inside a mapped title image; the same bytes in host-owned memory keep the plain line. only_a_title_image_s_write_to_address_0_is_named_a_deliberate_crash covers host-owned memory, the same memory registered as a title image, a read, a write elsewhere and another instruction. It tests the decision the filter makes, not the filter with a raised exception; that is listed under Not tested. The frame difference in your pair came from the old base (the branch was 2,122 commits behind main); the description has a fresh pair on the rebased head: 1647 frames on main, 1641 on this head.

code_at has its doc comment back (Pipodi, Blelle and Foniass pointed it out).

The earlier reports and merge-checks were made on 0117b92. The instruction match is unchanged, so the crash line Royalflamejlh got under Wine should read the same on this head; it was not re-run.

Full suite on this head on an RTX 4080 SUPER: 3008 passed, 0 failed, 52 ignored. The details, and one first run that aborted and did not repeat, are in the description.

AI use: Claude Code (Claude Fable 5.2) made the change, ran the tests and the two regression runs, and wrote this note.

<!-- greyfinch-sync:ivall/xcl:comment:7363325683 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1062#issuecomment-7363325683). Originally posted by [papasmurph0](https://github.com/papasmurph0) on 2026-12-03T00:33:21Z. --- Thanks for the tests and the checks on this. @hackluminence: your merge-check was right, the line named the title wherever the instruction was. Head `05d03e3` (one commit, rebased onto `main` `078358a`) adds the label only when the faulting instruction is inside a mapped title image; the same bytes in host-owned memory keep the plain line. `only_a_title_image_s_write_to_address_0_is_named_a_deliberate_crash` covers host-owned memory, the same memory registered as a title image, a read, a write elsewhere and another instruction. It tests the decision the filter makes, not the filter with a raised exception; that is listed under **Not tested**. The frame difference in your pair came from the old base (the branch was 2,122 commits behind `main`); the description has a fresh pair on the rebased head: 1647 frames on `main`, 1641 on this head. `code_at` has its doc comment back (Pipodi, Blelle and Foniass pointed it out). The earlier reports and merge-checks were made on `0117b92`. The instruction match is unchanged, so the crash line Royalflamejlh got under Wine should read the same on this head; it was not re-run. Full suite on this head on an RTX 4080 SUPER: 3008 passed, 0 failed, 52 ignored. The details, and one first run that aborted and did not repeat, are in the description. AI use: Claude Code (Claude Fable 5.2) made the change, ran the tests and the two regression runs, and wrote this note.
Foniass commented 2026-12-03 00:35:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-03T00:35:28Z.


Follow-up review of 05d03e36, since 0117b92 (code reading only, not a merge-check) · no new findings

In short: Since the triage note on 0117b92, the PR was rebased and reworked. A write of a tag to address 0 is now named only when the instruction is in a title's image, through deliberate_crash_tag. The same bytes in XCL's own code or a system DLL are not named. A test covers each case. The doc-comment point from the triage is fixed, and nothing blocks it.

Checked and fine
  • Earlier finding fixed: code_at lost its doc comment. The new helpers now sit above "The first 16 code bytes at rip, as hex", which documents code_at again (eh.rs ~520).
  • deliberate_crash_tag requires a write (access == 1), target 0, an address inside a mapped title image (modules::image_base_for_addr), and 11 readable code bytes, before it reads the instruction. image_base_for_addr is lock-free (RANGES.lookup), so the crash filter takes no lock for it. The filter already uses it elsewhere (~35, ~551).
  • deliberate_null_write matches C7 04 25 00000000 imm32 and reads the tag little-endian from bytes 7-10.
  • only_a_title_image_s_write_to_address_0_is_named_a_deliberate_crash covers the bytes outside any image, inside a registered image, a read of address 0, a write elsewhere, another offset, and after unregister_mapped, and frees its memory.
  • 61 lines in eh.rs only, one commit.

Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7363364808 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1062#issuecomment-7363364808). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-03T00:35:28Z. --- **Follow-up review** of `05d03e36`, since `0117b92` (code reading only, not a merge-check) · no new findings **In short:** Since the triage note on `0117b92`, the PR was rebased and reworked. A write of a tag to address 0 is now named only when the instruction is in a title's image, through `deliberate_crash_tag`. The same bytes in XCL's own code or a system DLL are not named. A test covers each case. The doc-comment point from the triage is fixed, and nothing blocks it. <details><summary>Checked and fine</summary> - Earlier finding fixed: `code_at` lost its doc comment. The new helpers now sit above "The first 16 code bytes at `rip`, as hex", which documents `code_at` again (`eh.rs` ~520). - `deliberate_crash_tag` requires a write (`access == 1`), target 0, an address inside a mapped title image (`modules::image_base_for_addr`), and 11 readable code bytes, before it reads the instruction. `image_base_for_addr` is lock-free (`RANGES.lookup`), so the crash filter takes no lock for it. The filter already uses it elsewhere (~35, ~551). - `deliberate_null_write` matches `C7 04 25 00000000 imm32` and reads the tag little-endian from bytes 7-10. - `only_a_title_image_s_write_to_address_0_is_named_a_deliberate_crash` covers the bytes outside any image, inside a registered image, a read of address 0, a write elsewhere, another offset, and after `unregister_mapped`, and frees its memory. - 61 lines in `eh.rs` only, one commit. </details> <sub>Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.</sub>
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1062:upstream-pr/1062'
git switch 'upstream-pr/1062'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/1062'
git switch 'upstream-pr/1062'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1062'
git switch 'upstream-pr/1062'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1062'
git switch 'main'
git merge --squash 'upstream-pr/1062'
git switch 'main'
git merge --ff-only 'upstream-pr/1062'
git switch 'main'
git merge 'upstream-pr/1062'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!1055
No description provided.