-
Notifications
You must be signed in to change notification settings - Fork 445
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
ch6/ch6-particles does not compile on MacOS with zsh: illegal hardware instruction cargo run
#93
Comments
Hey @Nsandomeno, I ran into this as well and found that I could work around it by guarding the calls to |
Thank you, @pjstein ! I did the same. Any Idea why we ran into this? Just a little catch when using MacOS perhaps? |
Could you guys please post a snip? That'd help the newbie here :-) Thanks! |
Thanks @ckoopmann @pjstein @Nsandomeno @undavide worked like a charm |
Thanks for the solution, and this is what I found: Does the println macro allocate heap memory?. |
Just pasting the snippet here from: https://github.com/andrewhickman/logging-allocator/blob/master/src/lib.rs#L42-L57 We need to add a new function
and then use it to wrap the
|
While I was unaware of this thread, I found this from the Rust Lang repo. |
OS: MacOS
When in the root ch6-particles crate created with cargo, the following error is generated:
Oddly, the programs behaves as expected (well, without the standard output) when commenting out the
eprintln!
line.From my findings so far this appears to an OS specific issue and any suggestions would be much appreciated!
The text was updated successfully, but these errors were encountered: