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

2021-03-24 nightly compiler crashes when building proc-macro-error #84026

Closed
Krysme opened this issue Apr 9, 2021 · 4 comments
Closed

2021-03-24 nightly compiler crashes when building proc-macro-error #84026

Krysme opened this issue Apr 9, 2021 · 4 comments
Labels
A-metadata Area: Crate metadata 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

@Krysme
Copy link

Krysme commented Apr 9, 2021

rustc version 07e0e2e

How it is reproduced:

OS: Ubuntu 18.04.5 LTS (it can also be reproduced on Arch Linux)
export RUSTFLAGS='-g -C target-cpu=native -Zsanitizer=address'

compile proc-macro-error (git version: a3bad9a2507f0c3b318111297ef6654acca97c37)

and then I get this error message:

thread 'rustc' panicked at 'Failed to get crate data for crate21', compiler/rustc_metadata/src/creader.rs:136:32
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.53.0-nightly (07e0e2ec2 2021-03-24) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z sanitizer=address -C embed-bitcode=no -C debuginfo=2 -C incremental -C target-cpu=native --crate-type lib

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
end of query stack
error: could not compile `proc-macro-error`

@Krysme Krysme added the C-bug Category: This is a bug. label Apr 9, 2021
@jyn514 jyn514 added A-metadata Area: Crate metadata 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 Apr 9, 2021
@jyn514
Copy link
Member

jyn514 commented Apr 9, 2021

@Krysme do you still get the same ICE with CARGO_INCREMENTAL=0?

@Krysme
Copy link
Author

Krysme commented Apr 9, 2021

@Krysme do you still get the same ICE with CARGO_INCREMENTAL=0?

Yes, with CARGO_INCREMENTAL=0 exported before cargo build the compiler still crashes.

@est31
Copy link
Member

est31 commented Jun 2, 2021

Sounds like a dupe of #85386, which itself was closed in favour of #56935.

@Enselic
Copy link
Member

Enselic commented Sep 7, 2023

Triage: No protests, so let's close as duplicate.

@Enselic Enselic closed this as not planned Won't fix, can't repro, duplicate, stale Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-metadata Area: Crate metadata 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

4 participants