Skip to content

thread 'rustc' panicked at 'index out of bounds: the len is 68 but the index is 68' #80032

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
Mromson opened this issue Dec 14, 2020 · 4 comments
Labels
A-incr-comp Area: Incremental compilation 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

@Mromson
Copy link

Mromson commented Dec 14, 2020

Unfortunately, I am unable to reproduce this bug. It happened only once so far, the same code compiled a second time without issue...

Code

<unknown>

Meta

rustc --version --verbose:

rustc 1.48.0 (7eac88abb 2020-11-16)
binary: rustc
commit-hash: 7eac88abb2e57e752f3302f02be5f3ce3d7adfb4
commit-date: 2020-11-16
host: x86_64-pc-windows-msvc
release: 1.48.0
LLVM version: 11.0

Error output

$ cargo test -- --nocapture
   Compiling m_proj v0.0.0 (G:\mProj)
thread 'rustc' panicked at 'index out of bounds: the len is 68 but the index is 68', compiler\rustc_middle\src\ty\query\on_disk_cache.rs:706:18
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.48.0 (7eac88abb 2020-11-16) running on x86_64-pc-windows-msvc    

note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C incremental        

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

error: could not compile `m_proj`

To learn more, run the command again with --verbose.
Backtrace

<backtrace>

@Mromson Mromson 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 Dec 14, 2020
@camelid camelid added the A-incr-comp Area: Incremental compilation label Dec 14, 2020
@jyn514
Copy link
Member

jyn514 commented Dec 14, 2020

@Mromson can you provide the code the compiler panicked on? Especially without a backtrace, this isn't really actionable.

@Mromson
Copy link
Author

Mromson commented Dec 14, 2020

@jyn514 I don't think I can provide any meaningful code, as I've been unable to reproduce this issue a second time when I tried to run it again with RUST_BACKTRACE=full. All successive build/test attempts succeeded. :/ I already assumed that this bug report probably wasn't actionable, however I figured I'd report it anyways.

@tgnottingham
Copy link
Contributor

Based on the line number and version number, this is highly likely to be fixed in 1.49.0 by #76256.

@jyn514
Copy link
Member

jyn514 commented Dec 15, 2020

I think it makes sense to close this then - it's unlikely to get reproduction steps and from we can tell it's already been fixed.

@jyn514 jyn514 closed this as completed Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-incr-comp Area: Incremental compilation 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