xcl run: a thread dump line reaches the title's frames under a deep stack #1724
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1734"
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?
Imported from ivall/xcl. Originally posted by JRamos1993 on 2026-11-24T20:02:07Z.
A thread dump line showed each thread's top 14 frames. A title thread deep in XCL, the driver or DXC had all 14 of its frames there, so its line named no title frame and read like one of XCL's own threads. Examples are a compute pipeline the thread builds in a bind, or a compile it waits for. I misread such lines in a world-load stall of the retail title in #846; my report there explains how.
The dump now unwinds up to 96 frames. When none of the top 14 is in the title's code but a deeper one is, the line adds how many frames were left out and the title's first 4 frames from there. All other lines are unchanged. Related: #846, #924.
#253 changes the same call (
unwindreads a copy of the stack there). Whichever of the two lands second needs a one-line rebase.What is in it
crates/xcl/src/eh.rs:dump_framespicks a line's frames: the topDUMP_FRAMES(14). When none of those is in the title's code, it adds… N frames …and the title's firstDUMP_TITLE_FRAMES(4) frames.dump_threadsunwindsDUMP_UNWIND(96) frames and passes them to it.modules::image_base_for_addr: the images XCL maps itself, which are the title's exe and DLLs. It takes no lock.a_dump_line_reaches_the_title_frames_under_a_deep_stackanda_dump_line_is_the_top_frames_otherwise.Tested
x86_64-pc-windows-msvc, and again withx86_64-pc-windows-gnu.x86_64-pc-windows-gnu.cargo test --workspace -- --test-threads=4ond18b275, aftercargo build --workspace: 860 passed, 0 failed, 42 ignored, the same with both toolchains. SKIPPED:gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware(no wave64),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows). Both new tests pass.XCL_NETWORK=0 XCL_PRESS_AT=25:A XCL_THREAD_DUMP_AT=88,96.… N frames …and their first title frames. Those frames were 18 to 53 frames deep.main, such threads' lines had no title frame.Regression run (60 s, no input)
main:
PR:
In these 60 s runs the title takes one of two paths, whatever the build: about 16–17 GB peak commit with ~1,600 frames, or about 25–26 GB with ~1,300 frames. Two other runs took the heavier path: a second
mainrun onc160d86(1,302 frames, 26.5 GB) and an earlier PR run onbe07955(this change with 40 frames: 1,361 frames, 25.4 GB). Without a thread dump this change does not run.Not tested
AI use
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T21:14:58Z.
Full-suite run, since this PR has no test report yet. Tested exact head
d18b275(on its basec160d86).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip pso_measurement_compiles_an_exact_synthetic_record: 859 passed, 0 failed, 42 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.a_dump_line_reaches_the_title_frames_under_a_deep_stack,a_dump_line_is_the_top_frames_otherwise.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 860 passed, 0 failed, 42 ignored. SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipon NVIDIA. Both fail on main7f7e768too, not because of this PR: underXCL_REQUIRE_GPU=mesh,runner::skip_testturns their skips into failures.heap_window_out_of_memory_falls_back_to_the_switch_formskips whenXCL_HEAP_WINDOWSis unset (#1651), andshaders::tests::pso_measurement_compiles_an_exact_synthetic_recordskips because Developer Mode is off on this PC (it cannot disable the driver cache). The AMD run does not setXCL_REQUIRE_GPU, so there both just print SKIPPED.Not tested
AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T22:37:49Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored.Thanks!
Imported from ivall/xcl. Originally posted by a-DuckGod on 2026-11-26T19:15:44Z.
Independent Windows 11 / NVIDIA test report on exact PR head
d18b27513ada669c25d3d3ea9ed386c1acea36d7(clean detached checkout; merge-basec160d86e).Tested
rustc 1.100.0 (0ef1bc386 2026-11-09)(x86_64-pc-windows-msvc), Windows SDK DXC1.8.2502.11, D3D12 debug layer installed, debug build.cargo build --workspace: succeeded.cargo test -p xcl --lib a_dump_line -- --nocapture: 2 passed, 0 failed, 0 ignored, 0 skipped (a_dump_line_reaches_the_title_frames_under_a_deep_stack,a_dump_line_is_the_top_frames_otherwise).cargo test --workspace --no-fail-fast -- --test-threads=4: 860 passed, 0 failed, 42 ignored.SKIPPEDGPU tests (3): 2no wave64(gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware), 1heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).Not tested
XCL_THREAD_DUMP_ATcapture on a retail title stall,XCL_SAMPLE_*tests, AMD / Intel / native wave64 GPUs.AI use
d18b2751(eh.rs), ran the build and tests, and drafted this report. I checked it before posting.Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T11:35:05Z.
Independent desktop NVIDIA verification of PR #1734 at head
d18b27513ada669c25d3d3ea9ed386c1acea36d7(1commit; exact parent & merge-base:c160d86ef2efe3a07e4dfb473e4fa72eafb413c0, pre-#2555ancestor ofmain).Environment
7956 MiBreported by D3D12, Wave32-only Ada), driver32.0.16.2114(NVIDIA621.14, WDDM 3.2)31.9 GiBusable), Windows 11 Home26200(Developer Mode off)rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC, DXC1.9.2609.5,--releaseTargeted tests & build (
d18b2751)cargo test --release -p xcl --lib eh:: -- --nocapture(3 consecutive runs)8 passed; 0 failed; 0 ignored; 825 filtered out× 3 (0.02s,0.02s,0.02s,0skipped; includes both newa_dump_line_reaches_the_title_frames_under_a_deep_stackanda_dump_line_is_the_top_frames_otherwisetests)cargo build --release -p xcl1m 12s, exit0,0new warnings ineh.rs)Paired quiet 60 s retail smoke (
title: 29640639)(Note:
scripts/smoke.ps1atc160d86epredates9683e7a6and printed the local folder basename ontitle:; replaced below with the standard9683e7a6title hash29640639, with all measured fields verbatim.)Exact parent & merge-base (
c160d86ef2efe3a07e4dfb473e4fa72eafb413c0, cached baseline on the same machine):PR #1734 (
d18b27513ada669c25d3d3ea9ed386c1acea36d7):Limits of coverage
8/8eh::unit tests (0skipped), including both newdump_framesdeep-stack formatting tests, passed3/3.0device removals and0crashes (no crash/hang dump was triggered during the smoke;dump_framesformatting is verified via the unit tests). Single-run frame/commit delta vs. the cached parent reflects normal startup variance.AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:37:24Z.
Triage (#1607) – head
d18b275#1811 (same author) is stacked on this PR and contains this commit unchanged plus PDB symbol names, so it is not a duplicate. Main does not have
dump_frames:dump_threadsstill unwinds 14 frames.Main has since changed
unwind's signature (unwind(&mut c.0, 14, &stack[..len])), so this needs a rebase onto the new stack-bounded unwind. No problems found in the diff.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Pull request closed