Skip to content

1.77 produced release binaries die w/ SIGKILL on macos 14.4 #122902

Closed
@devjgm

Description

@devjgm

Setup

$ cargo new demo
     Created binary (application) `demo` package
$ cd demo/

This command works with 1.76

$ cargo +1.76 run --release
   Compiling demo v0.1.0 (/Users/greg/scratch/demo)
    Finished release [optimized] target(s) in 0.63s
     Running `target/release/demo`
Hello, world!

This command fails with SIGKILL with 1.77

$ cargo +1.77 run --release
   Compiling demo v0.1.0 (/Users/greg/scratch/demo)
    Finished release [optimized] target(s) in 0.47s
     Running `target/release/demo`
Killed: 9
$ ./target/release/demo 
Killed: 9

I expected to see this happen: I expected to see "Hello, world!" printed.

Instead, this happened: The attempt to execute target/release/demo was killed by SIGKILL.

Note: This problem only seems to happen with --release profile builds. cargo +1.77 run --profile dev works fine.

Meta

rustc --version --verbose:

$ rustc --version --verbose
rustc 1.77.0 (aedd173a2 2024-03-17)
binary: rustc
commit-hash: aedd173a2c086e558c2b66d3743b344f977621a7
commit-date: 2024-03-17
host: aarch64-apple-darwin
release: 1.77.0
LLVM version: 17.0.6

$ sw_vers 
ProductName:            macOS
ProductVersion:         14.4
BuildVersion:           23E214

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-macosOperating system: macOST-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions