A fresh title stock buffer sometimes holds old bytes (0xEE) in the parallel victory-gpu suite #387
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay#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?
@hamdanpor-ctrl on GitHub · 2026-11-27 23:24 UTC · original
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).