Repository navigation
Tests: a failed copy scratch check no longer aborts the lib test binary - #1817
AlbanianReaper wants to merge 1 commit into
Conversation
a_new_list_takes_no_copy_scratch_of_an_earlier_one asserted while it held
COPY_SCRATCH. When an assert failed, the lock was poisoned; the test's
command list was then dropped during unwinding, its Release hook
(real::cl_release -> on_release -> release_copy_scratch) panicked on the
poisoned lock, and a panic there is non-unwinding, so the whole lib test
binary aborted ("thread caused non-unwinding panic. aborting.", exit
status 9). Every test result of that process was lost.
Measured under Wine 11.22 + vkd3d-proton v3.1 on an RTX 5060 Ti, where
gpu_more_atomics_sub_dword_scratch_valu hangs the GPU and the device is
removed for later tests (the fence then reads as complete, so this test's
"stays until the fence" check fails): main aborted in 2 of 2 runs; with
this change the binary runs to the end and reports the failures.
The checks are now read under the lock and asserted after it is released.
Assisted-by: Claude Code (Claude Opus 5.5)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Passes on native Windows, and the abort it fixes reproduces there too. Tested
Not tested
AI use
|
|
Adding an AMD GPU (RDNA2, native wave64) to the report above, which has none, with an NVIDIA run alongside. Tested exact head Tested
Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
PR #1817 verification on STOR-WINLABCommit Tested
Failures and skips
Not tested Forced copy-scratch assertion failure, comparison against AI use T3 Code / Codex ( |
a_new_list_takes_no_copy_scratch_of_an_earlier_oneasserted while holding theCOPY_SCRATCHlock. If one of its asserts fails, the lock is poisoned. The test's command list is then dropped while the test unwinds. Its Release hook (real::cl_release→on_release→release_copy_scratch) panics on the poisoned lock, and because a panic there can't unwind, the whole lib test binary aborts ("thread caused non-unwinding panic. aborting.", exit status 9). Every other result of that process is lost. The test now reads both values under the lock and asserts after releasing it.What is in it
crates/xcl/src/hle/d3d12x/list_x.rs: only the test changes (+8 −4); no runtime code is touched.Tested
scripts/linuxfrom Linux: docs/linux.md, scripts/linux and Wine start-up checks for vkd3d-proton and DXVK (#154, #241) #257); rustc 1.100.0, release, targetx86_64-pc-windows-gnugpu_more_atomics_sub_dword_scratch_valuhangs the GPU and the device is removed (already reported in GPU test results: NVIDIA RTX 3080 (wave32) and AMD RDNA2 iGPU (no mesh shaders) #42). After that, fences read as complete, so this test's "stays until the fence" assert fails. On main the lib binary then aborted in 2 of 2 runs. With this change it runs to the end and lists the failures.cargo test --release --workspace --no-fail-fast -- --test-threads=4on809932dwith vkd3d-proton master (ec207194):device_x::tests::gpu_depth_buffer_created_for_unordered_access_is_placed, which also fails on main.gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64),pso_measurement_compiles_an_exact_synthetic_record(no Developer Mode under Wine).vram::tests::d32s8_targets_take_their_own_size_of_video_memoryandreservable_agrees_with_the_driverhang under Wine. Both wait onVRAM_TEST_LOCK, so the binary was stopped after 20 min. They hang on main too.e2e(cloaking under Wine),pls_quota(Tests: pls_quota expects ERROR_PATH_NOT_FOUND for a missing path below S:\, Wine returns ERROR_FILE_NOT_FOUND #810) andpredication_e2e(Tests: predication_e2e cannot pass under vkd3d-proton: it does not predicate copies #1272), which fail the same way on main.Regression run
scripts/linux/smoke.sh(#257) under Wine, retail title, 120 s each, fresh data folder each time. Both runs end withexit: killed. The title logs "XCL_RUN_SECONDS: 120 s – ending the title" and "process ends" at 130 s, after "D3D12 queue drain: GPU fences still pending after 10 s". After that the Wine process doesn't exit on this NVIDIA setup, even with the default 120 s grace. Main does the same, so the change doesn't cause it. Because only a test changes, could a maintainer add thetest-onlylabel?main:
PR:
Not tested
AI use
🤖 Generated with Claude Code