Repository navigation
xcl run: name a title's deliberate write of a tag to address 0 in the crash line - #1062
papasmurph0 wants to merge 1 commit into
Conversation
… crash line 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 of XCL's own. The retail title of xcl-dev#505 does it twice: its GPU watchdog ("GPU Loc Sig") at +0x23cf683 writes 0x4d8bd421, and when that watchdog's function returns, its thread's exit path at +0x2215c35 writes 0 (the stop of xcl-dev#746). Read from the title's code: the watchdog's function reports the stall, then reaches the write on both of its paths; after the write it only returns; the thread procedure calls an optional hook and 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. Assisted-by: Claude Code (Claude Opus 5.5)
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
Linux (Wine + vkd3d-proton) + NVIDIA: with 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 Tested
Presents stopped at 102 s and the title ended itself at 130.6 s: The same stop without this change reads Read
Not tested: the stop of #746 at AI use: Claude Code (Claude Fable 5.2) read the diff, built the tree, ran the title once and wrote this note. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
Port upstream xcl-dev#1062 into the Linux crash path: deliberate_null_write + deliberate_tag_at_pc gated on SIGSEGV at address 0 with 11 readable code bytes at PC via lock-free image_range_for_addr; format_crash suffix names the title's own deliberate mov [0],tag crash. image_base_for_addr now delegates to new image_range_for_addr helper.
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 onlywrite at address 0x0, which reads like a bug in XCL. The retail title of #505 does it twice:+0x23cf683writes0x4d8bd421;+0x2215c35writes0(Deterministic null write at game_scarlett_master.exe+0x2215c35 on AMD 7900 XTX / Linux #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