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

rustc panic during cargo check #77188

Closed
aruediger opened this issue Sep 25, 2020 · 3 comments
Closed

rustc panic during cargo check #77188

aruediger opened this issue Sep 25, 2020 · 3 comments
Labels
A-incr-comp Area: Incremental compilation C-bug Category: This is a bug. E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@aruediger
Copy link

I ran cargo check on a rather large workspace which crashed. After running cargo clean it worked again.

Code

can't share/minimize

Meta

rustc --version --verbose:

rustc 1.46.0 (04488afe3 2020-08-24)
binary: rustc
commit-hash: 04488afe34512aa4c33566eb16d8c912a3ae04f9
commit-date: 2020-08-24
host: x86_64-apple-darwin
release: 1.46.0
LLVM version: 10.0

Error output

thread 'rustc' panicked at 'index out of bounds: the len is 201074 but the index is 4303669', /rustc/04488afe34512aa4c33566eb16d8c912a3ae04f9/src/librustc_query_system/dep_graph/graph.rs:1110:15
Backtrace

   0:        0x116bd251e - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h24bb64d98a7e25d6
   1:        0x116c0af5c - core::fmt::write::h8fdc9cddb01cd8b2
   2:        0x116bc3659 - std::io::Write::write_fmt::hcc3030013983bab6
   3:        0x116bd6f45 - std::panicking::default_hook::{{closure}}::h95817712c5ff0736
   4:        0x116bd6c82 - std::panicking::default_hook::h34e085f4e0b1062d
   5:        0x10fc0e2a8 - rustc_driver::report_ice::hfdd22d24e7049cd8
   6:        0x116bd75fd - std::panicking::rust_panic_with_hook::haf571858f996ac45
   7:        0x116bd71a2 - rust_begin_unwind
   8:        0x116c2e21f - core::panicking::panic_fmt::h11676ba6a846d9f4
   9:        0x116c2e1e6 - core::panicking::panic_bounds_check::hcf74fad13e3ef2bb
  10:        0x11222b8b4 - rustc_query_system::dep_graph::graph::DepGraph<K>::try_mark_previous_green::h362db272e8b1d1bc
  11:        0x11222b695 - rustc_query_system::dep_graph::graph::DepGraph<K>::try_mark_previous_green::h362db272e8b1d1bc
  12:        0x11222b695 - rustc_query_system::dep_graph::graph::DepGraph<K>::try_mark_previous_green::h362db272e8b1d1bc
  13:        0x11222b695 - rustc_query_system::dep_graph::graph::DepGraph<K>::try_mark_previous_green::h362db272e8b1d1bc
  14:        0x11222b695 - rustc_query_system::dep_graph::graph::DepGraph<K>::try_mark_previous_green::h362db272e8b1d1bc
  15:        0x11222b3ce - rustc_query_system::dep_graph::graph::DepGraph<K>::try_mark_green_and_read::h28f8bbf620e97fac
  16:        0x1121d4966 - rustc_query_system::query::plumbing::ensure_query_impl::hcbfedf4515bc8619
  17:        0x1120bf954 - rustc_typeck::check::typeck_item_bodies::he8b96cfdeeb56be3
  18:        0x1122f1cc5 - rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::typeck_item_bodies>::compute::h23f57413802f3312
  19:        0x11213903a - rustc_middle::dep_graph::<impl rustc_query_system::dep_graph::DepKind for rustc_middle::dep_graph::dep_node::DepKind>::with_deps::ha1018702ca70e213
  20:        0x112227504 - rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl::haae931d56e91db0d
  21:        0x1122318a0 - rustc_data_structures::stack::ensure_sufficient_stack::hd4465b1a8c425fc1
  22:        0x1121bb5b3 - rustc_query_system::query::plumbing::get_query_impl::hbe887bcc811887c5
  23:        0x11226a564 - rustc_typeck::check_crate::h38efe851004fd758
  24:        0x10fd5d3e8 - rustc_interface::passes::analysis::ha9bb7a4b24796f8b
  25:        0x10fbf7b6a - rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::analysis>::compute::h78420953c1685a80
  26:        0x10fbf9194 - rustc_middle::dep_graph::<impl rustc_query_system::dep_graph::DepKind for rustc_middle::dep_graph::dep_node::DepKind>::with_deps::h32382a451221245f
  27:        0x10fc58064 - rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl::hd831873ea1cb9bd1
  28:        0x10fbd665d - rustc_query_system::query::plumbing::get_query_impl::h9034f3536f8e7867
  29:        0x10fbf8415 - rustc_middle::ty::context::tls::enter_global::he93ce98e5ebc4597
  30:        0x10fbcc869 - rustc_interface::queries::<impl rustc_interface::interface::Compiler>::enter::h0012ae73340d6403
  31:        0x10fc5668e - rustc_span::with_source_map::h0844cc4c4f7b7613
  32:        0x10fbcd92a - rustc_interface::interface::create_compiler_and_run::h483a0c43939b3f88
  33:        0x10fbf5839 - scoped_tls::ScopedKey<T>::set::h37546a7eac193ee1
  34:        0x10fc17d97 - std::sys_common::backtrace::__rust_begin_short_backtrace::habd480e85cc2cc75
  35:        0x10fbda5fc - core::ops::function::FnOnce::call_once{{vtable.shim}}::h292fd0e0bfb32d51
  36:        0x116be4b9d - std::sys::unix::thread::Thread::new::thread_start::hf8a0ec6cfa81ff3d
  37:     0x7fff6b01c2eb - AssociationsManager::_map
  38:     0x7fff6b01f249 - AssociationsManager::_map

@aruediger aruediger 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 Sep 25, 2020
@jonas-schievink jonas-schievink added the A-incr-comp Area: Incremental compilation label Sep 25, 2020
@wesleywiser wesleywiser added the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Nov 17, 2020
@jyn514 jyn514 added the E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example label Nov 17, 2020
@jyn514
Copy link
Member

jyn514 commented Nov 17, 2020

@2Beaucoup could you link the original repository that had the bug? Even if you don't have an MCVE, someone else might be able to come up with one.

@apiraino apiraino added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Nov 19, 2020
@pnkfelix
Copy link
Member

pnkfelix commented Dec 1, 2020

Just to expand on @jyn514 's previous comment: This is not actionable as written, and is likely to be closed as unactionable the next time someone visits it as part of bug triage (perhaps after being grouped with other similar bugs that may have related root causes based on their stack traces).

@camelid
Copy link
Member

camelid commented Dec 11, 2020

I'm going to close this: like pnkfelix said, this is not actionable. If someone runs into this and can share the code or minimized code, then we can fix it, but there's not really any way to know what the problem is here.

@camelid camelid closed this as completed Dec 11, 2020
@camelid camelid removed the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Dec 11, 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. E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. 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

7 participants