Tests: the queue slot 18 test signals a fence object that is complete (#1487) #1523
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1523
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1523/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@upipibi on GitHub · 2026-11-24 17:15 UTC · original
upipibi:tests/slot18-fake-fence→main· +33 −1 · 1 files · 1 commits · closed without mergingRefs #1487: the
0xC0000005part. The test-thread count doesn't matter; the order the tests happen to run in does.hle::d3d12x::real::queue_tests::queue_slot_18_before_the_layout_is_known_writes_8_bytesregisters a bare number,0x5EED_0000, as one of the title's fences and sends a Signal of it through queue slot #14. That Signal goes on to the title-fence bookkeeping:list_x::note_title_queue_signalputs the fence into the sync graph'stitle_fences, andfence_x::note_queue_signalinto its map. Nothing takes it out again. The nextlist_xcall that looks for cycles (break_cycles_before_title_signaland the check before a Wait64 signal) walkstitle_fencesand callsprune_title_fence. That callsGetCompletedValue()through0x5EED_0000, and the process ends withSTATUS_ACCESS_VIOLATION. With one test thread it never shows, becauselist_x's tests run beforereal's.Test-only.
What is in it
crates/xcl/src/hle/d3d12x/real.rs,queue_tests: the test's fence is a static object that lives as long as the process. ItsGetCompletedValueanswersu64::MAX, so the bookkeeping drops its signal at the first look. Its other methods returnE_NOTIMPL. The test's own checks are unchanged.Tested
NVIDIA GeForce RTX 3070, driver 616.56; Windows 11 Pro 26100; Rust 1.100.0 MSVC; debug;
mainb7aa9f3.main,cargo test -p xcl --lib -- --test-threads=32: 2 of 2 runs ended with0xc0000005. Narrowed down by running subsets: justhle::d3d12x::real::andhle::d3d12x::list_x::together crash 4 of 4 runs, and each alone passes. The smallest set is this test plus one oflist_x::tests::cross_queue_cycle_and_same_queue_fifo_do_not_deadlock/cross_queue_wait64_before_signal_does_not_deadlock_submit_thread(--exact, 32 threads): 4 of 4 crash on each pair.This head: both pairs 4 of 4 pass;
real::+list_x::4 of 4 pass. Whole library suite: 3 runs at 32 threads, 2 at 16 and 2 at the default count, with no access violation.--test-threads=1: 721 passed, 1 failed (the XAudio2 test below, while another process ran the XAudio2 tests), 21 ignored.Checked independently on AMD by GonZiin (#1523), thanks: RX 9070 XT, driver 32.0.32029.2010. The two pairs crashed in 8 of 8 runs on
b7aa9f3and passed 8 of 8 on this head;cargo test -p xcl --lib -- --test-threads=32at this head gave 722 passed, 0 failed, 21 ignored.Also on an RTX 5070 by marquezinii (#1523), thanks: with
--test-threads=32,main9e3831ehad the access violation in 9 of 10 runs, and with #1456 and this PR in 0 of 10. Their procdump of a crashed run stops inlist_x::prune_title_fence→ID3D12Fence::GetCompletedValue, reading0x5eed0000, called fromcross_queue_cycle_and_same_queue_fifo_do_not_deadlock: the path described above.RTX 5090 by Bullet18x (#1523), thanks:
--test-threads=32, 10 runs on this head with no access violation.main9e3831ehad 1 in 10, #1520's head 3 in 10.main+ #1520 + #1523 + #1590, 25 runs: none. Device removals (0x887A0006) in 5 of 45 runs on every branch, this one included, look unrelated.Still flaky after this (not fixed here)
hle::xaudio2::tests::opus_source_voice_decodes_and_manages_lifetime/xma2_source_voice_decodes_and_manages_lifetime: one of the two failed in each of the 32- and 16-thread runs above. The failing assert isSTARTED == CTX1 + CTX2: no buffer started within the test's 3 s. On this PC that is the machine, not XCL. Opening the default audio output here takes 1 to 2.5 minutes: a run ofclamped_and_silenced_buffers_accepted_by_windows_xaudio2alone passed in 151 s, against 57 ms forengine_from_the_system_dll, which opens no device. The PC has many virtual and Bluetooth outputs. Theopus_…/xma2_…tests give the voice 3 s, so they fail here even one at a time. Whether that is also what #1487's machine saw, I can't tell.readback_routing_tests::coherent_buffer_sanitizes_console_flags_and_statefailed once (16 threads) atassert_ne!(VirtualFree(mem, 0, MEM_RELEASE), 0), theleft != rightassert from #1487: fixed in #1590.Regression run
The change is test-only (all inside
real.rs's#[cfg(test)] mod queue_tests), so the release build is unchanged. The pair below is by Kalmarv (comment), thanks: RTX 5070 Ti 16 GB, driver 610.74,scripts/smoke.ps1, 60 s each,mainat this PR's merge-baseb7aa9f3, then this head. No device removal or crash in either run. Not checked in these runs: whether the fake-fence path was taken.main:
PR:
Not tested
AI use
🤖 Generated with Claude Code
@marquezinii on GitHub · 2026-11-24 18:02 UTC · original
Test report on an RTX 5070 (Blackwell, 32-lane waves): with this PR the parallel lib runs stop crashing. #1456 was applied too, see below.
Tested
xcllib test binary run directly with--test-threads=32, 10 runs per build, alternating builds:main9e3831e9e3831e+ #1456 (309b45a) + this PR (1362129), cherry-pickedb7aa9f3+ #1456) stops inlist_x::prune_title_fence→ID3D12Fence::GetCompletedValue, a read of0x5eed0000, called fromlist_x::tests::cross_queue_cycle_and_same_queue_fifo_do_not_deadlock(would_signal_close_cycle→signal_write64_pairs).readback_routing_tests::coherent_buffer_sanitizes_console_flags_and_statein 2 runs, andkernelx::tests::fine_timer_makes_short_sleeps_shortonce (Sleep(1)took the 15.6 ms tick). Themainruns that got far enough also failedcoherent_buffer_sanitizes_console_flags_and_state(4 times), as you noted.Not tested
AI use: Claude Code (Claude Opus 5.5) ran the builds and runs, read the dump and drafted this report.
@Bullet18x on GitHub · 2026-11-24 18:24 UTC · original
NVIDIA test report for head
1362129(the AMD runs so far are GonZiin's).Tested
XCL_SAMPLE_*unset.cargo test -p xcl --lib -- --test-threads=32, 10 runs on1362129: no access violation in 10. 7 runs: 722 passed, 0 failed, 21 ignored. 1 run:coherent_buffer_sanitizes_console_flags_and_statefailed onVirtualFree(the failure you list as still open; cause and fix in #1590). 2 runs: device removal 0x887A0006 (see below).9e3831e, 10 runs at 16/32 threads, 1 access violation. #1520's head6159773, 10 runs at 32 threads, 3 access violations.9e3831e+ #1520 + #1523 + #1590, 25 runs at 32/16 threads: no access violation.Not tested
Other
AI use: Claude Code with Claude Opus 5.5 ran the tests and wrote this report. I checked the results.
@DavidM1911 on GitHub · 2026-11-24 18:58 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored.Thanks!
@upipibi on GitHub · 2026-11-24 20:47 UTC · original
The
PR descriptioncheck fails because the diff is inreal.rs, but the change is test-only: it touches onlyqueue_tests(the fake fence). Could a maintainer add the test-only label, so the retail smoke check is waived as for other test-only PRs?Otherwise, a smoke pair (
mainand1362129) from anyone with the title would do it too; @eizispark and @Kalmarv have made these for our earlier PRs. Four testers have confirmed the crash fix above (RX 9070 XT, RTX 5070, RTX 5090, RTX 3060 Ti).@Kalmarv on GitHub · 2026-11-24 21:13 UTC · original
Regression pair for
1362129againstmainb7aa9f3(this PR's merge-base), for the Regression run section, as you asked. Both runs pass: no device removal, no crash, 105 % ofmain's frames, 102 % of its peak commit.Tested
scripts/smoke.ps1, the same retail title for 60 s each:mainatb7aa9f3first, then this PR's head, one after the other on the same machine.mainb7aa9f3:this PR,
1362129:Not tested
AI use: Claude Code (Claude Opus 5.5) ran the pair on this machine and wrote this; no person read the logs.
@upipibi on GitHub · 2026-11-24 21:38 UTC · original
Thanks, Kalmarv: the pair is in the description under Regression run, with credit.
@JJAutoCompare on GitHub · 2026-11-25 01:04 UTC · original
Tested
1362129345ac91609bf8048361472f3f6bd6652e, verified against the live PR after testing. Intel Arc A770 driver 32.0.101.9175, Ryzen 7 3800X, Windows 11 Enterprise Evaluation 25H2 build 26200.9974, Rust 1.100.0x86_64-pc-windows-msvc, debug. DXC 1.9.2609.5 configured viaXCL_DXC_DIR=%LOCALAPPDATA%/XclTooling/dxc-1.9.2609/bin/x64. These tests exercise D3D12 queue synchronization without shader compilation.XCL_ADAPTER=A770,CARGO_BUILD_JOBS=2,CARGO_INCREMENTAL=0, isolated target and temporary directories. The GPU companions use the Windows default D3D12 adapter, which a probe under the Arc lock identified as the A770.L:/XclTooling/Invoke-ArcTest.ps1.Not tested
Old baseline, full lib or workspace suite, retail smoke, release build, and other adapters.
AI use
Codex in T3 Code (
gpt-6.2-sol) ran the tests, checked the logs and wrote this report.@upipibi on GitHub · 2026-11-25 06:27 UTC · original
Closing in favour of #2002, which makes the same fix (a fake fence whose
GetCompletedValuereturnsu64::MAXin place of0x5EED_0000in the queue slot 18 test, #1978) and adds cleanup helpers. One copy is enough.AI-assisted (Claude Code).
Pull request closed