this_first: a test of the stale-vtable return buffer and either argument order #260
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/263"
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 ryosen0 on 2026-11-23T22:07:00Z.
A test for
real::this_first(7a033c8) - synthetic objects only, no GPU and no title.Covers:
this, either position;a).The fake adopted object is built the way
queue_testsbuilds its fake queue (the extension vtable's word before slot 0 points at a PC table, registered inEXTS, removed after).While writing it I also ran a native MSVC x64 probe of the member-call ABI on this machine (Ryzen 7 9800X3D, Windows 11, MSVC 14.44): for a member function returning a 16-byte struct,
rcx= this andrdx= the hidden return buffer, and the compiler reuses the same stack slot for the return buffer across calls at the same stack depth - which is how a stale vtable copy ends up in it. Consistent with the crash this fixed.Tested
cargo test --workspace -- --test-threads=4: 612 passed, 0 failed, 20 ignored; plus the other suites: 13+3+1+3+2+7+1+1+2+1+6 passed, 0 failed, 4+12 ignoredgpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64)Not tested
Regression run
main (
9ab7d76):this PR's head (
130a143, no uncommitted changes):AI use
GPT-6.2 Astra (API model selector), working as the coding agent in this session: wrote the test and this description, ran the tests, the smoke runs and the native ABI probe on the machine above. The human contributor reviewed the diff and the measurements.
Imported from ivall/xcl. Originally posted by PHeitor1 on 2026-11-23T22:47:48Z.
Tested
130a143merged ontomain9ab7d76on RTX 5060 Ti 8 GB (Blackwell, 32-lane waves), NVIDIA 621.24, Ryzen 5 5600X (Zen 3), Windows 11 Pro 26300 (native), rustc 1.100.0 MSVC, debug,cargo test --workspace --no-fail-fast -- --test-threads=4, noXCL_SAMPLE_*. Baselinemain9ab7d76: 651 passed, 0 failed, 40 ignored.Pass: 652 passed, 0 failed, 40 ignored. GPU skips: the same 2 as on
main(no wave64).Run and written with Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by requiemsnkrp on 2026-11-23T23:15:57Z.
Tested
130a143on NVIDIA GeForce RTX 3060 12 GB (driver 32.0.16.1714 / 617.14, 32-lane waves), Ryzen 5 5600X, Windows 11 Pro 25H2 (26200.9974), Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17 (Windows SDK), debug: pass.Tested
cargo test --workspace -j 4 --no-fail-fast -- --test-threads=4 --skip test_title_runs_and_game_folder_is_untouched --skip test_title_draws_with_a_root_signature_under_the_debug_layer: 650 passed, 0 failed, 40 ignoredSKIPPED(no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardwarehle::d3d12x::real::this_first_tests::a_return_buffer_with_a_stale_vtable_copy_is_not_the_object ... okmain4017f8fon the same machine, same command: 650 passed, 0 failed, 40 ignored, same 2 SKIPPED. The test commit2f5979eis on9ab7d76; the head130a143is a merge ofmaininto the branch.main4017f8f(git merge-tree), the merge result was not tested.test_title_runs_and_game_folder_is_untouched,test_title_draws_with_a_root_signature_under_the_debug_layer): they open the XCL game window and this PC was in use (the 2 "filtered out").Not tested
AI use: Claude Code with Claude Opus 5.5 (ran the tests and wrote this report).