Closed
Description
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