Skip to content
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

ICE with -Zmir-opt-level=3 #52691

Closed
oli-obk opened this issue Jul 25, 2018 · 4 comments
Closed

ICE with -Zmir-opt-level=3 #52691

oli-obk opened this issue Jul 25, 2018 · 4 comments
Labels
A-MIR Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html C-bug Category: This is a bug. E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added. 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

@oli-obk
Copy link
Contributor

oli-obk commented Jul 25, 2018

trying to build aho-corasick v0.5.3 with -C opt-level=3 -Zmir-opt-level=3 ICEs:

thread 'main' panicked at 'assertion failed: lo >= filemap.original_start_pos && lo <= filemap.original_end_pos', librustc_metadata/decoder.rs:345:9
@oli-obk oli-obk added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Jul 25, 2018
@leonardo-m
Copy link

Dupe of #50411 ?

@oli-obk
Copy link
Contributor Author

oli-obk commented Jul 25, 2018

different ICE

@jonas-schievink jonas-schievink added A-MIR Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Aug 6, 2019
@osa1
Copy link
Contributor

osa1 commented Dec 7, 2019

I'm unable to reproduce this with nightly. In case I did something wrong here's the steps I took:

  • Unpack aho-corasick-0.5.3 crate
  • cargo +stage1 rustc --lib -- -Copt-level=3 -Zmir-opt-level=3 -- no panic
  • rm -rf target, add --release to the previous command -- no panic
  • rm -rf target
  • cargo +stage1 rustc --bin aho-corasick-dot -- -Copt-level=3 -Zmir-opt-level=3
  • rm -rf target, add --release to the previous command

stage 1 build with debug = true and debug_assertions = true.

@jonas-schievink jonas-schievink added the E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added. label Dec 7, 2019
@oli-obk
Copy link
Contributor Author

oli-obk commented Dec 8, 2019

I'm not even remotely sure how to write a regression test for this. It was probably fixed by one of the debuginfo PRs, which have a lot of their own tests already

@oli-obk oli-obk closed this as completed Dec 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-MIR Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html C-bug Category: This is a bug. E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added. 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

4 participants