Skip to content

cargo test fails with fatal runtime error on stable-aarch64-apple-darwin #105988

Open
@segeljakt

Description

@segeljakt

Code

#[test]
fn test() {
    assert!(false);
}

Meta

rustc --version --verbose:

rustc 1.66.0 (69f9c33d7 2022-12-12)
binary: rustc
commit-hash: 69f9c33d71c871fc16ac445211281c6e7a340943
commit-date: 2022-12-12
host: aarch64-apple-darwin
release: 1.66.0
LLVM version: 15.0.2

Error output

helloworld ❯ RUST_BACKTRACE=1 cargo test
    Finished test [unoptimized + debuginfo] target(s) in 0.00s
     Running unittests src/main.rs (target/debug/deps/helloworld-ed0dadb8f7ac71f4)

running 1 test
fatal runtime error: failed to initiate panic, error 5
error: test failed, to rerun pass `--bin helloworld`

Caused by:
  process didn't exit successfully: `/Users/klasseg/Workspace/rust/helloworld/target/debug/deps/helloworld-ed0dadb8f7ac71f4` (signal: 6, SIGABRT: process abort signal)

No backtrace is printed.

The error is solved temporarily if I clean and rerun using:

cargo clean && env -i PATH="$HOME/.cargo/bin:/usr/bin:/bin" cargo test

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.O-macosOperating system: macOSS-waiting-on-authorStatus: This is awaiting some action (such as code changes or more information) from the author.T-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