You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sccache daemon wedges specific in-flight Rust compiles on the laptop (clients park at 0% CPU; daemon stays responsive) #13367
On the laptop (amd), 2026-11-23 ~07:24–08:20 CST, cargo builds through the shared sccache daemon wedge on a small, reproducible set of crates: the sccache rustc client processes sleep at 0% CPU indefinitely (observed 31+ minutes) waiting on daemon sockets, while the daemon itself stays responsive — sccache --show-stats answers immediately (77,389 requests, 70.76% hit rate at the time) and standalone sccache compiles of unique content complete in ~0.2 s, both in a plain shell and inside nix develop.
Observed stuck sets, all with the same shape (cache-miss crates announced by cargo, then no progress, target-dir artifact count frozen):
Lane XB run 1 (cargo test --lib hosted, pkgs/id, worktree target): backon, axum, signature clients parked 30:49–30:54 min; deps count frozen at 1098 for 15+ min.
Lane XB run 4 (fresh cargo, same worktree): the identical front wave parked again — axum, signature, backon, syn-mid, fixedbitset, cbor-core, rand_chacha, all Sl, 0.0% CPU, 4:18 min and counting when killed.
Same window, other lanes' processes showed the identical state at the same ages: a cargo check -p id --all-targets (lane WB worktree) and a clippy build (lane VZ, /tmp/vz-clippy-target2) both had ~31-min-old parked sccache rustc clients.
Daemon facts: PID started Mon Nov 23 03:12 (no restart at the freeze window ~07:24), 100+ open sockets when inspected, disk not full (/home 94%, 219G avail). strace attach is blocked by kernel.yama.ptrace_scope=1, so the exact wait channel inside the client is unconfirmed; /proc/<pid>/wchan reads wait_woken, fds show the daemon sockets open, no child rustc — the client is waiting for a daemon reply that never arrives for these requests.
Workaround (verified)
Bypass the wrapper for the affected build: RUSTC_WRAPPER= RUSTC_WORKSPACE_WRAPPER= cargo test …. Lane XB's pkgs/id lib build then completed in ~5 minutes (deps 1098 → 2186 artifacts, tests green) after ~50 minutes wedged across three sccache attempts.
Impact / ask
Every lane doing Rust work on the laptop can silently lose its build to this wedge; the failure mode looks like a slow compile, so it burns lane time before anyone suspects the cache layer. Please diagnose the daemon-side stall for these in-flight requests (daemon log at the freeze window, per-request state) and add a guard: a client-side or daemon-side timeout that fails a wedged request loudly instead of parking the build forever.
Activity
developing-today commentedon Nov 23, 2026
CODE-4872