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
:install-user placed a binary the kernel SIGKILLs on exec (exit 137) until re-placed through a fresh inode; second run clean #1599
Reseed on main 52d60d0 (2026-09-23 22:43 ET, ~/.local/with-staging/main-battery): src/main build :install-user rc=0 —
[reseed-gate] candidate checks build.w and orchestrates ':compiler-main-source' natively (28.8s, peak 1274M)
[install-user] /Users/eric/.local/bin/with <- out/release/bin/with (verified against last-green)
then ~/.local/bin/with --version died with exit 137 (SIGKILL) on every exec, while out/release/bin/with --version ran. Same bytes (shasum -a 256 identical, 866437bd…), same ad-hoc signature identifier (codesign -dv identical), only xattr com.apple.provenance. Replacing through a new inode (cp … with.new && mv -f with.new with) made it run. A second :install-user immediately after placed a working binary (inode 57921255), so it is not deterministic.
Kernel-killing an exec with identical bytes is the macOS code-signature-cache class: a signed Mach-O modified in place (same inode) is killed by AMFI until the vnode is replaced. #1371 says the .Install kind places by "temp sibling + rename + verified launch"; the log line says "verified against last-green" — whether the verify launches the placed path (not the temp) decides if this can be caught: a launch of the final path after the rename would have failed here and refused the install. Two things to check at the exact line: (1) does the placement rename onto the destination or write into the existing inode when the temp is on a different filesystem/APFS clone path; (2) does the verify exec the destination path after placement.
Not blocking (the reinstall is clean); filed so the next occurrence has the evidence.
Already fixed on main by 5655191 (src/BuildGraphOps.wbuild_graph_install_path): the only install path (the .Install kind and the :install-user fast path in src/main.w both call it) writes a pid-stamped temp sibling, chmods it, renames it onto the destination (fresh inode, never an in-place truncate of the previously-executed signed binary), then execs <dest> version — the destination path, not the temp — and compares stdout with the source's. A kill (137) on that launch triggers one retry through another fresh inode, then a loud error. The comment on the function records the AMFI per-vnode signature-cache cause. Verified while working #1438 (2026-10-02).
Activity
ehartford commentedon Oct 2, 2026
Already fixed on main by 5655191 (
src/BuildGraphOps.wbuild_graph_install_path): the only install path (the .Install kind and the:install-userfast path insrc/main.wboth call it) writes a pid-stamped temp sibling, chmods it,renames it onto the destination (fresh inode, never an in-place truncate of the previously-executed signed binary), then execs<dest> version— the destination path, not the temp — and compares stdout with the source's. A kill (137) on that launch triggers one retry through another fresh inode, then a loud error. The comment on the function records the AMFI per-vnode signature-cache cause. Verified while working #1438 (2026-10-02).