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 caching DefId #49087

Closed
Michael-F-Bryan opened this issue Mar 16, 2018 · 3 comments
Closed

ICE caching DefId #49087

Michael-F-Bryan opened this issue Mar 16, 2018 · 3 comments
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ regression-from-stable-to-nightly Performance or correctness regression from stable to nightly.

Comments

@Michael-F-Bryan
Copy link

I've encountered a really annoying ICE on the latest nightly which I can't seem to reliably reproduce. It looks like there's an issue when generating IDs where we're somehow creating duplicates.

error: internal compiler error: librustc/ty/context.rs:976: tried to cache DefId(0/0:39 ~ carlogs_analysis[b4ca]::run[0]::RS[0]::LOC[0]), but was already existing as AllocId(
    1
)

I first found it on a project at work on a Windows machine but Windows doesn't print backtraces, then when I jumped onto my Linux laptop I couldn't reproduce it. Now I'm hacking on a completely different project on a Linux laptop and have encountered the same thing.

I've uploaded the full output to a gist: https://gist.github.com/Michael-F-Bryan/e8647e1e94d0754699c47dbadbe31ba7


Environment Info:

$ rustc --version
rustc 1.26.0-nightly (392645394 2018-03-15)
$ cargo --version
cargo 1.26.0-nightly (5f83bb404 2018-03-09)
@sanxiyn sanxiyn added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Mar 16, 2018
@nikomatsakis nikomatsakis added the regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. label Mar 16, 2018
@nikomatsakis
Copy link
Contributor

Duplicate of #49081, I believe. Closing in favor of that.

@nikomatsakis
Copy link
Contributor

(Thanks @Michael-F-Bryan !)

@Michael-F-Bryan
Copy link
Author

Michael-F-Bryan commented Mar 16, 2018

Yep, it looks like a dupe. Thanks for getting to the issue so quickly @nikomatsakis!

EDIT: For anyone else who comes here, the easiest workaround is to set CARGO_INCREMENTAL=0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ regression-from-stable-to-nightly Performance or correctness regression from stable to nightly.
Projects
None yet
Development

No branches or pull requests

3 participants