Skip to content

ICE when compiling strftime-ruby with latest nightly #135565

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
lopopolo opened this issue Jan 16, 2025 · 3 comments
Closed

ICE when compiling strftime-ruby with latest nightly #135565

lopopolo opened this issue Jan 16, 2025 · 3 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

@lopopolo
Copy link
Contributor

Code

strftime-ruby as of artichoke/strftime-ruby@09ec460.

Meta

rustc --version --verbose:

rustc 1.86.0-nightly (8361aef0d 2025-01-14)
binary: rustc
commit-hash: 8361aef0d7c29b1501a316a208ed84cd8a2ae5da
commit-date: 2025-01-14
host: x86_64-unknown-linux-gnu
release: 1.86.0-nightly
LLVM version: 19.1.6

Error output

thread 'rustc' panicked at /rustc/8361aef0d7c29b1501a316a208ed84cd8a2ae5da/compiler/rustc_type_ir/src/binder.rs:806:9:
const parameter `'a/#0` ('a/#0/0) out of range when instantiating args=[]
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: <rustc_type_ir::binder::ArgFolder<rustc_middle::ty::context::TyCtxt>>::region_param_out_of_range
   3: <rustc_middle::ty::generics::GenericPredicates>::instantiate_into
   4: rustc_trait_selection::traits::instantiate_and_check_impossible_predicates
      [... omitted 2 frames ...]
   5: rustc_middle::query::plumbing::query_get_at::<rustc_query_system::query::caches::DefaultCache<(rustc_span::def_id::DefId, &rustc_middle::ty::list::RawList<(), rustc_middle::ty::generic_args::GenericArg>), rustc_middle::query::erase::Erased<[u8; 1]>>>
   6: rustc_monomorphize::partitioning::collect_and_partition_mono_items
      [... omitted 2 frames ...]
   7: rustc_codegen_ssa::back::symbol_export::exported_symbols_provider_local
      [... omitted 2 frames ...]
   8: <rustc_metadata::rmeta::encoder::EncodeContext>::encode_crate_root
   9: rustc_metadata::rmeta::encoder::encode_metadata
  10: rustc_metadata::fs::encode_and_write_metadata
  11: <rustc_interface::queries::Linker>::codegen_and_build_linker
  12: rustc_interface::passes::create_and_enter_global_ctxt::<core::option::Option<rustc_interface::queries::Linker>, rustc_driver_impl::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}
  13: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

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/runner/work/strftime-ruby/strftime-ruby/rustc-ice-20[25](https://github.com/artichoke/strftime-ruby/actions/runs/12799423311/job/35685443976#step:5:26)-01-16T00_20_13-2805.txt` to your bug report

note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C debuginfo=2 -C passes=sancov-module -C llvm-args=-sanitizer-coverage-level=4 -C llvm-args=-sanitizer-coverage-inline-8bit-counters -C llvm-args=-sanitizer-coverage-pc-table -C llvm-args=-sanitizer-coverage-trace-compares -C link-dead-code -Z sanitizer=address -C llvm-args=-sanitizer-coverage-stack-depth -C debug-assertions -C codegen-units=1

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

query stack during panic:
#0 [instantiate_and_check_impossible_predicates] checking impossible instantiated predicates: `format::utils::SizeLimiter`
#1 [collect_and_partition_mono_items] collect_and_partition_mono_items
#2 [exported_symbols] collecting exported symbols for crate `0`
end of query stack
error: could not compile `strftime-ruby` (lib)
Backtrace

<backtrace>

@lopopolo lopopolo 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 Jan 16, 2025
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Jan 16, 2025
@lopopolo
Copy link
Contributor Author

lopopolo commented Jan 16, 2025

Not sure if related, but I also filed #135564 (and #135566 because I accidentally closed #135564)

@cyrgani
Copy link
Contributor

cyrgani commented Jan 16, 2025

Probably a duplicate of #135515, which is fixed in the latest nightly.

@lqd
Copy link
Member

lqd commented Jan 16, 2025

Thanks for opening an issue!

PR #135520 has already fixed this problem, and is available in today's nightly, so we can close this. Feel free to reopen if it happens again.

@lqd lqd closed this as completed Jan 16, 2025
@jieyouxu jieyouxu removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Jan 16, 2025
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

5 participants