rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
98.56k stars 12.74k forks source link

rustc crashes with unfinished patch while compiling Enarx #93023

Closed jarkkojs closed 2 years ago

jarkkojs commented 2 years ago

TRANSCRIPT

  Compiling enarx v0.1.0 (/home/jarkkojs/Hacking/enarx)
thread 'rustc' panicked at 'index out of bounds: the len is 249 but the index is 250', compiler/rustc_query_impl/src/on_disk_cache.rs:726:18
stack backtrace:
   0: rust_begin_unwind
             at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/std/src/panicking.rs:498:5
   1: core::panicking::panic_fmt
             at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/core/src/panicking.rs:110:14
   2: core::panicking::panic_bounds_check
             at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/core/src/panicking.rs:77:5
   3: <rustc_span::span_encoding::Span as rustc_serialize::serialize::Decodable<rustc_query_impl::on_disk_cache::CacheDecoder>>::decode
   4: <rustc_middle::ty::FieldDef as rustc_serialize::serialize::Decodable<rustc_query_impl::on_disk_cache::CacheDecoder>>::decode
   5: <rustc_middle::ty::VariantDef as rustc_serialize::serialize::Decodable<rustc_query_impl::on_disk_cache::CacheDecoder>>::decode
   6: <rustc_query_impl::on_disk_cache::CacheDecoder as rustc_serialize::serialize::Decoder>::read_seq::<alloc::vec::Vec<rustc_middle::ty::VariantDef>, <alloc::vec::Vec<rustc_middle::ty::VariantDef> as rustc_serialize::serialize::Decodable<rustc_query_impl::on_disk_cache::CacheDecoder>>::decode::{closure#0}>
   7: <rustc_middle::ty::adt::AdtDef as rustc_serialize::serialize::Decodable<rustc_query_impl::on_disk_cache::CacheDecoder>>::decode
   8: <rustc_middle::ty::sty::TyKind as rustc_serialize::serialize::Decodable<rustc_query_impl::on_disk_cache::CacheDecoder>>::decode
   9: <&rustc_middle::ty::TyS as rustc_serialize::serialize::Decodable<rustc_query_impl::on_disk_cache::CacheDecoder>>::decode
  10: <core::result::Result<rustc_middle::ty::subst::GenericArg, alloc::string::String> as rustc_middle::ty::context::InternIteratorElement<rustc_middle::ty::subst::GenericArg, &rustc_middle::ty::list::List<rustc_middle::ty::subst::GenericArg>>>::intern_with::<core::iter::adapters::map::Map<core::ops::range::Range<usize>, <&rustc_middle::ty::list::List<rustc_middle::ty::subst::GenericArg> as rustc_serialize::serialize::Decodable<rustc_query_impl::on_disk_cache::CacheDecoder>>::decode::{closure#0}>, <rustc_middle::ty::context::TyCtxt>::mk_substs<core::iter::adapters::map::Map<core::ops::range::Range<usize>, <&rustc_middle::ty::list::List<rustc_middle::ty::subst::GenericArg> as rustc_serialize::serialize::Decodable<rustc_query_impl::on_disk_cache::CacheDecoder>>::decode::{closure#0}>>::{closure#0}>
  11: <rustc_middle::ty::sty::TyKind as rustc_serialize::serialize::Decodable<rustc_query_impl::on_disk_cache::CacheDecoder>>::decode
  12: <&rustc_middle::ty::TyS as rustc_serialize::serialize::Decodable<rustc_query_impl::on_disk_cache::CacheDecoder>>::decode
  13: <rustc_middle::ty::sty::TyKind as rustc_serialize::serialize::Decodable<rustc_query_impl::on_disk_cache::CacheDecoder>>::decode
  14: <&rustc_middle::ty::TyS as rustc_serialize::serialize::Decodable<rustc_query_impl::on_disk_cache::CacheDecoder>>::decode
  15: <&rustc_middle::ty::TyS as rustc_serialize::serialize::Decodable<rustc_query_impl::on_disk_cache::CacheDecoder>>::decode
  16: <core::result::Result<rustc_middle::ty::subst::GenericArg, alloc::string::String> as rustc_middle::ty::context::InternIteratorElement<rustc_middle::ty::subst::GenericArg, &rustc_middle::ty::list::List<rustc_middle::ty::subst::GenericArg>>>::intern_with::<core::iter::adapters::map::Map<core::ops::range::Range<usize>, <&rustc_middle::ty::list::List<rustc_middle::ty::subst::GenericArg> as rustc_serialize::serialize::Decodable<rustc_query_impl::on_disk_cache::CacheDecoder>>::decode::{closure#0}>, <rustc_middle::ty::context::TyCtxt>::mk_substs<core::iter::adapters::map::Map<core::ops::range::Range<usize>, <&rustc_middle::ty::list::List<rustc_middle::ty::subst::GenericArg> as rustc_serialize::serialize::Decodable<rustc_query_impl::on_disk_cache::CacheDecoder>>::decode::{closure#0}>>::{closure#0}>
  17: <rustc_middle::ty::sty::TyKind as rustc_serialize::serialize::Decodable<rustc_query_impl::on_disk_cache::CacheDecoder>>::decode
  18: <&rustc_middle::ty::TyS as rustc_serialize::serialize::Decodable<rustc_query_impl::on_disk_cache::CacheDecoder>>::decode
  19: <&rustc_middle::ty::TyS as rustc_serialize::serialize::Decodable<rustc_query_impl::on_disk_cache::CacheDecoder>>::decode
  20: <core::result::Result<rustc_middle::mir::interpret::value::ConstAlloc, rustc_middle::mir::interpret::error::ErrorHandled> as rustc_serialize::serialize::Decodable<rustc_query_impl::on_disk_cache::CacheDecoder>>::decode
  21: <rustc_query_impl::on_disk_cache::OnDiskCache>::try_load_query_result::<core::result::Result<rustc_middle::mir::interpret::value::ConstAlloc, rustc_middle::mir::interpret::error::ErrorHandled>>
  22: <<rustc_query_impl::queries::eval_to_allocation_raw as rustc_query_system::query::config::QueryDescription<rustc_query_impl::plumbing::QueryCtxt>>::TRY_LOAD_FROM_DISK::{closure#0} as core::ops::function::FnOnce<(rustc_query_impl::plumbing::QueryCtxt, rustc_query_system::dep_graph::serialized::SerializedDepNodeIndex)>>::call_once
  23: <rustc_middle::dep_graph::dep_node::DepKind as rustc_query_system::dep_graph::DepKind>::with_deps::<rustc_query_system::query::plumbing::try_load_from_disk_and_cache_in_memory<rustc_query_impl::plumbing::QueryCtxt, rustc_middle::ty::ParamEnvAnd<rustc_middle::mir::interpret::GlobalId>, core::result::Result<rustc_middle::mir::interpret::value::ConstAlloc, rustc_middle::mir::interpret::error::ErrorHandled>>::{closure#0}, core::option::Option<core::result::Result<rustc_middle::mir::interpret::value::ConstAlloc, rustc_middle::mir::interpret::error::ErrorHandled>>>
  24: <rustc_query_system::dep_graph::graph::DepGraph<rustc_middle::dep_graph::dep_node::DepKind>>::with_query_deserialization::<rustc_query_system::query::plumbing::try_load_from_disk_and_cache_in_memory<rustc_query_impl::plumbing::QueryCtxt, rustc_middle::ty::ParamEnvAnd<rustc_middle::mir::interpret::GlobalId>, core::result::Result<rustc_middle::mir::interpret::value::ConstAlloc, rustc_middle::mir::interpret::error::ErrorHandled>>::{closure#0}, core::option::Option<core::result::Result<rustc_middle::mir::interpret::value::ConstAlloc, rustc_middle::mir::interpret::error::ErrorHandled>>>
  25: rustc_query_system::query::plumbing::try_load_from_disk_and_cache_in_memory::<rustc_query_impl::plumbing::QueryCtxt, rustc_middle::ty::ParamEnvAnd<rustc_middle::mir::interpret::GlobalId>, core::result::Result<rustc_middle::mir::interpret::value::ConstAlloc, rustc_middle::mir::interpret::error::ErrorHandled>>
  26: rustc_query_system::query::plumbing::try_execute_query::<rustc_query_impl::plumbing::QueryCtxt, rustc_query_system::query::caches::DefaultCache<rustc_middle::ty::ParamEnvAnd<rustc_middle::mir::interpret::GlobalId>, core::result::Result<rustc_middle::mir::interpret::value::ConstAlloc, rustc_middle::mir::interpret::error::ErrorHandled>>>
  27: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::eval_to_allocation_raw
  28: <rustc_const_eval::interpret::eval_context::InterpCx<rustc_mir_transform::const_prop::ConstPropMachine>>::mir_const_to_op
  29: <rustc_mir_transform::const_prop::ConstPropagator as rustc_middle::mir::visit::MutVisitor>::visit_body
  30: <rustc_mir_transform::const_prop::ConstProp as rustc_middle::mir::MirPass>::run_pass
  31: rustc_mir_transform::pass_manager::run_passes
  32: rustc_mir_transform::optimized_mir
  33: <rustc_query_system::dep_graph::graph::DepGraph<rustc_middle::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle::ty::context::TyCtxt, rustc_span::def_id::DefId, &rustc_middle::mir::Body>
  34: rustc_data_structures::stack::ensure_sufficient_stack::<(&rustc_middle::mir::Body, rustc_query_system::dep_graph::graph::DepNodeIndex), rustc_query_system::query::plumbing::execute_job<rustc_query_impl::plumbing::QueryCtxt, rustc_span::def_id::DefId, &rustc_middle::mir::Body>::{closure#3}>
  35: rustc_query_system::query::plumbing::try_execute_query::<rustc_query_impl::plumbing::QueryCtxt, rustc_query_system::query::caches::DefaultCache<rustc_span::def_id::DefId, &rustc_middle::mir::Body>>
  36: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::optimized_mir
  37: <rustc_middle::ty::context::TyCtxt>::instance_mir
  38: rustc_monomorphize::collector::collect_neighbours
  39: rustc_monomorphize::collector::collect_items_rec
  40: rustc_monomorphize::collector::collect_items_rec
  41: rustc_monomorphize::collector::collect_items_rec
  42: rustc_monomorphize::collector::collect_items_rec
  43: rustc_monomorphize::collector::collect_items_rec
  44: rustc_monomorphize::collector::collect_items_rec
  45: rustc_monomorphize::collector::collect_items_rec
  46: rustc_monomorphize::collector::collect_items_rec
  47: <rustc_session::session::Session>::time::<(), rustc_monomorphize::collector::collect_crate_mono_items::{closure#1}>
  48: rustc_monomorphize::collector::collect_crate_mono_items
  49: rustc_monomorphize::partitioning::collect_and_partition_mono_items
  50: <rustc_middle::dep_graph::dep_node::DepKind as rustc_query_system::dep_graph::DepKind>::with_deps::<<rustc_query_system::dep_graph::graph::DepGraph<rustc_middle::dep_graph::dep_node::DepKind>>::with_task_impl<rustc_middle::ty::context::TyCtxt, (), (&std::collections::hash::set::HashSet<rustc_span::def_id::DefId, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, &[rustc_middle::mir::mono::CodegenUnit])>::{closure#0}, (&std::collections::hash::set::HashSet<rustc_span::def_id::DefId, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, &[rustc_middle::mir::mono::CodegenUnit])>
  51: <rustc_query_system::dep_graph::graph::DepGraph<rustc_middle::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle::ty::context::TyCtxt, (), (&std::collections::hash::set::HashSet<rustc_span::def_id::DefId, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, &[rustc_middle::mir::mono::CodegenUnit])>
  52: rustc_data_structures::stack::ensure_sufficient_stack::<((&std::collections::hash::set::HashSet<rustc_span::def_id::DefId, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, &[rustc_middle::mir::mono::CodegenUnit]), rustc_query_system::dep_graph::graph::DepNodeIndex), rustc_query_system::query::plumbing::execute_job<rustc_query_impl::plumbing::QueryCtxt, (), (&std::collections::hash::set::HashSet<rustc_span::def_id::DefId, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, &[rustc_middle::mir::mono::CodegenUnit])>::{closure#3}>
  53: rustc_query_system::query::plumbing::try_execute_query::<rustc_query_impl::plumbing::QueryCtxt, rustc_query_system::query::caches::DefaultCache<(), (&std::collections::hash::set::HashSet<rustc_span::def_id::DefId, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>, &[rustc_middle::mir::mono::CodegenUnit])>>
  54: rustc_query_system::query::plumbing::get_query::<rustc_query_impl::queries::collect_and_partition_mono_items, rustc_query_impl::plumbing::QueryCtxt>
  55: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::collect_and_partition_mono_items
  56: <rustc_codegen_llvm::LlvmCodegenBackend as rustc_codegen_ssa::traits::backend::CodegenBackend>::codegen_crate
  57: <rustc_session::session::Session>::time::<alloc::boxed::Box<dyn core::any::Any>, rustc_interface::passes::start_codegen::{closure#0}>
  58: <rustc_interface::queries::Queries>::ongoing_codegen
  59: <rustc_interface::interface::Compiler>::enter::<rustc_driver::run_compiler::{closure#1}::{closure#2}, core::result::Result<core::option::Option<rustc_interface::queries::Linker>, rustc_errors::ErrorReported>>
  60: rustc_span::with_source_map::<core::result::Result<(), rustc_errors::ErrorReported>, rustc_interface::interface::create_compiler_and_run<core::result::Result<(), rustc_errors::ErrorReported>, rustc_driver::run_compiler::{closure#1}>::{closure#1}>
  61: rustc_interface::interface::create_compiler_and_run::<core::result::Result<(), rustc_errors::ErrorReported>, rustc_driver::run_compiler::{closure#1}>
  62: <scoped_tls::ScopedKey<rustc_span::SessionGlobals>>::set::<rustc_interface::util::setup_callbacks_and_run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<core::result::Result<(), rustc_errors::ErrorReported>, rustc_driver::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_errors::ErrorReported>>::{closure#0}::{closure#0}, core::result::Result<(), rustc_errors::ErrorReported>>
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.60.0-nightly (092e1c9d2 2022-01-09) 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:
thread 'rustc' panicked at 'Illegal read of: 100212', /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/compiler/rustc_query_system/src/dep_graph/graph.rs:430:25
stack backtrace:
   0:     0x7f2a221a4ddc - std::backtrace_rs::backtrace::libunwind::trace::ha3637b3c0a861212
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7f2a221a4ddc - std::backtrace_rs::backtrace::trace_unsynchronized::h2c7dd9005e79db2c
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f2a221a4ddc - std::sys_common::backtrace::_print_fmt::h535713dd93ee3c4c
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/std/src/sys_common/backtrace.rs:67:5
   3:     0x7f2a221a4ddc - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h809b14467d02e889
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/std/src/sys_common/backtrace.rs:46:22
   4:     0x7f2a22205acc - core::fmt::write::hfc294fc83dcee4ed
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/core/src/fmt/mod.rs:1168:17
   5:     0x7f2a22194223 - std::io::Write::write_fmt::hb5e396607431a94e
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/std/src/io/mod.rs:1660:15
   6:     0x7f2a221a92a2 - std::sys_common::backtrace::_print::h9bcdf538cc0baa96
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/std/src/sys_common/backtrace.rs:49:5
   7:     0x7f2a221a92a2 - std::sys_common::backtrace::print::h1894f7bda2e9749e
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/std/src/sys_common/backtrace.rs:36:9
   8:     0x7f2a221a92a2 - std::panicking::default_hook::{{closure}}::h72e7816d2f69f0f3
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/std/src/panicking.rs:211:50
   9:     0x7f2a221a8e85 - std::panicking::default_hook::h0f9ba2d0bf41751d
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/std/src/panicking.rs:228:9
  10:     0x7f2a22999131 - rustc_driver[ba85af5a3faca1ca]::DEFAULT_HOOK::{closure#0}::{closure#0}
  11:     0x7f2a102f19e3 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hf2c7901d34d070a6
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/alloc/src/boxed.rs:1868:9
  12:     0x7f2a102ee8fd - proc_macro::bridge::client::<impl proc_macro::bridge::Bridge>::enter::{{closure}}::{{closure}}::h0e77041ecdabe528
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/proc_macro/src/bridge/client.rs:320:21
  13:     0x7f2a221a9a55 - std::panicking::rust_panic_with_hook::h77b08086e8fd7014
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/std/src/panicking.rs:610:17
  14:     0x7f2a221a9750 - std::panicking::begin_panic_handler::{{closure}}::h86a9fb7321178c78
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/std/src/panicking.rs:502:13
  15:     0x7f2a221a5284 - std::sys_common::backtrace::__rust_end_short_backtrace::hf75ec59528a554e3
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/std/src/sys_common/backtrace.rs:139:18
  16:     0x7f2a221a9489 - rust_begin_unwind
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/std/src/panicking.rs:498:5
  17:     0x7f2a22171091 - core::panicking::panic_fmt::h0312adda7686837c
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/core/src/panicking.rs:110:14
  18:     0x7f2a24730a76 - <rustc_middle[d9ad3b9b3f9b63c]::dep_graph::dep_node::DepKind as rustc_query_system[dcc6614447579642]::dep_graph::DepKind>::read_deps::<<rustc_query_system[dcc6614447579642]::dep_graph::graph::DepGraph<rustc_middle[d9ad3b9b3f9b63c]::dep_graph::dep_node::DepKind>>::read_index::{closure#0}>
  19:     0x7f2a250a6127 - <rustc_middle[d9ad3b9b3f9b63c]::ty::print::pretty::FmtPrinter<&mut alloc[4c558cc22567ad0]::string::String> as rustc_middle[d9ad3b9b3f9b63c]::ty::print::Printer>::print_def_path
  20:     0x7f2a250aa6fd - <rustc_middle[d9ad3b9b3f9b63c]::ty::print::pretty::FmtPrinter<&mut alloc[4c558cc22567ad0]::string::String> as rustc_middle[d9ad3b9b3f9b63c]::ty::print::Printer>::default_print_def_path
  21:     0x7f2a250a5eff - <rustc_middle[d9ad3b9b3f9b63c]::ty::print::pretty::FmtPrinter<&mut alloc[4c558cc22567ad0]::string::String> as rustc_middle[d9ad3b9b3f9b63c]::ty::print::Printer>::print_def_path
  22:     0x7f2a250bd012 - <rustc_middle[d9ad3b9b3f9b63c]::ty::context::TyCtxt>::def_path_str_with_substs
  23:     0x7f2a250bcef4 - <rustc_middle[d9ad3b9b3f9b63c]::ty::context::TyCtxt>::def_path_str
  24:     0x7f2a233bbcb1 - <std[9432d0c51efaabbd]::thread::local::LocalKey<core[f6f20b0b833b28a5]::cell::Cell<bool>>>::with::<rustc_middle[d9ad3b9b3f9b63c]::ty::print::pretty::with_no_trimmed_paths<<rustc_query_impl[ea08178a414b5ba2]::queries::optimized_mir as rustc_query_system[dcc6614447579642]::query::config::QueryDescription<rustc_query_impl[ea08178a414b5ba2]::plumbing::QueryCtxt>>::describe::{closure#0}, alloc[4c558cc22567ad0]::string::String>::{closure#0}, alloc[4c558cc22567ad0]::string::String>
  25:     0x7f2a234449c8 - <rustc_query_impl[ea08178a414b5ba2]::queries::optimized_mir as rustc_query_system[dcc6614447579642]::query::config::QueryDescription<rustc_query_impl[ea08178a414b5ba2]::plumbing::QueryCtxt>>::describe
  26:     0x7f2a233d69c7 - <std[9432d0c51efaabbd]::thread::local::LocalKey<core[f6f20b0b833b28a5]::cell::Cell<bool>>>::with::<rustc_middle[d9ad3b9b3f9b63c]::ty::print::pretty::with_forced_impl_filename_line<rustc_query_impl[ea08178a414b5ba2]::make_query::optimized_mir::{closure#0}::{closure#0}, alloc[4c558cc22567ad0]::string::String>::{closure#0}, alloc[4c558cc22567ad0]::string::String>
  27:     0x7f2a233cb799 - <std[9432d0c51efaabbd]::thread::local::LocalKey<core[f6f20b0b833b28a5]::cell::Cell<bool>>>::with::<rustc_middle[d9ad3b9b3f9b63c]::ty::print::pretty::with_no_visible_paths<rustc_query_impl[ea08178a414b5ba2]::make_query::optimized_mir::{closure#0}, alloc[4c558cc22567ad0]::string::String>::{closure#0}, alloc[4c558cc22567ad0]::string::String>
  28:     0x7f2a233f9045 - rustc_query_impl[ea08178a414b5ba2]::make_query::optimized_mir
  29:     0x7f2a231e2dcb - <rustc_query_system[dcc6614447579642]::query::plumbing::QueryState<rustc_middle[d9ad3b9b3f9b63c]::dep_graph::dep_node::DepKind, rustc_span[182ed4cd9b77ad97]::def_id::DefId>>::try_collect_active_jobs::<rustc_query_impl[ea08178a414b5ba2]::plumbing::QueryCtxt>
  30:     0x7f2a2329420f - <rustc_query_impl[ea08178a414b5ba2]::Queries>::try_collect_active_jobs
  31:     0x7f2a2339eae4 - <rustc_query_impl[ea08178a414b5ba2]::plumbing::QueryCtxt>::try_print_query_stack
  32:     0x7f2a22a8c192 - rustc_interface[f7c79f79624a12a1]::interface::try_print_query_stack
  33:     0x7f2a22999527 - rustc_driver[ba85af5a3faca1ca]::report_ice
  34:     0x7f2a102f19e3 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hf2c7901d34d070a6
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/alloc/src/boxed.rs:1868:9
  35:     0x7f2a102ee8fd - proc_macro::bridge::client::<impl proc_macro::bridge::Bridge>::enter::{{closure}}::{{closure}}::h0e77041ecdabe528
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/proc_macro/src/bridge/client.rs:320:21
  36:     0x7f2a221a9a55 - std::panicking::rust_panic_with_hook::h77b08086e8fd7014
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/std/src/panicking.rs:610:17
  37:     0x7f2a221a9750 - std::panicking::begin_panic_handler::{{closure}}::h86a9fb7321178c78
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/std/src/panicking.rs:502:13
  38:     0x7f2a221a5284 - std::sys_common::backtrace::__rust_end_short_backtrace::hf75ec59528a554e3
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/std/src/sys_common/backtrace.rs:139:18
  39:     0x7f2a221a9489 - rust_begin_unwind
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/std/src/panicking.rs:498:5
  40:     0x7f2a22171091 - core::panicking::panic_fmt::h0312adda7686837c
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/core/src/panicking.rs:110:14
  41:     0x7f2a22171052 - core::panicking::panic_bounds_check::h8d766ecee72d26cd
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/core/src/panicking.rs:77:5
  42:     0x7f2a24372ec5 - <rustc_span[182ed4cd9b77ad97]::span_encoding::Span as rustc_serialize[eb5d5fc2ae477600]::serialize::Decodable<rustc_query_impl[ea08178a414b5ba2]::on_disk_cache::CacheDecoder>>::decode
  43:     0x7f2a2436dfd3 - <rustc_middle[d9ad3b9b3f9b63c]::ty::FieldDef as rustc_serialize[eb5d5fc2ae477600]::serialize::Decodable<rustc_query_impl[ea08178a414b5ba2]::on_disk_cache::CacheDecoder>>::decode
  44:     0x7f2a2436dadf - <rustc_middle[d9ad3b9b3f9b63c]::ty::VariantDef as rustc_serialize[eb5d5fc2ae477600]::serialize::Decodable<rustc_query_impl[ea08178a414b5ba2]::on_disk_cache::CacheDecoder>>::decode
  45:     0x7f2a2432ff87 - <rustc_query_impl[ea08178a414b5ba2]::on_disk_cache::CacheDecoder as rustc_serialize[eb5d5fc2ae477600]::serialize::Decoder>::read_seq::<alloc[4c558cc22567ad0]::vec::Vec<rustc_middle[d9ad3b9b3f9b63c]::ty::VariantDef>, <alloc[4c558cc22567ad0]::vec::Vec<rustc_middle[d9ad3b9b3f9b63c]::ty::VariantDef> as rustc_serialize[eb5d5fc2ae477600]::serialize::Decodable<rustc_query_impl[ea08178a414b5ba2]::on_disk_cache::CacheDecoder>>::decode::{closure#0}>
  46:     0x7f2a24dbc337 - <rustc_middle[d9ad3b9b3f9b63c]::ty::adt::AdtDef as rustc_serialize[eb5d5fc2ae477600]::serialize::Decodable<rustc_query_impl[ea08178a414b5ba2]::on_disk_cache::CacheDecoder>>::decode
  47:     0x7f2a24317ecb - <rustc_middle[d9ad3b9b3f9b63c]::ty::sty::TyKind as rustc_serialize[eb5d5fc2ae477600]::serialize::Decodable<rustc_query_impl[ea08178a414b5ba2]::on_disk_cache::CacheDecoder>>::decode
  48:     0x7f2a24366651 - <&rustc_middle[d9ad3b9b3f9b63c]::ty::TyS as rustc_serialize[eb5d5fc2ae477600]::serialize::Decodable<rustc_query_impl[ea08178a414b5ba2]::on_disk_cache::CacheDecoder>>::decode
  49:     0x7f2a232c0d17 - <core[f6f20b0b833b28a5]::result::Result<rustc_middle[d9ad3b9b3f9b63c]::ty::subst::GenericArg, alloc[4c558cc22567ad0]::string::String> as rustc_middle[d9ad3b9b3f9b63c]::ty::context::InternIteratorElement<rustc_middle[d9ad3b9b3f9b63c]::ty::subst::GenericArg, &rustc_middle[d9ad3b9b3f9b63c]::ty::list::List<rustc_middle[d9ad3b9b3f9b63c]::ty::subst::GenericArg>>>::intern_with::<core[f6f20b0b833b28a5]::iter::adapters::map::Map<core[f6f20b0b833b28a5]::ops::range::Range<usize>, <&rustc_middle[d9ad3b9b3f9b63c]::ty::list::List<rustc_middle[d9ad3b9b3f9b63c]::ty::subst::GenericArg> as rustc_serialize[eb5d5fc2ae477600]::serialize::Decodable<rustc_query_impl[ea08178a414b5ba2]::on_disk_cache::CacheDecoder>>::decode::{closure#0}>, <rustc_middle[d9ad3b9b3f9b63c]::ty::context::TyCtxt>::mk_substs<core[f6f20b0b833b28a5]::iter::adapters::map::Map<core[f6f20b0b833b28a5]::ops::range::Range<usize>, <&rustc_middle[d9ad3b9b3f9b63c]::ty::list::List<rustc_middle[d9ad3b9b3f9b63c]::ty::subst::GenericArg> as rustc_serialize[eb5d5fc2ae477600]::serialize::Decodable<rustc_query_impl[ea08178a414b5ba2]::on_disk_cache::CacheDecoder>>::decode::{closure#0}>>::{closure#0}>
  50:     0x7f2a24317fc3 - <rustc_middle[d9ad3b9b3f9b63c]::ty::sty::TyKind as rustc_serialize[eb5d5fc2ae477600]::serialize::Decodable<rustc_query_impl[ea08178a414b5ba2]::on_disk_cache::CacheDecoder>>::decode
  51:     0x7f2a24366651 - <&rustc_middle[d9ad3b9b3f9b63c]::ty::TyS as rustc_serialize[eb5d5fc2ae477600]::serialize::Decodable<rustc_query_impl[ea08178a414b5ba2]::on_disk_cache::CacheDecoder>>::decode
  52:     0x7f2a2431803e - <rustc_middle[d9ad3b9b3f9b63c]::ty::sty::TyKind as rustc_serialize[eb5d5fc2ae477600]::serialize::Decodable<rustc_query_impl[ea08178a414b5ba2]::on_disk_cache::CacheDecoder>>::decode
  53:     0x7f2a24366651 - <&rustc_middle[d9ad3b9b3f9b63c]::ty::TyS as rustc_serialize[eb5d5fc2ae477600]::serialize::Decodable<rustc_query_impl[ea08178a414b5ba2]::on_disk_cache::CacheDecoder>>::decode
  54:     0x7f2a2436651b - <&rustc_middle[d9ad3b9b3f9b63c]::ty::TyS as rustc_serialize[eb5d5fc2ae477600]::serialize::Decodable<rustc_query_impl[ea08178a414b5ba2]::on_disk_cache::CacheDecoder>>::decode
  55:     0x7f2a232c0d17 - <core[f6f20b0b833b28a5]::result::Result<rustc_middle[d9ad3b9b3f9b63c]::ty::subst::GenericArg, alloc[4c558cc22567ad0]::string::String> as rustc_middle[d9ad3b9b3f9b63c]::ty::context::InternIteratorElement<rustc_middle[d9ad3b9b3f9b63c]::ty::subst::GenericArg, &rustc_middle[d9ad3b9b3f9b63c]::ty::list::List<rustc_middle[d9ad3b9b3f9b63c]::ty::subst::GenericArg>>>::intern_with::<core[f6f20b0b833b28a5]::iter::adapters::map::Map<core[f6f20b0b833b28a5]::ops::range::Range<usize>, <&rustc_middle[d9ad3b9b3f9b63c]::ty::list::List<rustc_middle[d9ad3b9b3f9b63c]::ty::subst::GenericArg> as rustc_serialize[eb5d5fc2ae477600]::serialize::Decodable<rustc_query_impl[ea08178a414b5ba2]::on_disk_cache::CacheDecoder>>::decode::{closure#0}>, <rustc_middle[d9ad3b9b3f9b63c]::ty::context::TyCtxt>::mk_substs<core[f6f20b0b833b28a5]::iter::adapters::map::Map<core[f6f20b0b833b28a5]::ops::range::Range<usize>, <&rustc_middle[d9ad3b9b3f9b63c]::ty::list::List<rustc_middle[d9ad3b9b3f9b63c]::ty::subst::GenericArg> as rustc_serialize[eb5d5fc2ae477600]::serialize::Decodable<rustc_query_impl[ea08178a414b5ba2]::on_disk_cache::CacheDecoder>>::decode::{closure#0}>>::{closure#0}>
  56:     0x7f2a24317fc3 - <rustc_middle[d9ad3b9b3f9b63c]::ty::sty::TyKind as rustc_serialize[eb5d5fc2ae477600]::serialize::Decodable<rustc_query_impl[ea08178a414b5ba2]::on_disk_cache::CacheDecoder>>::decode
  57:     0x7f2a24366651 - <&rustc_middle[d9ad3b9b3f9b63c]::ty::TyS as rustc_serialize[eb5d5fc2ae477600]::serialize::Decodable<rustc_query_impl[ea08178a414b5ba2]::on_disk_cache::CacheDecoder>>::decode
  58:     0x7f2a2436651b - <&rustc_middle[d9ad3b9b3f9b63c]::ty::TyS as rustc_serialize[eb5d5fc2ae477600]::serialize::Decodable<rustc_query_impl[ea08178a414b5ba2]::on_disk_cache::CacheDecoder>>::decode
  59:     0x7f2a24db1828 - <core[f6f20b0b833b28a5]::result::Result<rustc_middle[d9ad3b9b3f9b63c]::mir::interpret::value::ConstAlloc, rustc_middle[d9ad3b9b3f9b63c]::mir::interpret::error::ErrorHandled> as rustc_serialize[eb5d5fc2ae477600]::serialize::Decodable<rustc_query_impl[ea08178a414b5ba2]::on_disk_cache::CacheDecoder>>::decode
  60:     0x7f2a24dd6b51 - <rustc_query_impl[ea08178a414b5ba2]::on_disk_cache::OnDiskCache>::try_load_query_result::<core[f6f20b0b833b28a5]::result::Result<rustc_middle[d9ad3b9b3f9b63c]::mir::interpret::value::ConstAlloc, rustc_middle[d9ad3b9b3f9b63c]::mir::interpret::error::ErrorHandled>>
  61:     0x7f2a24cc4350 - <<rustc_query_impl[ea08178a414b5ba2]::queries::eval_to_allocation_raw as rustc_query_system[dcc6614447579642]::query::config::QueryDescription<rustc_query_impl[ea08178a414b5ba2]::plumbing::QueryCtxt>>::TRY_LOAD_FROM_DISK::{closure#0} as core[f6f20b0b833b28a5]::ops::function::FnOnce<(rustc_query_impl[ea08178a414b5ba2]::plumbing::QueryCtxt, rustc_query_system[dcc6614447579642]::dep_graph::serialized::SerializedDepNodeIndex)>>::call_once
  62:     0x7f2a24e505c6 - <rustc_middle[d9ad3b9b3f9b63c]::dep_graph::dep_node::DepKind as rustc_query_system[dcc6614447579642]::dep_graph::DepKind>::with_deps::<rustc_query_system[dcc6614447579642]::query::plumbing::try_load_from_disk_and_cache_in_memory<rustc_query_impl[ea08178a414b5ba2]::plumbing::QueryCtxt, rustc_middle[d9ad3b9b3f9b63c]::ty::ParamEnvAnd<rustc_middle[d9ad3b9b3f9b63c]::mir::interpret::GlobalId>, core[f6f20b0b833b28a5]::result::Result<rustc_middle[d9ad3b9b3f9b63c]::mir::interpret::value::ConstAlloc, rustc_middle[d9ad3b9b3f9b63c]::mir::interpret::error::ErrorHandled>>::{closure#0}, core[f6f20b0b833b28a5]::option::Option<core[f6f20b0b833b28a5]::result::Result<rustc_middle[d9ad3b9b3f9b63c]::mir::interpret::value::ConstAlloc, rustc_middle[d9ad3b9b3f9b63c]::mir::interpret::error::ErrorHandled>>>
  63:     0x7f2a24df544b - <rustc_query_system[dcc6614447579642]::dep_graph::graph::DepGraph<rustc_middle[d9ad3b9b3f9b63c]::dep_graph::dep_node::DepKind>>::with_query_deserialization::<rustc_query_system[dcc6614447579642]::query::plumbing::try_load_from_disk_and_cache_in_memory<rustc_query_impl[ea08178a414b5ba2]::plumbing::QueryCtxt, rustc_middle[d9ad3b9b3f9b63c]::ty::ParamEnvAnd<rustc_middle[d9ad3b9b3f9b63c]::mir::interpret::GlobalId>, core[f6f20b0b833b28a5]::result::Result<rustc_middle[d9ad3b9b3f9b63c]::mir::interpret::value::ConstAlloc, rustc_middle[d9ad3b9b3f9b63c]::mir::interpret::error::ErrorHandled>>::{closure#0}, core[f6f20b0b833b28a5]::option::Option<core[f6f20b0b833b28a5]::result::Result<rustc_middle[d9ad3b9b3f9b63c]::mir::interpret::value::ConstAlloc, rustc_middle[d9ad3b9b3f9b63c]::mir::interpret::error::ErrorHandled>>>
  64:     0x7f2a24d14fc0 - rustc_query_system[dcc6614447579642]::query::plumbing::try_load_from_disk_and_cache_in_memory::<rustc_query_impl[ea08178a414b5ba2]::plumbing::QueryCtxt, rustc_middle[d9ad3b9b3f9b63c]::ty::ParamEnvAnd<rustc_middle[d9ad3b9b3f9b63c]::mir::interpret::GlobalId>, core[f6f20b0b833b28a5]::result::Result<rustc_middle[d9ad3b9b3f9b63c]::mir::interpret::value::ConstAlloc, rustc_middle[d9ad3b9b3f9b63c]::mir::interpret::error::ErrorHandled>>
  65:     0x7f2a24284f2a - rustc_query_system[dcc6614447579642]::query::plumbing::try_execute_query::<rustc_query_impl[ea08178a414b5ba2]::plumbing::QueryCtxt, rustc_query_system[dcc6614447579642]::query::caches::DefaultCache<rustc_middle[d9ad3b9b3f9b63c]::ty::ParamEnvAnd<rustc_middle[d9ad3b9b3f9b63c]::mir::interpret::GlobalId>, core[f6f20b0b833b28a5]::result::Result<rustc_middle[d9ad3b9b3f9b63c]::mir::interpret::value::ConstAlloc, rustc_middle[d9ad3b9b3f9b63c]::mir::interpret::error::ErrorHandled>>>
  66:     0x7f2a2430dccf - <rustc_query_impl[ea08178a414b5ba2]::Queries as rustc_middle[d9ad3b9b3f9b63c]::ty::query::QueryEngine>::eval_to_allocation_raw
  67:     0x7f2a23d4a2b8 - <rustc_const_eval[5bfe843e278bd56f]::interpret::eval_context::InterpCx<rustc_mir_transform[1e4f66d42baae79d]::const_prop::ConstPropMachine>>::mir_const_to_op
  68:     0x7f2a23d176a5 - <rustc_mir_transform[1e4f66d42baae79d]::const_prop::ConstPropagator as rustc_middle[d9ad3b9b3f9b63c]::mir::visit::MutVisitor>::visit_body
  69:     0x7f2a23d1554b - <rustc_mir_transform[1e4f66d42baae79d]::const_prop::ConstProp as rustc_middle[d9ad3b9b3f9b63c]::mir::MirPass>::run_pass
  70:     0x7f2a23d54a6f - rustc_mir_transform[1e4f66d42baae79d]::pass_manager::run_passes
  71:     0x7f2a24a25acb - rustc_mir_transform[1e4f66d42baae79d]::optimized_mir
  72:     0x7f2a24e1490a - <rustc_query_system[dcc6614447579642]::dep_graph::graph::DepGraph<rustc_middle[d9ad3b9b3f9b63c]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[d9ad3b9b3f9b63c]::ty::context::TyCtxt, rustc_span[182ed4cd9b77ad97]::def_id::DefId, &rustc_middle[d9ad3b9b3f9b63c]::mir::Body>
  73:     0x7f2a24d8d716 - rustc_data_structures[1a3073cb50ea1b79]::stack::ensure_sufficient_stack::<(&rustc_middle[d9ad3b9b3f9b63c]::mir::Body, rustc_query_system[dcc6614447579642]::dep_graph::graph::DepNodeIndex), rustc_query_system[dcc6614447579642]::query::plumbing::execute_job<rustc_query_impl[ea08178a414b5ba2]::plumbing::QueryCtxt, rustc_span[182ed4cd9b77ad97]::def_id::DefId, &rustc_middle[d9ad3b9b3f9b63c]::mir::Body>::{closure#3}>
  74:     0x7f2a242a89dd - rustc_query_system[dcc6614447579642]::query::plumbing::try_execute_query::<rustc_query_impl[ea08178a414b5ba2]::plumbing::QueryCtxt, rustc_query_system[dcc6614447579642]::query::caches::DefaultCache<rustc_span[182ed4cd9b77ad97]::def_id::DefId, &rustc_middle[d9ad3b9b3f9b63c]::mir::Body>>
  75:     0x7f2a24307e57 - <rustc_query_impl[ea08178a414b5ba2]::Queries as rustc_middle[d9ad3b9b3f9b63c]::ty::query::QueryEngine>::optimized_mir
  76:     0x7f2a2471e3ee - <rustc_middle[d9ad3b9b3f9b63c]::ty::context::TyCtxt>::instance_mir
  77:     0x7f2a23cdfda6 - rustc_monomorphize[90260b488f275e8f]::collector::collect_neighbours
  78:     0x7f2a23cdb605 - rustc_monomorphize[90260b488f275e8f]::collector::collect_items_rec
  79:     0x7f2a23cdb745 - rustc_monomorphize[90260b488f275e8f]::collector::collect_items_rec
  80:     0x7f2a23cdb745 - rustc_monomorphize[90260b488f275e8f]::collector::collect_items_rec
  81:     0x7f2a23cdb745 - rustc_monomorphize[90260b488f275e8f]::collector::collect_items_rec
  82:     0x7f2a23cdb745 - rustc_monomorphize[90260b488f275e8f]::collector::collect_items_rec
  83:     0x7f2a23cdb745 - rustc_monomorphize[90260b488f275e8f]::collector::collect_items_rec
  84:     0x7f2a23cdb745 - rustc_monomorphize[90260b488f275e8f]::collector::collect_items_rec
  85:     0x7f2a23cdb745 - rustc_monomorphize[90260b488f275e8f]::collector::collect_items_rec
  86:     0x7f2a249f55cf - <rustc_session[3c1269f45d156adc]::session::Session>::time::<(), rustc_monomorphize[90260b488f275e8f]::collector::collect_crate_mono_items::{closure#1}>
  87:     0x7f2a249fde79 - rustc_monomorphize[90260b488f275e8f]::collector::collect_crate_mono_items
  88:     0x7f2a249fc633 - rustc_monomorphize[90260b488f275e8f]::partitioning::collect_and_partition_mono_items
  89:     0x7f2a23415860 - <rustc_middle[d9ad3b9b3f9b63c]::dep_graph::dep_node::DepKind as rustc_query_system[dcc6614447579642]::dep_graph::DepKind>::with_deps::<<rustc_query_system[dcc6614447579642]::dep_graph::graph::DepGraph<rustc_middle[d9ad3b9b3f9b63c]::dep_graph::dep_node::DepKind>>::with_task_impl<rustc_middle[d9ad3b9b3f9b63c]::ty::context::TyCtxt, (), (&std[9432d0c51efaabbd]::collections::hash::set::HashSet<rustc_span[182ed4cd9b77ad97]::def_id::DefId, core[f6f20b0b833b28a5]::hash::BuildHasherDefault<rustc_hash[fd6721da4449c83d]::FxHasher>>, &[rustc_middle[d9ad3b9b3f9b63c]::mir::mono::CodegenUnit])>::{closure#0}, (&std[9432d0c51efaabbd]::collections::hash::set::HashSet<rustc_span[182ed4cd9b77ad97]::def_id::DefId, core[f6f20b0b833b28a5]::hash::BuildHasherDefault<rustc_hash[fd6721da4449c83d]::FxHasher>>, &[rustc_middle[d9ad3b9b3f9b63c]::mir::mono::CodegenUnit])>
  90:     0x7f2a23365e4f - <rustc_query_system[dcc6614447579642]::dep_graph::graph::DepGraph<rustc_middle[d9ad3b9b3f9b63c]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[d9ad3b9b3f9b63c]::ty::context::TyCtxt, (), (&std[9432d0c51efaabbd]::collections::hash::set::HashSet<rustc_span[182ed4cd9b77ad97]::def_id::DefId, core[f6f20b0b833b28a5]::hash::BuildHasherDefault<rustc_hash[fd6721da4449c83d]::FxHasher>>, &[rustc_middle[d9ad3b9b3f9b63c]::mir::mono::CodegenUnit])>
  91:     0x7f2a2328f8bd - rustc_data_structures[1a3073cb50ea1b79]::stack::ensure_sufficient_stack::<((&std[9432d0c51efaabbd]::collections::hash::set::HashSet<rustc_span[182ed4cd9b77ad97]::def_id::DefId, core[f6f20b0b833b28a5]::hash::BuildHasherDefault<rustc_hash[fd6721da4449c83d]::FxHasher>>, &[rustc_middle[d9ad3b9b3f9b63c]::mir::mono::CodegenUnit]), rustc_query_system[dcc6614447579642]::dep_graph::graph::DepNodeIndex), rustc_query_system[dcc6614447579642]::query::plumbing::execute_job<rustc_query_impl[ea08178a414b5ba2]::plumbing::QueryCtxt, (), (&std[9432d0c51efaabbd]::collections::hash::set::HashSet<rustc_span[182ed4cd9b77ad97]::def_id::DefId, core[f6f20b0b833b28a5]::hash::BuildHasherDefault<rustc_hash[fd6721da4449c83d]::FxHasher>>, &[rustc_middle[d9ad3b9b3f9b63c]::mir::mono::CodegenUnit])>::{closure#3}>
  92:     0x7f2a24d1345b - rustc_query_system[dcc6614447579642]::query::plumbing::try_execute_query::<rustc_query_impl[ea08178a414b5ba2]::plumbing::QueryCtxt, rustc_query_system[dcc6614447579642]::query::caches::DefaultCache<(), (&std[9432d0c51efaabbd]::collections::hash::set::HashSet<rustc_span[182ed4cd9b77ad97]::def_id::DefId, core[f6f20b0b833b28a5]::hash::BuildHasherDefault<rustc_hash[fd6721da4449c83d]::FxHasher>>, &[rustc_middle[d9ad3b9b3f9b63c]::mir::mono::CodegenUnit])>>
  93:     0x7f2a24d61350 - rustc_query_system[dcc6614447579642]::query::plumbing::get_query::<rustc_query_impl[ea08178a414b5ba2]::queries::collect_and_partition_mono_items, rustc_query_impl[ea08178a414b5ba2]::plumbing::QueryCtxt>
  94:     0x7f2a24da489e - <rustc_query_impl[ea08178a414b5ba2]::Queries as rustc_middle[d9ad3b9b3f9b63c]::ty::query::QueryEngine>::collect_and_partition_mono_items
  95:     0x7f2a248d2c80 - <rustc_codegen_llvm[f7ea2bd2c0795039]::LlvmCodegenBackend as rustc_codegen_ssa[99e01efcbc3c56ae]::traits::backend::CodegenBackend>::codegen_crate
  96:     0x7f2a2488a507 - <rustc_session[3c1269f45d156adc]::session::Session>::time::<alloc[4c558cc22567ad0]::boxed::Box<dyn core[f6f20b0b833b28a5]::any::Any>, rustc_interface[f7c79f79624a12a1]::passes::start_codegen::{closure#0}>
  97:     0x7f2a2486e694 - <rustc_interface[f7c79f79624a12a1]::queries::Queries>::ongoing_codegen
  98:     0x7f2a24848614 - <rustc_interface[f7c79f79624a12a1]::interface::Compiler>::enter::<rustc_driver[ba85af5a3faca1ca]::run_compiler::{closure#1}::{closure#2}, core[f6f20b0b833b28a5]::result::Result<core[f6f20b0b833b28a5]::option::Option<rustc_interface[f7c79f79624a12a1]::queries::Linker>, rustc_errors[485aba9431bcc220]::ErrorReported>>
  99:     0x7f2a2482a1bc - rustc_span[182ed4cd9b77ad97]::with_source_map::<core[f6f20b0b833b28a5]::result::Result<(), rustc_errors[485aba9431bcc220]::ErrorReported>, rustc_interface[f7c79f79624a12a1]::interface::create_compiler_and_run<core[f6f20b0b833b28a5]::result::Result<(), rustc_errors[485aba9431bcc220]::ErrorReported>, rustc_driver[ba85af5a3faca1ca]::run_compiler::{closure#1}>::{closure#1}>
 100:     0x7f2a2484799e - rustc_interface[f7c79f79624a12a1]::interface::create_compiler_and_run::<core[f6f20b0b833b28a5]::result::Result<(), rustc_errors[485aba9431bcc220]::ErrorReported>, rustc_driver[ba85af5a3faca1ca]::run_compiler::{closure#1}>
 101:     0x7f2a2482b71b - <scoped_tls[b92d5e8a40eb45aa]::ScopedKey<rustc_span[182ed4cd9b77ad97]::SessionGlobals>>::set::<rustc_interface[f7c79f79624a12a1]::util::setup_callbacks_and_run_in_thread_pool_with_globals<rustc_interface[f7c79f79624a12a1]::interface::run_compiler<core[f6f20b0b833b28a5]::result::Result<(), rustc_errors[485aba9431bcc220]::ErrorReported>, rustc_driver[ba85af5a3faca1ca]::run_compiler::{closure#1}>::{closure#0}, core[f6f20b0b833b28a5]::result::Result<(), rustc_errors[485aba9431bcc220]::ErrorReported>>::{closure#0}::{closure#0}, core[f6f20b0b833b28a5]::result::Result<(), rustc_errors[485aba9431bcc220]::ErrorReported>>
 102:     0x7f2a2482b515 - std[9432d0c51efaabbd]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[f7c79f79624a12a1]::util::setup_callbacks_and_run_in_thread_pool_with_globals<rustc_interface[f7c79f79624a12a1]::interface::run_compiler<core[f6f20b0b833b28a5]::result::Result<(), rustc_errors[485aba9431bcc220]::ErrorReported>, rustc_driver[ba85af5a3faca1ca]::run_compiler::{closure#1}>::{closure#0}, core[f6f20b0b833b28a5]::result::Result<(), rustc_errors[485aba9431bcc220]::ErrorReported>>::{closure#0}, core[f6f20b0b833b28a5]::result::Result<(), rustc_errors[485aba9431bcc220]::ErrorReported>>
 103:     0x7f2a24857f59 - <<std[9432d0c51efaabbd]::thread::Builder>::spawn_unchecked<rustc_interface[f7c79f79624a12a1]::util::setup_callbacks_and_run_in_thread_pool_with_globals<rustc_interface[f7c79f79624a12a1]::interface::run_compiler<core[f6f20b0b833b28a5]::result::Result<(), rustc_errors[485aba9431bcc220]::ErrorReported>, rustc_driver[ba85af5a3faca1ca]::run_compiler::{closure#1}>::{closure#0}, core[f6f20b0b833b28a5]::result::Result<(), rustc_errors[485aba9431bcc220]::ErrorReported>>::{closure#0}, core[f6f20b0b833b28a5]::result::Result<(), rustc_errors[485aba9431bcc220]::ErrorReported>>::{closure#1} as core[f6f20b0b833b28a5]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
 104:     0x7f2a221b4fa3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h05cfa6de3f0fd517
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/alloc/src/boxed.rs:1854:9
 105:     0x7f2a221b4fa3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7c4cbc94ca7a9672
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/alloc/src/boxed.rs:1854:9
 106:     0x7f2a221b4fa3 - std::sys::unix::thread::Thread::new::thread_start::h0a107fcebf1d0941
                               at /rustc/092e1c9d23158d81be27bb6f71bdd0c6282478fb/library/std/src/sys/unix/thread.rs:108:17
 107:     0x7f2a220e7ea7 - start_thread
                               at ./nptl/./nptl/pthread_create.c:477:8
 108:     0x7f2a2200adef - clone
                               at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
 109:                0x0 - <unknown>

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.60.0-nightly (092e1c9d2 2022-01-09) 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:
end of query stack
thread panicked while panicking. aborting.
error: could not compile `enarx`

Caused by:
  process didn't exit successfully: `rustc --crate-name enarx --edition=2021 src/main.rs --error-format=json --json=diagnostic-rendered-ansi,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="backend-kvm"' --cfg 'feature="backend-sev"' --cfg 'feature="backend-sgx"' --cfg 'feature="default"' --cfg 'feature="kvm-bindings"' --cfg 'feature="kvm-ioctls"' --cfg 'feature="reqwest"' --cfg 'feature="sgx"' --cfg 'feature="wasmldr"' --cfg 'feature="x86_64"' -C metadata=1fcc1f2baea1325c -C extra-filename=-1fcc1f2baea1325c --out-dir /home/jarkkojs/Hacking/enarx/target/debug/deps -C incremental=/home/jarkkojs/Hacking/enarx/target/debug/incremental -L dependency=/home/jarkkojs/Hacking/enarx/target/debug/deps --extern anyhow=/home/jarkkojs/Hacking/enarx/target/debug/deps/libanyhow-ba99f7cf17713f8c.rlib --extern bitflags=/home/jarkkojs/Hacking/enarx/target/debug/deps/libbitflags-05dfd5b5d1225bed.rlib --extern colorful=/home/jarkkojs/Hacking/enarx/target/debug/deps/libcolorful-92e5e2536915137b.rlib --extern const_default=/home/jarkkojs/Hacking/enarx/target/debug/deps/libconst_default-75f942977d4a4551.rlib --extern env_logger=/home/jarkkojs/Hacking/enarx/target/debug/deps/libenv_logger-b9e8e33b80137161.rlib --extern goblin=/home/jarkkojs/Hacking/enarx/target/debug/deps/libgoblin-e0287ee7f8b7e957.rlib --extern iocuddle=/home/jarkkojs/Hacking/enarx/target/debug/deps/libiocuddle-9ecfae348872a186.rlib --extern kvm_bindings=/home/jarkkojs/Hacking/enarx/target/debug/deps/libkvm_bindings-33cf1e4c32acf865.rlib --extern kvm_ioctls=/home/jarkkojs/Hacking/enarx/target/debug/deps/libkvm_ioctls-cd5c3bc0e90a9ac8.rlib --extern libc=/home/jarkkojs/Hacking/enarx/target/debug/deps/liblibc-afd8afe3a059e1c8.rlib --extern log=/home/jarkkojs/Hacking/enarx/target/debug/deps/liblog-41607b4997ff699e.rlib --extern lset=/home/jarkkojs/Hacking/enarx/target/debug/deps/liblset-550515f65da95f61.rlib --extern mmarinus=/home/jarkkojs/Hacking/enarx/target/debug/deps/libmmarinus-14968a5db995f35b.rlib --extern nbytes=/home/jarkkojs/Hacking/enarx/target/debug/deps/libnbytes-c7f04a636a183cff.rlib --extern openssl=/home/jarkkojs/Hacking/enarx/target/debug/deps/libopenssl-a22c57513a29b047.rlib --extern primordial=/home/jarkkojs/Hacking/enarx/target/debug/deps/libprimordial-3e27f591b0d33757.rlib --extern protobuf=/home/jarkkojs/Hacking/enarx/target/debug/deps/libprotobuf-301591e11a6cbad2.rlib --extern reqwest=/home/jarkkojs/Hacking/enarx/target/debug/deps/libreqwest-0139c5466a12e133.rlib --extern sallyport=/home/jarkkojs/Hacking/enarx/target/debug/deps/libsallyport-b80f18e7803fdc36.rlib --extern semver=/home/jarkkojs/Hacking/enarx/target/debug/deps/libsemver-5f2660b957859ec1.rlib --extern sgx=/home/jarkkojs/Hacking/enarx/target/debug/deps/libsgx-4d4203b711f40b39.rlib --extern spinning=/home/jarkkojs/Hacking/enarx/target/debug/deps/libspinning-36e7b78ee88f70d4.rlib --extern structopt=/home/jarkkojs/Hacking/enarx/target/debug/deps/libstructopt-8c53f821d94573d7.rlib --extern vdso=/home/jarkkojs/Hacking/enarx/target/debug/deps/libvdso-9d3f45d5142ff3a7.rlib --extern x86_64=/home/jarkkojs/Hacking/enarx/target/debug/deps/libx86_64-8774503d36f411f8.rlib` (signal: 4, SIGILL: illegal instruction)

TOOLCHAIN

$ rustup toolchain list
stable-x86_64-unknown-linux-gnu (default)
nightly-2022-01-10-x86_64-unknown-linux-gnu (override)
nightly-x86_64-unknown-linux-gnu

OTHER

Snapshot of the state of in-progress patch that triggered the rustc crash: https://github.com/jarkkojs/enarx/tree/rustc-crash

hkratz commented 2 years ago

@rustbot label +A-incr-comp

Aaron1011 commented 2 years ago

This should be fixed in the latest nightly

jarkkojs commented 2 years ago

I tested and the fix works, thank you!