xcl run: name a title's deliberate write of a tag to address 0 in the crash line #1062
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!1062
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1062"
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?
@papasmurph0 on GitHub · 2026-11-24 11:08 UTC · original
papasmurph0:log-deliberate-null-write→main· +26 −0 · 1 files · 1 commits · openPart 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 onlywrite at address 0x0, which reads like a bug in XCL. The retail title of #505 does it twice:+0x23cf683writes0x4d8bd421;+0x2215c35writes0(#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. Nothing else changes.What is in it
crates/xcl/src/eh.rs:deliberate_null_write(the instruction's tag) and its use inunhandled_filterfor a write at address 0. Test:a_write_of_a_tag_to_address_0_is_named_a_deliberate_crash.Tested
cargo test --release --workspace -- --test-threads=4(XCL_DXC_DIRset): 738 passed, 0 failed, 41 ignored. SKIPPED:gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64).Regression run
main:
this PR:
Not tested
main) while an offline pipeline builder held 75 GB of commit on the same machine; the pair above was made after it was stopped.AI use
https://claude.ai/code/session_01SEW8zXNUmMq1tRUZpstWXS
github-bot referenced this pull request2026-11-26 04:59:09 +00:00
@futurepro62 on GitHub · 2026-11-24 14:25 UTC · original
Full-suite run, since this PR has no test report yet. Tested exact head
0117b92(on its base384f7f7).Tested
cargo build --workspace, thenXCL_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.a_write_of_a_tag_to_address_0_is_named_a_deliberate_crash.Not tested
AI use
@Royalflamejlh on GitHub · 2026-11-24 14:54 UTC · original
Linux (Wine + vkd3d-proton) + NVIDIA: with
0117b92the 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(onmain384f7f7) with #684 (e56dbc3) merged in, becausemainalone faults incopy_frombefore the watchdog.Tested
cargo test --release -p xcl --lib a_write_of_a_tagunder Wine, on the merge: 1 passed, 0 failed.Presents stopped at 102 s and the title ended itself at 130.6 s:
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 onlyC7 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.+0x2215c35, did not come in this run: the process ended on the first.+0x2215c35is 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 on GitHub · 2026-11-25 09:04 UTC · original
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 on GitHub · 2026-11-25 18:54 UTC · original
AMD RDNA3 full-suite run on exact head
0117b92(0117b92df882ded62dda4060a4f0444499ee4c2d), merged ontomain3f27770(clean merge, local detached merge commit, nothing pushed).Tested
cargo test --workspace --no-fail-fast -- --test-threads=4on the merged tree: 1356 passed, 2 failed, 46 ignored.eh::tests::a_write_of_a_tag_to_address_0_is_named_a_deliberate_crashpassed.maintoo:gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1andgpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier.main3f27770alone, 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.main):f16_programs_on_the_gpuandf32_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
@ClosetPie107 on GitHub · 2026-11-25 19:54 UTC · original
Independent AMD RDNA4 / Linux (RADV, native wave64) test report for head
0117b92df882ded62dda4060a4f0444499ee4c2d(merged cleanly ontomain2898511).Hardware & environment
experimental-11.0-20261112),vkd3d-protonmasterec207194(3.2.0) +dxil-spirvb540c8a2+ relaxed-vtable patch (-Db_ndebug=true), DXVKv3.1.1-209, DXC1.9.2609.5, Rustx86_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; includesa_write_of_a_tag_to_address_0_is_named_a_deliberate_crash)Not tested
AI use
main, ran the tests under Proton on this machine, and drafted this report.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.