Open rklaehn opened 5 months ago
Probably worth noting that this does not happen all the time. rm -rf target
, and it will work again for some time.
I will attach a backtrace once I see this again, but unfortunately I just automatically entered rm -rf target
...
The same error with shorter stack trace:
thread 'rustc' panicked at compiler/rustc_metadata/src/rmeta/def_path_hash_map.rs:23:54:
called `Option::unwrap()` on a `None` value
stack backtrace:
0: 0x7f8b3698c035 - std::backtrace_rs::backtrace::libunwind::trace::h1a07e5dba0da0cd2
at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/../../backtrace/src/backtrace/libunwind.rs:105:5
1: 0x7f8b3698c035 - std::backtrace_rs::backtrace::trace_unsynchronized::h61b9b8394328c0bc
at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x7f8b3698c035 - std::sys_common::backtrace::_print_fmt::h1c5e18b460934cff
at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:68:5
3: 0x7f8b3698c035 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h1e1a1972118942ad
at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:44:22
4: 0x7f8b369db29b - core::fmt::rt::Argument::fmt::h07af2b4071d536cd
at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/fmt/rt.rs:165:63
5: 0x7f8b369db29b - core::fmt::write::hc090a2ffd6b28c4a
at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/fmt/mod.rs:1157:21
6: 0x7f8b36980bdf - std::io::Write::write_fmt::h8898bac6ff039a23
at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/io/mod.rs:1832:15
7: 0x7f8b3698be0e - std::sys_common::backtrace::_print::h4e80c5803d4ee35b
at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:47:5
8: 0x7f8b3698be0e - std::sys_common::backtrace::print::ha96650907276675e
at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:34:9
9: 0x7f8b3698e779 - std::panicking::default_hook::{{closure}}::h215c2a0a8346e0e0
10: 0x7f8b3698e4bd - std::panicking::default_hook::h207342be97478370
at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:298:9
11: 0x7f8b398891b7 - std[3c8ba8ebcf555201]::panicking::update_hook::<alloc[bfbae7e348dce413]::boxed::Box<rustc_driver_impl[c88438ade88661f4]::install_ice_hook::{closure#0}>>::{closure#0}
12: 0x7f8b3698ee76 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::ha9c3bc81d312fd83
at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/boxed.rs:2036:9
13: 0x7f8b3698ee76 - std::panicking::rust_panic_with_hook::hac8bdceee1e4fe2c
at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:799:13
14: 0x7f8b3698ebeb - std::panicking::begin_panic_handler::{{closure}}::h00d785e82757ce3c
at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:656:13
15: 0x7f8b3698c4f9 - std::sys_common::backtrace::__rust_end_short_backtrace::h1628d957bcd06996
at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:171:18
16: 0x7f8b3698e957 - rust_begin_unwind
at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:652:5
17: 0x7f8b369d7763 - core::panicking::panic_fmt::hdc63834ffaaefae5
at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/panicking.rs:72:14
18: 0x7f8b369d780c - core::panicking::panic::h75b3c9209f97d725
at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/panicking.rs:146:5
19: 0x7f8b369d74e9 - core::option::unwrap_failed::h4b4353bf890a85df
at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/option.rs:1984:5
20: 0x7f8b3acd8822 - <rustc_query_system[4e189ce2c77124d]::dep_graph::dep_node::DepNode as rustc_middle[3ff731b746e7b038]::dep_graph::dep_node::DepNodeExt>::extract_def_id
21: 0x7f8b3a063f2a - <rustc_query_impl[a12402620de91e8]::plumbing::query_callback<rustc_query_impl[a12402620de91e8]::query_impl::def_kind::QueryType>::{closure#0} as core[868bc93c3f2beb33]::ops::function::FnOnce<(rustc_middle[3ff731b746e7b038]::ty::context::TyCtxt, rustc_query_system[4e189ce2c77124d]::dep_graph::dep_node::DepNode)>>::call_once
22: 0x7f8b3ac299df - <rustc_query_system[4e189ce2c77124d]::dep_graph::graph::DepGraphData<rustc_middle[3ff731b746e7b038]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[a12402620de91e8]::plumbing::QueryCtxt>
23: 0x7f8b3ac2994b - <rustc_query_system[4e189ce2c77124d]::dep_graph::graph::DepGraphData<rustc_middle[3ff731b746e7b038]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[a12402620de91e8]::plumbing::QueryCtxt>
24: 0x7f8b3ac2994b - <rustc_query_system[4e189ce2c77124d]::dep_graph::graph::DepGraphData<rustc_middle[3ff731b746e7b038]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[a12402620de91e8]::plumbing::QueryCtxt>
25: 0x7f8b3ac2994b - <rustc_query_system[4e189ce2c77124d]::dep_graph::graph::DepGraphData<rustc_middle[3ff731b746e7b038]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[a12402620de91e8]::plumbing::QueryCtxt>
26: 0x7f8b3ac2994b - <rustc_query_system[4e189ce2c77124d]::dep_graph::graph::DepGraphData<rustc_middle[3ff731b746e7b038]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[a12402620de91e8]::plumbing::QueryCtxt>
27: 0x7f8b3ac2994b - <rustc_query_system[4e189ce2c77124d]::dep_graph::graph::DepGraphData<rustc_middle[3ff731b746e7b038]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[a12402620de91e8]::plumbing::QueryCtxt>
28: 0x7f8b3ac2994b - <rustc_query_system[4e189ce2c77124d]::dep_graph::graph::DepGraphData<rustc_middle[3ff731b746e7b038]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[a12402620de91e8]::plumbing::QueryCtxt>
29: 0x7f8b3ac2994b - <rustc_query_system[4e189ce2c77124d]::dep_graph::graph::DepGraphData<rustc_middle[3ff731b746e7b038]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[a12402620de91e8]::plumbing::QueryCtxt>
30: 0x7f8b3b153c84 - rustc_query_system[4e189ce2c77124d]::query::plumbing::try_execute_query::<rustc_query_impl[a12402620de91e8]::DynamicConfig<rustc_query_system[4e189ce2c77124d]::query::caches::DefaultCache<rustc_type_ir[a145be3c51398263]::canonical::Canonical<rustc_middle[3ff731b746e7b038]::ty::context::TyCtxt, rustc_middle[3ff731b746e7b038]::ty::ParamEnvAnd<rustc_middle[3ff731b746e7b038]::ty::predicate::Predicate>>, rustc_middle[3ff731b746e7b038]::query::erase::Erased<[u8; 2usize]>>, false, false, false>, rustc_query_impl[a12402620de91e8]::plumbing::QueryCtxt, true>
31: 0x7f8b3b1525e0 - rustc_query_impl[a12402620de91e8]::query_impl::evaluate_obligation::get_query_incr::__rust_end_short_backtrace
32: 0x7f8b3797b644 - <rustc_trait_selection[173dcaf5d960508e]::traits::fulfill::FulfillProcessor as rustc_data_structures[52ff41d7b92c45f3]::obligation_forest::ObligationProcessor>::process_obligation
33: 0x7f8b3ac0ea00 - <rustc_data_structures[52ff41d7b92c45f3]::obligation_forest::ObligationForest<rustc_trait_selection[173dcaf5d960508e]::traits::fulfill::PendingPredicateObligation>>::process_obligations::<rustc_trait_selection[173dcaf5d960508e]::traits::fulfill::FulfillProcessor>
34: 0x7f8b381a0913 - <rustc_hir_typeck[e95414a4bbf7473d]::fn_ctxt::FnCtxt>::confirm_builtin_call
35: 0x7f8b3b6ba130 - <rustc_hir_typeck[e95414a4bbf7473d]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
36: 0x7f8b37aa40e2 - <rustc_hir_typeck[e95414a4bbf7473d]::fn_ctxt::FnCtxt>::check_method_argument_types
37: 0x7f8b3b6bc1d5 - <rustc_hir_typeck[e95414a4bbf7473d]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
38: 0x7f8b3b6ba6a4 - <rustc_hir_typeck[e95414a4bbf7473d]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
39: 0x7f8b3b6b4bc6 - <rustc_hir_typeck[e95414a4bbf7473d]::fn_ctxt::FnCtxt>::check_block_with_expected
40: 0x7f8b3b6ba64d - <rustc_hir_typeck[e95414a4bbf7473d]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
41: 0x7f8b3b0ddc8c - rustc_hir_typeck[e95414a4bbf7473d]::check::check_fn
42: 0x7f8b3b0d2baf - rustc_hir_typeck[e95414a4bbf7473d]::typeck
43: 0x7f8b3b0d188d - rustc_query_impl[a12402620de91e8]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[a12402620de91e8]::query_impl::typeck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[3ff731b746e7b038]::query::erase::Erased<[u8; 8usize]>>
44: 0x7f8b3ad182b8 - rustc_query_system[4e189ce2c77124d]::query::plumbing::try_execute_query::<rustc_query_impl[a12402620de91e8]::DynamicConfig<rustc_query_system[4e189ce2c77124d]::query::caches::VecCache<rustc_span[8c7415e9d33ddd75]::def_id::LocalDefId, rustc_middle[3ff731b746e7b038]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[a12402620de91e8]::plumbing::QueryCtxt, true>
45: 0x7f8b3af9308c - rustc_query_impl[a12402620de91e8]::query_impl::typeck::get_query_incr::__rust_end_short_backtrace
46: 0x7f8b3b3ca9b5 - rustc_hir_analysis[46a17d8846b4335f]::check_crate
47: 0x7f8b3b5890e0 - rustc_interface[640972162e3c086f]::passes::analysis
48: 0x7f8b3b588aef - rustc_query_impl[a12402620de91e8]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[a12402620de91e8]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[3ff731b746e7b038]::query::erase::Erased<[u8; 1usize]>>
49: 0x7f8b3ba71e53 - rustc_query_system[4e189ce2c77124d]::query::plumbing::try_execute_query::<rustc_query_impl[a12402620de91e8]::DynamicConfig<rustc_query_system[4e189ce2c77124d]::query::caches::SingleCache<rustc_middle[3ff731b746e7b038]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[a12402620de91e8]::plumbing::QueryCtxt, true>
50: 0x7f8b3ba71a9c - rustc_query_impl[a12402620de91e8]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace
51: 0x7f8b3b783149 - rustc_interface[640972162e3c086f]::interface::run_compiler::<core[868bc93c3f2beb33]::result::Result<(), rustc_span[8c7415e9d33ddd75]::ErrorGuaranteed>, rustc_driver_impl[c88438ade88661f4]::run_compiler::{closure#0}>::{closure#1}
52: 0x7f8b3b740f8b - std[3c8ba8ebcf555201]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[640972162e3c086f]::util::run_in_thread_with_globals<rustc_interface[640972162e3c086f]::interface::run_compiler<core[868bc93c3f2beb33]::result::Result<(), rustc_span[8c7415e9d33ddd75]::ErrorGuaranteed>, rustc_driver_impl[c88438ade88661f4]::run_compiler::{closure#0}>::{closure#1}, core[868bc93c3f2beb33]::result::Result<(), rustc_span[8c7415e9d33ddd75]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[868bc93c3f2beb33]::result::Result<(), rustc_span[8c7415e9d33ddd75]::ErrorGuaranteed>>
53: 0x7f8b3b740d80 - <<std[3c8ba8ebcf555201]::thread::Builder>::spawn_unchecked_<rustc_interface[640972162e3c086f]::util::run_in_thread_with_globals<rustc_interface[640972162e3c086f]::interface::run_compiler<core[868bc93c3f2beb33]::result::Result<(), rustc_span[8c7415e9d33ddd75]::ErrorGuaranteed>, rustc_driver_impl[c88438ade88661f4]::run_compiler::{closure#0}>::{closure#1}, core[868bc93c3f2beb33]::result::Result<(), rustc_span[8c7415e9d33ddd75]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[868bc93c3f2beb33]::result::Result<(), rustc_span[8c7415e9d33ddd75]::ErrorGuaranteed>>::{closure#2} as core[868bc93c3f2beb33]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
54: 0x7f8b36998cab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h09e5a4c541afa800
at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/boxed.rs:2022:9
55: 0x7f8b36998cab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9c8b03c22f4e7026
at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/boxed.rs:2022:9
56: 0x7f8b36998cab - std::sys::pal::unix::thread::Thread::new::thread_start::h522bc89a54da820a
at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys/pal/unix/thread.rs:108:17
57: 0x7f8b36777962 - start_thread
at ./nptl/pthread_create.c:447:8
58: 0x7f8b367f2b08 - __GI___clone3
at /builddir/glibc-2.39/misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
59: 0x0 - <unknown>
error: 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.79.0 (129f3b996 2024-06-10) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type bin -C embed-bitcode=no -C debuginfo=2 -C linker=/usr/bin/clang -C incremental=[REDACTED] -C link-arg=-fuse-ld=lld -C link-arg=-Wl,-z,nostart-stop-gc
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [evaluate_obligation] evaluating trait selection obligation `core::ops::control_flow::ControlFlow<core::result::Result<core::convert::Infallible, rpcy::error::RpcError<rpcy_proto_jsonrpc::JSON_RPC_2_0, rpcy::transport::forked::ForkedTransport<rpcy_proto_jsonrpc::marshalled::Request, rpcy_proto_jsonrpc::marshalled::Response, rpcy_proto_jsonrpc::JSON_RPC_2_0, connect_core::rpc::Transport>, rpcy_proto_jsonrpc::ErrorResponseObject>>, rpcy::cookie::ResponseCookie<connect_core::rpc::types::Async, connect::error::Error>>: core::marker::Send`
#1 [typeck] type-checking `route::activity::routes`
#2 [analysis] running analysis passes on this crate
end of query stack
there was a panic while trying to force a dep node
try_mark_green dep node stack:
#0 TraitSelect(943289ae3cf9f59a-2467101a2f6c6106)
#1 TraitSelect(4b01f84803c5e195-e78b9e361f90d6d1)
#2 TraitSelect(24cca849462b3ac0-39d118b4de24b14)
#3 TraitSelect(20a24b84eaa39a88-3e36990eb5c6658b)
#4 TraitSelect(2d49cc1e3381e0ab-acb829b8f4ba0eb6)
#5 TraitSelect(5935f9037933d1b4-d5c79ea841bd0c86)
#6 TraitSelect(871f6d40cb7712e2-9f2322d84e102ef9)
#7 evaluate_obligation(726799a7701e6dfe-1ef7d59289699dd2)
end of try_mark_green dep node stack
Code
Sorry, no tiny reproducer yet. Here is the commit where this happens:
https://github.com/n0-computer/iroh/commit/978587aef29e9465f3eb0deb1dc9153c9f0253bd
Meta
rustc --version --verbose
:Error output
Backtrace
```
```