Repository navigation
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>
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.
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 [upstream #1899] D3D12.X: forget released command queues from vram::Pages::waited #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 [upstream #1117] Recompiler: an aniso point sampler filter samples points, not linearly #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 xcl-dev/xcl#810) andpredication_e2e(Tests: predication_e2e cannot pass under vkd3d-proton: it does not predicate copies xcl-dev/xcl#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
Mirror of xcl-dev#1817 (auto-synced, do not edit).