rust-lang / rust

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

rust bootstrap ICE with debuginfo=2 #93866

Closed pnkfelix closed 3 months ago

pnkfelix commented 2 years ago

I tried a bootstrap with this config.toml, atop rust commit 502d6aa47b4118fea1e326529e71b25a99b0d6c5:

changelog-seen = 2
[rust]
optimize = true
debug = true

debuginfo-level = 2

then I ran this in a

time x.py clean && time x.py build && time x.py test

I expected to see this happen: Successful bootstrap

Instead, this happened: ICE from compiler. (I think its the freshly built compiler, not the beta one.)

thread 'rustc' panicked at 'fat_pointer_kind() - Encountered unexpected `pointee_ty`: (bool, dyn std::fmt::Display)', compiler/rustc_codegen_llvm/src/debuginfo/utils.rs:102:13
Backtrace

``` Compiling core v0.0.0 (/media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/core) thread 'rustc' panicked at 'fat_pointer_kind() - Encountered unexpected `pointee_ty`: (bool, dyn std::fmt::Display)', compiler/rustc_codegen_llvm/src/debuginfo/utils.rs:102:13 stack backtrace: 0: 0x7ff4b1ca6a9b - std::backtrace_rs::backtrace::libunwind::trace::h7be589ea84d78ccb at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 1: 0x7ff4b1ca6a9b - std::backtrace_rs::backtrace::trace_unsynchronized::hacacbb77fe8e9349 at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 2: 0x7ff4b1ca6a9b - std::sys_common::backtrace::_print_fmt::hf8665e188d70bed1 at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/sys_common/backtrace.rs:66:5 3: 0x7ff4b1ca6a9b - ::fmt::h1dcd155849bc98cf at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/sys_common/backtrace.rs:45:22 4: 0x7ff4b1d10ece - core::fmt::write::hdac1ddaec9404324 at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/core/src/fmt/mod.rs:1190:17 5: 0x7ff4b1c713d1 - std::io::Write::write_fmt::hd7a68350b4327f1b at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/io/mod.rs:1657:15 6: 0x7ff4b1ca68cb - std::sys_common::backtrace::_print::hbf7b7a88628e4614 at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/sys_common/backtrace.rs:48:5 7: 0x7ff4b1ca68cb - std::sys_common::backtrace::print::h71dcc4ba6a85d390 at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/sys_common/backtrace.rs:35:9 8: 0x7ff4b1c85bb4 - std::panicking::default_hook::{{closure}}::h960542327b89b71b 9: 0x7ff4b1c85772 - std::panicking::default_hook::h0b87d7f342c043fc at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/panicking.rs:314:9 10: 0x7ff4b2d2bfaa - core[2c93cc726be6ffee]::ops::function::Fn<(&'a core[2c93cc726be6ffee]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[2c93cc726be6ffee]::marker::Send + core[2c93cc726be6ffee]::marker::Sync> as core[2c93cc726be6ffee]::ops::function::Fn<(&core[2c93cc726be6ffee]::panic::panic_info::PanicInfo,)>>::call at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/alloc/src/boxed.rs:1868:9 11: 0x7ff4b2d2bfaa - rustc_driver[696b8639a901568d]::DEFAULT_HOOK::{closure#0}::{closure#0} at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_driver/src/lib.rs:1167:13 12: 0x7ff4b1c86374 - std::panicking::rust_panic_with_hook::hf61b0da4f2724229 at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/panicking.rs:702:17 13: 0x7ff4b1ca6f87 - std::panicking::begin_panic_handler::{{closure}}::h6cc9f51b636e0e55 at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/panicking.rs:588:13 14: 0x7ff4b1ca6bc4 - std::sys_common::backtrace::__rust_end_short_backtrace::hd258c90a1d7b0549 at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/sys_common/backtrace.rs:138:18 15: 0x7ff4b1c85d62 - rust_begin_unwind at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/panicking.rs:584:5 16: 0x7ff4b1c3d313 - core::panicking::panic_fmt::h96672f910e11dfd0 at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/core/src/panicking.rs:143:14 17: 0x7ff4b2fbf2ff - rustc_codegen_llvm[800b62df817f1a66]::debuginfo::utils::fat_pointer_kind 18: 0x7ff4b2feecc0 - rustc_codegen_llvm[800b62df817f1a66]::debuginfo::metadata::pointer_or_reference_metadata at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs:447:39 19: 0x7ff4b2feff8e - rustc_codegen_llvm[800b62df817f1a66]::debuginfo::metadata::type_metadata 20: 0x7ff4b309627c - ::dbg_scope_fn::get_function_signature::{closure#1} at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs:443:63 21: 0x7ff4b309627c - core[2c93cc726be6ffee]::iter::adapters::map::map_fold::<&rustc_target[1d03633af6989f5]::abi::call::ArgAbi<&rustc_middle[b3cc987cefcbf362]::ty::TyS>, core[2c93cc726be6ffee]::option::Option<&rustc_codegen_llvm[800b62df817f1a66]::llvm_::ffi::Metadata>, (), ::dbg_scope_fn::get_function_signature::{closure#1}, core[2c93cc726be6ffee]::iter::traits::iterator::Iterator::for_each::call, > as alloc[234d9d29e64d0e8b]::vec::spec_extend::SpecExtend, core[2c93cc726be6ffee]::iter::adapters::map::Map>, ::dbg_scope_fn::get_function_signature::{closure#1}>>>::spec_extend::{closure#0}>::{closure#0}>::{closure#0} at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/core/src/iter/adapters/map.rs:84:28 22: 0x7ff4b309627c - > as core[2c93cc726be6ffee]::iter::traits::iterator::Iterator>::fold::<(), core[2c93cc726be6ffee]::iter::adapters::map::map_fold<&rustc_target[1d03633af6989f5]::abi::call::ArgAbi<&rustc_middle[b3cc987cefcbf362]::ty::TyS>, core[2c93cc726be6ffee]::option::Option<&rustc_codegen_llvm[800b62df817f1a66]::llvm_::ffi::Metadata>, (), ::dbg_scope_fn::get_function_signature::{closure#1}, core[2c93cc726be6ffee]::iter::traits::iterator::Iterator::for_each::call, > as alloc[234d9d29e64d0e8b]::vec::spec_extend::SpecExtend, core[2c93cc726be6ffee]::iter::adapters::map::Map>, ::dbg_scope_fn::get_function_signature::{closure#1}>>>::spec_extend::{closure#0}>::{closure#0}>::{closure#0}> at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/core/src/iter/traits/iterator.rs:2203:21 23: 0x7ff4b309627c - >, ::dbg_scope_fn::get_function_signature::{closure#1}> as core[2c93cc726be6ffee]::iter::traits::iterator::Iterator>::fold::<(), core[2c93cc726be6ffee]::iter::traits::iterator::Iterator::for_each::call, > as alloc[234d9d29e64d0e8b]::vec::spec_extend::SpecExtend, core[2c93cc726be6ffee]::iter::adapters::map::Map>, ::dbg_scope_fn::get_function_signature::{closure#1}>>>::spec_extend::{closure#0}>::{closure#0}> at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/core/src/iter/adapters/map.rs:124:9 24: 0x7ff4b309627c - >, ::dbg_scope_fn::get_function_signature::{closure#1}> as core[2c93cc726be6ffee]::iter::traits::iterator::Iterator>::for_each::<> as alloc[234d9d29e64d0e8b]::vec::spec_extend::SpecExtend, core[2c93cc726be6ffee]::iter::adapters::map::Map>, ::dbg_scope_fn::get_function_signature::{closure#1}>>>::spec_extend::{closure#0}> at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/core/src/iter/traits/iterator.rs:772:9 25: 0x7ff4b309627c - > as alloc[234d9d29e64d0e8b]::vec::spec_extend::SpecExtend, core[2c93cc726be6ffee]::iter::adapters::map::Map>, ::dbg_scope_fn::get_function_signature::{closure#1}>>>::spec_extend at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/alloc/src/vec/spec_extend.rs:40:17 26: 0x7ff4b309627c - > as core[2c93cc726be6ffee]::iter::traits::collect::Extend>>::extend::>, ::dbg_scope_fn::get_function_signature::{closure#1}>> at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/alloc/src/vec/mod.rs:2618:9 27: 0x7ff4b309627c - ::dbg_scope_fn::get_function_signature at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs:442:17 28: 0x7ff4b2f9c4a3 - ::dbg_scope_fn at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs:330:32 29: 0x7ff4b313d074 - ::create_function_debug_context at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs:308:13 30: 0x7ff4b313d074 - rustc_codegen_ssa[e361a97867a928d7]::mir::codegen_mir:: at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_codegen_ssa/src/mir/mod.rs:147:25 31: 0x7ff4b2f92056 - rustc_codegen_ssa[e361a97867a928d7]::base::codegen_instance:: at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_codegen_ssa/src/base.rs:361:5 32: 0x7ff4b30d695b - ::define:: at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_codegen_ssa/src/mono_item.rs:69:17 33: 0x7ff4b3013f8b - rustc_codegen_llvm[800b62df817f1a66]::base::compile_codegen_unit::module_codegen at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_codegen_llvm/src/base.rs:92:17 34: 0x7ff4b2fe54d7 - >::with_task::> at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_query_system/src/dep_graph/graph.rs:280:14 35: 0x7ff4b3013931 - rustc_codegen_llvm[800b62df817f1a66]::base::compile_codegen_unit at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_codegen_llvm/src/base.rs:62:23 36: 0x7ff4b2f94cf9 - ::compile_codegen_unit at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_codegen_llvm/src/lib.rs:119:9 37: 0x7ff4b2f94cf9 - rustc_codegen_ssa[e361a97867a928d7]::base::codegen_crate:: at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_codegen_ssa/src/base.rs:684:38 38: 0x7ff4b30498e3 - ::codegen_crate at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_codegen_llvm/src/lib.rs:329:18 39: 0x7ff4b2e89588 - rustc_interface[7567e2be895364c9]::passes::start_codegen::{closure#0} at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/passes.rs:1107:9 40: 0x7ff4b2e89588 - ::run::, rustc_interface[7567e2be895364c9]::passes::start_codegen::{closure#0}> at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_data_structures/src/profiling.rs:644:9 41: 0x7ff4b2e89588 - ::time::, rustc_interface[7567e2be895364c9]::passes::start_codegen::{closure#0}> at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_session/src/utils.rs:16:9 42: 0x7ff4b2f3e7da - rustc_interface[7567e2be895364c9]::passes::start_codegen at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/passes.rs:1106:19 43: 0x7ff4b2f3e7da - ::ongoing_codegen::{closure#0}::{closure#0} at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/queries.rs:253:20 44: 0x7ff4b2f3e7da - ::enter::<::ongoing_codegen::{closure#0}::{closure#0}, core[2c93cc726be6ffee]::result::Result, rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0} at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/passes.rs:834:42 45: 0x7ff4b2f3e7da - rustc_middle[b3cc987cefcbf362]::ty::context::tls::enter_context::<::enter<::ongoing_codegen::{closure#0}::{closure#0}, core[2c93cc726be6ffee]::result::Result, rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}, core[2c93cc726be6ffee]::result::Result, rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0} at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_middle/src/ty/context.rs:1776:50 46: 0x7ff4b2f3e7da - rustc_middle[b3cc987cefcbf362]::ty::context::tls::set_tlv::::enter<::ongoing_codegen::{closure#0}::{closure#0}, core[2c93cc726be6ffee]::result::Result, rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}, core[2c93cc726be6ffee]::result::Result, rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}, core[2c93cc726be6ffee]::result::Result, rustc_errors[17305ac371a24d4]::ErrorReported>> at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_middle/src/ty/context.rs:1760:9 47: 0x7ff4b2f3e7da - rustc_middle[b3cc987cefcbf362]::ty::context::tls::enter_context::<::enter<::ongoing_codegen::{closure#0}::{closure#0}, core[2c93cc726be6ffee]::result::Result, rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}, core[2c93cc726be6ffee]::result::Result, rustc_errors[17305ac371a24d4]::ErrorReported>> at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_middle/src/ty/context.rs:1776:9 48: 0x7ff4b2f3e7da - ::enter::<::ongoing_codegen::{closure#0}::{closure#0}, core[2c93cc726be6ffee]::result::Result, rustc_errors[17305ac371a24d4]::ErrorReported>> at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/passes.rs:834:9 49: 0x7ff4b2f0c9ae - ::ongoing_codegen::{closure#0} at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/queries.rs:244:13 50: 0x7ff4b2f0c9ae - >>::compute::<::ongoing_codegen::{closure#0}> at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/queries.rs:37:28 51: 0x7ff4b2f0c9ae - ::ongoing_codegen at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/queries.rs:242:9 52: 0x7ff4b2cbd863 - rustc_driver[696b8639a901568d]::run_compiler::{closure#1}::{closure#2} at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_driver/src/lib.rs:411:13 53: 0x7ff4b2cbd863 - ::enter::, rustc_errors[17305ac371a24d4]::ErrorReported>> at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/queries.rs:390:19 54: 0x7ff4b2d133a6 - rustc_driver[696b8639a901568d]::run_compiler::{closure#1} at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_driver/src/lib.rs:316:22 55: 0x7ff4b2d133a6 - rustc_interface[7567e2be895364c9]::interface::create_compiler_and_run::, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#1} at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/interface.rs:229:13 56: 0x7ff4b2d133a6 - rustc_span[b0923153a3d20a7e]::with_source_map::, rustc_interface[7567e2be895364c9]::interface::create_compiler_and_run, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#1}> at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_span/src/lib.rs:1013:5 57: 0x7ff4b2cbb664 - rustc_interface[7567e2be895364c9]::interface::create_compiler_and_run::, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}> at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/interface.rs:223:5 58: 0x7ff4b2c88673 - rustc_interface[7567e2be895364c9]::interface::run_compiler::, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#0} at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/interface.rs:245:12 59: 0x7ff4b2c88673 - rustc_interface[7567e2be895364c9]::util::setup_callbacks_and_run_in_thread_pool_with_globals::, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}::{closure#0} at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/util.rs:148:13 60: 0x7ff4b2c88673 - >::set::, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>> at /home/pnkfelix/.cargo/registry/src/github.com-1ecc6299db9ec823/scoped-tls-1.0.0/src/lib.rs:137:9 61: 0x7ff4b2c84d29 - rustc_span[b0923153a3d20a7e]::create_session_globals_then::, rustc_interface[7567e2be895364c9]::util::setup_callbacks_and_run_in_thread_pool_with_globals, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}::{closure#0}> at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_span/src/lib.rs:111:5 62: 0x7ff4b2c84d29 - rustc_interface[7567e2be895364c9]::util::setup_callbacks_and_run_in_thread_pool_with_globals::, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0} at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/compiler/rustc_interface/src/util.rs:146:9 63: 0x7ff4b2c84d29 - std[ea736e51db5ff63b]::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>> at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/sys_common/backtrace.rs:122:18 64: 0x7ff4b2c88299 - ::spawn_unchecked_::, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#1}::{closure#0} at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/thread/mod.rs:498:17 65: 0x7ff4b2c88299 - ::spawn_unchecked_, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#1}::{closure#0}> as core[2c93cc726be6ffee]::ops::function::FnOnce<()>>::call_once at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/core/src/panic/unwind_safe.rs:271:9 66: 0x7ff4b2c88299 - std[ea736e51db5ff63b]::panicking::try::do_call::::spawn_unchecked_, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#1}::{closure#0}>, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>> at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/panicking.rs:492:40 67: 0x7ff4b2c88299 - std[ea736e51db5ff63b]::panicking::try::, core[2c93cc726be6ffee]::panic::unwind_safe::AssertUnwindSafe<::spawn_unchecked_, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#1}::{closure#0}>> at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/panicking.rs:456:19 68: 0x7ff4b2c88299 - std[ea736e51db5ff63b]::panic::catch_unwind::::spawn_unchecked_, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#1}::{closure#0}>, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>> at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/panic.rs:137:14 69: 0x7ff4b2c88299 - ::spawn_unchecked_::, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#1} at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/thread/mod.rs:497:30 70: 0x7ff4b2c88299 - <::spawn_unchecked_, rustc_driver[696b8639a901568d]::run_compiler::{closure#1}>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#0}, core[2c93cc726be6ffee]::result::Result<(), rustc_errors[17305ac371a24d4]::ErrorReported>>::{closure#1} as core[2c93cc726be6ffee]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/core/src/ops/function.rs:227:5 71: 0x7ff4b1c67f53 - as core::ops::function::FnOnce>::call_once::h4eb0a7546fd8ef36 at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/alloc/src/boxed.rs:1854:9 72: 0x7ff4b1c67f53 - as core::ops::function::FnOnce>::call_once::he4fcc93023938fb9 at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/alloc/src/boxed.rs:1854:9 73: 0x7ff4b1c67f53 - std::sys::unix::thread::Thread::new::thread_start::h6cd91a2002f08122 at /media/pnkfelix/Rust/StdRedistrib/rust-stdredist-1/library/std/src/sys/unix/thread.rs:108:17 74: 0x7ff4b1a23927 - start_thread at ./nptl/./nptl/pthread_create.c:435:8 75: 0x7ff4b1ab39e4 - __clone at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:100 76: 0x0 - 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-dev running on x86_64-unknown-linux-gnu note: compiler flags: -C opt-level=3 -C embed-bitcode=no -C debuginfo=2 -C debug-assertions=on -C symbol-mangling-version=legacy -Z unstable-options -Z macro-backtrace -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -C prefer-dynamic -C embed-bitcode=yes -Z crate-attr=doc(html_root_url="https://doc.rust-lang.org/nightly/") -Z binary-dep-depinfo -Z force-unstable-if-unmarked note: some of the compiler flags provided by cargo are hidden query stack during panic: end of query stack error: could not compile `core` warning: build failed, waiting for other jobs to finish... error: build failed ```

matthiaskrgr commented 2 years ago

I'm wondering if this the same as https://github.com/rust-lang/rust/issues/93871 or if this is another cause.

pnkfelix commented 2 years ago

This bug appears like it was also injected by PR #93006, so that's a similarity with issue #93871.

However, I do not see the feature gate for unsized_tuple_coercion in the source code for libcore, so I am assuming that this represents a different bug injected by PR #93871.

I spoke to @michaelwoerister and I plan to revert PR #93871 based on these factors. It can reland after it has a successful bootstrap run with a config.toml of debuginfo-level=2.

michaelwoerister commented 2 years ago

Is this still relevant?

Enselic commented 3 months ago

Triage: No one said "yes it is still relevant", so let's close a a obsolete.