You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tests: the lib test binary sometimes ends with 0xc0000005 during eh::tests::thread_dumps_while_threads_run_and_exit #3586
In full parallel suite runs, the lib test binary sometimes ends with 0xc0000005 (STATUS_ACCESS_VIOLATION) while eh::tests::thread_dumps_while_threads_run_and_exit is taking its dumps. That test came with #253, which fixed #2689. No test is named as failing, so the run looks like an unexplained crash of the whole binary. I have seen it on two trees here.
What happened
main6bfb5c5 (today): cargo test --workspace --no-fail-fast -- --test-threads=4 ended with process didn't exit successfully: ...xcl-<hash>.exe --test-threads=4 (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION).
The binary printed 8 xcl: thread dump (N threads) blocks and then ended. A passing run of the test prints 40.
The last dump lists the test's 4 churn_stack threads, deep in their recursion.
The tests running beside it were GPU tests. In today's run these were gpu::agility::tests::create_device_sets_dred_first (inside wintrust / CRYPT32, called from nvwgf2umx.dll), gpu::bvh::tests::scene_trace_matches_brute_force and gpu::dxil::compact_tests::a_large_program_that_repeats_itself_takes_the_compact_form. NVIDIA driver threads were in the process too.
What did not reproduce it
The test alone (--exact eh::tests::thread_dumps_while_threads_run_and_exit): 30 of 30 passed.
eh::tests::, gpu::agility::tests::, gpu::bvh::tests:: and gpu::dxil::compact_tests:: together at --test-threads=8: 20 of 20 passed.
The whole lib binary 3 more times on 6bfb5c5 at --test-threads=4: no access violation. One run hit the known xma2_source_voice_decodes_and_manages_lifetime assertion, and one ended at the coherent window could not be restored stop from Tests: the mixed-window remake tests run in a child process #3187.
So far that is 2 access violations in at least 13 whole-lib runs on this machine today.
Not found
I did not find the cause. The process ends without a crash message, so the faulting thread and address are unknown. #253's notes list "a dump that reads deeper than the copy" as not covered. Another candidate is a module unloading between the copy and RtlLookupFunctionEntry / RtlVirtualUnwind. A driver thread that ends after it is resumed, for example, could let its module unload. Neither has been checked.
It matters outside the tests, because XCL_THREAD_DUMP_AT and the thread dump taken when a process ends with a non-zero status both call the same dump_threads.
Hardware: RTX 3060 12 GB (610.88), Ryzen 7 5700X, Windows 11 Pro 26300, debug build.
AI use
Claude Code (Claude Opus 5.5) made the runs on the machine above, read the logs and eh.rs, and wrote this issue.
Two more sightings today, both on #1852's head (1fbdea9, which changes only gpu/dxil) merged onto main6bfb5c5. Two whole-suite runs in a row ended the lib binary with 0xc0000005, after 7 and after 5 of the test's 40 dumps. As before, gpu::agility::tests::create_device_sets_dred_first and gpu::bvh::tests::* were running beside it.
The lib binary run on its own afterwards (--test-threads=4) did not hit it: 0 of 4 runs on main, 0 of 4 on the merge. So far: 4 crashes in about 23 whole-lib runs here. All 4 came in a cargo test --workspace run, which starts the lib binary right after the build.
AI use: Claude Code (Claude Opus 5.5) made the runs and wrote this comment.
Update, 17:55 UTC: one more, on #3476's merge (sparse.rs only), after 7 dumps. Today's tally here: 5 of the 22 cargo test --workspace runs I made today ended this way, against 0 of 19 runs of the lib binary started on its own. In every crash create_device_sets_dred_first was running beside the dump test. In 3 of the 5 last dumps its stack was inside the NVIDIA driver (nvwgf2umx.dll), and in 1 of them inside wintrust / CRYPT32 too.
Update, end of day (counted from the saved logs, not from memory): 8 of the 44 cargo test --workspace runs here today ended this way, each after 5 to 10 of the 40 dumps, each with create_device_sets_dred_first beside it. The lib binary started on its own did it too, once in 20 runs (on #3475's merge, after 5 dumps). So it is not only a suite-start effect, as my earlier line suggested.
Activity
fromthemoonx commentedon Dec 1, 2026
Two more sightings today, both on #1852's head (
1fbdea9, which changes onlygpu/dxil) merged ontomain6bfb5c5. Two whole-suite runs in a row ended the lib binary with0xc0000005, after 7 and after 5 of the test's 40 dumps. As before,gpu::agility::tests::create_device_sets_dred_firstandgpu::bvh::tests::*were running beside it.The lib binary run on its own afterwards (
--test-threads=4) did not hit it: 0 of 4 runs onmain, 0 of 4 on the merge. So far: 4 crashes in about 23 whole-lib runs here. All 4 came in acargo test --workspacerun, which starts the lib binary right after the build.AI use: Claude Code (Claude Opus 5.5) made the runs and wrote this comment.
Update, 17:55 UTC: one more, on #3476's merge (
sparse.rsonly), after 7 dumps. Today's tally here: 5 of the 22cargo test --workspaceruns I made today ended this way, against 0 of 19 runs of the lib binary started on its own. In every crashcreate_device_sets_dred_firstwas running beside the dump test. In 3 of the 5 last dumps its stack was inside the NVIDIA driver (nvwgf2umx.dll), and in 1 of them insidewintrust/CRYPT32too.Update, end of day (counted from the saved logs, not from memory): 8 of the 44
cargo test --workspaceruns here today ended this way, each after 5 to 10 of the 40 dumps, each withcreate_device_sets_dred_firstbeside it. The lib binary started on its own did it too, once in 20 runs (on #3475's merge, after 5 dumps). So it is not only a suite-start effect, as my earlier line suggested.