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
pkgs/latest-cli: t3 installCheck segfaults (t3 --version, exit 139) — blocks home-manager activation builds on amd #4884
Found 2026-11-03 while building the home-manager activation for the service-cascade migration (PR #4880) on the laptop (amd). This blocks ANY home-manager switch from current main on that machine, independent of #4880: the failing derivation's inputs (pkgs/latest-cli at c19c1d8, nixpkgs f9887a8a) are untouched by that PR.
The t3 package (pkgs/latest-cli — prebuilt upstream binary, autoPatchelf'd) segfaults on $out/bin/t3 --version in its installCheckPhase, inside the nix build sandbox.
Reproducibility
Reproduced 2/2 independent build attempts of the same derivation on amd (2026-11-03, ~05:5x and ~06:0x CST), identical failure.
Building the derivation directly (nix build /nix/store/7cx4lzd1wf3ghwrz9ajf4y9j1ilzxiin-t3-0.1.2.drv) fails the same way — it is a property of the package on this machine, not of the activation graph.
Not yet determined: whether the binary also segfaults outside the build sandbox (the failed output is discarded, so there is no built copy to run by hand), and whether the cause is the sandbox environment, the patchelf rewriting, or the upstream binary on this CPU.
The live t3 server keeps running from the older generation's build, so nothing is down — this is a deploy blocker, not an outage.
Suggested next steps
Reproduce the segfault with a kept output (--keep-failed) and run the binary under the same conditions the check does; check dmesg/core for the faulting library after patchelf.
If the binary is fine outside the sandbox, consider what installCheck actually proves for a prebuilt upstream binary and whether it should run --version differently — do not just delete the check without recording why it failed.
Diagnosis complete; fix in PR (linked). Root cause: patchelf 0.19.2's rpath rewrite corrupts the Node.js SEA binary — the failed output segfaults in ld.so's dl_main before main, in a normal shell too (not a sandbox/environment issue). Pristine upstream binary runs fine; --set-interpreter alone is safe; --add-rpath or --set-rpath both reproduce the segfault on copies of the pristine binary. Same family as #4759.
Fix: t3 drops autoPatchelfHook, gets an interpreter-only patchelf, and receives its libraries (cc.lib) via the wrapper's LD_LIBRARY_PATH. InstallCheck unchanged and passing; verified the t3 derivation inside the amd home-manager activation graph now builds valid.
Remaining activation blocker (separate, pre-existing): the repo's nodejs_24 override repack segfaults in its own installCheck the same way, failing openclaw — tracked by #2727.
agent-note:v1
state: triaged (coverage pass)
Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 30 (priority/none). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
Found via: coverage pass 2026-11-03
Expectation: Fresh check this shift: issue pkgs/latest-cli: t3 installCheck segfaults (t3 --version, exit 139) — blocks home-manager activation builds on amd #4884 is already CLOSED (2026-11-03T12:44:05Z, stateReason COMPLETED) — Drew's closing comment records the diagnosis (patchelf 0.19.2 rpath rewrite corrupts the Node.js SEA binary; segfault in ld.so dl_main, not a sandbox issue) with the fix in a linked PR. The bound session should verify and close out task 8454 as already_done.
The t3 derivation at main no longer uses autoPatchelfHook: it sets only the ELF interpreter (patchelf --set-interpreter) and provides libraries through makeWrapper ... --prefix LD_LIBRARY_PATH. installCheckPhase is unchanged and still runs t3 --version.
Built the package from the current file with the flake's pinned nixpkgs (nix build ... s.t3): /nix/store/347wmsv16vbd6gylgkilw6nbwyh54wc2-t3-0.1.2, i.e. installCheck passed. Running the result: t3 --version → t3 v0.1.2, exit 0; patchelf --print-rpath on libexec/t3/t3 prints nothing (no rpath rewrite).
Verdict: already handled at main — the 2026-11-03 closure stands, no follow-up for this package.
Ordering/blockers: none from this issue. The remaining activation blocker named in the closing comment (nodejs_24 override repack segfaulting in its own installCheck, failing openclaw) is separate and still open in #2727; no ordering dependency on #4884.
Not verified in this pass: a full home-manager activation build on amd (the package-level build above is the evidence for the fix path).
Activity
dezren39 commentedon Nov 3, 2026
Diagnosis complete; fix in PR (linked). Root cause: patchelf 0.19.2's rpath rewrite corrupts the Node.js SEA binary — the failed output segfaults in ld.so's
dl_mainbefore main, in a normal shell too (not a sandbox/environment issue). Pristine upstream binary runs fine;--set-interpreteralone is safe;--add-rpathor--set-rpathboth reproduce the segfault on copies of the pristine binary. Same family as #4759.Fix: t3 drops autoPatchelfHook, gets an interpreter-only patchelf, and receives its libraries (cc.lib) via the wrapper's LD_LIBRARY_PATH. InstallCheck unchanged and passing; verified the t3 derivation inside the amd home-manager activation graph now builds valid.
Remaining activation blocker (separate, pre-existing): the repo's nodejs_24 override repack segfaults in its own installCheck the same way, failing openclaw — tracked by #2727.
dezren39 commentedon Nov 3, 2026
agent-note:v1
state: triaged (coverage pass)
Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 30 (priority/none). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
Found via: coverage pass 2026-11-03
dezren39 commentedon Nov 3, 2026
🤖 Agent note · handed off
t3 --version, exit 139) — blocks home-manager activation builds on amd #4884 (t3 installCheck segfault) — execution lane assignedopencode; handed off to the laptop claimant (opencode-claimant), which launches the bound session that drives task 8454 to its terminal state.t3 --version, exit 139) — blocks home-manager activation builds on amd #4884 is already CLOSED (2026-11-03T12:44:05Z, stateReason COMPLETED) — Drew's closing comment records the diagnosis (patchelf 0.19.2 rpath rewrite corrupts the Node.js SEA binary; segfault in ld.so dl_main, not a sandbox issue) with the fix in a linked PR. The bound session should verify and close out task 8454 as already_done.t3 --version, exit 139) — blocks home-manager activation builds on amd #4884dezren39 commentedon Nov 3, 2026
🤖 Agent note · handed off
t3 --version, exit 139) — blocks home-manager activation builds on amd #4884ses_e5e5dc468cbffegemXhLUmJuX9repo-worker-code(bound worker uses this id for all queue helper verbs)opencode-route/workhorse, agentbuilddezren39 commentedon Nov 3, 2026
agent-note:v1
state: triaged (already done)
Queue task 8454 (repo-health-code-pilot) verified this at current main
1c1aa4a79on 2026-11-03:c7a02b6f6), andpkgs/latest-cli/default.nixat main is byte-identical to the file verified here (git diff origin/main -- pkgs/latest-cli/default.nixempty).autoPatchelfHook: it sets only the ELF interpreter (patchelf --set-interpreter) and provides libraries throughmakeWrapper ... --prefix LD_LIBRARY_PATH.installCheckPhaseis unchanged and still runst3 --version.nix build ... s.t3):/nix/store/347wmsv16vbd6gylgkilw6nbwyh54wc2-t3-0.1.2, i.e. installCheck passed. Running the result:t3 --version→t3 v0.1.2, exit 0;patchelf --print-rpathonlibexec/t3/t3prints nothing (no rpath rewrite).Verdict: already handled at main — the 2026-11-03 closure stands, no follow-up for this package.
Ordering/blockers: none from this issue. The remaining activation blocker named in the closing comment (nodejs_24 override repack segfaulting in its own installCheck, failing openclaw) is separate and still open in #2727; no ordering dependency on #4884.
Not verified in this pass: a full home-manager activation build on amd (the package-level build above is the evidence for the fix path).