Skip to content

:install-user leaves ~/.local/bin/with that dies with SIGKILL (rc 137) on later launches although its post-rename version verify passed — second occurrence #1037

Closed

Description

@ehartford

Twice now (2026-09-01 after 5655191 added the temp-sibling+rename install with verify=version, and 2026-09-04 after reseeding at 3f4e993) with build :install-user reported [install-user] … <- out/release/bin/with (verified against last-green), and minutes later ~/.local/bin/with version was killed with rc 137 (SIGKILL, the invalid-code-signature kill) while out/release/bin/with version and src/main version ran fine. codesign -dv on the installed file reads it as validly signed. Copying the release binary to a fresh temp name and mv -f over the destination fixed it immediately both times.

So the install's own verify (<dest> version after the rename, src/BuildGraphOps.w ~590-625) passed and a later exec of the same path died. Hypotheses to test with a repro loop (install, sleep, exec, repeat under log stream --predicate 'process == "kernel"' for the CODESIGNING kill line): the verify runs before the kernel's signature cache for the destination inode is updated; the rename reuses the destination's inode via an in-place write path on this filesystem; or the seed update (:update-seed, same source binary) run just before invalidates something shared. Whatever it is, :install-user must not report success while the installed executable will not launch — verify should run the destination after a short delay or after a cp-based fresh-inode write, and the recurrence should be root-caused with the kernel log rather than papered over again.

Activity

  1. ehartford commented on Oct 25, 2026

    @ehartford
    ContributorAuthor

    Triage 2026-10-25, with v0.15.3.0 (main a261b65): does not reproduce. Today's :install-user (from main a261b65) has been launched several hundred times over this triage session, by hand and by scripts, with no SIGKILL. Reopen with the failing launch's codesign -dv and the ls -li inode of ~/.local/bin/with if it recurs.

    $ ~/.local/bin/with version
    with v0.15.3.0
    
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