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 panicked while refactoring crossbeam_channel #91994

Open
trobanga opened this issue Dec 16, 2021 · 3 comments
Open

rustc panicked while refactoring crossbeam_channel #91994

trobanga opened this issue Dec 16, 2021 · 3 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

@trobanga
Copy link

I'm refactoring some crossbeam_channel messages and I get a rustc panicked error if I run cargo test.
cargo build does not complain and cargo clean fixes the error.

I have no idea how to reproduce it and it only happens from time to time. So I've added the backtraces with =1 and =full.

I hope that helps

BACKTRACE=1
thread 'rustc' panicked at 'called Option::unwrap() on a None value', compiler/rustc_metadata/src/rmeta/def_path_hash_map.rs:18:85
stack backtrace:
0: rust_begin_unwind
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:517:5
1: core::panicking::panic_fmt
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/panicking.rs:100:14
2: core::panicking::panic
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/panicking.rs:50:5
3: rustc_metadata::rmeta::decoder::cstore_impl::::def_path_hash_to_def_id
4: <rustc_query_impl::on_disk_cache::OnDiskCache as rustc_middle::ty::context::OnDiskCache>::def_path_hash_to_def_id
5: rustc_middle::dep_graph::dep_node::<impl rustc_query_system::dep_graph::dep_node::DepNodeParams<rustc_middle::ty::context::TyCtxt> for rustc_span::def_id::DefId>::recover
6: rustc_query_system::query::plumbing::force_query
7: rustc_query_system::dep_graph::graph::DepGraph::try_mark_previous_green
8: rustc_query_system::dep_graph::graph::DepGraph::try_mark_previous_green
9: rustc_query_system::dep_graph::graph::DepGraph::try_mark_previous_green
10: rustc_query_system::query::plumbing::try_load_from_disk_and_cache_in_memory
11: rustc_query_system::query::plumbing::get_query
12: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::evaluate_obligation
13: <rustc_infer::infer::InferCtxt as rustc_trait_selection::traits::query::evaluate_obligation::InferCtxtExt>::evaluate_obligation
14: <rustc_infer::infer::InferCtxt as rustc_trait_selection::traits::query::evaluate_obligation::InferCtxtExt>::evaluate_obligation_no_overflow
15: rustc_trait_selection::traits::fulfill::FulfillProcessor::process_trait_obligation
16: rustc_trait_selection::traits::fulfill::FulfillProcessor::progress_changed_obligations
17: rustc_data_structures::obligation_forest::ObligationForest::process_obligations
18: rustc_trait_selection::traits::fulfill::FulfillmentContext::select
19: <rustc_trait_selection::traits::fulfill::FulfillmentContext as rustc_infer::traits::engine::TraitEngine>::select_all_with_constness_or_error
20: rustc_typeck::check::fn_ctxt::_impl::::select_all_obligations_or_error
21: rustc_infer::infer::InferCtxtBuilder::enter
22: rustc_typeck::check::typeck
23: rustc_query_system::dep_graph::graph::DepGraph::with_task
24: rustc_data_structures::stack::ensure_sufficient_stack
25: rustc_query_system::query::plumbing::try_execute_query
26: rustc_query_system::query::plumbing::force_query_impl
27: rustc_query_impl::query_callbacks::typeck::force_from_dep_node
28: rustc_query_system::dep_graph::graph::DepGraph::try_mark_previous_green
29: rustc_query_system::query::plumbing::ensure_must_run
30: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::typeck
31: <core::panic::unwind_safe::AssertUnwindSafe as core::ops::function::FnOnce<()>>::call_once
32: rustc_data_structures::sync::par_for_each_in
33: rustc_typeck::check::typeck_item_bodies
34: rustc_query_system::dep_graph::graph::DepGraph::with_task
35: rustc_data_structures::stack::ensure_sufficient_stack
36: rustc_query_system::query::plumbing::try_execute_query
37: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::typeck_item_bodies
38: rustc_session::utils::::time
39: rustc_typeck::check_crate
40: rustc_interface::passes::analysis
41: rustc_query_system::dep_graph::graph::DepGraph::with_task
42: rustc_data_structures::stack::ensure_sufficient_stack
43: rustc_query_system::query::plumbing::try_execute_query
44: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::analysis
45: rustc_interface::passes::QueryContext::enter
46: rustc_interface::queries::::enter
47: rustc_span::with_source_map
48: scoped_tls::ScopedKey::set
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose 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.57.0 (f1edd04 2021-11-29) running on x86_64-unknown-linux-gnu

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

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

query stack during panic:
#0 [evaluate_obligation] evaluating trait selection obligation crossbeam_channel::channel::Receiver<audio_core::dj::session_player::state::Event>: core::marker::Send
#1 [typeck] type-checking main
#2 [typeck_item_bodies] type-checking all item bodies
#3 [analysis] running analysis passes on this crate
end of query stack
thread 'rustc' panicked at 'called Option::unwrap() on a None value', compiler/rustc_metadata/src/rmeta/def_path_hash_map.rs:18:85
stack backtrace:
0: rust_begin_unwind
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:517:5
1: core::panicking::panic_fmt
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/panicking.rs:100:14
2: core::panicking::panic
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/panicking.rs:50:5
3: rustc_metadata::rmeta::decoder::cstore_impl::::def_path_hash_to_def_id
4: <rustc_query_impl::on_disk_cache::OnDiskCache as rustc_middle::ty::context::OnDiskCache>::def_path_hash_to_def_id
5: rustc_middle::dep_graph::dep_node::<impl rustc_query_system::dep_graph::dep_node::DepNodeParams<rustc_middle::ty::context::TyCtxt> for rustc_span::def_id::DefId>::recover
6: rustc_query_system::query::plumbing::force_query
7: rustc_query_system::dep_graph::graph::DepGraph::try_mark_previous_green
8: rustc_query_system::dep_graph::graph::DepGraph::try_mark_previous_green
9: rustc_query_system::dep_graph::graph::DepGraph::try_mark_previous_green
10: rustc_query_system::dep_graph::graph::DepGraph::try_mark_previous_green
11: rustc_query_system::query::plumbing::ensure_must_run
12: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::typeck
13: <core::panic::unwind_safe::AssertUnwindSafe as core::ops::function::FnOnce<()>>::call_once
14: rustc_data_structures::sync::par_for_each_in
15: rustc_typeck::check::typeck_item_bodies
16: rustc_query_system::dep_graph::graph::DepGraph::with_task
17: rustc_data_structures::stack::ensure_sufficient_stack
18: rustc_query_system::query::plumbing::try_execute_query
19: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::typeck_item_bodies
20: rustc_session::utils::::time
21: rustc_typeck::check_crate
22: rustc_interface::passes::analysis
23: rustc_query_system::dep_graph::graph::DepGraph::with_task
24: rustc_data_structures::stack::ensure_sufficient_stack
25: rustc_query_system::query::plumbing::try_execute_query
26: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::analysis
27: rustc_interface::passes::QueryContext::enter
28: rustc_interface::queries::::enter
29: rustc_span::with_source_map
30: scoped_tls::ScopedKey::set
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose 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.57.0 (f1edd04 2021-11-29) running on x86_64-unknown-linux-gnu

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

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

query stack during panic:
#0 [typeck_item_bodies] type-checking all item bodies
#1 [analysis] running analysis passes on this crate
end of query stack

BACKTRACE=full
thread 'rustc' panicked at 'called Option::unwrap() on a None value', compiler/rustc_metadata/src/rmeta/def_path_hash_map.rs:18:85
stack backtrace:
0: 0x7f8d2a9f6a9c - std::backtrace_rs::backtrace::libunwind::trace::hf6a6dfd7da937cb0
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5
1: 0x7f8d2a9f6a9c - std::backtrace_rs::backtrace::trace_unsynchronized::hc596a19e4891f7f3
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x7f8d2a9f6a9c - std::sys_common::backtrace::_print_fmt::hb16700db31584325
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/sys_common/backtrace.rs:67:5
3: 0x7f8d2a9f6a9c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h231c4190cfa75162
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/sys_common/backtrace.rs:46:22
4: 0x7f8d2aa53fdc - core::fmt::write::h2a1462b5f8eea807
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/fmt/mod.rs:1163:17
5: 0x7f8d2a9e6c05 - std::io::Write::write_fmt::h71ddfebc68685972
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/io/mod.rs:1696:15
6: 0x7f8d2a9f9f60 - std::sys_common::backtrace::_print::hcc197d4bebf2b369
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/sys_common/backtrace.rs:49:5
7: 0x7f8d2a9f9f60 - std::sys_common::backtrace::print::h335a66af06738c7c
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/sys_common/backtrace.rs:36:9
8: 0x7f8d2a9f9f60 - std::panicking::default_hook::{{closure}}::h6fac9ac9c8b79e52
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:210:50
9: 0x7f8d2a9f9b15 - std::panicking::default_hook::h341c1030c6a1161b
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:227:9
10: 0x7f8d2b1e62b1 - rustc_driver::DEFAULT_HOOK::{{closure}}::{{closure}}::h932547f60770f26a
11: 0x7f8d2a9fa779 - std::panicking::rust_panic_with_hook::h50680ff4b44510c6
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:628:17
12: 0x7f8d2a9fa202 - std::panicking::begin_panic_handler::{{closure}}::h9371c0fbb1e8465a
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:519:13
13: 0x7f8d2a9f6f44 - std::sys_common::backtrace::__rust_end_short_backtrace::h9b3efa22a5768c0f
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/sys_common/backtrace.rs:139:18
14: 0x7f8d2a9fa199 - rust_begin_unwind
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:517:5
15: 0x7f8d2a9be441 - core::panicking::panic_fmt::h23b9203e89cc61cf
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/panicking.rs:100:14
16: 0x7f8d2a9be38d - core::panicking::panic::h0ba7146865b2f9d6
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/panicking.rs:50:5
17: 0x7f8d2ca5ae75 - rustc_metadata::rmeta::decoder::cstore_impl::::def_path_hash_to_def_id::he98b8ff8c85b3075
18: 0x7f8d2c9e9ae9 - <rustc_query_impl::on_disk_cache::OnDiskCache as rustc_middle::ty::context::OnDiskCache>::def_path_hash_to_def_id::hb925ab58899dddff
19: 0x7f8d2cd55a7d - rustc_middle::dep_graph::dep_node::<impl rustc_query_system::dep_graph::dep_node::DepNodeParams<rustc_middle::ty::context::TyCtxt> for rustc_span::def_id::DefId>::recover::h844379e00d1509f0
20: 0x7f8d2ba0222d - rustc_query_system::query::plumbing::force_query::h667ae9d7704f1462
21: 0x7f8d2c9d4d6a - rustc_query_system::dep_graph::graph::DepGraph::try_mark_previous_green::h14b50df9818693f3
22: 0x7f8d2c9d4d41 - rustc_query_system::dep_graph::graph::DepGraph::try_mark_previous_green::h14b50df9818693f3
23: 0x7f8d2c9d4d41 - rustc_query_system::dep_graph::graph::DepGraph::try_mark_previous_green::h14b50df9818693f3
24: 0x7f8d2c961ecc - rustc_query_system::query::plumbing::try_load_from_disk_and_cache_in_memory::h0eb1b79b9e091780
25: 0x7f8d2c97e66d - rustc_query_system::query::plumbing::get_query::he848c9a74d759f95
26: 0x7f8d2c9d0d24 - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::evaluate_obligation::h2b78688237f47182
27: 0x7f8d2cbe99d9 - <rustc_infer::infer::InferCtxt as rustc_trait_selection::traits::query::evaluate_obligation::InferCtxtExt>::evaluate_obligation::h8dd6b3a9b1045c30
28: 0x7f8d2cbe9e00 - <rustc_infer::infer::InferCtxt as rustc_trait_selection::traits::query::evaluate_obligation::InferCtxtExt>::evaluate_obligation_no_overflow::h9254e4a68f95d40c
29: 0x7f8d2cc0c61d - rustc_trait_selection::traits::fulfill::FulfillProcessor::process_trait_obligation::hd2a96a9f24be244a
30: 0x7f8d2cc05c03 - rustc_trait_selection::traits::fulfill::FulfillProcessor::progress_changed_obligations::hfe1bcc41b6d0982a
31: 0x7f8d2cc3899d - rustc_data_structures::obligation_forest::ObligationForest::process_obligations::h44a6a3ba4a0d74cb
32: 0x7f8d2cc05059 - rustc_trait_selection::traits::fulfill::FulfillmentContext::select::hbd72a111ba645b38
33: 0x7f8d2cc0568a - <rustc_trait_selection::traits::fulfill::FulfillmentContext as rustc_infer::traits::engine::TraitEngine>::select_all_with_constness_or_error::hf19b0d9170dc97ed
34: 0x7f8d2c55d6a1 - rustc_typeck::check::fn_ctxt::_impl::::select_all_obligations_or_error::h2a7fee41f0e33871
35: 0x7f8d2c5b5072 - rustc_infer::infer::InferCtxtBuilder::enter::hfd0c29f454bb3dd3
36: 0x7f8d2c5aab13 - rustc_typeck::check::typeck::hd2945a0033787c16
37: 0x7f8d2d4096e1 - rustc_query_system::dep_graph::graph::DepGraph::with_task::h2483c0c71c4f2b2a
38: 0x7f8d2d3b3b33 - rustc_data_structures::stack::ensure_sufficient_stack::h505c3226f8bf8a56
39: 0x7f8d2c949895 - rustc_query_system::query::plumbing::try_execute_query::h7c58dd7d89c4c4cf
40: 0x7f8d2d2cdc23 - rustc_query_system::query::plumbing::force_query_impl::hb27911982f28ae98
41: 0x7f8d2d3e2346 - rustc_query_impl::query_callbacks::typeck::force_from_dep_node::hd32e9d234745bec5
42: 0x7f8d2c9d4d6a - rustc_query_system::dep_graph::graph::DepGraph::try_mark_previous_green::h14b50df9818693f3
43: 0x7f8d2c933504 - rustc_query_system::query::plumbing::ensure_must_run::hecb344b22a19765e
44: 0x7f8d2c9ce500 - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::typeck::hbeb9d2e74e946f84
45: 0x7f8d2c62eb49 - <core::panic::unwind_safe::AssertUnwindSafe as core::ops::function::FnOnce<()>>::call_once::h270d4bb40e1eda9c
46: 0x7f8d2c634625 - rustc_data_structures::sync::par_for_each_in::hc923538a929a965e
47: 0x7f8d2d0a1f65 - rustc_typeck::check::typeck_item_bodies::hefe2008c00811b10
48: 0x7f8d2d407b2f - rustc_query_system::dep_graph::graph::DepGraph::with_task::h1ec5f3d7b4f020b8
49: 0x7f8d2d3b0725 - rustc_data_structures::stack::ensure_sufficient_stack::h251fb04392fdcf68
50: 0x7f8d2d300ab1 - rustc_query_system::query::plumbing::try_execute_query::hd623135d98171116
51: 0x7f8d2d3ee1f5 - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::typeck_item_bodies::h198257f9bd6fe296
52: 0x7f8d2d0a530f - rustc_session::utils::::time::h72e5c034b0734f09
53: 0x7f8d2d0914f8 - rustc_typeck::check_crate::h6215961d94aab927
54: 0x7f8d2cdf00a0 - rustc_interface::passes::analysis::h9fda1a8ae44d53e7
55: 0x7f8d2d40a3cf - rustc_query_system::dep_graph::graph::DepGraph::with_task::h26e86d963a73dec8
56: 0x7f8d2d3af609 - rustc_data_structures::stack::ensure_sufficient_stack::h135baf7277c4d193
57: 0x7f8d2d2d3a7b - rustc_query_system::query::plumbing::try_execute_query::h0bf7639d3f58bfbd
58: 0x7f8d2d3ec232 - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::analysis::ha2144cf05b40d10d
59: 0x7f8d2cde4ca9 - rustc_interface::passes::QueryContext::enter::h0523b23606206a0b
60: 0x7f8d2cdcb977 - rustc_interface::queries::::enter::hf84cd18c24bd5171
61: 0x7f8d2cdb90ee - rustc_span::with_source_map::h6ab8a240e103b5b9
62: 0x7f8d2cdcb2ac - scoped_tls::ScopedKey::set::hd1fbd64c6f645895
63: 0x7f8d2cdb9ef5 - std::sys_common::backtrace::__rust_begin_short_backtrace::h0a1328c9fa7f7448
64: 0x7f8d2cde5962 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h4ea1ced06d6b3e97
65: 0x7f8d2aa05933 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce>::call_once::h7bd677a5dc988be6
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/alloc/src/boxed.rs:1691:9
66: 0x7f8d2aa05933 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce>::call_once::h7b1c1ba11c4db785
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/alloc/src/boxed.rs:1691:9
67: 0x7f8d2aa05933 - std::sys::unix::thread::Thread::new::thread_start::h9c58c0d12d84e854
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/sys/unix/thread.rs:106:17
68: 0x7f8d2a91d259 - start_thread
69: 0x7f8d2a8325e3 - __GI___clone
70: 0x0 -

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.57.0 (f1edd04 2021-11-29) running on x86_64-unknown-linux-gnu

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

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

query stack during panic:
#0 [evaluate_obligation] evaluating trait selection obligation crossbeam_channel::channel::Receiver<audio_core::dj::session_player::state::Event>: core::marker::Send
#1 [typeck] type-checking main
#2 [typeck_item_bodies] type-checking all item bodies
#3 [analysis] running analysis passes on this crate
end of query stack
thread 'rustc' panicked at 'called Option::unwrap() on a None value', compiler/rustc_metadata/src/rmeta/def_path_hash_map.rs:18:85
stack backtrace:
0: 0x7f8d2a9f6a9c - std::backtrace_rs::backtrace::libunwind::trace::hf6a6dfd7da937cb0
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5
1: 0x7f8d2a9f6a9c - std::backtrace_rs::backtrace::trace_unsynchronized::hc596a19e4891f7f3
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x7f8d2a9f6a9c - std::sys_common::backtrace::_print_fmt::hb16700db31584325
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/sys_common/backtrace.rs:67:5
3: 0x7f8d2a9f6a9c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h231c4190cfa75162
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/sys_common/backtrace.rs:46:22
4: 0x7f8d2aa53fdc - core::fmt::write::h2a1462b5f8eea807
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/fmt/mod.rs:1163:17
5: 0x7f8d2a9e6c05 - std::io::Write::write_fmt::h71ddfebc68685972
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/io/mod.rs:1696:15
6: 0x7f8d2a9f9f60 - std::sys_common::backtrace::_print::hcc197d4bebf2b369
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/sys_common/backtrace.rs:49:5
7: 0x7f8d2a9f9f60 - std::sys_common::backtrace::print::h335a66af06738c7c
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/sys_common/backtrace.rs:36:9
8: 0x7f8d2a9f9f60 - std::panicking::default_hook::{{closure}}::h6fac9ac9c8b79e52
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:210:50
9: 0x7f8d2a9f9b15 - std::panicking::default_hook::h341c1030c6a1161b
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:227:9
10: 0x7f8d2b1e62b1 - rustc_driver::DEFAULT_HOOK::{{closure}}::{{closure}}::h932547f60770f26a
11: 0x7f8d2a9fa779 - std::panicking::rust_panic_with_hook::h50680ff4b44510c6
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:628:17
12: 0x7f8d2a9fa202 - std::panicking::begin_panic_handler::{{closure}}::h9371c0fbb1e8465a
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:519:13
13: 0x7f8d2a9f6f44 - std::sys_common::backtrace::__rust_end_short_backtrace::h9b3efa22a5768c0f
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/sys_common/backtrace.rs:139:18
14: 0x7f8d2a9fa199 - rust_begin_unwind
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:517:5
15: 0x7f8d2a9be441 - core::panicking::panic_fmt::h23b9203e89cc61cf
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/panicking.rs:100:14
16: 0x7f8d2a9be38d - core::panicking::panic::h0ba7146865b2f9d6
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/panicking.rs:50:5
17: 0x7f8d2ca5ae75 - rustc_metadata::rmeta::decoder::cstore_impl::::def_path_hash_to_def_id::he98b8ff8c85b3075
18: 0x7f8d2c9e9ae9 - <rustc_query_impl::on_disk_cache::OnDiskCache as rustc_middle::ty::context::OnDiskCache>::def_path_hash_to_def_id::hb925ab58899dddff
19: 0x7f8d2cd55a7d - rustc_middle::dep_graph::dep_node::<impl rustc_query_system::dep_graph::dep_node::DepNodeParams<rustc_middle::ty::context::TyCtxt> for rustc_span::def_id::DefId>::recover::h844379e00d1509f0
20: 0x7f8d2ba0222d - rustc_query_system::query::plumbing::force_query::h667ae9d7704f1462
21: 0x7f8d2c9d4d6a - rustc_query_system::dep_graph::graph::DepGraph::try_mark_previous_green::h14b50df9818693f3
22: 0x7f8d2c9d4d41 - rustc_query_system::dep_graph::graph::DepGraph::try_mark_previous_green::h14b50df9818693f3
23: 0x7f8d2c9d4d41 - rustc_query_system::dep_graph::graph::DepGraph::try_mark_previous_green::h14b50df9818693f3
24: 0x7f8d2c9d4d41 - rustc_query_system::dep_graph::graph::DepGraph::try_mark_previous_green::h14b50df9818693f3
25: 0x7f8d2c933504 - rustc_query_system::query::plumbing::ensure_must_run::hecb344b22a19765e
26: 0x7f8d2c9ce500 - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::typeck::hbeb9d2e74e946f84
27: 0x7f8d2c62eb49 - <core::panic::unwind_safe::AssertUnwindSafe as core::ops::function::FnOnce<()>>::call_once::h270d4bb40e1eda9c
28: 0x7f8d2c634625 - rustc_data_structures::sync::par_for_each_in::hc923538a929a965e
29: 0x7f8d2d0a1f65 - rustc_typeck::check::typeck_item_bodies::hefe2008c00811b10
30: 0x7f8d2d407b2f - rustc_query_system::dep_graph::graph::DepGraph::with_task::h1ec5f3d7b4f020b8
31: 0x7f8d2d3b0725 - rustc_data_structures::stack::ensure_sufficient_stack::h251fb04392fdcf68
32: 0x7f8d2d300ab1 - rustc_query_system::query::plumbing::try_execute_query::hd623135d98171116
33: 0x7f8d2d3ee1f5 - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::typeck_item_bodies::h198257f9bd6fe296
34: 0x7f8d2d0a530f - rustc_session::utils::::time::h72e5c034b0734f09
35: 0x7f8d2d0914f8 - rustc_typeck::check_crate::h6215961d94aab927
36: 0x7f8d2cdf00a0 - rustc_interface::passes::analysis::h9fda1a8ae44d53e7
37: 0x7f8d2d40a3cf - rustc_query_system::dep_graph::graph::DepGraph::with_task::h26e86d963a73dec8
38: 0x7f8d2d3af609 - rustc_data_structures::stack::ensure_sufficient_stack::h135baf7277c4d193
39: 0x7f8d2d2d3a7b - rustc_query_system::query::plumbing::try_execute_query::h0bf7639d3f58bfbd
40: 0x7f8d2d3ec232 - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::analysis::ha2144cf05b40d10d
41: 0x7f8d2cde4ca9 - rustc_interface::passes::QueryContext::enter::h0523b23606206a0b
42: 0x7f8d2cdcb977 - rustc_interface::queries::::enter::hf84cd18c24bd5171
43: 0x7f8d2cdb90ee - rustc_span::with_source_map::h6ab8a240e103b5b9
44: 0x7f8d2cdcb2ac - scoped_tls::ScopedKey::set::hd1fbd64c6f645895
45: 0x7f8d2cdb9ef5 - std::sys_common::backtrace::__rust_begin_short_backtrace::h0a1328c9fa7f7448
46: 0x7f8d2cde5962 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h4ea1ced06d6b3e97
47: 0x7f8d2aa05933 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce>::call_once::h7bd677a5dc988be6
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/alloc/src/boxed.rs:1691:9
48: 0x7f8d2aa05933 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce>::call_once::h7b1c1ba11c4db785
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/alloc/src/boxed.rs:1691:9
49: 0x7f8d2aa05933 - std::sys::unix::thread::Thread::new::thread_start::h9c58c0d12d84e854
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/sys/unix/thread.rs:106:17
50: 0x7f8d2a91d259 - start_thread
51: 0x7f8d2a8325e3 - __GI___clone
52: 0x0 -

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.57.0 (f1edd04 2021-11-29) running on x86_64-unknown-linux-gnu

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

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

query stack during panic:
#0 [typeck_item_bodies] type-checking all item bodies
#1 [analysis] running analysis passes on this crate
end of query stack

@trobanga trobanga 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 16, 2021
@hkratz
Copy link
Contributor

hkratz commented Dec 16, 2021

@rustbot label A-incr-comp

@rustbot rustbot added the A-incr-comp Area: Incremental compilation label Dec 16, 2021
@ibraheemdev
Copy link
Member

I believe this will be fixed by #91741

@BGR360
Copy link
Contributor

BGR360 commented Dec 21, 2021

@ibraheemdev It sounds like #91919 supersedes that one, correct me if I'm wrong.

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

5 participants