Repository navigation
[upstream #1062] xcl run: name a title's deliberate write of a tag to address 0 in the crash line - #89
Closed
ufoptg wants to merge 1 commit into
Closed
[upstream #1062] xcl run: name a title's deliberate write of a tag to address 0 in the crash line#89ufoptg wants to merge 1 commit into
ufoptg 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)
Owner
Author
|
Upstream PR xcl-dev#1062 was closed or merged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of xcl-dev#505; the stop of xcl-dev#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 xcl-dev#505 does it twice:+0x23cf683writes0x4d8bd421;+0x2215c35writes0(Deterministic null write at game_scarlett_master.exe+0x2215c35 on AMD 7900 XTX / Linux xcl-dev/xcl#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
Mirror of xcl-dev#1062 (auto-synced, do not edit).