A fresh title stock buffer sometimes holds old bytes (0xEE) in the parallel victory-gpu suite #387

Open
opened 2026-11-27 23:29:47 +00:00 by github-bot · 0 comments
Owner

@⁠hamdanpor-ctrl on GitHub · 2026-11-27 23:24 UTC · original

host::title_stock::tests::stopping_stock_keeps_issued_buffers_independent_and_mapped fails now and then in the parallel cargo test -p victory-gpu --locked because a fresh title buffer is not zero:

Tree Runs Failed Where
1d83085 + #382 40 1 title_stock.rs:209, a.1.read_volatile() not 0
fe7c6e5 + #288's diff 5 1 title_stock.rs:211, b.1.read_volatile() = 238 (0xEE), expected 0

b is read before anything in the test writes it, and 0xEE is not the test's own 0xa5, so b came back holding bytes from somewhere else. 0xEE is what some other tests write into GPU-visible memory, e.g. host/card_steps.rs:2046 and host/upcheck.rs:1362. So either a buffer from create_shared_buffer (custom heap, created not resident, then MakeResident + 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.

  • PC: RTX 3050 Laptop GPU 4 GB (driver 617.42), i7-12700H, 16 GB, Windows 11 Pro; Rust 1.98.1

AI-assisted (Claude Code).

**@⁠hamdanpor-ctrl** on GitHub · 2026-11-27 23:24 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/387) `host::title_stock::tests::stopping_stock_keeps_issued_buffers_independent_and_mapped` fails now and then in the parallel `cargo test -p victory-gpu --locked` because a fresh title buffer is not zero: | Tree | Runs | Failed | Where | |---|---:|---:|---| | `1d83085` + #382 | 40 | 1 | `title_stock.rs:209`, `a.1.read_volatile()` not 0 | | `fe7c6e5` + #288's diff | 5 | 1 | `title_stock.rs:211`, `b.1.read_volatile()` = **238** (0xEE), expected 0 | `b` is read before anything in the test writes it, and 0xEE is not the test's own 0xa5, so `b` came back holding bytes from somewhere else. 0xEE is what some other tests write into GPU-visible memory, e.g. `host/card_steps.rs:2046` and `host/upcheck.rs:1362`. So either a buffer from `create_shared_buffer` (custom heap, created not resident, then `MakeResident` + `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. - PC: RTX 3050 Laptop GPU 4 GB (driver 617.42), i7-12700H, 16 GB, Windows 11 Pro; Rust 1.98.1 AI-assisted (Claude Code).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 23:29:48 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/TaynanGT--Vice-Tay#387
No description provided.