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

thread 'rustc' panicked at 'Encountered invalid discriminant while decoding Option.', ...compiler/rustc_serialize/src/serialize.rs:345:18 #2847

Closed
matthiaskrgr opened this issue Apr 20, 2023 · 8 comments

Comments

@matthiaskrgr
Copy link
Member

I think this happens when miri tries to run with an outdated std.

I have a locally build toolchain with miri, and sometimes after reinstalling/updating the toolchain (x.py install), I think miri does not catch that it was updated and would have to recompile its std.
cargo miri run will panic then:

Preparing a sysroot for Miri (target: x86_64-unknown-linux-gnu)... done
WARNING: Ignoring `RUSTC_WRAPPER` environment variable, Miri does not support wrapping.
    Finished dev [unoptimized + debuginfo] target(s) in 0.01s
     Running `/home/matthias/.rustup/toolchains/local-debug-assertions/bin/cargo-miri runner target/miri/x86_64-unknown-linux-gnu/debug/l`
thread 'rustc' panicked at 'Encountered invalid discriminant while decoding `Option`.', /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_serialize/src/serialize.rs:345:18
stack backtrace:
   0:     0x7fe342b06ea0 - std::backtrace_rs::backtrace::libunwind::trace::hf6fb1df2bbadf8d0
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7fe342b06ea0 - std::backtrace_rs::backtrace::trace_unsynchronized::h5f7dbb945ac36487
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7fe342b06ea0 - std::sys_common::backtrace::_print_fmt::h58b1e1f17859bf37
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x7fe342b06ea0 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::ha27e2876521b95d4
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7fe342badb28 - core::fmt::write::hd4eb0d8409af39da
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/fmt/mod.rs:1254:17
   5:     0x7fe342b48e7f - std::io::Write::write_fmt::h376e4c00acf46354
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/io/mod.rs:1698:15
   6:     0x7fe342b06ca5 - std::sys_common::backtrace::_print::h6dd46fd4a45eba1a
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:47:5
   7:     0x7fe342b06ca5 - std::sys_common::backtrace::print::hedf6d065edced65d
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:34:9
   8:     0x7fe342b32c74 - std::panicking::default_hook::{{closure}}::h88d207ff62ae2e8b
   9:     0x7fe342b328da - std::panicking::default_hook::h877b90f6afd34c69
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:288:9
  10:     0x7fe34558d115 - <alloc[32b43e9536c01a3]::boxed::Box<dyn for<'a, 'b> core[c5d5d662f7508502]::ops::function::Fn<(&'a core[c5d5d662f7508502]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[c5d5d662f7508502]::marker::Send + core[c5d5d662f7508502]::marker::Sync> as core[c5d5d662f7508502]::ops::function::Fn<(&core[c5d5d662f7508502]::panic::panic_info::PanicInfo,)>>::call
                               at /home/matthias/vcs/github/rust_debug_assertions/library/alloc/src/boxed.rs:1976:9
  11:     0x7fe34558d115 - rustc_driver_impl[bd9eb8f6bc15632]::DEFAULT_HOOK::{closure#0}::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_driver_impl/src/lib.rs:1208:17
  12:     0x7fe342b33451 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h023e22a59e074dbe
                               at /home/matthias/vcs/github/rust_debug_assertions/library/alloc/src/boxed.rs:1976:9
  13:     0x7fe342b33451 - std::panicking::rust_panic_with_hook::h1856b639c06e5ebf
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:695:13
  14:     0x7fe342b07182 - std::panicking::begin_panic_handler::{{closure}}::h79db58a425189147
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:580:13
  15:     0x7fe342b06f86 - std::sys_common::backtrace::__rust_end_short_backtrace::hfd5b8e38c40bea32
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:150:18
  16:     0x7fe342b32fb2 - rust_begin_unwind
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:578:5
  17:     0x7fe342bd1ac3 - core::panicking::panic_fmt::h5863111baae9147e
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panicking.rs:67:14
  18:     0x7fe34649fc19 - <core[c5d5d662f7508502]::option::Option<rustc_target[d41639d7a5f2c900]::spec::PanicStrategy> as rustc_serialize[19e01c829501f4d9]::serialize::Decodable<rustc_metadata[b851ce4e52e46107]::rmeta::decoder::DecodeContext>>::decode
  19:     0x7fe3464420f3 - <rustc_metadata[b851ce4e52e46107]::rmeta::CrateRoot as rustc_serialize[19e01c829501f4d9]::serialize::Decodable<rustc_metadata[b851ce4e52e46107]::rmeta::decoder::DecodeContext>>::decode
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_metadata/src/rmeta/mod.rs:217:29
  20:     0x7fe34637f2b5 - <rustc_metadata[b851ce4e52e46107]::rmeta::LazyValue<rustc_metadata[b851ce4e52e46107]::rmeta::CrateRoot>>::decode::<&rustc_metadata[b851ce4e52e46107]::rmeta::decoder::MetadataBlob>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_metadata/src/rmeta/decoder.rs:254:9
  21:     0x7fe34637f2b5 - <rustc_metadata[b851ce4e52e46107]::rmeta::decoder::MetadataBlob>::get_root
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_metadata/src/rmeta/decoder.rs:698:9
  22:     0x7fe34637f2b5 - <rustc_metadata[b851ce4e52e46107]::locator::CrateLocator>::crate_matches
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_metadata/src/locator.rs:668:20
  23:     0x7fe34637f2b5 - <rustc_metadata[b851ce4e52e46107]::locator::CrateLocator>::extract_one
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_metadata/src/locator.rs:581:42
  24:     0x7fe34637e54b - <rustc_metadata[b851ce4e52e46107]::locator::CrateLocator>::extract_lib
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_metadata/src/locator.rs:509:20
  25:     0x7fe34637d750 - <rustc_metadata[b851ce4e52e46107]::locator::CrateLocator>::find_library_crate
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_metadata/src/locator.rs:469:39
  26:     0x7fe34637beb6 - <rustc_metadata[b851ce4e52e46107]::locator::CrateLocator>::maybe_load_library_crate
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_metadata/src/locator.rs:378:9
  27:     0x7fe3464237eb - <rustc_metadata[b851ce4e52e46107]::creader::CrateLoader>::load
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_metadata/src/creader.rs:570:29
  28:     0x7fe34641f684 - <rustc_metadata[b851ce4e52e46107]::creader::CrateLoader>::maybe_resolve_crate
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_metadata/src/creader.rs:541:19
  29:     0x7fe34641e4d3 - <rustc_metadata[b851ce4e52e46107]::creader::CrateLoader>::resolve_crate
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_metadata/src/creader.rs:495:15
  30:     0x7fe346427629 - <rustc_metadata[b851ce4e52e46107]::creader::CrateLoader>::process_extern_crate
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_metadata/src/creader.rs:978:28
  31:     0x7fe3476e7709 - <rustc_resolve[a9d4c8a661337589]::build_reduced_graph::BuildReducedGraphVisitor>::build_reduced_graph_for_extern_crate::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_resolve/src/build_reduced_graph.rs:845:17
  32:     0x7fe3476e7709 - <rustc_resolve[a9d4c8a661337589]::Resolver>::crate_loader::<core[c5d5d662f7508502]::option::Option<rustc_span[586fe534fb00e1b1]::def_id::CrateNum>, <rustc_resolve[a9d4c8a661337589]::build_reduced_graph::BuildReducedGraphVisitor>::build_reduced_graph_for_extern_crate::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_resolve/src/lib.rs:1437:9
  33:     0x7fe347673004 - <rustc_resolve[a9d4c8a661337589]::build_reduced_graph::BuildReducedGraphVisitor>::build_reduced_graph_for_extern_crate
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_resolve/src/build_reduced_graph.rs:844:28
  34:     0x7fe347673004 - <rustc_resolve[a9d4c8a661337589]::build_reduced_graph::BuildReducedGraphVisitor>::build_reduced_graph_for_item
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_resolve/src/build_reduced_graph.rs:666:17
  35:     0x7fe347673004 - <rustc_resolve[a9d4c8a661337589]::build_reduced_graph::BuildReducedGraphVisitor as rustc_ast[83f4d57a5bed716d]::visit::Visitor>::visit_item
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_resolve/src/build_reduced_graph.rs:1320:17
  36:     0x7fe347675769 - rustc_ast[83f4d57a5bed716d]::visit::walk_crate::<rustc_resolve[a9d4c8a661337589]::build_reduced_graph::BuildReducedGraphVisitor>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_ast/src/visit.rs:266:5
  37:     0x7fe347675769 - <rustc_resolve[a9d4c8a661337589]::build_reduced_graph::BuildReducedGraphVisitor as rustc_ast[83f4d57a5bed716d]::visit::Visitor>::visit_crate
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_resolve/src/build_reduced_graph.rs:1515:13
  38:     0x7fe3476d6ba4 - <rustc_resolve[a9d4c8a661337589]::Resolver>::build_reduced_graph
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_resolve/src/build_reduced_graph.rs:195:9
  39:     0x7fe3476d6ba4 - <rustc_resolve[a9d4c8a661337589]::Resolver as rustc_expand[a83ef3700848785e]::base::ResolverExpand>::visit_ast_fragment_with_placeholders
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_resolve/src/macros.rs:194:40
  40:     0x7fe345728ebd - <rustc_expand[a83ef3700848785e]::expand::MacroExpander>::collect_invocations
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_expand/src/expand.rs:586:13
  41:     0x7fe3457248d6 - <rustc_expand[a83ef3700848785e]::expand::MacroExpander>::fully_expand_fragment
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_expand/src/expand.rs:415:13
  42:     0x7fe345724521 - <rustc_expand[a83ef3700848785e]::expand::MacroExpander>::expand_crate
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_expand/src/expand.rs:402:21
  43:     0x7fe3461aa94c - rustc_interface[8eabf1f657444b51]::passes::configure_and_expand::{closure#1}::{closure#1}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/passes.rs:243:50
  44:     0x7fe3461aa94c - <rustc_data_structures[e2bc31891c4386a2]::profiling::VerboseTimingGuard>::run::<rustc_ast[83f4d57a5bed716d]::ast::Crate, rustc_interface[8eabf1f657444b51]::passes::configure_and_expand::{closure#1}::{closure#1}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_data_structures/src/profiling.rs:752:9
  45:     0x7fe3461aa94c - <rustc_session[da85c5850522b61b]::session::Session>::time::<rustc_ast[83f4d57a5bed716d]::ast::Crate, rustc_interface[8eabf1f657444b51]::passes::configure_and_expand::{closure#1}::{closure#1}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_session/src/utils.rs:11:50
  46:     0x7fe3461aa94c - rustc_interface[8eabf1f657444b51]::passes::configure_and_expand::{closure#1}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/passes.rs:243:21
  47:     0x7fe3461aa94c - <rustc_data_structures[e2bc31891c4386a2]::profiling::VerboseTimingGuard>::run::<rustc_ast[83f4d57a5bed716d]::ast::Crate, rustc_interface[8eabf1f657444b51]::passes::configure_and_expand::{closure#1}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_data_structures/src/profiling.rs:752:9
  48:     0x7fe3461aa94c - <rustc_session[da85c5850522b61b]::session::Session>::time::<rustc_ast[83f4d57a5bed716d]::ast::Crate, rustc_interface[8eabf1f657444b51]::passes::configure_and_expand::{closure#1}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_session/src/utils.rs:11:50
  49:     0x7fe3460f32e0 - rustc_interface[8eabf1f657444b51]::passes::configure_and_expand
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/passes.rs:194:13
  50:     0x7fe3460f32e0 - rustc_interface[8eabf1f657444b51]::passes::resolver_for_lowering
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/passes.rs:566:17
  51:     0x7fe3471d6196 - <rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepGraphData<rustc_middle[f11263fd67a2f182]::dep_graph::dep_node::DepKind>>::with_task::<(rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt, rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering), (), rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_query_system/src/dep_graph/graph.rs:372:53
  52:     0x7fe3471d6196 - rustc_middle[f11263fd67a2f182]::ty::context::tls::enter_context::<<rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepGraphData<rustc_middle[f11263fd67a2f182]::dep_graph::dep_node::DepKind>>::with_task<(rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt, rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering), (), rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:82:9
  53:     0x7fe3471d6196 - <std[876bbee9698a2b49]::thread::local::LocalKey<core[c5d5d662f7508502]::cell::Cell<*const ()>>>::try_with::<rustc_middle[f11263fd67a2f182]::ty::context::tls::enter_context<<rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepGraphData<rustc_middle[f11263fd67a2f182]::dep_graph::dep_node::DepKind>>::with_task<(rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt, rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering), (), rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/thread/local.rs:252:16
  54:     0x7fe3471d6196 - <std[876bbee9698a2b49]::thread::local::LocalKey<core[c5d5d662f7508502]::cell::Cell<*const ()>>>::with::<rustc_middle[f11263fd67a2f182]::ty::context::tls::enter_context<<rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepGraphData<rustc_middle[f11263fd67a2f182]::dep_graph::dep_node::DepKind>>::with_task<(rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt, rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering), (), rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/thread/local.rs:228:9
  55:     0x7fe3471d6196 - rustc_middle[f11263fd67a2f182]::ty::context::tls::enter_context::<<rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepGraphData<rustc_middle[f11263fd67a2f182]::dep_graph::dep_node::DepKind>>::with_task<(rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt, rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering), (), rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:79:5
  56:     0x7fe3471d6196 - <rustc_middle[f11263fd67a2f182]::dep_graph::dep_node::DepKind as rustc_query_system[d03734ec93b9b811]::dep_graph::DepKind>::with_deps::<<rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepGraphData<rustc_middle[f11263fd67a2f182]::dep_graph::dep_node::DepKind>>::with_task<(rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt, rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering), (), rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/dep_graph/mod.rs:58:13
  57:     0x7fe3471d6196 - rustc_middle[f11263fd67a2f182]::ty::context::tls::with_context::<<rustc_middle[f11263fd67a2f182]::dep_graph::dep_node::DepKind as rustc_query_system[d03734ec93b9b811]::dep_graph::DepKind>::with_deps<<rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepGraphData<rustc_middle[f11263fd67a2f182]::dep_graph::dep_node::DepKind>>::with_task<(rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt, rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering), (), rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:111:36
  58:     0x7fe3471d6196 - rustc_middle[f11263fd67a2f182]::ty::context::tls::with_context_opt::<rustc_middle[f11263fd67a2f182]::ty::context::tls::with_context<<rustc_middle[f11263fd67a2f182]::dep_graph::dep_node::DepKind as rustc_query_system[d03734ec93b9b811]::dep_graph::DepKind>::with_deps<<rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepGraphData<rustc_middle[f11263fd67a2f182]::dep_graph::dep_node::DepKind>>::with_task<(rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt, rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering), (), rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:100:18
  59:     0x7fe3471d6196 - rustc_middle[f11263fd67a2f182]::ty::context::tls::with_context::<<rustc_middle[f11263fd67a2f182]::dep_graph::dep_node::DepKind as rustc_query_system[d03734ec93b9b811]::dep_graph::DepKind>::with_deps<<rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepGraphData<rustc_middle[f11263fd67a2f182]::dep_graph::dep_node::DepKind>>::with_task<(rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt, rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering), (), rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:111:5
  60:     0x7fe3471d6196 - <rustc_middle[f11263fd67a2f182]::dep_graph::dep_node::DepKind as rustc_query_system[d03734ec93b9b811]::dep_graph::DepKind>::with_deps::<<rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepGraphData<rustc_middle[f11263fd67a2f182]::dep_graph::dep_node::DepKind>>::with_task<(rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt, rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering), (), rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/dep_graph/mod.rs:55:9
  61:     0x7fe3472997b3 - <rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepGraphData<rustc_middle[f11263fd67a2f182]::dep_graph::dep_node::DepKind>>::with_task::<(rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt, rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering), (), rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_query_system/src/dep_graph/graph.rs:372:22
  62:     0x7fe3472997b3 - rustc_query_system[d03734ec93b9b811]::query::plumbing::execute_job_incr::<rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering, rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt>::{closure#2}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_query_system/src/query/plumbing.rs:502:28
  63:     0x7fe3472997b3 - rustc_middle[f11263fd67a2f182]::ty::context::tls::enter_context::<rustc_query_system[d03734ec93b9b811]::query::plumbing::execute_job_incr<rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering, rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt>::{closure#2}, (rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepNodeIndex)>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:82:9
  64:     0x7fe3472997b3 - <std[876bbee9698a2b49]::thread::local::LocalKey<core[c5d5d662f7508502]::cell::Cell<*const ()>>>::try_with::<rustc_middle[f11263fd67a2f182]::ty::context::tls::enter_context<rustc_query_system[d03734ec93b9b811]::query::plumbing::execute_job_incr<rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering, rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt>::{closure#2}, (rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepNodeIndex)>::{closure#0}, (rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepNodeIndex)>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/thread/local.rs:252:16
  65:     0x7fe3472997b3 - <std[876bbee9698a2b49]::thread::local::LocalKey<core[c5d5d662f7508502]::cell::Cell<*const ()>>>::with::<rustc_middle[f11263fd67a2f182]::ty::context::tls::enter_context<rustc_query_system[d03734ec93b9b811]::query::plumbing::execute_job_incr<rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering, rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt>::{closure#2}, (rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepNodeIndex)>::{closure#0}, (rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepNodeIndex)>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/thread/local.rs:228:9
  66:     0x7fe3470b2d36 - rustc_middle[f11263fd67a2f182]::ty::context::tls::enter_context::<rustc_query_system[d03734ec93b9b811]::query::plumbing::execute_job_incr<rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering, rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt>::{closure#2}, (rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepNodeIndex)>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:79:5
  67:     0x7fe3470b2d36 - <rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt as rustc_query_system[d03734ec93b9b811]::query::QueryContext>::start_query::<(rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepNodeIndex), rustc_query_system[d03734ec93b9b811]::query::plumbing::execute_job_incr<rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering, rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt>::{closure#2}>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_query_impl/src/plumbing.rs:127:13
  68:     0x7fe3470b2d36 - rustc_middle[f11263fd67a2f182]::ty::context::tls::with_related_context::<<rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt as rustc_query_system[d03734ec93b9b811]::query::QueryContext>::start_query<(rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepNodeIndex), rustc_query_system[d03734ec93b9b811]::query::plumbing::execute_job_incr<rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering, rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt>::{closure#2}>::{closure#0}, (rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepNodeIndex)>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:133:9
  69:     0x7fe3470b2d36 - rustc_middle[f11263fd67a2f182]::ty::context::tls::with_context::<rustc_middle[f11263fd67a2f182]::ty::context::tls::with_related_context<<rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt as rustc_query_system[d03734ec93b9b811]::query::QueryContext>::start_query<(rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepNodeIndex), rustc_query_system[d03734ec93b9b811]::query::plumbing::execute_job_incr<rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering, rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt>::{closure#2}>::{closure#0}, (rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepNodeIndex)>::{closure#0}, (rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepNodeIndex)>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:111:36
  70:     0x7fe3470b2d36 - rustc_middle[f11263fd67a2f182]::ty::context::tls::with_context_opt::<rustc_middle[f11263fd67a2f182]::ty::context::tls::with_context<rustc_middle[f11263fd67a2f182]::ty::context::tls::with_related_context<<rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt as rustc_query_system[d03734ec93b9b811]::query::QueryContext>::start_query<(rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepNodeIndex), rustc_query_system[d03734ec93b9b811]::query::plumbing::execute_job_incr<rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering, rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt>::{closure#2}>::{closure#0}, (rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepNodeIndex)>::{closure#0}, (rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepNodeIndex)>::{closure#0}, (rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepNodeIndex)>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:100:18
  71:     0x7fe3470b2d36 - rustc_middle[f11263fd67a2f182]::ty::context::tls::with_context::<rustc_middle[f11263fd67a2f182]::ty::context::tls::with_related_context<<rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt as rustc_query_system[d03734ec93b9b811]::query::QueryContext>::start_query<(rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepNodeIndex), rustc_query_system[d03734ec93b9b811]::query::plumbing::execute_job_incr<rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering, rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt>::{closure#2}>::{closure#0}, (rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepNodeIndex)>::{closure#0}, (rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepNodeIndex)>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:111:5
  72:     0x7fe3470b2d36 - rustc_middle[f11263fd67a2f182]::ty::context::tls::with_related_context::<<rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt as rustc_query_system[d03734ec93b9b811]::query::QueryContext>::start_query<(rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepNodeIndex), rustc_query_system[d03734ec93b9b811]::query::plumbing::execute_job_incr<rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering, rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt>::{closure#2}>::{closure#0}, (rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepNodeIndex)>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:124:5
  73:     0x7fe3470b2d36 - <rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt as rustc_query_system[d03734ec93b9b811]::query::QueryContext>::start_query::<(rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepNodeIndex), rustc_query_system[d03734ec93b9b811]::query::plumbing::execute_job_incr<rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering, rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt>::{closure#2}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_query_impl/src/plumbing.rs:112:9
  74:     0x7fe3470b2d36 - rustc_query_system[d03734ec93b9b811]::query::plumbing::execute_job_incr::<rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering, rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_query_system/src/query/plumbing.rs:491:9
  75:     0x7fe3470b2d36 - rustc_query_system[d03734ec93b9b811]::query::plumbing::execute_job::<rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering, rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_query_system/src/query/plumbing.rs:403:23
  76:     0x7fe3470b2d36 - rustc_query_system[d03734ec93b9b811]::query::plumbing::try_execute_query::<rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering, rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_query_system/src/query/plumbing.rs:358:13
  77:     0x7fe3474e5966 - rustc_query_system[d03734ec93b9b811]::query::plumbing::get_query::<rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering, rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_query_system/src/query/plumbing.rs:805:36
  78:     0x7fe3474e5966 - stacker[f871904c967749]::maybe_grow::<(rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>, core[c5d5d662f7508502]::option::Option<rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepNodeIndex>), rustc_query_system[d03734ec93b9b811]::query::plumbing::get_query<rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering, rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt>::{closure#0}>
                               at /home/matthias/.cargo/registry/src/gh.neting.cc-1ecc6299db9ec823/stacker-0.1.15/src/lib.rs:55:9
  79:     0x7fe3474e5966 - rustc_data_structures[e2bc31891c4386a2]::stack::ensure_sufficient_stack::<(rustc_middle[f11263fd67a2f182]::query::erase::Erased<[u8; 8usize]>, core[c5d5d662f7508502]::option::Option<rustc_query_system[d03734ec93b9b811]::dep_graph::graph::DepNodeIndex>), rustc_query_system[d03734ec93b9b811]::query::plumbing::get_query<rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering, rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt>::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_data_structures/src/stack.rs:17:5
  80:     0x7fe3474e5966 - rustc_query_system[d03734ec93b9b811]::query::plumbing::get_query::<rustc_query_impl[965307517017fa97]::queries::resolver_for_lowering, rustc_query_impl[965307517017fa97]::plumbing::QueryCtxt>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_query_system/src/query/plumbing.rs:805:9
  81:     0x7fe3474e5966 - <rustc_query_impl[965307517017fa97]::Queries as rustc_middle[f11263fd67a2f182]::ty::query::QueryEngine>::resolver_for_lowering
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_query_impl/src/plumbing.rs:829:17
  82:     0x7fe3455f1db3 - <rustc_middle[f11263fd67a2f182]::ty::query::TyCtxtAt>::resolver_for_lowering
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/query.rs:396:29
  83:     0x7fe3455f1db3 - <rustc_middle[f11263fd67a2f182]::ty::context::TyCtxt>::resolver_for_lowering
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/query.rs:383:35
  84:     0x7fe3455f1db3 - rustc_driver_impl[bd9eb8f6bc15632]::run_compiler::{closure#1}::{closure#2}::{closure#2}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_driver_impl/src/lib.rs:370:52
  85:     0x7fe3455f1db3 - <rustc_middle[f11263fd67a2f182]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[bd9eb8f6bc15632]::run_compiler::{closure#1}::{closure#2}::{closure#2}, &rustc_data_structures[e2bc31891c4386a2]::steal::Steal<(rustc_middle[f11263fd67a2f182]::ty::ResolverAstLowering, alloc[32b43e9536c01a3]::rc::Rc<rustc_ast[83f4d57a5bed716d]::ast::Crate>)>>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context.rs:559:37
  86:     0x7fe3455f1db3 - rustc_middle[f11263fd67a2f182]::ty::context::tls::enter_context::<<rustc_middle[f11263fd67a2f182]::ty::context::GlobalCtxt>::enter<rustc_driver_impl[bd9eb8f6bc15632]::run_compiler::{closure#1}::{closure#2}::{closure#2}, &rustc_data_structures[e2bc31891c4386a2]::steal::Steal<(rustc_middle[f11263fd67a2f182]::ty::ResolverAstLowering, alloc[32b43e9536c01a3]::rc::Rc<rustc_ast[83f4d57a5bed716d]::ast::Crate>)>>::{closure#0}, &rustc_data_structures[e2bc31891c4386a2]::steal::Steal<(rustc_middle[f11263fd67a2f182]::ty::ResolverAstLowering, alloc[32b43e9536c01a3]::rc::Rc<rustc_ast[83f4d57a5bed716d]::ast::Crate>)>>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:82:9
  87:     0x7fe3455f1db3 - <std[876bbee9698a2b49]::thread::local::LocalKey<core[c5d5d662f7508502]::cell::Cell<*const ()>>>::try_with::<rustc_middle[f11263fd67a2f182]::ty::context::tls::enter_context<<rustc_middle[f11263fd67a2f182]::ty::context::GlobalCtxt>::enter<rustc_driver_impl[bd9eb8f6bc15632]::run_compiler::{closure#1}::{closure#2}::{closure#2}, &rustc_data_structures[e2bc31891c4386a2]::steal::Steal<(rustc_middle[f11263fd67a2f182]::ty::ResolverAstLowering, alloc[32b43e9536c01a3]::rc::Rc<rustc_ast[83f4d57a5bed716d]::ast::Crate>)>>::{closure#0}, &rustc_data_structures[e2bc31891c4386a2]::steal::Steal<(rustc_middle[f11263fd67a2f182]::ty::ResolverAstLowering, alloc[32b43e9536c01a3]::rc::Rc<rustc_ast[83f4d57a5bed716d]::ast::Crate>)>>::{closure#0}, &rustc_data_structures[e2bc31891c4386a2]::steal::Steal<(rustc_middle[f11263fd67a2f182]::ty::ResolverAstLowering, alloc[32b43e9536c01a3]::rc::Rc<rustc_ast[83f4d57a5bed716d]::ast::Crate>)>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/thread/local.rs:252:16
  88:     0x7fe3455f1db3 - <std[876bbee9698a2b49]::thread::local::LocalKey<core[c5d5d662f7508502]::cell::Cell<*const ()>>>::with::<rustc_middle[f11263fd67a2f182]::ty::context::tls::enter_context<<rustc_middle[f11263fd67a2f182]::ty::context::GlobalCtxt>::enter<rustc_driver_impl[bd9eb8f6bc15632]::run_compiler::{closure#1}::{closure#2}::{closure#2}, &rustc_data_structures[e2bc31891c4386a2]::steal::Steal<(rustc_middle[f11263fd67a2f182]::ty::ResolverAstLowering, alloc[32b43e9536c01a3]::rc::Rc<rustc_ast[83f4d57a5bed716d]::ast::Crate>)>>::{closure#0}, &rustc_data_structures[e2bc31891c4386a2]::steal::Steal<(rustc_middle[f11263fd67a2f182]::ty::ResolverAstLowering, alloc[32b43e9536c01a3]::rc::Rc<rustc_ast[83f4d57a5bed716d]::ast::Crate>)>>::{closure#0}, &rustc_data_structures[e2bc31891c4386a2]::steal::Steal<(rustc_middle[f11263fd67a2f182]::ty::ResolverAstLowering, alloc[32b43e9536c01a3]::rc::Rc<rustc_ast[83f4d57a5bed716d]::ast::Crate>)>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/thread/local.rs:228:9
  89:     0x7fe3455f1db3 - rustc_middle[f11263fd67a2f182]::ty::context::tls::enter_context::<<rustc_middle[f11263fd67a2f182]::ty::context::GlobalCtxt>::enter<rustc_driver_impl[bd9eb8f6bc15632]::run_compiler::{closure#1}::{closure#2}::{closure#2}, &rustc_data_structures[e2bc31891c4386a2]::steal::Steal<(rustc_middle[f11263fd67a2f182]::ty::ResolverAstLowering, alloc[32b43e9536c01a3]::rc::Rc<rustc_ast[83f4d57a5bed716d]::ast::Crate>)>>::{closure#0}, &rustc_data_structures[e2bc31891c4386a2]::steal::Steal<(rustc_middle[f11263fd67a2f182]::ty::ResolverAstLowering, alloc[32b43e9536c01a3]::rc::Rc<rustc_ast[83f4d57a5bed716d]::ast::Crate>)>>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:79:5
  90:     0x7fe3455f1db3 - <rustc_middle[f11263fd67a2f182]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[bd9eb8f6bc15632]::run_compiler::{closure#1}::{closure#2}::{closure#2}, &rustc_data_structures[e2bc31891c4386a2]::steal::Steal<(rustc_middle[f11263fd67a2f182]::ty::ResolverAstLowering, alloc[32b43e9536c01a3]::rc::Rc<rustc_ast[83f4d57a5bed716d]::ast::Crate>)>>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context.rs:559:9
  91:     0x7fe3455f1db3 - <rustc_interface[8eabf1f657444b51]::queries::QueryResult<&rustc_middle[f11263fd67a2f182]::ty::context::GlobalCtxt>>::enter::<&rustc_data_structures[e2bc31891c4386a2]::steal::Steal<(rustc_middle[f11263fd67a2f182]::ty::ResolverAstLowering, alloc[32b43e9536c01a3]::rc::Rc<rustc_ast[83f4d57a5bed716d]::ast::Crate>)>, rustc_driver_impl[bd9eb8f6bc15632]::run_compiler::{closure#1}::{closure#2}::{closure#2}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/queries.rs:71:9
  92:     0x7fe345602227 - rustc_driver_impl[bd9eb8f6bc15632]::run_compiler::{closure#1}::{closure#2}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_driver_impl/src/lib.rs:370:13
  93:     0x7fe345602227 - <rustc_interface[8eabf1f657444b51]::interface::Compiler>::enter::<rustc_driver_impl[bd9eb8f6bc15632]::run_compiler::{closure#1}::{closure#2}, core[c5d5d662f7508502]::result::Result<core[c5d5d662f7508502]::option::Option<rustc_interface[8eabf1f657444b51]::queries::Linker>, rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/queries.rs:394:19
  94:     0x7fe3455a0b9b - rustc_driver_impl[bd9eb8f6bc15632]::run_compiler::{closure#1}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_driver_impl/src/lib.rs:331:22
  95:     0x7fe3455a0b9b - rustc_interface[8eabf1f657444b51]::interface::run_compiler::<core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>, rustc_driver_impl[bd9eb8f6bc15632]::run_compiler::{closure#1}>::{closure#0}::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/interface.rs:301:21
  96:     0x7fe3455a0b9b - rustc_span[586fe534fb00e1b1]::set_source_map::<core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>, rustc_interface[8eabf1f657444b51]::interface::run_compiler<core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>, rustc_driver_impl[bd9eb8f6bc15632]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_span/src/lib.rs:1040:5
  97:     0x7fe3455a0b9b - rustc_interface[8eabf1f657444b51]::interface::run_compiler::<core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>, rustc_driver_impl[bd9eb8f6bc15632]::run_compiler::{closure#1}>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/interface.rs:295:13
  98:     0x7fe3455a0b9b - <scoped_tls[c6512a5451dfceef]::ScopedKey<rustc_span[586fe534fb00e1b1]::SessionGlobals>>::set::<rustc_interface[8eabf1f657444b51]::interface::run_compiler<core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>, rustc_driver_impl[bd9eb8f6bc15632]::run_compiler::{closure#1}>::{closure#0}, core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>>
                               at /home/matthias/.cargo/registry/src/gh.neting.cc-1ecc6299db9ec823/scoped-tls-1.0.0/src/lib.rs:137:9
  99:     0x7fe3455a0b9b - rustc_span[586fe534fb00e1b1]::create_session_globals_then::<core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>, rustc_interface[8eabf1f657444b51]::interface::run_compiler<core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>, rustc_driver_impl[bd9eb8f6bc15632]::run_compiler::{closure#1}>::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_span/src/lib.rs:120:5
 100:     0x7fe3455a0b9b - rustc_interface[8eabf1f657444b51]::util::run_in_thread_pool_with_globals::<rustc_interface[8eabf1f657444b51]::interface::run_compiler<core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>, rustc_driver_impl[bd9eb8f6bc15632]::run_compiler::{closure#1}>::{closure#0}, core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>>::{closure#0}::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/util.rs:152:38
 101:     0x7fe3455a0b9b - std[876bbee9698a2b49]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[8eabf1f657444b51]::util::run_in_thread_pool_with_globals<rustc_interface[8eabf1f657444b51]::interface::run_compiler<core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>, rustc_driver_impl[bd9eb8f6bc15632]::run_compiler::{closure#1}>::{closure#0}, core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:134:18
 102:     0x7fe3455a32b1 - <std[876bbee9698a2b49]::thread::Builder>::spawn_unchecked_::<rustc_interface[8eabf1f657444b51]::util::run_in_thread_pool_with_globals<rustc_interface[8eabf1f657444b51]::interface::run_compiler<core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>, rustc_driver_impl[bd9eb8f6bc15632]::run_compiler::{closure#1}>::{closure#0}, core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>>::{closure#1}::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/thread/mod.rs:526:17
 103:     0x7fe3455a32b1 - <core[c5d5d662f7508502]::panic::unwind_safe::AssertUnwindSafe<<std[876bbee9698a2b49]::thread::Builder>::spawn_unchecked_<rustc_interface[8eabf1f657444b51]::util::run_in_thread_pool_with_globals<rustc_interface[8eabf1f657444b51]::interface::run_compiler<core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>, rustc_driver_impl[bd9eb8f6bc15632]::run_compiler::{closure#1}>::{closure#0}, core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>>::{closure#1}::{closure#0}> as core[c5d5d662f7508502]::ops::function::FnOnce<()>>::call_once
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panic/unwind_safe.rs:271:9
 104:     0x7fe3455a32b1 - std[876bbee9698a2b49]::panicking::try::do_call::<core[c5d5d662f7508502]::panic::unwind_safe::AssertUnwindSafe<<std[876bbee9698a2b49]::thread::Builder>::spawn_unchecked_<rustc_interface[8eabf1f657444b51]::util::run_in_thread_pool_with_globals<rustc_interface[8eabf1f657444b51]::interface::run_compiler<core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>, rustc_driver_impl[bd9eb8f6bc15632]::run_compiler::{closure#1}>::{closure#0}, core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>>::{closure#1}::{closure#0}>, core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:485:40
 105:     0x7fe3455a32b1 - std[876bbee9698a2b49]::panicking::try::<core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>, core[c5d5d662f7508502]::panic::unwind_safe::AssertUnwindSafe<<std[876bbee9698a2b49]::thread::Builder>::spawn_unchecked_<rustc_interface[8eabf1f657444b51]::util::run_in_thread_pool_with_globals<rustc_interface[8eabf1f657444b51]::interface::run_compiler<core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>, rustc_driver_impl[bd9eb8f6bc15632]::run_compiler::{closure#1}>::{closure#0}, core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:449:19
 106:     0x7fe3455a32b1 - std[876bbee9698a2b49]::panic::catch_unwind::<core[c5d5d662f7508502]::panic::unwind_safe::AssertUnwindSafe<<std[876bbee9698a2b49]::thread::Builder>::spawn_unchecked_<rustc_interface[8eabf1f657444b51]::util::run_in_thread_pool_with_globals<rustc_interface[8eabf1f657444b51]::interface::run_compiler<core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>, rustc_driver_impl[bd9eb8f6bc15632]::run_compiler::{closure#1}>::{closure#0}, core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>>::{closure#1}::{closure#0}>, core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panic.rs:140:14
 107:     0x7fe3455a32b1 - <std[876bbee9698a2b49]::thread::Builder>::spawn_unchecked_::<rustc_interface[8eabf1f657444b51]::util::run_in_thread_pool_with_globals<rustc_interface[8eabf1f657444b51]::interface::run_compiler<core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>, rustc_driver_impl[bd9eb8f6bc15632]::run_compiler::{closure#1}>::{closure#0}, core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>>::{closure#1}
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/thread/mod.rs:525:30
 108:     0x7fe3455a32b1 - <<std[876bbee9698a2b49]::thread::Builder>::spawn_unchecked_<rustc_interface[8eabf1f657444b51]::util::run_in_thread_pool_with_globals<rustc_interface[8eabf1f657444b51]::interface::run_compiler<core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>, rustc_driver_impl[bd9eb8f6bc15632]::run_compiler::{closure#1}>::{closure#0}, core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[c5d5d662f7508502]::result::Result<(), rustc_span[586fe534fb00e1b1]::ErrorGuaranteed>>::{closure#1} as core[c5d5d662f7508502]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ops/function.rs:250:5
 109:     0x7fe342b47f7a - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h09205b8a60ec493c
                               at /home/matthias/vcs/github/rust_debug_assertions/library/alloc/src/boxed.rs:1962:9
 110:     0x7fe342b47f7a - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hb0193177fb414942
                               at /home/matthias/vcs/github/rust_debug_assertions/library/alloc/src/boxed.rs:1962:9
 111:     0x7fe342b0d355 - std::sys::unix::thread::Thread::new::thread_start::h96fbca9a9a0efa67
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys/unix/thread.rs:108:17
 112:     0x7fe34289ebb5 - <unknown>
 113:     0x7fe342920d90 - <unknown>
 114:                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.71.0-dev running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type bin -C embed-bitcode=no -C debuginfo=2 -C incremental=[REDACTED] -C target-cpu=native

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

query stack during panic:
#0 [resolver_for_lowering] getting the resolver for lowering
@matthiaskrgr
Copy link
Member Author

Yeah, so running cargo miri setup of a different toolchain (e.g. nightly) and then running setup again for the locally installed toolchain is a workaround.

@saethlin
Copy link
Member

@matthiaskrgr
Copy link
Member Author

matthiaskrgr commented Apr 20, 2023

well, this is not really a problem of stage x vs stage y since it's always this stage in my case, but the underlying issue (different host compilers) might be the same as this is also the case for different stages

@matthiaskrgr
Copy link
Member Author

could miri compute a checksum of its own binary and save/check that in the std it prepares to know if it needs to rebuild?

@RalfJung
Copy link
Member

So to be clear, this is from running cargo miri yourself, in a locally linked toolchain?

We have a similar issue inside rustc bootstrap itself, where x.py test miri fails because the toolchain doesn't get rebuilt as it should. That one could probably be resolved by hooking into the bootstrap logic that clears sysroots.

But fundamentally this is not just a Miri issue, it also affects rustc: we hash the compiler channel and version into the sysroot to check for rebuilds (and rustc does that for its incremental cache), but for local builds that is just dev and so we don't notice when the version changes. (Which is basically what @saethlin referenced above, so Cc rust-lang/rust#76720.)

@matthiaskrgr
Copy link
Member Author

So to be clear, this is from running cargo miri yourself, in a locally linked toolchain?

exactly 🙂

@RalfJung
Copy link
Member

I think the exact same issue would arise if you did cargo run with locally built toolchains (on a crate with some dependencies, and after touch src/lib.rs or so to make rustc actually do something), so trying to work around this on the Miri doesn't seem like the right approach.

@RalfJung
Copy link
Member

Closing as duplicate of rust-lang/rust#76720.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants