Skip to content

sccache daemon wedges specific in-flight Rust compiles on the laptop (clients park at 0% CPU; daemon stays responsive) #13367

Open

Description

@dezren39

Evidence

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.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-23T14:19:59Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "archer",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions