Repository navigation
eh: unwind thread dump while thread is suspended - #2851
guinpereira wants to merge 1 commit into
Conversation
|
Source-review concern at The unchanged Risk, not a reproduced hang: if the stopped thread owns an allocator/lookup lock needed by those calls, the dumper can wait for a thread it will only resume after unwinding returns. Preallocating the output alone does not establish that the runtime lookup/unwind path is lock-free. An early failure/unwind also needs guaranteed resume/handle cleanup rather than relying on a later straight-line call. Our earlier Wine trace implicated Suggested owner direction: an allocation-free, bounded snapshot while suspended with unconditional resume cleanup, followed by unwinding the stable snapshot; coordinate with #253 rather than independently restoring suspend-time work. #253's fixed stack-copy/unwind bounds also have known large-frame/copy-boundary limitations, so it is not a blanket drop-in certification. Add an isolated, externally timed lock-contention/large-frame regression before enabling title dumps again. This is a static safety review, not a test failure or claim that this patch caused a GPU stall. AI-assisted review (OpenAI GPT-6 Astra). |
…w-head/xcl-dev#2850/xcl-dev#2851 triaged SKIP, probe past xcl-dev#2851)
Fixes #2689.
Unwinds while the thread is still suspended instead of after ResumeThread, avoiding the ntdll fault on a resumed thread.
What is in it
crates/xcl/src/eh.rs: unwind performed while the thread is suspended.Tested
cargo test -p xcl --lib -- --test-threads=4: 1315 passed, 4 failed (GPU OOM in dxil fuzz tests, environment), 27 ignored.cargo build -p xcl: clean.Regression run
Reference run on the author's local main (05adb5a). A run on ivall/xcl main and on this PR's head commit is still pending (cold shader cache crashes the title's startup precompile on this machine).
Not tested
AI use
OpenCode, Beam Free - drafted the change; smoke run and review by the author.