-
Notifications
You must be signed in to change notification settings - Fork 13.4k
RUSTFLAGS="-C target-cpu=native" causes EXC_BAD_ACCESS (code=EXC_I386_GPFLT) in nightly #48613
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
Comments
NOTE: This worked fine with 1.24.0 nightly. |
I'm seeing a similar issue on recent nightly (
Possibly related: #48464 |
@rohitjoshi this seems like it's a duplicate of #48464, can you check if the output of |
|
@rohitjoshi thanks! What's the CPU model you're using? |
|
OK, this doesn't seem to be the same issue as #48464, since the recognized CPU is correct. Thanks for reporting it! |
I am also seeing hangs on any executable compiled with both lto and -target-cpu=native. The cpu selection appears to be correct:
The executable runs with 'core2', 'corei7', 'nehalem', and 'x86-64', but hangs with 'sandybridge', 'corei7-avx', and 'core-avx-i'. This is on mac:
This happened before on LLVM 5. It started between 0b17b4c and 78d8416 and was fixed by 77efd68. It started happening again on LLVM 6, sometime before 45fba43. Executables do not always hang the first time they are run. Sampling the hung program gives:
The call stack was similar when this was happening on LLVM 5. |
Rust is now using LLVM 9, is this still an issue? |
I haven't seen the problem since sometime before 9fd3d78 which was merged 2018-07-07 |
Hello,
When I use
RUSTFLAGS="-C target-cpu=native cargo build --release"
flag to build in the release mode, I am gettingEXC_BAD_ACCESS
error but if I use without this native flag,cargo build --release
, it works fine.OS:
Rust Version:
Cargo Version:
Compiler Flag to reproduce error:
Toml settings:
With target-cpu flag:
RUSTFLAGS="-C target-cpu=native cargo build --release
Without target cpu flag:
cargo build --release
The text was updated successfully, but these errors were encountered: