Open
Description
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
Labels
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Category: This is a bug.Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.Operating system: macOSStatus: This is awaiting some action (such as code changes or more information) from the author.Relevant to the compiler team, which will review and decide on the PR/issue.