Skip to content

Error when compiling wgpu for iced-rs #111372

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

Closed
sandalbanditten opened this issue May 8, 2023 · 2 comments
Closed

Error when compiling wgpu for iced-rs #111372

sandalbanditten opened this issue May 8, 2023 · 2 comments
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@sandalbanditten
Copy link

sandalbanditten commented May 8, 2023

Code

The errors occurred while compiling dependencies.

fn main() {
    println!("Hello, world!");
}

Meta

rustc --version --verbose:

rustc 1.71.0-nightly (c4190f2d3 2023-05-07)
binary: rustc
commit-hash: c4190f2d3a46a59f435f7b42f58bc22b2f4d6917
commit-date: 2023-05-07
host: x86_64-unknown-linux-gnu
release: 1.71.0-nightly
LLVM version: 16.0.2

Error output

Four error messages were emitted, with corresponding backtraces further below.

The four errors:

error: internal compiler error: compiler/rustc_monomorphize/src/collector.rs:1038:9: no MIR available for DefId(28:2987 ~ wgpu_core[0d8e]::track::texture::{impl#0}::any_exclusive)

thread 'rustc' panicked at 'Box<dyn Any>', /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/compiler/rustc_errors/src/lib.rs:1650:9

and

error: internal compiler error: compiler/rustc_monomorphize/src/collector.rs:1038:9: no MIR available for DefId(28:2771 ~ wgpu_core[0d8e]::track::buffer::{impl#0}::any_exclusive)

thread 'rustc' panicked at 'Box<dyn Any>', /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/compiler/rustc_errors/src/lib.rs:1650:9

and

error: internal compiler error: compiler/rustc_monomorphize/src/collector.rs:1038:9: no MIR available for DefId(28:2770 ~ wgpu_core[0d8e]::track::buffer::{impl#0}::all_ordered)

thread 'rustc' panicked at 'Box<dyn Any>', /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/compiler/rustc_errors/src/lib.rs:1650:9

and lastly

error: internal compiler error: compiler/rustc_monomorphize/src/collector.rs:1038:9: no MIR available for DefId(28:2986 ~ wgpu_core[0d8e]::track::texture::{impl#0}::all_ordered)

thread 'rustc' panicked at 'Box<dyn Any>', /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/compiler/rustc_errors/src/lib.rs:1650:9
Backtrace

(With RUST_BACKTRACE=full)

The four backtraces:

The first two are identical:

stack backtrace:
   0:     0x7fc291d69e71 - std::backtrace_rs::backtrace::libunwind::trace::hdca2f1d760ae3bfc
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7fc291d69e71 - std::backtrace_rs::backtrace::trace_unsynchronized::hd02181015534cc1c
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7fc291d69e71 - std::sys_common::backtrace::_print_fmt::h027d0dd83d9c6057
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x7fc291d69e71 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hc3454f8104aa16e4
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7fc291dca1bf - core::fmt::rt::Argument::fmt::haca00ab3f8062a1f
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/core/src/fmt/rt.rs:138:9
   5:     0x7fc291dca1bf - core::fmt::write::he3e34afeea0f8a6d
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/core/src/fmt/mod.rs:1094:21
   6:     0x7fc291d5d141 - std::io::Write::write_fmt::h0dda8fe866ff6ad9
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/io/mod.rs:1712:15
   7:     0x7fc291d69c85 - std::sys_common::backtrace::_print::hdee7445a3e0bc35e
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/sys_common/backtrace.rs:47:5
   8:     0x7fc291d69c85 - std::sys_common::backtrace::print::h88d45cc795ad4f3a
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7fc291d6c917 - std::panicking::default_hook::{{closure}}::h0c28f70af069bb4e
  10:     0x7fc291d6c704 - std::panicking::default_hook::h9d9751edb4b25952
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/panicking.rs:288:9
  11:     0x7fc294f89e4b - rustc_driver_impl[dde0876b390e6a89]::install_ice_hook::{closure#0}
  12:     0x7fc291d6d037 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hd829a428c0494b99
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/alloc/src/boxed.rs:1999:9
  13:     0x7fc291d6d037 - std::panicking::rust_panic_with_hook::hb6e77b312dba3d0e
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/panicking.rs:695:13
  14:     0x7fc29544e221 - std[d48aaa48ad184f7f]::panicking::begin_panic::<rustc_errors[f0db23b40a7f92ee]::ExplicitBug>::{closure#0}
  15:     0x7fc29544de16 - std[d48aaa48ad184f7f]::sys_common::backtrace::__rust_end_short_backtrace::<std[d48aaa48ad184f7f]::panicking::begin_panic<rustc_errors[f0db23b40a7f92ee]::ExplicitBug>::{closure#0}, !>
  16:     0x7fc295477ac6 - std[d48aaa48ad184f7f]::panicking::begin_panic::<rustc_errors[f0db23b40a7f92ee]::ExplicitBug>
  17:     0x7fc295471ec4 - <rustc_errors[f0db23b40a7f92ee]::HandlerInner>::bug::<alloc[f90fa24b258e2697]::string::String>
  18:     0x7fc295471bf6 - <rustc_errors[f0db23b40a7f92ee]::Handler>::bug::<alloc[f90fa24b258e2697]::string::String>
  19:     0x7fc2954f9aac - rustc_middle[f12e14326fcb6d37]::util::bug::opt_span_bug_fmt::<rustc_span[3e163d59592952e6]::span_encoding::Span>::{closure#0}
  20:     0x7fc2954f92da - rustc_middle[f12e14326fcb6d37]::ty::context::tls::with_opt::<rustc_middle[f12e14326fcb6d37]::util::bug::opt_span_bug_fmt<rustc_span[3e163d59592952e6]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  21:     0x7fc2954f92aa - rustc_middle[f12e14326fcb6d37]::ty::context::tls::with_context_opt::<rustc_middle[f12e14326fcb6d37]::ty::context::tls::with_opt<rustc_middle[f12e14326fcb6d37]::util::bug::opt_span_bug_fmt<rustc_span[3e163d59592952e6]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  22:     0x7fc29319becd - rustc_middle[f12e14326fcb6d37]::util::bug::bug_fmt
  23:     0x7fc293df2c5e - rustc_monomorphize[cbdbc32531e69938]::collector::collect_neighbours
  24:     0x7fc293de2980 - rustc_monomorphize[cbdbc32531e69938]::collector::collect_items_rec
  25:     0x7fc293de2e30 - rustc_monomorphize[cbdbc32531e69938]::collector::collect_items_rec
  26:     0x7fc293de2e30 - rustc_monomorphize[cbdbc32531e69938]::collector::collect_items_rec
  27:     0x7fc293de2e30 - rustc_monomorphize[cbdbc32531e69938]::collector::collect_items_rec
  28:     0x7fc293de2e30 - rustc_monomorphize[cbdbc32531e69938]::collector::collect_items_rec
  29:     0x7fc2943ebc13 - <rustc_session[ed834786aaef6aa]::session::Session>::time::<(), rustc_monomorphize[cbdbc32531e69938]::collector::collect_crate_mono_items::{closure#1}>
  30:     0x7fc2943ea5f0 - rustc_monomorphize[cbdbc32531e69938]::collector::collect_crate_mono_items
  31:     0x7fc2943e8e57 - rustc_monomorphize[cbdbc32531e69938]::partitioning::collect_and_partition_mono_items
  32:     0x7fc2947b6a9c - rustc_query_system[284fc37ba8dbaa13]::query::plumbing::try_execute_query::<rustc_query_impl[14a35b422f4e9e94]::queries::collect_and_partition_mono_items, rustc_query_impl[14a35b422f4e9e94]::plumbing::QueryCtxt>
  33:     0x7fc2947b677d - rustc_query_impl[14a35b422f4e9e94]::get_query::collect_and_partition_mono_items
  34:     0x7fc294790325 - rustc_codegen_ssa[4fe01baa5c138594]::back::symbol_export::exported_symbols_provider_local
  35:     0x7fc2946d9478 - rustc_query_system[284fc37ba8dbaa13]::query::plumbing::try_execute_query::<rustc_query_impl[14a35b422f4e9e94]::queries::exported_symbols, rustc_query_impl[14a35b422f4e9e94]::plumbing::QueryCtxt>
  36:     0x7fc2946d8d25 - rustc_query_impl[14a35b422f4e9e94]::get_query::exported_symbols
  37:     0x7fc2942458c3 - <rustc_metadata[d8392821e48f0b29]::rmeta::encoder::EncodeContext>::encode_crate_root
  38:     0x7fc2941d02cc - rustc_metadata[d8392821e48f0b29]::rmeta::encoder::encode_metadata_impl
  39:     0x7fc2941cb2d6 - rustc_metadata[d8392821e48f0b29]::rmeta::encoder::encode_metadata
  40:     0x7fc2941c9c9e - rustc_metadata[d8392821e48f0b29]::fs::encode_and_write_metadata
  41:     0x7fc2941bccff - rustc_interface[5dd728079daf5b2f]::passes::start_codegen
  42:     0x7fc2941b7ec7 - <rustc_middle[f12e14326fcb6d37]::ty::context::GlobalCtxt>::enter::<<rustc_interface[5dd728079daf5b2f]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[1a45016e46435943]::result::Result<alloc[f90fa24b258e2697]::boxed::Box<dyn core[1a45016e46435943]::any::Any>, rustc_span[3e163d59592952e6]::ErrorGuaranteed>>
  43:     0x7fc2941b754d - <rustc_interface[5dd728079daf5b2f]::queries::Queries>::ongoing_codegen
  44:     0x7fc2941b6b03 - <rustc_interface[5dd728079daf5b2f]::interface::Compiler>::enter::<rustc_driver_impl[dde0876b390e6a89]::run_compiler::{closure#1}::{closure#2}, core[1a45016e46435943]::result::Result<core[1a45016e46435943]::option::Option<rustc_interface[5dd728079daf5b2f]::queries::Linker>, rustc_span[3e163d59592952e6]::ErrorGuaranteed>>
  45:     0x7fc2941b4b71 - rustc_span[3e163d59592952e6]::set_source_map::<core[1a45016e46435943]::result::Result<(), rustc_span[3e163d59592952e6]::ErrorGuaranteed>, rustc_interface[5dd728079daf5b2f]::interface::run_compiler<core[1a45016e46435943]::result::Result<(), rustc_span[3e163d59592952e6]::ErrorGuaranteed>, rustc_driver_impl[dde0876b390e6a89]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  46:     0x7fc2941b4220 - std[d48aaa48ad184f7f]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[5dd728079daf5b2f]::util::run_in_thread_pool_with_globals<rustc_interface[5dd728079daf5b2f]::interface::run_compiler<core[1a45016e46435943]::result::Result<(), rustc_span[3e163d59592952e6]::ErrorGuaranteed>, rustc_driver_impl[dde0876b390e6a89]::run_compiler::{closure#1}>::{closure#0}, core[1a45016e46435943]::result::Result<(), rustc_span[3e163d59592952e6]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[1a45016e46435943]::result::Result<(), rustc_span[3e163d59592952e6]::ErrorGuaranteed>>
  47:     0x7fc294872eb5 - <<std[d48aaa48ad184f7f]::thread::Builder>::spawn_unchecked_<rustc_interface[5dd728079daf5b2f]::util::run_in_thread_pool_with_globals<rustc_interface[5dd728079daf5b2f]::interface::run_compiler<core[1a45016e46435943]::result::Result<(), rustc_span[3e163d59592952e6]::ErrorGuaranteed>, rustc_driver_impl[dde0876b390e6a89]::run_compiler::{closure#1}>::{closure#0}, core[1a45016e46435943]::result::Result<(), rustc_span[3e163d59592952e6]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[1a45016e46435943]::result::Result<(), rustc_span[3e163d59592952e6]::ErrorGuaranteed>>::{closure#1} as core[1a45016e46435943]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  48:     0x7fc291d774d5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hf9d590878bec4a84
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/alloc/src/boxed.rs:1985:9
  49:     0x7fc291d774d5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h3b901df10d727b47
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/alloc/src/boxed.rs:1985:9
  50:     0x7fc291d774d5 - std::sys::unix::thread::Thread::new::thread_start::hbbc99806fcfda4ba
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/sys/unix/thread.rs:108:17
  51:     0x7fc291b1244b - <unknown>
  52:     0x7fc291b95e40 - <unknown>
  53:                0x0 - <unknown>

The third stack trace, which compared to the first two traces, differs at 29-53, and has two additional lines:

stack backtrace:
   0:     0x7fc291d69e71 - std::backtrace_rs::backtrace::libunwind::trace::hdca2f1d760ae3bfc
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7fc291d69e71 - std::backtrace_rs::backtrace::trace_unsynchronized::hd02181015534cc1c
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7fc291d69e71 - std::sys_common::backtrace::_print_fmt::h027d0dd83d9c6057
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x7fc291d69e71 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hc3454f8104aa16e4
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7fc291dca1bf - core::fmt::rt::Argument::fmt::haca00ab3f8062a1f
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/core/src/fmt/rt.rs:138:9
   5:     0x7fc291dca1bf - core::fmt::write::he3e34afeea0f8a6d
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/core/src/fmt/mod.rs:1094:21
   6:     0x7fc291d5d141 - std::io::Write::write_fmt::h0dda8fe866ff6ad9
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/io/mod.rs:1712:15
   7:     0x7fc291d69c85 - std::sys_common::backtrace::_print::hdee7445a3e0bc35e
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/sys_common/backtrace.rs:47:5
   8:     0x7fc291d69c85 - std::sys_common::backtrace::print::h88d45cc795ad4f3a
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7fc291d6c917 - std::panicking::default_hook::{{closure}}::h0c28f70af069bb4e
  10:     0x7fc291d6c704 - std::panicking::default_hook::h9d9751edb4b25952
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/panicking.rs:288:9
  11:     0x7fc294f89e4b - rustc_driver_impl[dde0876b390e6a89]::install_ice_hook::{closure#0}
  12:     0x7fc291d6d037 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hd829a428c0494b99
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/alloc/src/boxed.rs:1999:9
  13:     0x7fc291d6d037 - std::panicking::rust_panic_with_hook::hb6e77b312dba3d0e
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/panicking.rs:695:13
  14:     0x7fc29544e221 - std[d48aaa48ad184f7f]::panicking::begin_panic::<rustc_errors[f0db23b40a7f92ee]::ExplicitBug>::{closure#0}
  15:     0x7fc29544de16 - std[d48aaa48ad184f7f]::sys_common::backtrace::__rust_end_short_backtrace::<std[d48aaa48ad184f7f]::panicking::begin_panic<rustc_errors[f0db23b40a7f92ee]::ExplicitBug>::{closure#0}, !>
  16:     0x7fc295477ac6 - std[d48aaa48ad184f7f]::panicking::begin_panic::<rustc_errors[f0db23b40a7f92ee]::ExplicitBug>
  17:     0x7fc295471ec4 - <rustc_errors[f0db23b40a7f92ee]::HandlerInner>::bug::<alloc[f90fa24b258e2697]::string::String>
  18:     0x7fc295471bf6 - <rustc_errors[f0db23b40a7f92ee]::Handler>::bug::<alloc[f90fa24b258e2697]::string::String>
  19:     0x7fc2954f9aac - rustc_middle[f12e14326fcb6d37]::util::bug::opt_span_bug_fmt::<rustc_span[3e163d59592952e6]::span_encoding::Span>::{closure#0}
  20:     0x7fc2954f92da - rustc_middle[f12e14326fcb6d37]::ty::context::tls::with_opt::<rustc_middle[f12e14326fcb6d37]::util::bug::opt_span_bug_fmt<rustc_span[3e163d59592952e6]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  21:     0x7fc2954f92aa - rustc_middle[f12e14326fcb6d37]::ty::context::tls::with_context_opt::<rustc_middle[f12e14326fcb6d37]::ty::context::tls::with_opt<rustc_middle[f12e14326fcb6d37]::util::bug::opt_span_bug_fmt<rustc_span[3e163d59592952e6]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  22:     0x7fc29319becd - rustc_middle[f12e14326fcb6d37]::util::bug::bug_fmt
  23:     0x7fc293df2c5e - rustc_monomorphize[cbdbc32531e69938]::collector::collect_neighbours
  24:     0x7fc293de2980 - rustc_monomorphize[cbdbc32531e69938]::collector::collect_items_rec
  25:     0x7fc293de2e30 - rustc_monomorphize[cbdbc32531e69938]::collector::collect_items_rec
  26:     0x7fc293de2e30 - rustc_monomorphize[cbdbc32531e69938]::collector::collect_items_rec
  27:     0x7fc293de2e30 - rustc_monomorphize[cbdbc32531e69938]::collector::collect_items_rec
  28:     0x7fc293de2e30 - rustc_monomorphize[cbdbc32531e69938]::collector::collect_items_rec
  29:     0x7fc293de2e30 - rustc_monomorphize[cbdbc32531e69938]::collector::collect_items_rec
  30:     0x7fc293de2e30 - rustc_monomorphize[cbdbc32531e69938]::collector::collect_items_rec
  31:     0x7fc2943ebc13 - <rustc_session[ed834786aaef6aa]::session::Session>::time::<(), rustc_monomorphize[cbdbc32531e69938]::collector::collect_crate_mono_items::{closure#1}>
  32:     0x7fc2943ea5f0 - rustc_monomorphize[cbdbc32531e69938]::collector::collect_crate_mono_items
  33:     0x7fc2943e8e57 - rustc_monomorphize[cbdbc32531e69938]::partitioning::collect_and_partition_mono_items
  34:     0x7fc2947b6a9c - rustc_query_system[284fc37ba8dbaa13]::query::plumbing::try_execute_query::<rustc_query_impl[14a35b422f4e9e94]::queries::collect_and_partition_mono_items, rustc_query_impl[14a35b422f4e9e94]::plumbing::QueryCtxt>
  35:     0x7fc2947b677d - rustc_query_impl[14a35b422f4e9e94]::get_query::collect_and_partition_mono_items
  36:     0x7fc294790325 - rustc_codegen_ssa[4fe01baa5c138594]::back::symbol_export::exported_symbols_provider_local
  37:     0x7fc2946d9478 - rustc_query_system[284fc37ba8dbaa13]::query::plumbing::try_execute_query::<rustc_query_impl[14a35b422f4e9e94]::queries::exported_symbols, rustc_query_impl[14a35b422f4e9e94]::plumbing::QueryCtxt>
  38:     0x7fc2946d8d25 - rustc_query_impl[14a35b422f4e9e94]::get_query::exported_symbols
  39:     0x7fc2942458c3 - <rustc_metadata[d8392821e48f0b29]::rmeta::encoder::EncodeContext>::encode_crate_root
  40:     0x7fc2941d02cc - rustc_metadata[d8392821e48f0b29]::rmeta::encoder::encode_metadata_impl
  41:     0x7fc2941cb2d6 - rustc_metadata[d8392821e48f0b29]::rmeta::encoder::encode_metadata
  42:     0x7fc2941c9c9e - rustc_metadata[d8392821e48f0b29]::fs::encode_and_write_metadata
  43:     0x7fc2941bccff - rustc_interface[5dd728079daf5b2f]::passes::start_codegen
  44:     0x7fc2941b7ec7 - <rustc_middle[f12e14326fcb6d37]::ty::context::GlobalCtxt>::enter::<<rustc_interface[5dd728079daf5b2f]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[1a45016e46435943]::result::Result<alloc[f90fa24b258e2697]::boxed::Box<dyn core[1a45016e46435943]::any::Any>, rustc_span[3e163d59592952e6]::ErrorGuaranteed>>
  45:     0x7fc2941b754d - <rustc_interface[5dd728079daf5b2f]::queries::Queries>::ongoing_codegen
  46:     0x7fc2941b6b03 - <rustc_interface[5dd728079daf5b2f]::interface::Compiler>::enter::<rustc_driver_impl[dde0876b390e6a89]::run_compiler::{closure#1}::{closure#2}, core[1a45016e46435943]::result::Result<core[1a45016e46435943]::option::Option<rustc_interface[5dd728079daf5b2f]::queries::Linker>, rustc_span[3e163d59592952e6]::ErrorGuaranteed>>
  47:     0x7fc2941b4b71 - rustc_span[3e163d59592952e6]::set_source_map::<core[1a45016e46435943]::result::Result<(), rustc_span[3e163d59592952e6]::ErrorGuaranteed>, rustc_interface[5dd728079daf5b2f]::interface::run_compiler<core[1a45016e46435943]::result::Result<(), rustc_span[3e163d59592952e6]::ErrorGuaranteed>, rustc_driver_impl[dde0876b390e6a89]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  48:     0x7fc2941b4220 - std[d48aaa48ad184f7f]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[5dd728079daf5b2f]::util::run_in_thread_pool_with_globals<rustc_interface[5dd728079daf5b2f]::interface::run_compiler<core[1a45016e46435943]::result::Result<(), rustc_span[3e163d59592952e6]::ErrorGuaranteed>, rustc_driver_impl[dde0876b390e6a89]::run_compiler::{closure#1}>::{closure#0}, core[1a45016e46435943]::result::Result<(), rustc_span[3e163d59592952e6]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[1a45016e46435943]::result::Result<(), rustc_span[3e163d59592952e6]::ErrorGuaranteed>>
  49:     0x7fc294872eb5 - <<std[d48aaa48ad184f7f]::thread::Builder>::spawn_unchecked_<rustc_interface[5dd728079daf5b2f]::util::run_in_thread_pool_with_globals<rustc_interface[5dd728079daf5b2f]::interface::run_compiler<core[1a45016e46435943]::result::Result<(), rustc_span[3e163d59592952e6]::ErrorGuaranteed>, rustc_driver_impl[dde0876b390e6a89]::run_compiler::{closure#1}>::{closure#0}, core[1a45016e46435943]::result::Result<(), rustc_span[3e163d59592952e6]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[1a45016e46435943]::result::Result<(), rustc_span[3e163d59592952e6]::ErrorGuaranteed>>::{closure#1} as core[1a45016e46435943]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  50:     0x7fc291d774d5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hf9d590878bec4a84
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/alloc/src/boxed.rs:1985:9
  51:     0x7fc291d774d5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h3b901df10d727b47
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/alloc/src/boxed.rs:1985:9
  52:     0x7fc291d774d5 - std::sys::unix::thread::Thread::new::thread_start::hbbc99806fcfda4ba
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/sys/unix/thread.rs:108:17
  53:     0x7fc291b1244b - <unknown>
  54:     0x7fc291b95e40 - <unknown>
  55:                0x0 - <unknown>

The fourth and last stack backtrace, which, compared to the third, differs at 31-55 and has two additional lines:

stack backtrace:
   0:     0x7fc291d69e71 - std::backtrace_rs::backtrace::libunwind::trace::hdca2f1d760ae3bfc
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7fc291d69e71 - std::backtrace_rs::backtrace::trace_unsynchronized::hd02181015534cc1c
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7fc291d69e71 - std::sys_common::backtrace::_print_fmt::h027d0dd83d9c6057
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x7fc291d69e71 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hc3454f8104aa16e4
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7fc291dca1bf - core::fmt::rt::Argument::fmt::haca00ab3f8062a1f
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/core/src/fmt/rt.rs:138:9
   5:     0x7fc291dca1bf - core::fmt::write::he3e34afeea0f8a6d
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/core/src/fmt/mod.rs:1094:21
   6:     0x7fc291d5d141 - std::io::Write::write_fmt::h0dda8fe866ff6ad9
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/io/mod.rs:1712:15
   7:     0x7fc291d69c85 - std::sys_common::backtrace::_print::hdee7445a3e0bc35e
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/sys_common/backtrace.rs:47:5
   8:     0x7fc291d69c85 - std::sys_common::backtrace::print::h88d45cc795ad4f3a
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7fc291d6c917 - std::panicking::default_hook::{{closure}}::h0c28f70af069bb4e
  10:     0x7fc291d6c704 - std::panicking::default_hook::h9d9751edb4b25952
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/panicking.rs:288:9
  11:     0x7fc294f89e4b - rustc_driver_impl[dde0876b390e6a89]::install_ice_hook::{closure#0}
  12:     0x7fc291d6d037 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hd829a428c0494b99
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/alloc/src/boxed.rs:1999:9
  13:     0x7fc291d6d037 - std::panicking::rust_panic_with_hook::hb6e77b312dba3d0e
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/panicking.rs:695:13
  14:     0x7fc29544e221 - std[d48aaa48ad184f7f]::panicking::begin_panic::<rustc_errors[f0db23b40a7f92ee]::ExplicitBug>::{closure#0}
  15:     0x7fc29544de16 - std[d48aaa48ad184f7f]::sys_common::backtrace::__rust_end_short_backtrace::<std[d48aaa48ad184f7f]::panicking::begin_panic<rustc_errors[f0db23b40a7f92ee]::ExplicitBug>::{closure#0}, !>
  16:     0x7fc295477ac6 - std[d48aaa48ad184f7f]::panicking::begin_panic::<rustc_errors[f0db23b40a7f92ee]::ExplicitBug>
  17:     0x7fc295471ec4 - <rustc_errors[f0db23b40a7f92ee]::HandlerInner>::bug::<alloc[f90fa24b258e2697]::string::String>
  18:     0x7fc295471bf6 - <rustc_errors[f0db23b40a7f92ee]::Handler>::bug::<alloc[f90fa24b258e2697]::string::String>
  19:     0x7fc2954f9aac - rustc_middle[f12e14326fcb6d37]::util::bug::opt_span_bug_fmt::<rustc_span[3e163d59592952e6]::span_encoding::Span>::{closure#0}
  20:     0x7fc2954f92da - rustc_middle[f12e14326fcb6d37]::ty::context::tls::with_opt::<rustc_middle[f12e14326fcb6d37]::util::bug::opt_span_bug_fmt<rustc_span[3e163d59592952e6]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  21:     0x7fc2954f92aa - rustc_middle[f12e14326fcb6d37]::ty::context::tls::with_context_opt::<rustc_middle[f12e14326fcb6d37]::ty::context::tls::with_opt<rustc_middle[f12e14326fcb6d37]::util::bug::opt_span_bug_fmt<rustc_span[3e163d59592952e6]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  22:     0x7fc29319becd - rustc_middle[f12e14326fcb6d37]::util::bug::bug_fmt
  23:     0x7fc293df2c5e - rustc_monomorphize[cbdbc32531e69938]::collector::collect_neighbours
  24:     0x7fc293de2980 - rustc_monomorphize[cbdbc32531e69938]::collector::collect_items_rec
  25:     0x7fc293de2e30 - rustc_monomorphize[cbdbc32531e69938]::collector::collect_items_rec
  26:     0x7fc293de2e30 - rustc_monomorphize[cbdbc32531e69938]::collector::collect_items_rec
  27:     0x7fc293de2e30 - rustc_monomorphize[cbdbc32531e69938]::collector::collect_items_rec
  28:     0x7fc293de2e30 - rustc_monomorphize[cbdbc32531e69938]::collector::collect_items_rec
  29:     0x7fc293de2e30 - rustc_monomorphize[cbdbc32531e69938]::collector::collect_items_rec
  30:     0x7fc293de2e30 - rustc_monomorphize[cbdbc32531e69938]::collector::collect_items_rec
  31:     0x7fc293de2e30 - rustc_monomorphize[cbdbc32531e69938]::collector::collect_items_rec
  32:     0x7fc293de2e30 - rustc_monomorphize[cbdbc32531e69938]::collector::collect_items_rec
  33:     0x7fc2943ebc13 - <rustc_session[ed834786aaef6aa]::session::Session>::time::<(), rustc_monomorphize[cbdbc32531e69938]::collector::collect_crate_mono_items::{closure#1}>
  34:     0x7fc2943ea5f0 - rustc_monomorphize[cbdbc32531e69938]::collector::collect_crate_mono_items
  35:     0x7fc2943e8e57 - rustc_monomorphize[cbdbc32531e69938]::partitioning::collect_and_partition_mono_items
  36:     0x7fc2947b6a9c - rustc_query_system[284fc37ba8dbaa13]::query::plumbing::try_execute_query::<rustc_query_impl[14a35b422f4e9e94]::queries::collect_and_partition_mono_items, rustc_query_impl[14a35b422f4e9e94]::plumbing::QueryCtxt>
  37:     0x7fc2947b677d - rustc_query_impl[14a35b422f4e9e94]::get_query::collect_and_partition_mono_items
  38:     0x7fc294790325 - rustc_codegen_ssa[4fe01baa5c138594]::back::symbol_export::exported_symbols_provider_local
  39:     0x7fc2946d9478 - rustc_query_system[284fc37ba8dbaa13]::query::plumbing::try_execute_query::<rustc_query_impl[14a35b422f4e9e94]::queries::exported_symbols, rustc_query_impl[14a35b422f4e9e94]::plumbing::QueryCtxt>
  40:     0x7fc2946d8d25 - rustc_query_impl[14a35b422f4e9e94]::get_query::exported_symbols
  41:     0x7fc2942458c3 - <rustc_metadata[d8392821e48f0b29]::rmeta::encoder::EncodeContext>::encode_crate_root
  42:     0x7fc2941d02cc - rustc_metadata[d8392821e48f0b29]::rmeta::encoder::encode_metadata_impl
  43:     0x7fc2941cb2d6 - rustc_metadata[d8392821e48f0b29]::rmeta::encoder::encode_metadata
  44:     0x7fc2941c9c9e - rustc_metadata[d8392821e48f0b29]::fs::encode_and_write_metadata
  45:     0x7fc2941bccff - rustc_interface[5dd728079daf5b2f]::passes::start_codegen
  46:     0x7fc2941b7ec7 - <rustc_middle[f12e14326fcb6d37]::ty::context::GlobalCtxt>::enter::<<rustc_interface[5dd728079daf5b2f]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[1a45016e46435943]::result::Result<alloc[f90fa24b258e2697]::boxed::Box<dyn core[1a45016e46435943]::any::Any>, rustc_span[3e163d59592952e6]::ErrorGuaranteed>>
  47:     0x7fc2941b754d - <rustc_interface[5dd728079daf5b2f]::queries::Queries>::ongoing_codegen
  48:     0x7fc2941b6b03 - <rustc_interface[5dd728079daf5b2f]::interface::Compiler>::enter::<rustc_driver_impl[dde0876b390e6a89]::run_compiler::{closure#1}::{closure#2}, core[1a45016e46435943]::result::Result<core[1a45016e46435943]::option::Option<rustc_interface[5dd728079daf5b2f]::queries::Linker>, rustc_span[3e163d59592952e6]::ErrorGuaranteed>>
  49:     0x7fc2941b4b71 - rustc_span[3e163d59592952e6]::set_source_map::<core[1a45016e46435943]::result::Result<(), rustc_span[3e163d59592952e6]::ErrorGuaranteed>, rustc_interface[5dd728079daf5b2f]::interface::run_compiler<core[1a45016e46435943]::result::Result<(), rustc_span[3e163d59592952e6]::ErrorGuaranteed>, rustc_driver_impl[dde0876b390e6a89]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  50:     0x7fc2941b4220 - std[d48aaa48ad184f7f]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[5dd728079daf5b2f]::util::run_in_thread_pool_with_globals<rustc_interface[5dd728079daf5b2f]::interface::run_compiler<core[1a45016e46435943]::result::Result<(), rustc_span[3e163d59592952e6]::ErrorGuaranteed>, rustc_driver_impl[dde0876b390e6a89]::run_compiler::{closure#1}>::{closure#0}, core[1a45016e46435943]::result::Result<(), rustc_span[3e163d59592952e6]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[1a45016e46435943]::result::Result<(), rustc_span[3e163d59592952e6]::ErrorGuaranteed>>
  51:     0x7fc294872eb5 - <<std[d48aaa48ad184f7f]::thread::Builder>::spawn_unchecked_<rustc_interface[5dd728079daf5b2f]::util::run_in_thread_pool_with_globals<rustc_interface[5dd728079daf5b2f]::interface::run_compiler<core[1a45016e46435943]::result::Result<(), rustc_span[3e163d59592952e6]::ErrorGuaranteed>, rustc_driver_impl[dde0876b390e6a89]::run_compiler::{closure#1}>::{closure#0}, core[1a45016e46435943]::result::Result<(), rustc_span[3e163d59592952e6]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[1a45016e46435943]::result::Result<(), rustc_span[3e163d59592952e6]::ErrorGuaranteed>>::{closure#1} as core[1a45016e46435943]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  52:     0x7fc291d774d5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hf9d590878bec4a84
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/alloc/src/boxed.rs:1985:9
  53:     0x7fc291d774d5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h3b901df10d727b47
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/alloc/src/boxed.rs:1985:9
  54:     0x7fc291d774d5 - std::sys::unix::thread::Thread::new::thread_start::hbbc99806fcfda4ba
                               at /rustc/c4190f2d3a46a59f435f7b42f58bc22b2f4d6917/library/std/src/sys/unix/thread.rs:108:17
  55:     0x7fc291b1244b - <unknown>
  56:     0x7fc291b95e40 - <unknown>
  57:                0x0 - <unknown>

@sandalbanditten sandalbanditten added C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels May 8, 2023
@Dushistov
Copy link
Contributor

Duplicate of #111368 ?

@sandalbanditten
Copy link
Author

Seems to be the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants