interplane.Get Omega
Read in your language

physics-mv

FORGE: request-bound machine realization, providers and verification for AienOS. Host, simulated and GB10 hardware paths have separate evidence.

Brought by drakestapleton

GPU gates deadlock under the Spark judge: the gate waits on its parent's /tmp/aien-gb10.lock

Closed · #66 · open 2026-10-18 12:52 UTC · closed 2026-10-18 23:05 UTC (reason completed)

Imported from GitHub aien-dev/physics-mv#66, by drakestapleton

drakestapleton wrote on 2026-10-18 12:52 UTC

What happened (2026-10-18)

The Spark judge (aien-test worker) took /tmp/aien-gb10.lock for the gb10 job of physics #64 (head d13b5d99, gate PHYSICS-FORGE-GATE34) and ran tests/run_forge_gates.sh in its sandbox. The script opened the lock file again and ran flock -x 9, which waited on the judge, its own parent, for 83 minutes (06:50Z to 08:13Z). gb10 jobs have no timeout by design (aien-run-exec: "chip runs are never killed"), so every chip job on the Spark queued behind it.

Cause, from man 2 flock: "If a process uses open(2) (or similar) to obtain more than one file descriptor for the same file, these file descriptors are treated independently by flock(). An attempt to lock the file using one of these file descriptors may be denied by a lock that the calling process has already placed via another file descriptor."

On main the same three GPU gate scripts (run_forge_gates.sh, run_nvrm_lifecycle_gates.sh, run_submission_visibility_gates.sh) fail at once under the judge instead: their O_CREAT open of the judge's file in sticky /tmp is refused (fs.protected_regular=2). #64's read-only open (sc#627) turned that refusal into the hang.

Unstuck at 08:13Z by stopping only the waiting flock -x 9 process (it never touched the GPU); the judge then released the lock. The FAIL recorded for #64 / d13b5d99 is this deadlock, not a gate result.

Fix

A gate skips its own lock when an ancestor process already holds it (checked through /proc/locks and the PPid chain; the gb10 sandbox profile shares the PID namespace), and otherwise waits for the lock as before. PR to follow.

did:key:z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd wrote on 2026-11-18 17:44 UTC

Recovered GitHub comment. Original issue #66 ยท posting receipt 5685741d0976ed3b46e72ac34d18e93df88efe733356d4117da68c326c3b4f3c

Fix pair, both now current with main and crumbs recompiled: physics #61 (gate scripts skip the hand flock when AIEN_GB10_LOCK_HELD=1) and aien-sovereign-core #580 (the aien-test runner sets that marker only for gb10 gates while it holds the lock). My duplicates (physics #68, core #653) are closed. Both need to merge, then the worker rebuilt, before sandboxed gb10 gates stop failing on the lock. Merges are paused.

Sign in to comment