-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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: compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs:595:32: uninterned StableCrateId #112700
Comments
This is an ICE in beta, not stage 1. So this is probably a real incr comp bug, not a bug in bootstrap.. |
#88488 might be related. |
I'm reliably hitting this using x86_64-pc-windows-msvc. Please let me know if you need any info to debug it. |
@dpaoliello, did you start seeing this with the current stable release (1.71)? I'll try to take a look at this some time this week. @bjorn3's reproducer is small which should be very helpful. I could imagine that for some reason the |
With the beta release (1.72), specifically when building the Rust compiler itself, the bootstrap compiler raises this error when building rustdoc.
|
OK, I've been able to reproduce this with the two commits given by @Ddystopia in #113266. The backtrace from a compiler built with debuginfo looks like this: Backtrace
error: internal compiler error: compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs:595:32: uninterned StableCrateId: StableCrateId(1632958532300426288)
thread 'rustc' panicked at 'Box<dyn Any>', rs/compiler/rustc_errors/src/lib.rs:1651:9
stack backtrace:
0: 0x7fa500e62980 - std::backtrace_rs::backtrace::libunwind::trace::haea5f11d77a70d01
at rs/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
1: 0x7fa500e62980 - std::backtrace_rs::backtrace::trace_unsynchronized::h703dd4aa7f373f38
at rs/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x7fa500e62980 - std::sys_common::backtrace::_print_fmt::h22431bb0cb564c0f
at rs/library/std/src/sys_common/backtrace.rs:65:5
3: 0x7fa500e62980 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2333cbfc479a2fc4
at rs/library/std/src/sys_common/backtrace.rs:44:22
4: 0x7fa500eebb58 - core::fmt::rt::Argument::fmt::h13231428eb2ed796
at rs/library/core/src/fmt/rt.rs:138:9
5: 0x7fa500eebb58 - core::fmt::write::h94c3a8a331226fbc
at rs/library/core/src/fmt/mod.rs:1094:21
6: 0x7fa500e59621 - std::io::Write::write_fmt::h0fe6b49705fd979e
at rs/library/std/src/io/mod.rs:1713:15
7: 0x7fa500e627ba - std::sys_common::backtrace::_print::heeff11ef8171ab5d
at rs/library/std/src/sys_common/backtrace.rs:47:5
8: 0x7fa500e627ba - std::sys_common::backtrace::print::ha2b11e10be088438
at rs/library/std/src/sys_common/backtrace.rs:34:9
9: 0x7fa500e2a864 - std::panicking::default_hook::{{closure}}::h0280d842e2119e8a
10: 0x7fa500e2a608 - std::panicking::default_hook::hf85db8b74f83bc90
at rs/library/std/src/panicking.rs:288:9
11: 0x7fa50190240c - <alloc[72fab78219be1254]::boxed::Box<dyn for<'a, 'b> core[2f8f677d0b7db0dd]::ops::function::Fn<(&'a core[2f8f677d0b7db0dd]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[2f8f677d0b7db0dd]::marker::Send + core[2f8f677d0b7db0dd]::marker::Sync> as core[2f8f677d0b7db0dd]::ops::function::Fn<(&core[2f8f677d0b7db0dd]::panic::panic_info::PanicInfo,)>>::call
at rs/library/alloc/src/boxed.rs:1999:9
12: 0x7fa50190240c - rustc_driver_impl[f1098a13171d8758]::install_ice_hook::{closure#0}
at rs/compiler/rustc_driver_impl/src/lib.rs:1269:13
13: 0x7fa500e2adbb - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h676c18f966ee74c3
at rs/library/alloc/src/boxed.rs:1999:9
14: 0x7fa500e2adbb - std::panicking::rust_panic_with_hook::h7a88224240b15201
at rs/library/std/src/panicking.rs:709:13
15: 0x7fa50415d9d3 - std[4b153bf51e87bee0]::panicking::begin_panic::<rustc_errors[f7eace3a591cf558]::ExplicitBug>::{closure#0}
at rs/library/std/src/panicking.rs:626:9
16: 0x7fa50415cb86 - std[4b153bf51e87bee0]::sys_common::backtrace::__rust_end_short_backtrace::<std[4b153bf51e87bee0]::panicking::begin_panic<rustc_errors[f7eace3a591cf558]::ExplicitBug>::{closure#0}, !>
at rs/library/std/src/sys_common/backtrace.rs:151:18
17: 0x7fa50188a486 - std[4b153bf51e87bee0]::panicking::begin_panic::<rustc_errors[f7eace3a591cf558]::ExplicitBug>
at rs/library/std/src/panicking.rs:625:12
18: 0x7fa5041767c6 - std[4b153bf51e87bee0]::panic::panic_any::<rustc_errors[f7eace3a591cf558]::ExplicitBug>
at rs/library/std/src/panic.rs:63:5
19: 0x7fa50417610a - <rustc_errors[f7eace3a591cf558]::HandlerInner>::bug::<alloc[72fab78219be1254]::string::String>
at rs/compiler/rustc_errors/src/lib.rs:1651:9
20: 0x7fa504175f44 - <rustc_errors[f7eace3a591cf558]::Handler>::bug::<alloc[72fab78219be1254]::string::String>
at rs/compiler/rustc_errors/src/lib.rs:1064:9
21: 0x7fa504209910 - rustc_middle[4f9e7fc8cb0fbf47]::util::bug::opt_span_bug_fmt::<rustc_span[3250ac878e6d0468]::span_encoding::Span>::{closure#0}
at rs/compiler/rustc_middle/src/util/bug.rs:35:34
22: 0x7fa5042083cc - rustc_middle[4f9e7fc8cb0fbf47]::ty::context::tls::with_opt::<rustc_middle[4f9e7fc8cb0fbf47]::util::bug::opt_span_bug_fmt<rustc_span[3250ac878e6d0468]::span_encoding::Span>::{closure#0}, !>::{closure#0}
at rs/compiler/rustc_middle/src/ty/context/tls.rs:154:36
23: 0x7fa50420833a - rustc_middle[4f9e7fc8cb0fbf47]::ty::context::tls::with_context_opt::<rustc_middle[4f9e7fc8cb0fbf47]::ty::context::tls::with_opt<rustc_middle[4f9e7fc8cb0fbf47]::util::bug::opt_span_bug_fmt<rustc_span[3250ac878e6d0468]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
at rs/compiler/rustc_middle/src/ty/context/tls.rs:100:18
24: 0x7fa504208377 - rustc_middle[4f9e7fc8cb0fbf47]::ty::context::tls::with_opt::<rustc_middle[4f9e7fc8cb0fbf47]::util::bug::opt_span_bug_fmt<rustc_span[3250ac878e6d0468]::span_encoding::Span>::{closure#0}, !>
at rs/compiler/rustc_middle/src/ty/context/tls.rs:154:5
25: 0x7fa504209849 - rustc_middle[4f9e7fc8cb0fbf47]::util::bug::opt_span_bug_fmt::<rustc_span[3250ac878e6d0468]::span_encoding::Span>
at rs/compiler/rustc_middle/src/util/bug.rs:31:5
26: 0x7fa50187b018 - rustc_middle[4f9e7fc8cb0fbf47]::util::bug::bug_fmt
at rs/compiler/rustc_middle/src/util/bug.rs:15:5
27: 0x7fa503787b9c - <rustc_metadata[182cfb69743dd12d]::creader::CStore as rustc_session[db83a94508f84f1c]::cstore::CrateStore>::stable_crate_id_to_crate_num::{closure#0}
at rs/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs:595:32
28: 0x7fa503787b9c - <core[2f8f677d0b7db0dd]::option::Option<&rustc_span[3250ac878e6d0468]::def_id::CrateNum>>::unwrap_or_else::<<rustc_metadata[182cfb69743dd12d]::creader::CStore as rustc_session[db83a94508f84f1c]::cstore::CrateStore>::stable_crate_id_to_crate_num::{closure#0}>
at rs/library/core/src/option.rs:979:21
29: 0x7fa503787b9c - <rustc_metadata[182cfb69743dd12d]::creader::CStore as rustc_session[db83a94508f84f1c]::cstore::CrateStore>::stable_crate_id_to_crate_num
at rs/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs:592:10
30: 0x7fa5041f00f1 - <rustc_middle[4f9e7fc8cb0fbf47]::ty::context::TyCtxt>::stable_crate_id_to_crate_num
at rs/compiler/rustc_middle/src/ty/context.rs:856:13
31: 0x7fa5041f00f1 - <rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::EncodedSourceFileId>::translate
at rs/compiler/rustc_middle/src/query/on_disk_cache.rs:149:20
32: 0x7fa5041f00f1 - <rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::CacheDecoder>::file_index_to_file::{closure#0}
at rs/compiler/rustc_middle/src/query/on_disk_cache.rs:495:33
33: 0x7fa5041f00f1 - <std[4b153bf51e87bee0]::collections::hash::map::Entry<rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::SourceFileIndex, alloc[72fab78219be1254]::rc::Rc<rustc_span[3250ac878e6d0468]::SourceFile>>>::or_insert_with::<<rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::CacheDecoder>::file_index_to_file::{closure#0}>
at rs/library/std/src/collections/hash/map.rs:2558:43
34: 0x7fa5041f00f1 - <rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::CacheDecoder>::file_index_to_file
at rs/compiler/rustc_middle/src/query/on_disk_cache.rs:491:9
35: 0x7fa5041f00f1 - <rustc_span[3250ac878e6d0468]::span_encoding::Span as rustc_serialize[69648a2a7da6d613]::serialize::Decodable<rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::CacheDecoder>>::decode
at rs/compiler/rustc_middle/src/query/on_disk_cache.rs:692:23
36: 0x7fa5031d3a1f - <(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span) as rustc_serialize[69648a2a7da6d613]::serialize::Decodable<rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::CacheDecoder>>::decode
at rs/compiler/rustc_serialize/src/serialize.rs:429:43
37: 0x7fa5031d3a1f - <[(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span)] as rustc_middle[4f9e7fc8cb0fbf47]::ty::codec::RefDecodable<rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::CacheDecoder>>::decode::{closure#0}
at rs/compiler/rustc_middle/src/ty/codec.rs:363:47
38: 0x7fa5031d3a1f - core[2f8f677d0b7db0dd]::iter::adapters::map::map_fold::<usize, (rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span), (), <[(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span)] as rustc_middle[4f9e7fc8cb0fbf47]::ty::codec::RefDecodable<rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::CacheDecoder>>::decode::{closure#0}, core[2f8f677d0b7db0dd]::iter::traits::iterator::Iterator::for_each::call<(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span), <alloc[72fab78219be1254]::vec::Vec<(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span)>>::extend_trusted<core[2f8f677d0b7db0dd]::iter::adapters::map::Map<core[2f8f677d0b7db0dd]::ops::range::Range<usize>, <[(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span)] as rustc_middle[4f9e7fc8cb0fbf47]::ty::codec::RefDecodable<rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::CacheDecoder>>::decode::{closure#0}>>::{closure#0}>::{closure#0}>::{closure#0}
at rs/library/core/src/iter/adapters/map.rs:84:28
39: 0x7fa5031d3a1f - <core[2f8f677d0b7db0dd]::ops::range::Range<usize> as core[2f8f677d0b7db0dd]::iter::traits::iterator::Iterator>::fold::<(), core[2f8f677d0b7db0dd]::iter::adapters::map::map_fold<usize, (rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span), (), <[(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span)] as rustc_middle[4f9e7fc8cb0fbf47]::ty::codec::RefDecodable<rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::CacheDecoder>>::decode::{closure#0}, core[2f8f677d0b7db0dd]::iter::traits::iterator::Iterator::for_each::call<(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span), <alloc[72fab78219be1254]::vec::Vec<(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span)>>::extend_trusted<core[2f8f677d0b7db0dd]::iter::adapters::map::Map<core[2f8f677d0b7db0dd]::ops::range::Range<usize>, <[(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span)] as rustc_middle[4f9e7fc8cb0fbf47]::ty::codec::RefDecodable<rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::CacheDecoder>>::decode::{closure#0}>>::{closure#0}>::{closure#0}>::{closure#0}>
at rs/library/core/src/iter/traits/iterator.rs:2481:21
40: 0x7fa5031d3a1f - <core[2f8f677d0b7db0dd]::iter::adapters::map::Map<core[2f8f677d0b7db0dd]::ops::range::Range<usize>, <[(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span)] as rustc_middle[4f9e7fc8cb0fbf47]::ty::codec::RefDecodable<rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::CacheDecoder>>::decode::{closure#0}> as core[2f8f677d0b7db0dd]::iter::traits::iterator::Iterator>::fold::<(), core[2f8f677d0b7db0dd]::iter::traits::iterator::Iterator::for_each::call<(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span), <alloc[72fab78219be1254]::vec::Vec<(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span)>>::extend_trusted<core[2f8f677d0b7db0dd]::iter::adapters::map::Map<core[2f8f677d0b7db0dd]::ops::range::Range<usize>, <[(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span)] as rustc_middle[4f9e7fc8cb0fbf47]::ty::codec::RefDecodable<rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::CacheDecoder>>::decode::{closure#0}>>::{closure#0}>::{closure#0}>
at rs/library/core/src/iter/adapters/map.rs:124:9
41: 0x7fa50321df0f - <core[2f8f677d0b7db0dd]::iter::adapters::map::Map<core[2f8f677d0b7db0dd]::ops::range::Range<usize>, <[(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span)] as rustc_middle[4f9e7fc8cb0fbf47]::ty::codec::RefDecodable<rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::CacheDecoder>>::decode::{closure#0}> as core[2f8f677d0b7db0dd]::iter::traits::iterator::Iterator>::for_each::<<alloc[72fab78219be1254]::vec::Vec<(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span)>>::extend_trusted<core[2f8f677d0b7db0dd]::iter::adapters::map::Map<core[2f8f677d0b7db0dd]::ops::range::Range<usize>, <[(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span)] as rustc_middle[4f9e7fc8cb0fbf47]::ty::codec::RefDecodable<rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::CacheDecoder>>::decode::{closure#0}>>::{closure#0}>
at rs/library/core/src/iter/traits/iterator.rs:856:9
42: 0x7fa50321df0f - <alloc[72fab78219be1254]::vec::Vec<(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span)>>::extend_trusted::<core[2f8f677d0b7db0dd]::iter::adapters::map::Map<core[2f8f677d0b7db0dd]::ops::range::Range<usize>, <[(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span)] as rustc_middle[4f9e7fc8cb0fbf47]::ty::codec::RefDecodable<rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::CacheDecoder>>::decode::{closure#0}>>
at rs/library/alloc/src/vec/mod.rs:2843:17
43: 0x7fa50321df0f - <alloc[72fab78219be1254]::vec::Vec<(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span)> as alloc[72fab78219be1254]::vec::spec_extend::SpecExtend<(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span), core[2f8f677d0b7db0dd]::iter::adapters::map::Map<core[2f8f677d0b7db0dd]::ops::range::Range<usize>, <[(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span)] as rustc_middle[4f9e7fc8cb0fbf47]::ty::codec::RefDecodable<rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::CacheDecoder>>::decode::{closure#0}>>>::spec_extend
at rs/library/alloc/src/vec/spec_extend.rs:26:9
44: 0x7fa50321df0f - <alloc[72fab78219be1254]::vec::Vec<(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span)> as alloc[72fab78219be1254]::vec::spec_from_iter_nested::SpecFromIterNested<(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span), core[2f8f677d0b7db0dd]::iter::adapters::map::Map<core[2f8f677d0b7db0dd]::ops::range::Range<usize>, <[(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span)] as rustc_middle[4f9e7fc8cb0fbf47]::ty::codec::RefDecodable<rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::CacheDecoder>>::decode::{closure#0}>>>::from_iter
at rs/library/alloc/src/vec/spec_from_iter_nested.rs:62:9
45: 0x7fa50321df0f - <alloc[72fab78219be1254]::vec::Vec<(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span)> as alloc[72fab78219be1254]::vec::spec_from_iter::SpecFromIter<(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span), core[2f8f677d0b7db0dd]::iter::adapters::map::Map<core[2f8f677d0b7db0dd]::ops::range::Range<usize>, <[(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span)] as rustc_middle[4f9e7fc8cb0fbf47]::ty::codec::RefDecodable<rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::CacheDecoder>>::decode::{closure#0}>>>::from_iter
at rs/library/alloc/src/vec/spec_from_iter.rs:33:9
46: 0x7fa5031e59f3 - <alloc[72fab78219be1254]::vec::Vec<(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span)> as core[2f8f677d0b7db0dd]::iter::traits::collect::FromIterator<(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span)>>::from_iter::<core[2f8f677d0b7db0dd]::iter::adapters::map::Map<core[2f8f677d0b7db0dd]::ops::range::Range<usize>, <[(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span)] as rustc_middle[4f9e7fc8cb0fbf47]::ty::codec::RefDecodable<rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::CacheDecoder>>::decode::{closure#0}>>
at rs/library/alloc/src/vec/mod.rs:2711:9
47: 0x7fa5031e59f3 - <core[2f8f677d0b7db0dd]::iter::adapters::map::Map<core[2f8f677d0b7db0dd]::ops::range::Range<usize>, <[(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span)] as rustc_middle[4f9e7fc8cb0fbf47]::ty::codec::RefDecodable<rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::CacheDecoder>>::decode::{closure#0}> as core[2f8f677d0b7db0dd]::iter::traits::iterator::Iterator>::collect::<alloc[72fab78219be1254]::vec::Vec<(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span)>>
at rs/library/core/src/iter/traits/iterator.rs:1895:9
48: 0x7fa5031e59f3 - <[(rustc_middle[4f9e7fc8cb0fbf47]::ty::Predicate, rustc_span[3250ac878e6d0468]::span_encoding::Span)] as rustc_middle[4f9e7fc8cb0fbf47]::ty::codec::RefDecodable<rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::CacheDecoder>>::decode
at rs/compiler/rustc_middle/src/ty/codec.rs:363:13
49: 0x7fa5031fdf62 - <rustc_middle[4f9e7fc8cb0fbf47]::ty::generics::GenericPredicates as rustc_serialize[69648a2a7da6d613]::serialize::Decodable<rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::CacheDecoder>>::decode
at rs/compiler/rustc_middle/src/ty/generics.rs:323:52
50: 0x7fa503158e74 - rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::decode_tagged::<rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::CacheDecoder, rustc_query_system[baf62fdee479b465]::dep_graph::serialized::SerializedDepNodeIndex, rustc_middle[4f9e7fc8cb0fbf47]::ty::generics::GenericPredicates>
at rs/compiler/rustc_middle/src/query/on_disk_cache.rs:530:17
51: 0x7fa503158e74 - <rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::OnDiskCache>::load_indexed::<rustc_middle[4f9e7fc8cb0fbf47]::ty::generics::GenericPredicates>::{closure#0}
at rs/compiler/rustc_middle/src/query/on_disk_cache.rs:432:59
52: 0x7fa503158e74 - <rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::OnDiskCache>::with_decoder::<rustc_middle[4f9e7fc8cb0fbf47]::ty::generics::GenericPredicates, <rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::OnDiskCache>::load_indexed<rustc_middle[4f9e7fc8cb0fbf47]::ty::generics::GenericPredicates>::{closure#0}>
at rs/compiler/rustc_middle/src/query/on_disk_cache.rs:458:9
53: 0x7fa503158e74 - <rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::OnDiskCache>::load_indexed::<rustc_middle[4f9e7fc8cb0fbf47]::ty::generics::GenericPredicates>
at rs/compiler/rustc_middle/src/query/on_disk_cache.rs:432:21
54: 0x7fa503158e74 - <rustc_middle[4f9e7fc8cb0fbf47]::query::on_disk_cache::OnDiskCache>::try_load_query_result::<rustc_middle[4f9e7fc8cb0fbf47]::ty::generics::GenericPredicates>
at rs/compiler/rustc_middle/src/query/on_disk_cache.rs:402:25
55: 0x7fa50339131c - rustc_query_impl[61ca156b384b54ed]::plumbing::try_load_from_disk::<rustc_middle[4f9e7fc8cb0fbf47]::ty::generics::GenericPredicates>::{closure#0}
at rs/compiler/rustc_query_impl/src/plumbing.rs:409:40
56: 0x7fa50339131c - rustc_middle[4f9e7fc8cb0fbf47]::ty::context::tls::enter_context::<rustc_query_impl[61ca156b384b54ed]::plumbing::try_load_from_disk<rustc_middle[4f9e7fc8cb0fbf47]::ty::generics::GenericPredicates>::{closure#0}, core[2f8f677d0b7db0dd]::option::Option<rustc_middle[4f9e7fc8cb0fbf47]::ty::generics::GenericPredicates>>::{closure#0}
at rs/compiler/rustc_middle/src/ty/context/tls.rs:82:9
[...] |
It looks like the two sessions feed different I also need to review how |
If there is a different |
As far as I can tell, the problem here is that the Adding |
I also encountered this problem python ./x.py test compiler/rustc_data_structures/ target: x86_64-pc-windows-msvc cargo.toml : [rust]
parallel-compiler = false error: internal compiler error: compiler\rustc_metadata\src\rmeta\decoder\cstore_impl.rs:606:32: uninterned StableCrateId: StableCrateId(13189329033857301201)
thread 'rustc' panicked at /rustc/782883f609713fe9617ba64d90086742ec62d374\compiler\rustc_errors\src\lib.rs:1661:9:
Box<dyn Any>
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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 attach the file at `D:\source\rust\rust\rustc-ice-2023-12-09T04_48_21-4316.txt` to your bug report
note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -Z unstable-options -C incremental=[REDACTED] -C symbol-mangling-version=v0 -Z unstable-options -Z macro-backtrace -C split-debuginfo=packed -C target-feature=+crt-static -C llvm-args=-import-instr-limit=10 -Z unstable-options -Z binary-dep-depinfo -Z tls-model=initial-exec
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
thread panicked while processing panic. aborting.
error: could not compile `rustdoc` (lib)
Caused by:
process didn't exit successfully: `D:\source\rust\rust\build\bootstrap\debug\rustc --crate-name rustdoc --edition=2021 'src\librustdoc\lib.rs' --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -Zunstable-options --check-cfg 'cfg(feature, values("jemalloc"))' -C metadata=01f4d5a260686675 -C extra-filename=-01f4d5a260686675 --out-dir 'D:\source\rust\rust\build\x86_64-pc-windows-msvc\stage0-tools\x86_64-pc-windows-msvc\release\deps' --target x86_64-pc-windows-msvc -C 'incremental=D:\source\rust\rust\build\x86_64-pc-windows-msvc\stage0-tools\x86_64-pc-windows-msvc\release\incremental' -L 'dependency=D:\source\rust\rust\build\x86_64-pc-windows-msvc\stage0-tools\x86_64-pc-windows-msvc\release\deps' -L 'dependency=D:\source\rust\rust\build\x86_64-pc-windows-msvc\stage0-tools\release\deps' --extern 'arrayvec=D:\source\rust\rust\build\x86_64-pc-windows-msvc\stage0-tools\x86_64-pc-windows-msvc\release\deps\libarrayvec-c0fe13c606c671d7.rmeta' --extern 'askama=D:\source\rust\rust\build\x86_64-pc-windows-msvc\stage0-tools\x86_64-pc-windows-msvc\release\deps\libaskama-cdab1361fe75244e.rmeta' --extern 'indexmap=D:\source\rust\rust\build\x86_64-pc-windows-msvc\stage0-tools\x86_64-pc-windows-msvc\release\deps\libindexmap-5130818e636453ab.rmeta' --extern 'itertools=D:\source\rust\rust\build\x86_64-pc-windows-msvc\stage0-tools\x86_64-pc-windows-msvc\release\deps\libitertools-9f988ca984b15d43.rmeta' --extern 'minifier=D:\source\rust\rust\build\x86_64-pc-windows-msvc\stage0-tools\x86_64-pc-windows-msvc\release\deps\libminifier-ee80a6cb82ef9bf8.rmeta' --extern 'once_cell=D:\source\rust\rust\build\x86_64-pc-windows-msvc\stage0-tools\x86_64-pc-windows-msvc\release\deps\libonce_cell-1d3e96356082c9b5.rmeta' --extern 'regex=D:\source\rust\rust\build\x86_64-pc-windows-msvc\stage0-tools\x86_64-pc-windows-msvc\release\deps\libregex-64ea37194865f89f.rmeta' --extern 'rustdoc_json_types=D:\source\rust\rust\build\x86_64-pc-windows-msvc\stage0-tools\x86_64-pc-windows-msvc\release\deps\librustdoc_json_types-9af1d9526643b0a4.rmeta' --extern 'serde=D:\source\rust\rust\build\x86_64-pc-windows-msvc\stage0-tools\x86_64-pc-windows-msvc\release\deps\libserde-8f44f31e671060bf.rmeta' --extern 'serde_json=D:\source\rust\rust\build\x86_64-pc-windows-msvc\stage0-tools\x86_64-pc-windows-msvc\release\deps\libserde_json-20c0790e61435ff6.rmeta' --extern 'smallvec=D:\source\rust\rust\build\x86_64-pc-windows-msvc\stage0-tools\x86_64-pc-windows-msvc\release\deps\libsmallvec-98fd81a6eb021168.rmeta' --extern 'tempfile=D:\source\rust\rust\build\x86_64-pc-windows-msvc\stage0-tools\x86_64-pc-windows-msvc\release\deps\libtempfile-c38eb69b25df06d4.rmeta' --extern 'threadpool=D:\source\rust\rust\build\x86_64-pc-windows-msvc\stage0-tools\x86_64-pc-windows-msvc\release\deps\libthreadpool-cb01cd5dfa74e1fc.rmeta' --extern 'tracing=D:\source\rust\rust\build\x86_64-pc-windows-msvc\stage0-tools\x86_64-pc-windows-msvc\release\deps\libtracing-c37592520cc8b5f0.rmeta' --extern 'tracing_subscriber=D:\source\rust\rust\build\x86_64-pc-windows-msvc\stage0-tools\x86_64-pc-windows-msvc\release\deps\libtracing_subscriber-ac890cea32c3c2af.rmeta' --extern 'tracing_tree=D:\source\rust\rust\build\x86_64-pc-windows-msvc\stage0-tools\x86_64-pc-windows-msvc\release\deps\libtracing_tree-ce401f66adf97c4d.rmeta' --cfg=bootstrap --cfg=windows_raw_dylib -Csymbol-mangling-version=v0 -Zunstable-options '--check-cfg=cfg(bootstrap,values())' '--check-cfg=cfg(parallel_compiler,values())' '--check-cfg=cfg(no_btreemap_remove_entry,values())' '--check-cfg=cfg(crossbeam_loom,values())' '--check-cfg=cfg(span_locations,values())' '--check-cfg=cfg(rustix_use_libc,values())' '--check-cfg=cfg(emulate_second_only_system,values())' '--check-cfg=cfg(windows_raw_dylib,values())' -Zmacro-backtrace -Csplit-debuginfo=packed -Ctarget-feature=+crt-static -Cllvm-args=-import-instr-limit=10 -Zunstable-options -Z binary-dep-depinfo` (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN)
Build completed unsuccessfully in 0:05:21
|
WG-prioritization assigning priority (Zulip discussion). @rustbot label -I-prioritize +P-medium |
I'm having a hard time writing a small reproducer for this. Simply changing |
…ce-file-id, r=<try> Unify SourceFile::name_hash and StableSourceFileId This PR adapts the existing `StableSourceFileId` type so that it can be used instead of the `name_hash` field of `SourceFile`. This simplifies a few things that were kind of duplicated before. The PR should also fix issues rust-lang#112700 and rust-lang#115835, but I was not able to reproduce these issues in a regression test. As far as I can tell, the root cause of these issues is that the id of the originating crate is not hashed in the `HashStable` impl of `Span` and thus cache entries that should have been considered invalidated were loaded. After this PR, the `stable_id` field of `SourceFile` includes information about the originating crate, so that ICE should not occur anymore.
…ce-file-id, r=cjgillot Unify SourceFile::name_hash and StableSourceFileId This PR adapts the existing `StableSourceFileId` type so that it can be used instead of the `name_hash` field of `SourceFile`. This simplifies a few things that were kind of duplicated before. The PR should also fix issues rust-lang#112700 and rust-lang#115835, but I was not able to reproduce these issues in a regression test. As far as I can tell, the root cause of these issues is that the id of the originating crate is not hashed in the `HashStable` impl of `Span` and thus cache entries that should have been considered invalidated were loaded. After this PR, the `stable_id` field of `SourceFile` includes information about the originating crate, so that ICE should not occur anymore.
…d, r=cjgillot Unify SourceFile::name_hash and StableSourceFileId This PR adapts the existing `StableSourceFileId` type so that it can be used instead of the `name_hash` field of `SourceFile`. This simplifies a few things that were kind of duplicated before. The PR should also fix issues rust-lang/rust#112700 and rust-lang/rust#115835, but I was not able to reproduce these issues in a regression test. As far as I can tell, the root cause of these issues is that the id of the originating crate is not hashed in the `HashStable` impl of `Span` and thus cache entries that should have been considered invalidated were loaded. After this PR, the `stable_id` field of `SourceFile` includes information about the originating crate, so that ICE should not occur anymore.
A potential fix for this has been merged in #119139 last week. Since the issue seems to most easily trigger during bootstrap, we'll have to wait for the fix to make it to beta before we can tell if it worked. I wasn't able to come up with a small reproducer, unfortunately. |
I encountered this issue in stable (1.77.1) today.
|
Thanks for the report, @vegardgs-ksat! This looks like a different issue. It's the same error but triggered by a different code path. Do you have a reproducer for the ICE? Then it would be best to open a new issue. |
I was not aware it was a different issue. I do not have a reproducer - it was a one-off error that occurred when I made two consecutive changes within |
No worries, there's no way to tell that this has a different root cause unless one knows the relevant parts of the compiler's internals. You absolutely did the right thing reporting the backtrace here. We'll have to wait for a reproducer to dig into this more. |
I tried this code:
with the
compiler
profile which enables incr comp.I expected to see this happen: It worked.
Instead, this happened: Got an incr comp related ICE.
Meta
Base commit is c84d5e7. Commit of the previous build is bjorn3@15d3eee.
Backtrace
The text was updated successfully, but these errors were encountered: