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

argon2rs is broken in nightly in LoweringContext>::create_def.cold #129258

Closed
juleek opened this issue Aug 18, 2024 · 1 comment
Closed

argon2rs is broken in nightly in LoweringContext>::create_def.cold #129258

juleek opened this issue Aug 18, 2024 · 1 comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@juleek
Copy link

juleek commented Aug 18, 2024

Code

Unfortunately I do not have a minimal repro, but it crashes while trying to compile argon2rs crate.

Meta

rustc --version --verbose:

rustc --version --verbose
rustc 1.82.0-nightly (feeba198f 2024-08-17)
binary: rustc
commit-hash: feeba198f2c5455b31ca898c859385d5161f0bd8
commit-date: 2024-08-17
host: x86_64-unknown-linux-gnu
release: 1.82.0-nightly
LLVM version: 19.1.0

Error output

see backtrace:
rustc-ice-2024-08-18T23_26_34-56055.txt

Backtrace

thread 'rustc' panicked at compiler/rustc_ast_lowering/src/lib.rs:505:9:
adding a def'n for node-id NodeId(597) and def kind AnonConst but a previous def'n exists: DefKey { parent: Some(DefIndex(57)), disambiguated_data: DisambiguatedDefPathData { data: AnonConst, disambiguator: 0 } }
stack backtrace:
   0:     0x7f8c7b7b758d - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::hca7d9f54992b9b2e
   1:     0x7f8c7c005117 - core::fmt::write::ha7f93126b7c87798
   2:     0x7f8c7cfdad91 - std::io::Write::write_fmt::h0e98e8e3cb2f2fe3
   3:     0x7f8c7b7b9c6b - std::panicking::default_hook::{{closure}}::h531caec58ba26b8f
   4:     0x7f8c7b7b98de - std::panicking::default_hook::hecb1274807cbc3a8
   5:     0x7f8c7a951729 - std[7442970e22fdd2a7]::panicking::update_hook::<alloc[6dda016551a12144]::boxed::Box<rustc_driver_impl[df500566c54c9a54]::install_ice_hook::{closure#0}>>::{closure#0}
   6:     0x7f8c7b7ba587 - std::panicking::rust_panic_with_hook::hbf4090fa5322c83e
   7:     0x7f8c7b7ba247 - std::panicking::begin_panic_handler::{{closure}}::h9d43732be15389ab
   8:     0x7f8c7b7b7a49 - std::sys::backtrace::__rust_end_short_backtrace::haad9c81b32716b00
   9:     0x7f8c7b7b9f14 - rust_begin_unwind
  10:     0x7f8c789a7973 - core::panicking::panic_fmt::h9b232af54bfb13dc
  11:     0x7f8c7db55d78 - <rustc_ast_lowering[5087fe495a811607]::LoweringContext>::create_def.cold
  12:     0x7f8c7c710c1d - <rustc_ast_lowering[5087fe495a811607]::LoweringContext>::lower_anon_const_to_anon_const
  13:     0x7f8c7c7108a6 - <rustc_ast_lowering[5087fe495a811607]::LoweringContext>::lower_anon_const_to_const_arg_direct
  14:     0x7f8c7c710637 - <rustc_ast_lowering[5087fe495a811607]::LoweringContext>::lower_array_length
  15:     0x7f8c7c723bc0 - <rustc_ast_lowering[5087fe495a811607]::LoweringContext>::lower_ty_direct
  16:     0x7f8c7c72207a - <rustc_ast_lowering[5087fe495a811607]::LoweringContext>::lower_ty_direct
  17:     0x7f8c7c6dbbb4 - <rustc_ast_lowering[5087fe495a811607]::LoweringContext>::lower_block_noalloc
  18:     0x7f8c7c705a21 - <rustc_ast_lowering[5087fe495a811607]::LoweringContext>::lower_maybe_coroutine_body
  19:     0x7f8c7c718900 - <rustc_ast_lowering[5087fe495a811607]::LoweringContext>::lower_item_kind
  20:     0x7f8c7c6fdc77 - <rustc_ast_lowering[5087fe495a811607]::item::ItemLowerer>::lower_node
  21:     0x7f8c7c6fb5ff - rustc_ast_lowering[5087fe495a811607]::lower_to_hir
  22:     0x7f8c7cfa38e0 - rustc_query_impl[95ef86227ca355a8]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[95ef86227ca355a8]::query_impl::hir_crate::dynamic_query::{closure#2}::{closure#0}, rustc_middle[874e654ade36861f]::query::erase::Erased<[u8; 8usize]>>
  23:     0x7f8c7cfa27f9 - rustc_query_system[7f894c9242cb2f2a]::query::plumbing::try_execute_query::<rustc_query_impl[95ef86227ca355a8]::DynamicConfig<rustc_query_system[7f894c9242cb2f2a]::query::caches::SingleCache<rustc_middle[874e654ade36861f]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[95ef86227ca355a8]::plumbing::QueryCtxt, false>
  24:     0x7f8c7cfa249e - rustc_query_impl[95ef86227ca355a8]::query_impl::hir_crate::get_query_non_incr::__rust_end_short_backtrace
  25:     0x7f8c7c385c0a - rustc_query_impl[95ef86227ca355a8]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[95ef86227ca355a8]::query_impl::opt_hir_owner_nodes::dynamic_query::{closure#2}::{closure#0}, rustc_middle[874e654ade36861f]::query::erase::Erased<[u8; 8usize]>>
  26:     0x7f8c7c384cb9 - rustc_query_system[7f894c9242cb2f2a]::query::plumbing::try_execute_query::<rustc_query_impl[95ef86227ca355a8]::DynamicConfig<rustc_query_system[7f894c9242cb2f2a]::query::caches::VecCache<rustc_span[fe92dcefc6fa6963]::def_id::LocalDefId, rustc_middle[874e654ade36861f]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[95ef86227ca355a8]::plumbing::QueryCtxt, false>
  27:     0x7f8c7c38494f - rustc_query_impl[95ef86227ca355a8]::query_impl::opt_hir_owner_nodes::get_query_non_incr::__rust_end_short_backtrace
  28:     0x7f8c7c22aa32 - rustc_middle[874e654ade36861f]::query::plumbing::query_get_at::<rustc_query_system[7f894c9242cb2f2a]::query::caches::VecCache<rustc_hir[26d6a8592aa9968d]::hir_id::OwnerId, rustc_middle[874e654ade36861f]::query::erase::Erased<[u8; 8usize]>>>
  29:     0x7f8c7c22aeec - <rustc_middle[874e654ade36861f]::hir::map::Map>::get_module
  30:     0x7f8c7c25d43b - rustc_middle[874e654ade36861f]::hir::map::hir_crate_items
  31:     0x7f8c7cf17060 - rustc_query_impl[95ef86227ca355a8]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[95ef86227ca355a8]::query_impl::hir_crate_items::dynamic_query::{closure#2}::{closure#0}, rustc_middle[874e654ade36861f]::query::erase::Erased<[u8; 8usize]>>
  32:     0x7f8c7cfa27f9 - rustc_query_system[7f894c9242cb2f2a]::query::plumbing::try_execute_query::<rustc_query_impl[95ef86227ca355a8]::DynamicConfig<rustc_query_system[7f894c9242cb2f2a]::query::caches::SingleCache<rustc_middle[874e654ade36861f]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[95ef86227ca355a8]::plumbing::QueryCtxt, false>
  33:     0x7f8c7cfa231e - rustc_query_impl[95ef86227ca355a8]::query_impl::hir_crate_items::get_query_non_incr::__rust_end_short_backtrace
  34:     0x7f8c7c2327cf - rustc_interface[878395b07c07aa5b]::proc_macro_decls::proc_macro_decls_static
  35:     0x7f8c7cfa616d - rustc_query_impl[95ef86227ca355a8]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[95ef86227ca355a8]::query_impl::proc_macro_decls_static::dynamic_query::{closure#2}::{closure#0}, rustc_middle[874e654ade36861f]::query::erase::Erased<[u8; 4usize]>>
  36:     0x7f8c7cfa5d69 - rustc_query_system[7f894c9242cb2f2a]::query::plumbing::try_execute_query::<rustc_query_impl[95ef86227ca355a8]::DynamicConfig<rustc_query_system[7f894c9242cb2f2a]::query::caches::SingleCache<rustc_middle[874e654ade36861f]::query::erase::Erased<[u8; 4usize]>>, false, false, false>, rustc_query_impl[95ef86227ca355a8]::plumbing::QueryCtxt, false>
  37:     0x7f8c7cfa5b4f - rustc_query_impl[95ef86227ca355a8]::query_impl::proc_macro_decls_static::get_query_non_incr::__rust_end_short_backtrace
  38:     0x7f8c7c379eeb - rustc_interface[878395b07c07aa5b]::passes::run_required_analyses
  39:     0x7f8c7cb5c25e - rustc_interface[878395b07c07aa5b]::passes::analysis
  40:     0x7f8c7cb5c231 - rustc_query_impl[95ef86227ca355a8]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[95ef86227ca355a8]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[874e654ade36861f]::query::erase::Erased<[u8; 1usize]>>
  41:     0x7f8c7cfa022e - rustc_query_system[7f894c9242cb2f2a]::query::plumbing::try_execute_query::<rustc_query_impl[95ef86227ca355a8]::DynamicConfig<rustc_query_system[7f894c9242cb2f2a]::query::caches::SingleCache<rustc_middle[874e654ade36861f]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[95ef86227ca355a8]::plumbing::QueryCtxt, false>
  42:     0x7f8c7cf9ff8f - rustc_query_impl[95ef86227ca355a8]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  43:     0x7f8c7ce18a6a - rustc_interface[878395b07c07aa5b]::interface::run_compiler::<core[79488c6100cc7a61]::result::Result<(), rustc_span[fe92dcefc6fa6963]::ErrorGuaranteed>, rustc_driver_impl[df500566c54c9a54]::run_compiler::{closure#0}>::{closure#1}
  44:     0x7f8c7cd34250 - std[7442970e22fdd2a7]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[878395b07c07aa5b]::util::run_in_thread_with_globals<rustc_interface[878395b07c07aa5b]::util::run_in_thread_pool_with_globals<rustc_interface[878395b07c07aa5b]::interface::run_compiler<core[79488c6100cc7a61]::result::Result<(), rustc_span[fe92dcefc6fa6963]::ErrorGuaranteed>, rustc_driver_impl[df500566c54c9a54]::run_compiler::{closure#0}>::{closure#1}, core[79488c6100cc7a61]::result::Result<(), rustc_span[fe92dcefc6fa6963]::ErrorGuaranteed>>::{closure#0}, core[79488c6100cc7a61]::result::Result<(), rustc_span[fe92dcefc6fa6963]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[79488c6100cc7a61]::result::Result<(), rustc_span[fe92dcefc6fa6963]::ErrorGuaranteed>>
  45:     0x7f8c7cd348ba - <<std[7442970e22fdd2a7]::thread::Builder>::spawn_unchecked_<rustc_interface[878395b07c07aa5b]::util::run_in_thread_with_globals<rustc_interface[878395b07c07aa5b]::util::run_in_thread_pool_with_globals<rustc_interface[878395b07c07aa5b]::interface::run_compiler<core[79488c6100cc7a61]::result::Result<(), rustc_span[fe92dcefc6fa6963]::ErrorGuaranteed>, rustc_driver_impl[df500566c54c9a54]::run_compiler::{closure#0}>::{closure#1}, core[79488c6100cc7a61]::result::Result<(), rustc_span[fe92dcefc6fa6963]::ErrorGuaranteed>>::{closure#0}, core[79488c6100cc7a61]::result::Result<(), rustc_span[fe92dcefc6fa6963]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[79488c6100cc7a61]::result::Result<(), rustc_span[fe92dcefc6fa6963]::ErrorGuaranteed>>::{closure#1} as core[79488c6100cc7a61]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  46:     0x7f8c7cd34c2b - std::sys::pal::unix::thread::Thread::new::thread_start::h11955993b29ad85f
   Compiling futures v0.3.30
  47:     0x7f8c7e48ea94 - start_thread
                               at ./nptl/pthread_create.c:447:8
  48:     0x7f8c7e51bc3c - clone3
                               at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
  49:                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/yulia/.cargo/registry/src/index.crates.io-6f17d22bba15001f/argon2rs-0.2.5/rustc-ice-2024-08-18T23_26_34-56055.txt` to your bug report

note: compiler flags: --crate-type lib -C opt-level=3 -C panic=abort -C embed-bitcode=no -C strip=debuginfo

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [hir_crate] getting the crate HIR
#1 [opt_hir_owner_nodes] getting HIR owner items in ``
end of query stack

@juleek juleek 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 Aug 18, 2024
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Aug 18, 2024
@juleek juleek changed the title argon2rs is broken in nightly argon2rs is broken in nightly in LoweringContext>::create_def.cold Aug 18, 2024
@workingjubilee workingjubilee added the regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. label Aug 18, 2024
@rustbot rustbot added the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Aug 18, 2024
@BoxyUwU
Copy link
Member

BoxyUwU commented Aug 18, 2024

#128016

@BoxyUwU BoxyUwU closed this as not planned Won't fix, can't repro, duplicate, stale Aug 18, 2024
@workingjubilee workingjubilee removed I-prioritize Issue: Indicates that prioritization has been requested for this issue. needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Aug 19, 2024
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) ❄️ regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. 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