-
-
Notifications
You must be signed in to change notification settings - Fork 12.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zsh: segmentation fault cargo run
with Homebrew installation of Rust
#158957
Comments
I am able to reproduce the issue with the provided sample project. Runs fine using stable 1.75.0 from Here's the backtrace from LLDB when the Homebrew Rust-built binary crashes:
I also got this message to show up once but was unclear whether I built it with brewed Rust or
|
Seems like that it's crashing in panic handling - so a crash because of another crash. While that shouldn't happen, that panic noted here nevertheless seems likely to be the initial cause. |
It looks like segfault is impacted by optimization. I don't see a segfault with a standard debug build removing optimization options in Cargo.toml. More specifically, optimizing Rebuilding Homebrew |
Possible fix might be #159174 |
By the way, it should be noted that |
@Bo98 I can confirm that your patch resolves this issue! |
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew doctor
output" saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
I am attempting to run specifically my Rust project https://github.com/valentinegb/rubiks-cube-ai with
cargo run
on a new computer with Rust installed via Homebrew.What happened (include all command output)?
A window did not open despite being expected and the program ended early with the following output:
What did you expect to happen?
A window is expected to open displaying a 3D model of a Rubik's Cube and a grey rectangle on the right side. When the window is closed, the program ends normally. When Rust is installed as recommended on the Rust website, this is what happens.
Step-by-step reproduction instructions (by running
brew
commands)brew install rust git clone https://github.com/valentinegb/rubiks-cube-ai.git cd rubiks-cube-ai cargo run
The text was updated successfully, but these errors were encountered: