agc_pending_key_stores fails intermittently on the Linux CI runners (deterministic pass at the failing heads locally) #6500
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 boykopovar/AnyPS5. Originally posted by LeandroSSB on 2026-10-15T17:41:33Z.
What happens
agc_pending_key_storesfails intermittently on the Linux CI runners (lavapipe). It fails on some push runs and passes on others, across five different heads today, and passes every time in a local mirror at the exact failing heads.CI evidence (all 2026-10-15,
Buildpush runs)8b2aabf27940eba9a20c4816f61da85abc483bb409b60Runs in between passed on the same test: 13:01, 13:44, 15:53 and 16:50 (the 16:50 run is green on the tree between the 16:36 and 17:25 failures). The failures are therefore not tied to one merge.
The failing assertion is always the same, and the test aborts in ~0.06 s:
The runner log shows the same device conditions on every failure:
Vulkan device: llvmpipe (LLVM 20.1.2, 256 bits)andopen /dev/udmabuf: Permission denied(dma-buf imports keep write protection: unknown (probe failed ...); imported ranges are compared).Local mirror evidence
On a local Linux container mirror (Ubuntu 24.04, gcc 13.3, same lavapipe/llvmpipe stack,
/dev/udmabufdenied exactly as on the runner), at the exact failing head940eba9a26:The write-watch probe lines in the mirror match the runner's (
host imports resolve write protection: yes (0 of 4 scratch pages written after a GPU read, 4 after a GPU write, 0 after the import); imported ranges are compared).Reading
The test is deterministic locally at heads where CI failed, and CI passes it on other runs of the same day, so this looks like runner-side nondeterminism (timing or scheduling under the CI runners' ctest load) rather than a code regression. Filing so the intermittent red stops masking real failures in the DCC-key store area — five runs today failed on this test alone.
I do not have a reproducer beyond the CI runners themselves; happy to test any instrumented run.
AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-15T21:27:33Z.
It reproduces outside CI, on an NVIDIA GPU, with the same assertion. On lavapipe alone it did not fail here.
Machine: NVIDIA GeForce RTX 3070, driver 595.99.02, Vulkan 1.4.329, Ubuntu 26.04 (kernel 7.0.0-38), i7-8700. GCC 15.2, Release,
BUILD_TESTING=ON. Unchangedmainat44df21632. Each run is a freshctest -R "^agc_pending_key_stores$" -j1 --timeout 60 -V, and theVulkan device:lines in every log were checked.agc_pending_key_storesruns on the recorder's own device, which ignoresANYPS5_GPU(#6219). With both ICDs installed it always picks the RTX 3070. To get lavapipe I restricted the loader withVK_DRIVER_FILES=/usr/share/vulkan/icd.d/lvp_icd.json. For the/dev/udmabuf deniedrows, anLD_PRELOADshim madeopen("/dev/udmabuf")fail withEACCES. That gives the same probe line as the runner:dma-buf imports keep write protection: unknown (probe failed at open /dev/udmabuf, ...)./dev/udmabufEvery failure is
AGC graphics: a range wider than the pending fill was known, or waited for. In 60 interleaved pairs on the RTX 3070 (accessible, then denied, alternating), each side failed 5/60, so/dev/udmabufaccess makes no difference there.There is also a deterministic case. With #6225 applied (head
82b4a665f, so that the recorder honoursANYPS5_GPU),ANYPS5_GPU=llvmpipewith both ICDs installed fails 23/23 with the same assertion: 13 runs with/dev/udmabufaccessible, 10 denied. BothVulkan device:lines report llvmpipe. The same build passes 10/10 when only the lavapipe ICD is visible. The logs of the two cases are identical up to the assertion.Written with AI assistance (Claude Code). I ran the tests above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by LeandroSSB on 2026-10-15T21:40:44Z.
Root-caused by #6560, and the "runner-side nondeterminism" reading in this issue was wrong: the test cleared only the first 256 bytes of its 64 KiB block and then asked for the keys of 512 bytes, so whenever the uncleared heap bytes were not all equal the range read as mixed and the check failed. That also explains the local-mirror evidence here — the garbage happened to be uniform in that environment, so the 5/5 repeat passed while CI kept failing. A deterministic local pass at a failing head does not exonerate the code when the failure depends on uninitialized memory.
#6560 zeroes the whole block; closing this as fixed by it.
AI-assisted: yes (Claude Code)