Skip to content

ICE during build of curve25519-dalek - index out of bounds #121139

Closed
@maxfunke

Description

@maxfunke

Log in CI while cargo build

Meta

rustc 1.75.0 (82e1608df 2023-12-21) running on x86_64-pc-windows-msvc

Error output

thread 'rustc' panicked at compiler\rustc_metadata\src\rmeta\decoder.rs:962:10:
index out of bounds: the len is 0 but the index is 0

note: rustc 1.75.0 (82e1608df 2023-12-21) running on x86_64-pc-windows-msvc
note: compiler flags: --crate-type rlib -C opt-level=3 -C embed-bitcode=no
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [resolver_for_lowering] getting the resolver for lowering
end of query stack
   Compiling darling_core v0.20.3
error: could not compile `curve25519-dalek` (lib)

The error is not reproducable though.

Activity

added
C-bugCategory: This is a bug.
I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
on Feb 15, 2024
added
needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.
on Feb 15, 2024
added
A-incr-compArea: Incremental compilation
S-needs-reproStatus: This issue has no reproduction and needs a reproduction to make progress.
and removed
needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.
on Feb 15, 2024
self-assigned this
on Mar 9, 2024
saethlin

saethlin commented on Mar 9, 2024

@saethlin
Member

I suspect this is another out-of-disk crash, that should hopefully be fixed by all my PRs, the last of which ships in 1.77. It's definitely not an incremental compilation issue.

saethlin

saethlin commented on Mar 27, 2024

@saethlin
Member

I think the root cause of this issue was rustc incorrectly handling/reporting I/O errors. I've landed a number of PRs to address the problem; the most recent of those is #119510 which is now part of the latest stable toolchain, 1.77. Therefore, even though I have not reproduced exactly what you've reported here, I'm going to close this because I am reasonably confident that this bug is now fixed on stable.

Of course it is possible that I am wrong and the bug you've reported here is not fixed. If you happen to run into problems like this in 1.77 or later please do not hesitate to open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️S-needs-reproStatus: This issue has no reproduction and needs a reproduction to make progress.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @maxfunke@saethlin@jieyouxu@rustbot

      Issue actions

        ICE during build of `curve25519-dalek` - index out of bounds · Issue #121139 · rust-lang/rust