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

internal compiler error on 1.84.0-nightly (8adb4b30f 2024-11-13) #133038

Open
AlexOnTheStorm opened this issue Nov 14, 2024 · 3 comments
Open

internal compiler error on 1.84.0-nightly (8adb4b30f 2024-11-13) #133038

AlexOnTheStorm opened this issue Nov 14, 2024 · 3 comments
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@AlexOnTheStorm
Copy link

AlexOnTheStorm commented Nov 14, 2024

thread 'rustc' panicked at compiler/rustc_middle/src/mir/interpret/queries.rs:105:13:
Box<dyn Any>
stack backtrace:
   0:     0x7f51d7741fe5 - std::backtrace::Backtrace::create::h9b3de1e4dfc1f21c
   1:     0x7f51d5b4ff75 - std::backtrace::Backtrace::force_capture::h694040df2c86ceb1
   2:     0x7f51d4bee345 - std[765cb8723245af2b]::panicking::update_hook::<alloc[a932e0534ac38218]::boxed::Box<rustc_driver_impl[7eab4ea623a09f02]::install_ice_hook::{closure#0}>>::{closure#0}
   3:     0x7f51d5b677e8 - std::panicking::rust_panic_with_hook::h2f0f6e532df4efd6
   4:     0x7f51d4c28051 - std[765cb8723245af2b]::panicking::begin_panic::<rustc_errors[c2fc7bc1b0cd5a2e]::ExplicitBug>::{closure#0}
   5:     0x7f51d4c1b026 - std[765cb8723245af2b]::sys::backtrace::__rust_end_short_backtrace::<std[765cb8723245af2b]::panicking::begin_panic<rustc_errors[c2fc7bc1b0cd5a2e]::ExplicitBug>::{closure#0}, !>
   6:     0x7f51d4c16669 - std[765cb8723245af2b]::panicking::begin_panic::<rustc_errors[c2fc7bc1b0cd5a2e]::ExplicitBug>
   7:     0x7f51d4c31da1 - <rustc_errors[c2fc7bc1b0cd5a2e]::diagnostic::BugAbort as rustc_errors[c2fc7bc1b0cd5a2e]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
   8:     0x7f51d52b27d3 - rustc_middle[69f5a6c8c8dd810f]::util::bug::opt_span_bug_fmt::<rustc_span[7e5fda6d6044ef5d]::span_encoding::Span>::{closure#0}
   9:     0x7f51d529901a - rustc_middle[69f5a6c8c8dd810f]::ty::context::tls::with_opt::<rustc_middle[69f5a6c8c8dd810f]::util::bug::opt_span_bug_fmt<rustc_span[7e5fda6d6044ef5d]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  10:     0x7f51d5298eab - rustc_middle[69f5a6c8c8dd810f]::ty::context::tls::with_context_opt::<rustc_middle[69f5a6c8c8dd810f]::ty::context::tls::with_opt<rustc_middle[69f5a6c8c8dd810f]::util::bug::opt_span_bug_fmt<rustc_span[7e5fda6d6044ef5d]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  11:     0x7f51d34e3940 - rustc_middle[69f5a6c8c8dd810f]::util::bug::bug_fmt
  12:     0x7f51d7dd4ab5 - <rustc_middle[69f5a6c8c8dd810f]::ty::context::TyCtxt>::const_eval_resolve_for_typeck.cold
  13:     0x7f51d6d8938d - rustc_trait_selection[d9fdd1a0336c780b]::traits::try_evaluate_const
  14:     0x7f51d6cbcac3 - <rustc_trait_selection[d9fdd1a0336c780b]::traits::normalize::AssocTypeNormalizer as rustc_type_ir[2f0ec634f55d755f]::fold::TypeFolder<rustc_middle[69f5a6c8c8dd810f]::ty::context::TyCtxt>>::fold_const
  15:     0x7f51d6cc1bcd - <rustc_middle[69f5a6c8c8dd810f]::ty::Ty as rustc_type_ir[2f0ec634f55d755f]::fold::TypeSuperFoldable<rustc_middle[69f5a6c8c8dd810f]::ty::context::TyCtxt>>::try_super_fold_with::<rustc_trait_selection[d9fdd1a0336c780b]::traits::normalize::AssocTypeNormalizer>
  16:     0x7f51d6cbe49e - <rustc_type_ir[2f0ec634f55d755f]::ty_kind::FnSig<rustc_middle[69f5a6c8c8dd810f]::ty::context::TyCtxt> as rustc_type_ir[2f0ec634f55d755f]::fold::TypeFoldable<rustc_middle[69f5a6c8c8dd810f]::ty::context::TyCtxt>>::try_fold_with::<rustc_trait_selection[d9fdd1a0336c780b]::traits::normalize::AssocTypeNormalizer>
  17:     0x7f51d69ef560 - <rustc_hir_typeck[e3dd38b4cb6ae428]::method::confirm::ConfirmContext>::confirm
  18:     0x7f51d6f14fae - <rustc_hir_typeck[e3dd38b4cb6ae428]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  19:     0x7f51d64e04c7 - <rustc_hir_typeck[e3dd38b4cb6ae428]::fn_ctxt::FnCtxt>::check_decl
  20:     0x7f51d6f0eeb8 - <rustc_hir_typeck[e3dd38b4cb6ae428]::fn_ctxt::FnCtxt>::check_expr_block
  21:     0x7f51d6f1423a - <rustc_hir_typeck[e3dd38b4cb6ae428]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
  22:     0x7f51d64d0240 - rustc_hir_typeck[e3dd38b4cb6ae428]::check::check_fn
  23:     0x7f51d64c5cb5 - rustc_hir_typeck[e3dd38b4cb6ae428]::typeck
  24:     0x7f51d64c5653 - rustc_query_impl[31a007ddad05a48]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[31a007ddad05a48]::query_impl::typeck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[69f5a6c8c8dd810f]::query::erase::Erased<[u8; 8usize]>>
  25:     0x7f51d67fab68 - rustc_query_system[81196f4961d73ee8]::query::plumbing::try_execute_query::<rustc_query_impl[31a007ddad05a48]::DynamicConfig<rustc_query_system[81196f4961d73ee8]::query::caches::VecCache<rustc_span[7e5fda6d6044ef5d]::def_id::LocalDefId, rustc_middle[69f5a6c8c8dd810f]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[31a007ddad05a48]::plumbing::QueryCtxt, true>
  26:     0x7f51d66853d4 - rustc_query_impl[31a007ddad05a48]::query_impl::typeck::get_query_incr::__rust_end_short_backtrace
  27:     0x7f51d67f6647 - <rustc_middle[69f5a6c8c8dd810f]::hir::map::Map>::par_body_owners::<rustc_hir_analysis[54fbd18308a238b5]::check_crate::{closure#4}>::{closure#0}
  28:     0x7f51d67f4619 - rustc_hir_analysis[54fbd18308a238b5]::check_crate
  29:     0x7f51d681eb8a - rustc_interface[edb5f17ab32af0ca]::passes::run_required_analyses
  30:     0x7f51d710f2de - rustc_interface[edb5f17ab32af0ca]::passes::analysis
  31:     0x7f51d710f2af - rustc_query_impl[31a007ddad05a48]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[31a007ddad05a48]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[69f5a6c8c8dd810f]::query::erase::Erased<[u8; 1usize]>>
  32:     0x7f51d736187a - rustc_query_system[81196f4961d73ee8]::query::plumbing::try_execute_query::<rustc_query_impl[31a007ddad05a48]::DynamicConfig<rustc_query_system[81196f4961d73ee8]::query::caches::SingleCache<rustc_middle[69f5a6c8c8dd810f]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[31a007ddad05a48]::plumbing::QueryCtxt, true>
  33:     0x7f51d7361377 - rustc_query_impl[31a007ddad05a48]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace
  34:     0x7f51d71d93ba - rustc_interface[edb5f17ab32af0ca]::interface::run_compiler::<core[ad6a825abd6232fe]::result::Result<(), rustc_span[7e5fda6d6044ef5d]::ErrorGuaranteed>, rustc_driver_impl[7eab4ea623a09f02]::run_compiler::{closure#0}>::{closure#1}
  35:     0x7f51d72711d0 - std[765cb8723245af2b]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[edb5f17ab32af0ca]::util::run_in_thread_with_globals<rustc_interface[edb5f17ab32af0ca]::util::run_in_thread_pool_with_globals<rustc_interface[edb5f17ab32af0ca]::interface::run_compiler<core[ad6a825abd6232fe]::result::Result<(), rustc_span[7e5fda6d6044ef5d]::ErrorGuaranteed>, rustc_driver_impl[7eab4ea623a09f02]::run_compiler::{closure#0}>::{closure#1}, core[ad6a825abd6232fe]::result::Result<(), rustc_span[7e5fda6d6044ef5d]::ErrorGuaranteed>>::{closure#0}, core[ad6a825abd6232fe]::result::Result<(), rustc_span[7e5fda6d6044ef5d]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[ad6a825abd6232fe]::result::Result<(), rustc_span[7e5fda6d6044ef5d]::ErrorGuaranteed>>
  36:     0x7f51d72715eb - <<std[765cb8723245af2b]::thread::Builder>::spawn_unchecked_<rustc_interface[edb5f17ab32af0ca]::util::run_in_thread_with_globals<rustc_interface[edb5f17ab32af0ca]::util::run_in_thread_pool_with_globals<rustc_interface[edb5f17ab32af0ca]::interface::run_compiler<core[ad6a825abd6232fe]::result::Result<(), rustc_span[7e5fda6d6044ef5d]::ErrorGuaranteed>, rustc_driver_impl[7eab4ea623a09f02]::run_compiler::{closure#0}>::{closure#1}, core[ad6a825abd6232fe]::result::Result<(), rustc_span[7e5fda6d6044ef5d]::ErrorGuaranteed>>::{closure#0}, core[ad6a825abd6232fe]::result::Result<(), rustc_span[7e5fda6d6044ef5d]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[ad6a825abd6232fe]::result::Result<(), rustc_span[7e5fda6d6044ef5d]::ErrorGuaranteed>>::{closure#1} as core[ad6a825abd6232fe]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  37:     0x7f51d72720b9 - std::sys::pal::unix::thread::Thread::new::thread_start::hdf9fef71b4d1e8bf
  38:     0x7f51d14d1609 - start_thread
  39:     0x7f51d13f6353 - clone
  40:                0x0 - <unknown>


rustc version: 1.84.0-nightly (8adb4b30f 2024-11-13)
platform: x86_64-unknown-linux-gnu

query stack during panic:
#0 [typeck] type-checking `column_major::ifft_multithread::butterfly_direct_radix_2`
#1 [analysis] running analysis passes on this crate
end of query stack
@AlexOnTheStorm AlexOnTheStorm 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 Nov 14, 2024
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Nov 14, 2024
@lqd
Copy link
Member

lqd commented Nov 14, 2024

Can you add the code which triggered the issue? Thanks!

@lqd lqd added the S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. label Nov 14, 2024
@jieyouxu jieyouxu removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Nov 14, 2024
@clubby789
Copy link
Contributor

Not sure why the bug message isn't in the backtrace, but points to:

// Cannot resolve `Unevaluated` constants that contain inference
// variables. We reject those here since `resolve`
// would fail otherwise.
//
// When trying to evaluate constants containing inference variables,
// use `Infcx::const_eval_resolve` instead.
if ct.args.has_non_region_infer() {
bug!("did not expect inference variables here");
}

@shamatar
Copy link
Contributor

Is the line mentioned CTFE related, or type check (const genetics?) related?

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) ❄️ S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. 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

6 participants