Skip to content

re-entrant incremental verify failure ICE from cargo test #112637

Closed
@Fishrock123

Description

@Fishrock123

This is related to the known issue #84970

Code

Essentially the error points to what would be this, which is probably not helpful.

#[derive(serde::Deserialize)]

Meta

rustc --version --verbose:

rustc 1.70.0 (90c541806 2023-05-31)
binary: rustc
commit-hash: 90c541806f23a127002de5b4038be731ba1458ca
commit-date: 2023-05-31
host: aarch64-apple-darwin
release: 1.70.0
LLVM version: 16.0.2

Error output

error: internal compiler error: encountered incremental compilation error with mir_built(ea04a2c9f18d1c84-a3eaecb2025003d0)
  |
  = help: This is a known issue with the compiler. Run `cargo clean -p frontdoor_validator` or `cargo clean` to allow your project to compile
  = note: Please follow the instructions below to create a bug report with the provided information
  = note: See <https://github.com/rust-lang/rust/issues/84970> for more information

thread 'rustc' panicked at 'Found unstable fingerprints for mir_built(ea04a2c9f18d1c84-a3eaecb2025003d0): 

 ( very ardous location / object details: see the "backtrace" for full )

stack backtrace:
  
  ( 43 lines of rustc backtrace: see the "backtrace" for full )

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: rustc 1.70.0 (90c541806 2023-05-31) running on aarch64-apple-darwin

note: compiler flags: --crate-type lib -C embed-bitcode=no -C split-debuginfo=unpacked -C debuginfo=2 -C incremental=[REDACTED]

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

query stack during panic:
#0 [mir_built] building MIR for `_::<impl at src/lib.rs:405:33: 405:44>::deserialize::<impl at src/lib.rs:405:33: 405:44>::deserialize::<impl at src/lib.rs:405:33: 405:44>::visit_map`
#1 [mir_const] preparing `_::<impl at src/lib.rs:405:33: 405:44>::deserialize::<impl at src/lib.rs:405:33: 405:44>::deserialize::<impl at src/lib.rs:405:33: 405:44>::visit_map` for borrow checking
#2 [mir_promoted] processing MIR for `_::<impl at src/lib.rs:405:33: 405:44>::deserialize::<impl at src/lib.rs:405:33: 405:44>::deserialize::<impl at src/lib.rs:405:33: 405:44>::visit_map`
#3 [mir_borrowck] borrow-checking `_::<impl at src/lib.rs:405:33: 405:44>::deserialize::<impl at src/lib.rs:405:33: 405:44>::deserialize::<impl at src/lib.rs:405:33: 405:44>::visit_map`
#4 [analysis] running analysis passes on this crate
end of query stack
error: internal compiler error: re-entrant incremental verify failure, suppressing message
Backtrace

The backtrace also contains location object data which is too long for a GitHub issue. I have put it in a gist: https://gist.github.com/Fishrock123/cb63bac30d36eaa5a8e3bc3d4b207a3d

thread 'rustc' panicked at 'Found unstable fingerprints for mir_built(ea04a2c9f18d1c84-a3eaecb2025003d0): 
stack backtrace:
   0:        0x104b61864 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h819e9cbdf1a9e730
   1:        0x104bb4958 - core::fmt::write::ha5e9bf3131ecb7c0
   2:        0x104b57214 - std::io::Write::write_fmt::h414ce9994bf17404
   3:        0x104b61678 - std::sys_common::backtrace::print::h8072db0bbd5bcc3d
   4:        0x104b6408c - std::panicking::default_hook::{{closure}}::h2c85c5b0c2ede151
   5:        0x104b63e4c - std::panicking::default_hook::hcf2f70992d02f6fe
   6:        0x10d05c058 - rustc_driver_impl[783dc85a9905d0e5]::DEFAULT_HOOK::{closure#0}::{closure#0}
   7:        0x104b6474c - std::panicking::rust_panic_with_hook::h023af7f90b47eb8b
   8:        0x104b64544 - std::panicking::begin_panic_handler::{{closure}}::h14283519edc1d634
   9:        0x104b61c84 - std::sys_common::backtrace::__rust_end_short_backtrace::hc366c0b0cef5b747
  10:        0x104b642d8 - _rust_begin_unwind
  11:        0x104be0400 - core::panicking::panic_fmt::h324f50b29db90195
  12:        0x1113c6d68 - rustc_query_system[a624e6a9fe4584df]::query::plumbing::incremental_verify_ich_failed::<rustc_middle[51dfd5d9279e1028]::ty::context::TyCtxt>
  13:        0x110333a48 - <std[bf9110f564f42f12]::thread::local::LocalKey<core[b2c7346eda96f041]::cell::Cell<*const ()>>>::with::<rustc_middle[51dfd5d9279e1028]::ty::context::tls::enter_context<rustc_query_system[a624e6a9fe4584df]::query::plumbing::execute_job_incr<rustc_query_impl[7b60fd99fe06ff81]::queries::mir_built, rustc_query_impl[7b60fd99fe06ff81]::plumbing::QueryCtxt>::{closure#1}, core[b2c7346eda96f041]::option::Option<(rustc_middle[51dfd5d9279e1028]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[a624e6a9fe4584df]::dep_graph::graph::DepNodeIndex)>>::{closure#0}, core[b2c7346eda96f041]::option::Option<(rustc_middle[51dfd5d9279e1028]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[a624e6a9fe4584df]::dep_graph::graph::DepNodeIndex)>>
  14:        0x11023870c - rustc_query_system[a624e6a9fe4584df]::query::plumbing::try_execute_query::<rustc_query_impl[7b60fd99fe06ff81]::queries::mir_built, rustc_query_impl[7b60fd99fe06ff81]::plumbing::QueryCtxt>
  15:        0x11042acec - <rustc_query_impl[7b60fd99fe06ff81]::Queries as rustc_middle[51dfd5d9279e1028]::ty::query::QueryEngine>::mir_built
  16:        0x10f840b9c - rustc_mir_transform[9e4a16c1f6c5c5f7]::mir_const
  17:        0x1103340e8 - <std[bf9110f564f42f12]::thread::local::LocalKey<core[b2c7346eda96f041]::cell::Cell<*const ()>>>::with::<rustc_middle[51dfd5d9279e1028]::ty::context::tls::enter_context<rustc_query_system[a624e6a9fe4584df]::query::plumbing::execute_job_incr<rustc_query_impl[7b60fd99fe06ff81]::queries::mir_const, rustc_query_impl[7b60fd99fe06ff81]::plumbing::QueryCtxt>::{closure#1}, core[b2c7346eda96f041]::option::Option<(rustc_middle[51dfd5d9279e1028]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[a624e6a9fe4584df]::dep_graph::graph::DepNodeIndex)>>::{closure#0}, core[b2c7346eda96f041]::option::Option<(rustc_middle[51dfd5d9279e1028]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[a624e6a9fe4584df]::dep_graph::graph::DepNodeIndex)>>
  18:        0x110238de8 - rustc_query_system[a624e6a9fe4584df]::query::plumbing::try_execute_query::<rustc_query_impl[7b60fd99fe06ff81]::queries::mir_const, rustc_query_impl[7b60fd99fe06ff81]::plumbing::QueryCtxt>
  19:        0x11042aeac - <rustc_query_impl[7b60fd99fe06ff81]::Queries as rustc_middle[51dfd5d9279e1028]::ty::query::QueryEngine>::mir_const
  20:        0x10f841250 - rustc_mir_transform[9e4a16c1f6c5c5f7]::mir_promoted
  21:        0x1102a0ab8 - <std[bf9110f564f42f12]::thread::local::LocalKey<core[b2c7346eda96f041]::cell::Cell<*const ()>>>::with::<rustc_middle[51dfd5d9279e1028]::ty::context::tls::enter_context<rustc_query_system[a624e6a9fe4584df]::query::plumbing::execute_job_incr<rustc_query_impl[7b60fd99fe06ff81]::queries::mir_promoted, rustc_query_impl[7b60fd99fe06ff81]::plumbing::QueryCtxt>::{closure#1}, core[b2c7346eda96f041]::option::Option<(rustc_middle[51dfd5d9279e1028]::query::erase::Erased<[u8; 16usize]>, rustc_query_system[a624e6a9fe4584df]::dep_graph::graph::DepNodeIndex)>>::{closure#0}, core[b2c7346eda96f041]::option::Option<(rustc_middle[51dfd5d9279e1028]::query::erase::Erased<[u8; 16usize]>, rustc_query_system[a624e6a9fe4584df]::dep_graph::graph::DepNodeIndex)>>
  22:        0x1101c1320 - rustc_query_system[a624e6a9fe4584df]::query::plumbing::try_execute_query::<rustc_query_impl[7b60fd99fe06ff81]::queries::mir_promoted, rustc_query_impl[7b60fd99fe06ff81]::plumbing::QueryCtxt>
  23:        0x11042b940 - <rustc_query_impl[7b60fd99fe06ff81]::Queries as rustc_middle[51dfd5d9279e1028]::ty::query::QueryEngine>::mir_promoted
  24:        0x10fd64e78 - rustc_borrowck[3cbad71922bf7c4a]::mir_borrowck
  25:        0x10fd49388 - <rustc_borrowck[3cbad71922bf7c4a]::provide::{closure#0} as core[b2c7346eda96f041]::ops::function::FnOnce<(rustc_middle[51dfd5d9279e1028]::ty::context::TyCtxt, rustc_span[350718d478b9eefa]::def_id::LocalDefId)>>::call_once
  26:        0x11029ee68 - <std[bf9110f564f42f12]::thread::local::LocalKey<core[b2c7346eda96f041]::cell::Cell<*const ()>>>::with::<rustc_middle[51dfd5d9279e1028]::ty::context::tls::enter_context<rustc_query_system[a624e6a9fe4584df]::query::plumbing::execute_job_incr<rustc_query_impl[7b60fd99fe06ff81]::queries::mir_borrowck, rustc_query_impl[7b60fd99fe06ff81]::plumbing::QueryCtxt>::{closure#2}, (rustc_middle[51dfd5d9279e1028]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[a624e6a9fe4584df]::dep_graph::graph::DepNodeIndex)>::{closure#0}, (rustc_middle[51dfd5d9279e1028]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[a624e6a9fe4584df]::dep_graph::graph::DepNodeIndex)>
  27:        0x1101c0698 - rustc_query_system[a624e6a9fe4584df]::query::plumbing::try_execute_query::<rustc_query_impl[7b60fd99fe06ff81]::queries::mir_borrowck, rustc_query_impl[7b60fd99fe06ff81]::plumbing::QueryCtxt>
  28:        0x110433018 - <rustc_query_impl[7b60fd99fe06ff81]::Queries as rustc_middle[51dfd5d9279e1028]::ty::query::QueryEngine>::mir_borrowck
  29:        0x10d11baa4 - <core[b2c7346eda96f041]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[b0ef732b28d74439]::sync::par_for_each_in<&[rustc_span[350718d478b9eefa]::def_id::LocalDefId], <rustc_middle[51dfd5d9279e1028]::hir::map::Map>::par_body_owners<rustc_interface[86097f894d44157]::passes::analysis::{closure#2}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}> as core[b2c7346eda96f041]::ops::function::FnOnce<()>>::call_once
  31:        0x10d102e04 - <rustc_session[fcd7c20a0454c43b]::session::Session>::time::<(), rustc_interface[86097f894d44157]::passes::analysis::{closure#2}>
  32:        0x10d17650c - rustc_interface[86097f894d44157]::passes::analysis
  33:        0x11032d1c8 - <std[bf9110f564f42f12]::thread::local::LocalKey<core[b2c7346eda96f041]::cell::Cell<*const ()>>>::with::<rustc_middle[51dfd5d9279e1028]::ty::context::tls::enter_context<rustc_query_system[a624e6a9fe4584df]::query::plumbing::execute_job_incr<rustc_query_impl[7b60fd99fe06ff81]::queries::analysis, rustc_query_impl[7b60fd99fe06ff81]::plumbing::QueryCtxt>::{closure#2}, (rustc_middle[51dfd5d9279e1028]::query::erase::Erased<[u8; 1usize]>, rustc_query_system[a624e6a9fe4584df]::dep_graph::graph::DepNodeIndex)>::{closure#0}, (rustc_middle[51dfd5d9279e1028]::query::erase::Erased<[u8; 1usize]>, rustc_query_system[a624e6a9fe4584df]::dep_graph::graph::DepNodeIndex)>
  34:        0x110233298 - rustc_query_system[a624e6a9fe4584df]::query::plumbing::try_execute_query::<rustc_query_impl[7b60fd99fe06ff81]::queries::analysis, rustc_query_impl[7b60fd99fe06ff81]::plumbing::QueryCtxt>
  35:        0x110428998 - <rustc_query_impl[7b60fd99fe06ff81]::Queries as rustc_middle[51dfd5d9279e1028]::ty::query::QueryEngine>::analysis
  36:        0x10d0a4c28 - <std[bf9110f564f42f12]::thread::local::LocalKey<core[b2c7346eda96f041]::cell::Cell<*const ()>>>::with::<rustc_middle[51dfd5d9279e1028]::ty::context::tls::enter_context<<rustc_middle[51dfd5d9279e1028]::ty::context::GlobalCtxt>::enter<rustc_driver_impl[783dc85a9905d0e5]::run_compiler::{closure#1}::{closure#2}::{closure#4}, core[b2c7346eda96f041]::result::Result<(), rustc_span[350718d478b9eefa]::ErrorGuaranteed>>::{closure#0}, core[b2c7346eda96f041]::result::Result<(), rustc_span[350718d478b9eefa]::ErrorGuaranteed>>::{closure#0}, core[b2c7346eda96f041]::result::Result<(), rustc_span[350718d478b9eefa]::ErrorGuaranteed>>
  37:        0x10d0705d4 - <rustc_interface[86097f894d44157]::queries::QueryResult<&rustc_middle[51dfd5d9279e1028]::ty::context::GlobalCtxt>>::enter::<core[b2c7346eda96f041]::result::Result<(), rustc_span[350718d478b9eefa]::ErrorGuaranteed>, rustc_driver_impl[783dc85a9905d0e5]::run_compiler::{closure#1}::{closure#2}::{closure#4}>
  38:        0x10d0aca24 - <rustc_interface[86097f894d44157]::interface::Compiler>::enter::<rustc_driver_impl[783dc85a9905d0e5]::run_compiler::{closure#1}::{closure#2}, core[b2c7346eda96f041]::result::Result<core[b2c7346eda96f041]::option::Option<rustc_interface[86097f894d44157]::queries::Linker>, rustc_span[350718d478b9eefa]::ErrorGuaranteed>>
  39:        0x10d0632cc - rustc_span[350718d478b9eefa]::set_source_map::<core[b2c7346eda96f041]::result::Result<(), rustc_span[350718d478b9eefa]::ErrorGuaranteed>, rustc_interface[86097f894d44157]::interface::run_compiler<core[b2c7346eda96f041]::result::Result<(), rustc_span[350718d478b9eefa]::ErrorGuaranteed>, rustc_driver_impl[783dc85a9905d0e5]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  40:        0x10d0768a8 - std[bf9110f564f42f12]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[86097f894d44157]::util::run_in_thread_pool_with_globals<rustc_interface[86097f894d44157]::interface::run_compiler<core[b2c7346eda96f041]::result::Result<(), rustc_span[350718d478b9eefa]::ErrorGuaranteed>, rustc_driver_impl[783dc85a9905d0e5]::run_compiler::{closure#1}>::{closure#0}, core[b2c7346eda96f041]::result::Result<(), rustc_span[350718d478b9eefa]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[b2c7346eda96f041]::result::Result<(), rustc_span[350718d478b9eefa]::ErrorGuaranteed>>
  41:        0x10d067a78 - <<std[bf9110f564f42f12]::thread::Builder>::spawn_unchecked_<rustc_interface[86097f894d44157]::util::run_in_thread_pool_with_globals<rustc_interface[86097f894d44157]::interface::run_compiler<core[b2c7346eda96f041]::result::Result<(), rustc_span[350718d478b9eefa]::ErrorGuaranteed>, rustc_driver_impl[783dc85a9905d0e5]::run_compiler::{closure#1}>::{closure#0}, core[b2c7346eda96f041]::result::Result<(), rustc_span[350718d478b9eefa]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[b2c7346eda96f041]::result::Result<(), rustc_span[350718d478b9eefa]::ErrorGuaranteed>>::{closure#1} as core[b2c7346eda96f041]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  42:        0x104b6cdf4 - std::sys::unix::thread::Thread::new::thread_start::h7f56b35fafcfec87
  43:        0x19898ffa8 - __pthread_joiner_wake


Notes: this should be tagged A-incr-comp

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions