Presence of Homebrew GCC breaks cargo test
#84157
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
O-macos
Operating system: macOS
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Standard library crate (
cargo init --lib
) with the followinglib.rs
:Meta
The problem occurs with either of the following two configurations (possibly others; have not tested):
Error output
lldb backtrace to user code (not including stack frames for standard cargo test functions):
Details
This is on a development MacBook running macOS 10.14.6 Mojave. On a different MacBook (running Big Sur),
cargo test
produces correct output (showing a test failure), but the binary produced on the bad MacBook still aborts, showing the following error:This seems to indicate that the error is in the toolchain, not the runtime. "error 5" is _URC_END_OF_STACK from libunwind.
Possibly related: #35599
The text was updated successfully, but these errors were encountered: