A fresh title stock buffer sometimes holds old bytes (0xEE) in the parallel victory-gpu suite #387
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 TaynanGT/Vice-Tay. Originally posted by hamdanpor-ctrl on 2026-11-27T23:24:46Z.
host::title_stock::tests::stopping_stock_keeps_issued_buffers_independent_and_mappedfails now and then in the parallelcargo test -p victory-gpu --lockedbecause a fresh title buffer is not zero:1d83085+ #382title_stock.rs:209,a.1.read_volatile()not 0fe7c6e5+ #288's difftitle_stock.rs:211,b.1.read_volatile()= 238 (0xEE), expected 0bis read before anything in the test writes it, and 0xEE is not the test's own 0xa5, sobcame back holding bytes from somewhere else. 0xEE is what some other tests write into GPU-visible memory, e.g.host/card_steps.rs:2046andhost/upcheck.rs:1362. So either a buffer fromcreate_shared_buffer(custom heap, created not resident, thenMakeResident+mapped) can come back without being zeroed after another test's buffer is released, or a write through an old mapping lands in memory that was freed and reused. The first would only matter to tests; the second would be a real bug.#288 doesn't touch
title_stock.rs, and the first failure was without it, so it is not from that PR. In 120 more runs on other trees it did not fail, so it is rare.AI-assisted (Claude Code).
Imported from TaynanGT/Vice-Tay. Originally posted by zmelumian972 on 2026-11-28T08:14:14Z.
I couldn't reproduce this on Linux, so it may be specific to the Windows driver.
Setup:
mainatfe7c6e5, CachyOS, RTX 5090, NVIDIA 620.73.04,cargo xwintest binary run under GE-Proton11-14 Wine (vkd3d-proton).victory-gpulib suite, about 60 runs. I left out threeindirect::teststhat hang under Wine.stopping_stock_keeps_issued_buffers_independent_and_mappedpassed in every run.shared_buffer, fill it with 0xEE, release it, then make a fresh one the way the stock does (fresh_title_batch(1), orshared_buffer(BYTES)withVICTORY_WAIT_RESIDENT=0). The fresh buffer's first 64 KiB were all zero in 400 of 400 tries.vkd3d-proton zeroes new allocations itself, so that zeroing hides the first explanation here. If the probe below finds dirty bytes on Windows, released shared memory comes back non-zeroed there, and only the test's assumption needs changing. If it stays clean on Windows too, a late write is the more likely cause. Put it in
host/title_stock.rs'smod tests, then runcargo test -p victory-gpu --lib probe_released -- --nocapture:Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T11:37:34Z.
Thanks for the repeated Linux runs and the fresh-buffer probe. The 400 zeroed allocations under vkd3d-proton are useful negative evidence, not proof of Windows behavior. The native Windows probe and a check for late writes should distinguish the two explanations.
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-30T17:00:43Z.
mainhas moved to a new line of the code and everything is now named Vice-Tay:vice-tay.exe play, andVICE_TAY_*switches instead ofVICTORY_*(details in #468). Could you check whether this still happens on the currentmainand say so here, with a log if you can?Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-30T20:16:22Z.
host::title_stock::tests::stopping_stock_keeps_issued_buffers_independent_and_mappedisn't in this tree -mainmoved to a different line of the code on 30 November (#468) and the title-stock work was on the old one.Leaving this open rather than closing it, because a fresh buffer holding
0xEEis the kind of thing that's about buffer reuse rather than about one test, and that could still be here under another name.If you can run your 40-pass harness against the current
cargo test -p vice-tay-gpu --locked, that would say whether it followed the code over. Reporting a 1-in-40 failure with the run counts, rather than as "flaky", is what made this readable at all.