Repository navigation
Tests: pso_async first-use test submits a job that builds nothing - #3493
Conversation
graphics_first_use_carries_the_exact_serialized_recipe_identity submits a lazy pipeline whose job returns the fake pointer 0x4332 and calls released(standin) at once. If a build-ahead worker has already taken the job, released() marks the build an orphan and complete() Releases the fake result (pso_async.rs 3019-3020), which aborts the lib process: a misaligned-pointer panic in windows-core, 0xc0000409, on thread xcl-pso-ahead-N. Measured on main 53e85fb: 2 aborts in 24 runs of the hle::d3d12x subset, both on xcl-pso-ahead workers, and one of two workspace runs. It is a race and cannot be shown on demand. The job returns 0, so there is nothing for a worker to Release. The test checks the recipe identity only and does not use the pipeline value. Test-only; no runtime code changes. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
I reproduced the orphaned completion on demand in Windows Release. I merged
The single-line change is sufficient for the observed test abort. This was a focused Release test on Windows 11 25H2 (26200.9974), rustc 1.97.1 MSVC. The ordering probe itself is CPU-only. OpenAI Codex (GPT-6.2 Sol) assisted with source review and Windows verification. |
137179f to
20de241
Compare
|
Review (head 20de241, diff read, not a merge-check:
Fine: the test still checks first-use behaviour. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
|
No open or merged PR makes the same change; #3474 and #3472 fix other fake-COM test aborts, not this test. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
|
merge-check AI-written and posted by Foniass without a human check of each point. |
|
merge-check claim |
|
merge-check |
graphics_first_use_carries_the_exact_serialized_recipe_identitysubmits a lazy pipeline whose job returns the fake pointer0x4332, then releases the stand-in at once. When a build-ahead worker has already taken the job,releasedmarks the build an orphan andcompleteReleases the fake pointer (pso_async.rs3019-3020). That aborts the whole lib test process with windows-core's misaligned-pointer panic (0xc0000409, STATUS_STACK_BUFFER_OVERRUN) on axcl-pso-ahead-Nthread. On main 53e85fb it aborted 2 of 24 runs of thehle::d3d12xsubset (both onxcl-pso-aheadworkers) and 1 of 2 workspace runs.The job now returns 0, so a worker has nothing to Release (
release(0)is a no-op). The test checks only the recipe identity and never uses the pipeline value. Test-only: no runtime code changes.Related, not duplicated here: #3474 fixes
standin::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline(which fails on main and in CI), and #3472 fixes the other fake-COM abort, in thelist_xrecording-memory tests.What is in it
crates/xcl/src/hle/d3d12x/pso_async.rs: the test's job returns 0 instead of0x4332(+2 −1).Tested
cargo build --workspace -j 16 && cargo test --workspace --no-fail-fast -j 16 -- --test-threads=4: 2859 passed, 1 failed, 51 ignored; 25SKIPPEDlines. The 1 failure is main'sgpu_direct_image_get_resinfo_d16(fixed by Tests: name the trailing VGPRs in the D16 resinfo kernel test #3513); the earlierstandinfailure is gone on this base.0xc0000409abort in any run of this branch.Regression run
main:
This PR's head:
Not tested
AI use