Skip to content

rustc/llvm segfault when compiling the float-cmp crate with -Ctarget-feature=sse2 #76214

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

Closed
RazrFalcon opened this issue Sep 1, 2020 · 2 comments
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@RazrFalcon
Copy link

RazrFalcon commented Sep 1, 2020

Code

mikedilger/float-cmp@c28b1c8

Meta

rustc --version --verbose:

rustc 1.46.0 (04488afe3 2020-08-24)
binary: rustc
commit-hash: 04488afe34512aa4c33566eb16d8c912a3ae04f9
commit-date: 2020-08-24
host: x86_64-unknown-linux-gnu
release: 1.46.0
LLVM version: 10.0

Error output

> env RUSTFLAGS="-Ctarget-feature=sse2" cargo build --verbose --no-default-features --features std
   Compiling float-cmp v0.9.0-pre (/media/data/Downloads/float-cmp-master)
     Running `rustc --crate-name float_cmp --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -Cembed-bitcode=no -C debuginfo=2 --cfg 'feature="std"' -C metadata=e32f282109f55ef8 -C extra-filename=-e32f282109f55ef8 --out-dir /media/data/Downloads/float-cmp-master/target/debug/deps -C incremental=/media/data/Downloads/float-cmp-master/target/debug/incremental -L dependency=/media/data/Downloads/float-cmp-master/target/debug/deps -Ctarget-feature=sse2`
LLVM ERROR: Access past stack top!
error: could not compile `float-cmp`.

Caused by:
  process didn't exit successfully: `rustc --crate-name float_cmp --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -Cembed-bitcode=no -C debuginfo=2 --cfg 'feature="std"' -C metadata=e32f282109f55ef8 -C extra-filename=-e32f282109f55ef8 --out-dir /media/data/Downloads/float-cmp-master/target/debug/deps -C incremental=/media/data/Downloads/float-cmp-master/target/debug/incremental -L dependency=/media/data/Downloads/float-cmp-master/target/debug/deps -Ctarget-feature=sse2` (exit code: 101)

No backtrace.

Same error on rustc 1.48.0-nightly (d006f5734 2020-08-28)

-Ctarget-feature=sse2 or -Ctarget-feature=-sse2 produce an error. -Ctarget-feature=+sse2 is not.

No error on hello world app.

@RazrFalcon RazrFalcon added C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Sep 1, 2020
@jonas-schievink jonas-schievink added the A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. label Sep 1, 2020
@mati865
Copy link
Member

mati865 commented Sep 1, 2020

I think it's basically duplicate of #65844

@RazrFalcon
Copy link
Author

Thanks. Wasn't able to find it via search.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants