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

ICE / Unexpected initial operand type #126123

Open
matthiaskrgr opened this issue Jun 7, 2024 · 3 comments
Open

ICE / Unexpected initial operand type #126123

matthiaskrgr opened this issue Jun 7, 2024 · 3 comments
Labels
A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) 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

@matthiaskrgr
Copy link
Member

Code

#![feature(adt_const_params, generic_const_exprs)]
#![allow(incomplete_features)]

mod lib {
    const N_ISLANDS: usize = 4;
    const N_BRIDGES: usize = 7;
    const BRIDGES: [(usize, usize); 7] = [(0, 1), (0, 1), (0, 2), (0, 3), (0, 3), (1, 2), (2, 3)];

    pub type Matrix = [[usize; N_ISLANDS]; N_ISLANDS];

    const EMPTY_MATRIX: Matrix = [[0; N_ISLANDS]; N_ISLANDS];

    const fn build(mut matrix: Matrix, (to, from): (usize, usize)) -> Matrix {
        matrix[to][from] += 1;
        matrix[from][to] += 1;
        matrix
    }

    pub const fn walk(mut matrix: Matrix, from: usize, to: usize) -> Matrix {
        matrix[from][to] -= 1;
        matrix[to][from] -= 1;
        matrix
    }

    const fn to_matrix(bridges: [(usize, usize); N_BRIDGES]) -> Matrix {
        let matrix = EMPTY_MATRIX;

        let matrix = build(matrix, bridges[0]);
        let matrix = build(matrix, bridges[1]);
        let matrix = build(matrix, bridges[2]);
        let matrix = build(matrix, bridges[3]);
        let matrix = build(matrix, bridges[4]);
        let matrix = build(matrix, bridges[5]);
        let matrix = build(matrix, bridges[6]);

        matrix
    }

    const BRIDGE_MATRIX: [[usize; N_ISLANDS]; N_ISLANDS] = to_matrix(BRIDGES);

    pub struct Walk<const CURRENT: usize, const REMAINING: Matrix> {
        _p: (),
    }

    impl Walk<0, BRIDGE_MATRIX> {
        pub const fn new() -> Self {
            Self { _p: () }
        }
    }

    impl<const CURRENT: usize, const REMAINING: Matrix> Walk<CURRENT, REMAINING> {
        pub fn proceed_to<const NEXT: usize>(
            self,
        ) -> Walk<NEXT, { walk(REMAINING, CURRENT, NEXT) }> {
            Walk { _p: () }
        }
    }

    pub struct Trophy {
        _p: (),
    }

    impl<const CURRENT: usize> Walk<CURRENT, EMPTY_MATRIX> {
        pub fn collect_prize(self) -> Trophy {
            Trophy { _p: () }
        }
    }
}

pub use lib::{Trophy, Walk};

fn main() {
    // Example, taking the first step
    let _ = Walk::new().proceed_to::<1>();

    // Don't be so eager to collect the trophy
    // let trophy = Walk::new()
    //     .proceed_to::<1>()
    //     .proceed_to::<0>()
    //     .collect_prize();

    // Can't just make a Trophy out of thin air, you must earn it
    // let trophy: Trophy = Trophy { _p: () };

    // Can you collect the Trophy?
}

Meta

rustc --version --verbose:

rustc 1.80.0-nightly (76e7a0849 2024-06-06)
binary: rustc
commit-hash: 76e7a0849c07d73e4d9afde8036ee8c450127cc8
commit-date: 2024-06-06
host: x86_64-unknown-linux-gnu
release: 1.80.0-nightly
LLVM version: 18.1.7

Error output

rustc -Cdebuginfo=2

<output>
@matthiaskrgr matthiaskrgr added 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. C-bug Category: This is a bug. labels Jun 7, 2024
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Jun 7, 2024
@matthiaskrgr
Copy link
Member Author

normally:

Backtrace

  WARN rustc_codegen_ssa::mir::locals Unexpected initial operand type: expected lib::Walk<1_usize, [[0, 1, 1, 2], [1, 0, 1, 0], [1, 1, 0, 1], [2, 0, 1, 0]]>, found lib::Walk<1_usize, [[0, 1, 1, 2], [1, 0, 1, 0], [1, 1, 0, 1], [2, 0, 1, 0]]>.See <https://github.com/rust-lang/rust/issues/114858>.

@matthiaskrgr
Copy link
Member Author

with debug assertions:

Backtrace

thread 'rustc' panicked at compiler/rustc_codegen_llvm/src/debuginfo/metadata/type_map.rs:61:9:
assertion `left == right` failed
  left: lib::Walk<0_usize, [[0, 2, 1, 2], [2, 0, 1, 0], [1, 1, 0, 1], [2, 0, 1, 0]]>
 right: lib::Walk<0_usize, [[0, 2, 1, 2], [2, 0, 1, 0], [1, 1, 0, 1], [2, 0, 1, 0]]>
stack backtrace:
   0:     0x7cf6efb38644 - std::backtrace_rs::backtrace::libunwind::trace::h2193fac01dc5a182
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
   1:     0x7cf6efb38644 - std::backtrace_rs::backtrace::trace_unsynchronized::hdda730c41aceecfd
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7cf6efb38644 - std::sys_common::backtrace::_print_fmt::h7e1567b356f749c8
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:68:5
   3:     0x7cf6efb38644 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h8b8f413dc55a6c26
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7cf6efbc4d3a - core::fmt::rt::Argument::fmt::h14071ed1511ab045
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/core/src/fmt/rt.rs:165:63
   5:     0x7cf6efbc4d3a - core::fmt::write::h7a6030cc2c39bc48
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/core/src/fmt/mod.rs:1168:21
   6:     0x7cf6efb76829 - std::io::Write::write_fmt::h84967f709c91b964
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/io/mod.rs:1835:15
   7:     0x7cf6efb383fe - std::sys_common::backtrace::_print::h4c7d80d425ee1ff0
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:47:5
   8:     0x7cf6efb383fe - std::sys_common::backtrace::print::hf73fa49b31b5cc45
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7cf6efb917d9 - std::panicking::default_hook::{{closure}}::hc525ec7d1c5175b5
  10:     0x7cf6efb9140d - std::panicking::default_hook::hcddf140d425dcf43
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:298:9
  11:     0x7cf6f3d5ca91 - rustc_driver_impl[a0c8d8e72025cd5]::install_ice_hook::{closure#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_driver_impl/src/lib.rs:1390:17
  12:     0x7cf6f3d5ca91 - <alloc[2188c001e216313f]::boxed::Box<rustc_driver_impl[a0c8d8e72025cd5]::install_ice_hook::{closure#0}> as core[4e9f377306a8ec8b]::ops::function::Fn<(&dyn for<'a, 'b> core[4e9f377306a8ec8b]::ops::function::Fn<(&'a core[4e9f377306a8ec8b]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[4e9f377306a8ec8b]::marker::Sync + core[4e9f377306a8ec8b]::marker::Send, &core[4e9f377306a8ec8b]::panic::panic_info::PanicInfo)>>::call
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/alloc/src/boxed.rs:2077:9
  13:     0x7cf6efb91d39 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hd522c78b350c108b
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/alloc/src/boxed.rs:2077:9
  14:     0x7cf6efb91d39 - std::panicking::rust_panic_with_hook::h47a9691332bb4007
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:799:13
  15:     0x7cf6efb38b24 - std::panicking::begin_panic_handler::{{closure}}::hbafca67a1cb3dffb
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:664:13
  16:     0x7cf6efb388c9 - std::sys_common::backtrace::__rust_end_short_backtrace::h50f90ef34270b2dc
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:171:18
  17:     0x7cf6efb91917 - rust_begin_unwind
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:652:5
  18:     0x7cf6efbd31f3 - core::panicking::panic_fmt::hd7e93e5433dc9bd5
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/core/src/panicking.rs:72:14
  19:     0x7cf6efbd375e - core::panicking::assert_failed_inner::h33fa438cc570adbc
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/core/src/panicking.rs:408:17
  20:     0x7cf6f3815a9f - core[4e9f377306a8ec8b]::panicking::assert_failed::<rustc_middle[70289984529bee66]::ty::Ty, rustc_middle[70289984529bee66]::ty::Ty>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/core/src/panicking.rs:363:5
  21:     0x7cf6f388661d - <rustc_codegen_llvm[109f7eb4123a481e]::debuginfo::metadata::type_map::UniqueTypeId>::for_ty
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_codegen_llvm/src/debuginfo/metadata/type_map.rs:61:9
  22:     0x7cf6f388661d - rustc_codegen_llvm[109f7eb4123a481e]::debuginfo::metadata::type_di_node
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs:439:26
  23:     0x7cf6f388e615 - <rustc_codegen_llvm[109f7eb4123a481e]::context::CodegenCx as rustc_codegen_ssa[1e16768a5eac7ec4]::traits::debuginfo::DebugInfoMethods>::dbg_scope_fn::get_containing_scope
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs:546:37
  24:     0x7cf6f386acc1 - <rustc_codegen_llvm[109f7eb4123a481e]::context::CodegenCx as rustc_codegen_ssa[1e16768a5eac7ec4]::traits::debuginfo::DebugInfoMethods>::dbg_scope_fn
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs:327:45
  25:     0x7cf6f386ab07 - <rustc_codegen_llvm[109f7eb4123a481e]::context::CodegenCx as rustc_codegen_ssa[1e16768a5eac7ec4]::traits::debuginfo::DebugInfoMethods>::create_function_debug_context
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs:302:24
  26:     0x7cf6f380d4f7 - rustc_codegen_ssa[1e16768a5eac7ec4]::mir::codegen_mir::<rustc_codegen_llvm[109f7eb4123a481e]::builder::Builder>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_codegen_ssa/src/mir/mod.rs:174:25
  27:     0x7cf6f38758ac - rustc_codegen_ssa[1e16768a5eac7ec4]::base::codegen_instance::<rustc_codegen_llvm[109f7eb4123a481e]::builder::Builder>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_codegen_ssa/src/base.rs:389:5
  28:     0x7cf6f3775b5e - <rustc_middle[70289984529bee66]::mir::mono::MonoItem as rustc_codegen_ssa[1e16768a5eac7ec4]::mono_item::MonoItemExt>::define::<rustc_codegen_llvm[109f7eb4123a481e]::builder::Builder>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_codegen_ssa/src/mono_item.rs:106:17
  29:     0x7cf6f37fb6aa - rustc_codegen_llvm[109f7eb4123a481e]::base::compile_codegen_unit::module_codegen
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_codegen_llvm/src/base.rs:93:17
  30:     0x7cf6f37fa4c7 - <rustc_query_system[209f9233d8a12c76]::dep_graph::graph::DepGraph<rustc_middle[70289984529bee66]::dep_graph::DepsType>>::with_task::<rustc_middle[70289984529bee66]::ty::context::TyCtxt, rustc_span[127b59588b933462]::symbol::Symbol, rustc_codegen_ssa[1e16768a5eac7ec4]::ModuleCodegen<rustc_codegen_llvm[109f7eb4123a481e]::ModuleLlvm>>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_query_system/src/dep_graph/graph.rs:291:22
  31:     0x7cf6f37fa4c7 - rustc_codegen_llvm[109f7eb4123a481e]::base::compile_codegen_unit
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_codegen_llvm/src/base.rs:62:23
  32:     0x7cf6f3874d8f - <rustc_codegen_llvm[109f7eb4123a481e]::LlvmCodegenBackend as rustc_codegen_ssa[1e16768a5eac7ec4]::traits::backend::ExtraBackendMethods>::compile_codegen_unit
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_codegen_llvm/src/lib.rs:129:9
  33:     0x7cf6f3874d8f - rustc_codegen_ssa[1e16768a5eac7ec4]::base::codegen_crate::<rustc_codegen_llvm[109f7eb4123a481e]::LlvmCodegenBackend>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_codegen_ssa/src/base.rs:749:34
  34:     0x7cf6f3743d73 - <rustc_codegen_llvm[109f7eb4123a481e]::LlvmCodegenBackend as rustc_codegen_ssa[1e16768a5eac7ec4]::traits::backend::CodegenBackend>::codegen_crate
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_codegen_llvm/src/lib.rs:356:18
  35:     0x7cf6f4a55317 - rustc_interface[683d6b87d2ffddde]::passes::start_codegen::{closure#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/passes.rs:938:9
  36:     0x7cf6f4a55317 - <rustc_data_structures[5339aabd65cee819]::profiling::VerboseTimingGuard>::run::<alloc[2188c001e216313f]::boxed::Box<dyn core[4e9f377306a8ec8b]::any::Any>, rustc_interface[683d6b87d2ffddde]::passes::start_codegen::{closure#0}>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_data_structures/src/profiling.rs:754:9
  37:     0x7cf6f4a55317 - <rustc_session[aa16a108e8c0d433]::session::Session>::time::<alloc[2188c001e216313f]::boxed::Box<dyn core[4e9f377306a8ec8b]::any::Any>, rustc_interface[683d6b87d2ffddde]::passes::start_codegen::{closure#0}>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_session/src/utils.rs:16:9
  38:     0x7cf6f4a84b25 - rustc_interface[683d6b87d2ffddde]::passes::start_codegen
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/passes.rs:937:19
  39:     0x7cf6f4a5f22b - <rustc_interface[683d6b87d2ffddde]::queries::Queries>::codegen_and_build_linker::{closure#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/queries.rs:235:35
  40:     0x7cf6f4a5f22b - <rustc_middle[70289984529bee66]::ty::context::GlobalCtxt>::enter::<<rustc_interface[683d6b87d2ffddde]::queries::Queries>::codegen_and_build_linker::{closure#0}, core[4e9f377306a8ec8b]::result::Result<rustc_interface[683d6b87d2ffddde]::queries::Linker, rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#1}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context.rs:878:37
  41:     0x7cf6f4a5f22b - rustc_middle[70289984529bee66]::ty::context::tls::enter_context::<<rustc_middle[70289984529bee66]::ty::context::GlobalCtxt>::enter<<rustc_interface[683d6b87d2ffddde]::queries::Queries>::codegen_and_build_linker::{closure#0}, core[4e9f377306a8ec8b]::result::Result<rustc_interface[683d6b87d2ffddde]::queries::Linker, rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#1}, core[4e9f377306a8ec8b]::result::Result<rustc_interface[683d6b87d2ffddde]::queries::Linker, rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:82:9
  42:     0x7cf6f4a5f22b - <std[8344846c92ff17ba]::thread::local::LocalKey<core[4e9f377306a8ec8b]::cell::Cell<*const ()>>>::try_with::<rustc_middle[70289984529bee66]::ty::context::tls::enter_context<<rustc_middle[70289984529bee66]::ty::context::GlobalCtxt>::enter<<rustc_interface[683d6b87d2ffddde]::queries::Queries>::codegen_and_build_linker::{closure#0}, core[4e9f377306a8ec8b]::result::Result<rustc_interface[683d6b87d2ffddde]::queries::Linker, rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#1}, core[4e9f377306a8ec8b]::result::Result<rustc_interface[683d6b87d2ffddde]::queries::Linker, rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}, core[4e9f377306a8ec8b]::result::Result<rustc_interface[683d6b87d2ffddde]::queries::Linker, rustc_span[127b59588b933462]::ErrorGuaranteed>>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/thread/local.rs:283:12
  43:     0x7cf6f4a5f22b - <std[8344846c92ff17ba]::thread::local::LocalKey<core[4e9f377306a8ec8b]::cell::Cell<*const ()>>>::with::<rustc_middle[70289984529bee66]::ty::context::tls::enter_context<<rustc_middle[70289984529bee66]::ty::context::GlobalCtxt>::enter<<rustc_interface[683d6b87d2ffddde]::queries::Queries>::codegen_and_build_linker::{closure#0}, core[4e9f377306a8ec8b]::result::Result<rustc_interface[683d6b87d2ffddde]::queries::Linker, rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#1}, core[4e9f377306a8ec8b]::result::Result<rustc_interface[683d6b87d2ffddde]::queries::Linker, rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}, core[4e9f377306a8ec8b]::result::Result<rustc_interface[683d6b87d2ffddde]::queries::Linker, rustc_span[127b59588b933462]::ErrorGuaranteed>>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/thread/local.rs:260:9
  44:     0x7cf6f4a5f22b - rustc_middle[70289984529bee66]::ty::context::tls::enter_context::<<rustc_middle[70289984529bee66]::ty::context::GlobalCtxt>::enter<<rustc_interface[683d6b87d2ffddde]::queries::Queries>::codegen_and_build_linker::{closure#0}, core[4e9f377306a8ec8b]::result::Result<rustc_interface[683d6b87d2ffddde]::queries::Linker, rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#1}, core[4e9f377306a8ec8b]::result::Result<rustc_interface[683d6b87d2ffddde]::queries::Linker, rustc_span[127b59588b933462]::ErrorGuaranteed>>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:79:9
  45:     0x7cf6f4a5f22b - <rustc_middle[70289984529bee66]::ty::context::GlobalCtxt>::enter::<<rustc_interface[683d6b87d2ffddde]::queries::Queries>::codegen_and_build_linker::{closure#0}, core[4e9f377306a8ec8b]::result::Result<rustc_interface[683d6b87d2ffddde]::queries::Linker, rustc_span[127b59588b933462]::ErrorGuaranteed>>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context.rs:878:9
  46:     0x7cf6f4b53420 - <rustc_interface[683d6b87d2ffddde]::queries::QueryResult<&rustc_middle[70289984529bee66]::ty::context::GlobalCtxt>>::enter::<core[4e9f377306a8ec8b]::result::Result<rustc_interface[683d6b87d2ffddde]::queries::Linker, rustc_span[127b59588b933462]::ErrorGuaranteed>, <rustc_interface[683d6b87d2ffddde]::queries::Queries>::codegen_and_build_linker::{closure#0}>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/queries.rs:70:9
  47:     0x7cf6f4b53420 - <rustc_interface[683d6b87d2ffddde]::queries::Queries>::codegen_and_build_linker
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/queries.rs:224:9
  48:     0x7cf6f3cdc138 - rustc_driver_impl[a0c8d8e72025cd5]::run_compiler::{closure#0}::{closure#1}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_driver_impl/src/lib.rs:446:26
  49:     0x7cf6f3cdc138 - <rustc_interface[683d6b87d2ffddde]::interface::Compiler>::enter::<rustc_driver_impl[a0c8d8e72025cd5]::run_compiler::{closure#0}::{closure#1}, core[4e9f377306a8ec8b]::result::Result<core[4e9f377306a8ec8b]::option::Option<rustc_interface[683d6b87d2ffddde]::queries::Linker>, rustc_span[127b59588b933462]::ErrorGuaranteed>>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/queries.rs:315:19
  50:     0x7cf6f3d0f13c - rustc_driver_impl[a0c8d8e72025cd5]::run_compiler::{closure#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_driver_impl/src/lib.rs:388:22
  51:     0x7cf6f3d0f13c - rustc_interface[683d6b87d2ffddde]::interface::run_compiler::<core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>, rustc_driver_impl[a0c8d8e72025cd5]::run_compiler::{closure#0}>::{closure#1}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/interface.rs:503:27
  52:     0x7cf6f3d0f13c - rustc_interface[683d6b87d2ffddde]::util::run_in_thread_pool_with_globals::<rustc_interface[683d6b87d2ffddde]::interface::run_compiler<core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>, rustc_driver_impl[a0c8d8e72025cd5]::run_compiler::{closure#0}>::{closure#1}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/util.rs:154:13
  53:     0x7cf6f3d0f13c - rustc_interface[683d6b87d2ffddde]::util::run_in_thread_with_globals::<rustc_interface[683d6b87d2ffddde]::util::run_in_thread_pool_with_globals<rustc_interface[683d6b87d2ffddde]::interface::run_compiler<core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>, rustc_driver_impl[a0c8d8e72025cd5]::run_compiler::{closure#0}>::{closure#1}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/util.rs:106:21
  54:     0x7cf6f3d0f13c - <scoped_tls[83aa80a8855ab006]::ScopedKey<rustc_span[127b59588b933462]::SessionGlobals>>::set::<rustc_interface[683d6b87d2ffddde]::util::run_in_thread_with_globals<rustc_interface[683d6b87d2ffddde]::util::run_in_thread_pool_with_globals<rustc_interface[683d6b87d2ffddde]::interface::run_compiler<core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>, rustc_driver_impl[a0c8d8e72025cd5]::run_compiler::{closure#0}>::{closure#1}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>
                               at /home/gh-matthiaskrgr/.cargo/registry/src/index.crates.io-6f17d22bba15001f/scoped-tls-1.0.1/src/lib.rs:137:9
  55:     0x7cf6f3d0f13c - rustc_span[127b59588b933462]::create_session_globals_then::<core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>, rustc_interface[683d6b87d2ffddde]::util::run_in_thread_with_globals<rustc_interface[683d6b87d2ffddde]::util::run_in_thread_pool_with_globals<rustc_interface[683d6b87d2ffddde]::interface::run_compiler<core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>, rustc_driver_impl[a0c8d8e72025cd5]::run_compiler::{closure#0}>::{closure#1}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_span/src/lib.rs:134:5
  56:     0x7cf6f3d0f13c - rustc_interface[683d6b87d2ffddde]::util::run_in_thread_with_globals::<rustc_interface[683d6b87d2ffddde]::util::run_in_thread_pool_with_globals<rustc_interface[683d6b87d2ffddde]::interface::run_compiler<core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>, rustc_driver_impl[a0c8d8e72025cd5]::run_compiler::{closure#0}>::{closure#1}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}::{closure#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/util.rs:105:17
  57:     0x7cf6f3d0f13c - std[8344846c92ff17ba]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[683d6b87d2ffddde]::util::run_in_thread_with_globals<rustc_interface[683d6b87d2ffddde]::util::run_in_thread_pool_with_globals<rustc_interface[683d6b87d2ffddde]::interface::run_compiler<core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>, rustc_driver_impl[a0c8d8e72025cd5]::run_compiler::{closure#0}>::{closure#1}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:155:18
  58:     0x7cf6f3d29398 - <std[8344846c92ff17ba]::thread::Builder>::spawn_unchecked_::<rustc_interface[683d6b87d2ffddde]::util::run_in_thread_with_globals<rustc_interface[683d6b87d2ffddde]::util::run_in_thread_pool_with_globals<rustc_interface[683d6b87d2ffddde]::interface::run_compiler<core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>, rustc_driver_impl[a0c8d8e72025cd5]::run_compiler::{closure#0}>::{closure#1}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#2}::{closure#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/thread/mod.rs:542:17
  59:     0x7cf6f3d29398 - <core[4e9f377306a8ec8b]::panic::unwind_safe::AssertUnwindSafe<<std[8344846c92ff17ba]::thread::Builder>::spawn_unchecked_<rustc_interface[683d6b87d2ffddde]::util::run_in_thread_with_globals<rustc_interface[683d6b87d2ffddde]::util::run_in_thread_pool_with_globals<rustc_interface[683d6b87d2ffddde]::interface::run_compiler<core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>, rustc_driver_impl[a0c8d8e72025cd5]::run_compiler::{closure#0}>::{closure#1}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#2}::{closure#0}> as core[4e9f377306a8ec8b]::ops::function::FnOnce<()>>::call_once
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/core/src/panic/unwind_safe.rs:272:9
  60:     0x7cf6f3d29398 - std[8344846c92ff17ba]::panicking::try::do_call::<core[4e9f377306a8ec8b]::panic::unwind_safe::AssertUnwindSafe<<std[8344846c92ff17ba]::thread::Builder>::spawn_unchecked_<rustc_interface[683d6b87d2ffddde]::util::run_in_thread_with_globals<rustc_interface[683d6b87d2ffddde]::util::run_in_thread_pool_with_globals<rustc_interface[683d6b87d2ffddde]::interface::run_compiler<core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>, rustc_driver_impl[a0c8d8e72025cd5]::run_compiler::{closure#0}>::{closure#1}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#2}::{closure#0}>, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:559:40
  61:     0x7cf6f3d29398 - std[8344846c92ff17ba]::panicking::try::<core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>, core[4e9f377306a8ec8b]::panic::unwind_safe::AssertUnwindSafe<<std[8344846c92ff17ba]::thread::Builder>::spawn_unchecked_<rustc_interface[683d6b87d2ffddde]::util::run_in_thread_with_globals<rustc_interface[683d6b87d2ffddde]::util::run_in_thread_pool_with_globals<rustc_interface[683d6b87d2ffddde]::interface::run_compiler<core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>, rustc_driver_impl[a0c8d8e72025cd5]::run_compiler::{closure#0}>::{closure#1}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#2}::{closure#0}>>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:523:19
  62:     0x7cf6f3d29398 - std[8344846c92ff17ba]::panic::catch_unwind::<core[4e9f377306a8ec8b]::panic::unwind_safe::AssertUnwindSafe<<std[8344846c92ff17ba]::thread::Builder>::spawn_unchecked_<rustc_interface[683d6b87d2ffddde]::util::run_in_thread_with_globals<rustc_interface[683d6b87d2ffddde]::util::run_in_thread_pool_with_globals<rustc_interface[683d6b87d2ffddde]::interface::run_compiler<core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>, rustc_driver_impl[a0c8d8e72025cd5]::run_compiler::{closure#0}>::{closure#1}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#2}::{closure#0}>, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/panic.rs:149:14
  63:     0x7cf6f3d29398 - <std[8344846c92ff17ba]::thread::Builder>::spawn_unchecked_::<rustc_interface[683d6b87d2ffddde]::util::run_in_thread_with_globals<rustc_interface[683d6b87d2ffddde]::util::run_in_thread_pool_with_globals<rustc_interface[683d6b87d2ffddde]::interface::run_compiler<core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>, rustc_driver_impl[a0c8d8e72025cd5]::run_compiler::{closure#0}>::{closure#1}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#2}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/thread/mod.rs:541:30
  64:     0x7cf6f3d29398 - <<std[8344846c92ff17ba]::thread::Builder>::spawn_unchecked_<rustc_interface[683d6b87d2ffddde]::util::run_in_thread_with_globals<rustc_interface[683d6b87d2ffddde]::util::run_in_thread_pool_with_globals<rustc_interface[683d6b87d2ffddde]::interface::run_compiler<core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>, rustc_driver_impl[a0c8d8e72025cd5]::run_compiler::{closure#0}>::{closure#1}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[4e9f377306a8ec8b]::result::Result<(), rustc_span[127b59588b933462]::ErrorGuaranteed>>::{closure#2} as core[4e9f377306a8ec8b]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/core/src/ops/function.rs:250:5
  65:     0x7cf6efb4a7ec - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h95efea559444f3f3
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/alloc/src/boxed.rs:2063:9
  66:     0x7cf6efb4a7ec - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7c21ae1769ad7cac
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/alloc/src/boxed.rs:2063:9
  67:     0x7cf6efb6448b - std::sys::pal::unix::thread::Thread::new::thread_start::hdf7a4e0a7844b4ef
                               at /home/gh-matthiaskrgr/vcs/github/rust_debug_assertions/library/std/src/sys/pal/unix/thread.rs:108:17
  68:     0x7cf6ef894ac3 - start_thread
                               at ./nptl/pthread_create.c:442:8
  69:     0x7cf6ef926850 - __GI___clone3
                               at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
  70:                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: please make sure that you have updated to the latest nightly

note: please attach the file at `/home/gh-matthiaskrgr/vcs/github/rust_all_hist/rustc-ice-2024-06-07T13_45_13-1009105.txt` to your bug report

note: compiler flags: -C debuginfo=2

query stack during panic:
end of query stack

@matthiaskrgr matthiaskrgr added the A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) label Jun 7, 2024
@SimonVervisch
Copy link

Seems the same as #114858, which is still open

@saethlin saethlin removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) 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

4 participants