From 20de2414af449d71436628c07f4d4cc6c7f58a3f Mon Sep 17 00:00:00 2001 From: Pipodi Date: Mon, 30 Nov 2026 03:15:25 +0100 Subject: [PATCH] Tests: pso_async first-use test submits a job that builds nothing 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 53e85fb1: 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 --- crates/xcl/src/hle/d3d12x/pso_async.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/xcl/src/hle/d3d12x/pso_async.rs b/crates/xcl/src/hle/d3d12x/pso_async.rs index 6dcaaaf392..acd146c1a8 100644 --- a/crates/xcl/src/hle/d3d12x/pso_async.rs +++ b/crates/xcl/src/hle/d3d12x/pso_async.rs @@ -10157,7 +10157,8 @@ mod used_tests { fn graphics_first_use_carries_the_exact_serialized_recipe_identity() { let standin = 0x7E57_7013usize; let payload = b"canonical graphics recipe".to_vec(); - submit_lazy(standin, false, Box::new(|| 0x4332), 0x5EED_0013); + // (no pipeline: a worker that builds it ahead while it is released would Release the result) + submit_lazy(standin, false, Box::new(|| 0), 0x5EED_0013); on_first_use_graphics(standin, payload.clone()); let pending = entry(standin).unwrap(); assert_eq!(pending.manifest_recipe.load(Ordering::Acquire), super::super::gfx_records::payload_key(&payload));