Closed
Description
Code
Compiling https://github.com/postgresml/pgcat, latest master commit.
Meta
rustc 1.69.0 (84c898d65 2023-04-16)
binary: rustc
commit-hash: 84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc
commit-date: 2023-04-16
host: x86_64-unknown-linux-gnu
release: 1.69.0
LLVM version: 15.0.7
Error output
thread 'rustc' panicked at 'Failed to extract DefId: opt_local_def_id_to_hir_id 619df5bdb6932b6d-80215b2ba58b471', compiler/rustc_middle/src/dep_graph/dep_node.rs:181:17
stack backtrace:
0: 0x7f40cef6731a - std::backtrace_rs::backtrace::libunwind::trace::ha9053a9a07ca49cb
at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
1: 0x7f40cef6731a - std::backtrace_rs::backtrace::trace_unsynchronized::h9c2852a457ad564e
at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x7f40cef6731a - std::sys_common::backtrace::_print_fmt::h457936fbfaa0070f
at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/sys_common/backtrace.rs:65:5
3: 0x7f40cef6731a - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h5779d7bf7f70cb0c
at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/sys_common/backtrace.rs:44:22
4: 0x7f40cefcab6e - core::fmt::write::h5a4baaff1bcd3eb5
at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/core/src/fmt/mod.rs:1232:17
5: 0x7f40cef5a2c5 - std::io::Write::write_fmt::h4bc1f301cb9e9cce
at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/io/mod.rs:1684:15
6: 0x7f40cef670e5 - std::sys_common::backtrace::_print::h5fcdc36060f177e8
at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/sys_common/backtrace.rs:47:5
7: 0x7f40cef670e5 - std::sys_common::backtrace::print::h54ca9458b876c8bf
at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/sys_common/backtrace.rs:34:9
8: 0x7f40cef69e5f - std::panicking::default_hook::{{closure}}::hbe471161c7664ed6
at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/panicking.rs:271:22
9: 0x7f40cef69b9b - std::panicking::default_hook::ha3500da57aa4ac4f
at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/panicking.rs:290:9
10: 0x7f40d21cb8b5 - <rustc_driver_impl[fb92b3e21ac03dce]::DEFAULT_HOOK::{closure#0}::{closure#0} as core[911a585bea10363d]::ops::function::FnOnce<(&core[911a585bea10363d]::panic::panic_info::PanicInfo,)>>::call_once::{shim:vtable#0}
11: 0x7f40cef6a69d - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h6507bddc3eebb4a5
at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/alloc/src/boxed.rs:2001:9
12: 0x7f40cef6a69d - std::panicking::rust_panic_with_hook::h50c09d000dc561d2
at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/panicking.rs:696:13
13: 0x7f40cef6a419 - std::panicking::begin_panic_handler::{{closure}}::h9e2b2176e00e0d9c
at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/panicking.rs:583:13
14: 0x7f40cef67786 - std::sys_common::backtrace::__rust_end_short_backtrace::h5739b8e512c09d02
at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/sys_common/backtrace.rs:150:18
15: 0x7f40cef6a122 - rust_begin_unwind
at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/panicking.rs:579:5
16: 0x7f40cefc6ec3 - core::panicking::panic_fmt::hf33a1475b4dc5c3e
at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/core/src/panicking.rs:64:14
17: 0x7f40d2711fc2 - <rustc_query_system[caf472e4bac2b2b6]::dep_graph::dep_node::DepNode<rustc_middle[1a4ce3311a146f18]::dep_graph::dep_node::DepKind> as rustc_middle[1a4ce3311a146f18]::dep_graph::dep_node::DepNodeExt>::extract_def_id::{closure#0}
18: 0x7f40d02e9bb7 - <rustc_query_system[caf472e4bac2b2b6]::dep_graph::dep_node::DepNode<rustc_middle[1a4ce3311a146f18]::dep_graph::dep_node::DepKind> as rustc_middle[1a4ce3311a146f18]::dep_graph::dep_node::DepNodeExt>::extract_def_id
19: 0x7f40d16bed5c - rustc_query_impl[a4bd04fc7a0236b8]::plumbing::force_from_dep_node::<rustc_query_impl[a4bd04fc7a0236b8]::queries::opt_local_def_id_to_hir_id>
20: 0x7f40d0356cd4 - <rustc_query_system[caf472e4bac2b2b6]::dep_graph::graph::DepGraph<rustc_middle[1a4ce3311a146f18]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[a4bd04fc7a0236b8]::plumbing::QueryCtxt>
21: 0x7f40d0356c6a - <rustc_query_system[caf472e4bac2b2b6]::dep_graph::graph::DepGraph<rustc_middle[1a4ce3311a146f18]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[a4bd04fc7a0236b8]::plumbing::QueryCtxt>
22: 0x7f40d0356c6a - <rustc_query_system[caf472e4bac2b2b6]::dep_graph::graph::DepGraph<rustc_middle[1a4ce3311a146f18]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[a4bd04fc7a0236b8]::plumbing::QueryCtxt>
23: 0x7f40d0356c6a - <rustc_query_system[caf472e4bac2b2b6]::dep_graph::graph::DepGraph<rustc_middle[1a4ce3311a146f18]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[a4bd04fc7a0236b8]::plumbing::QueryCtxt>
24: 0x7f40d0356c6a - <rustc_query_system[caf472e4bac2b2b6]::dep_graph::graph::DepGraph<rustc_middle[1a4ce3311a146f18]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[a4bd04fc7a0236b8]::plumbing::QueryCtxt>
25: 0x7f40d0356c6a - <rustc_query_system[caf472e4bac2b2b6]::dep_graph::graph::DepGraph<rustc_middle[1a4ce3311a146f18]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[a4bd04fc7a0236b8]::plumbing::QueryCtxt>
26: 0x7f40d0356c6a - <rustc_query_system[caf472e4bac2b2b6]::dep_graph::graph::DepGraph<rustc_middle[1a4ce3311a146f18]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[a4bd04fc7a0236b8]::plumbing::QueryCtxt>
27: 0x7f40d0356c6a - <rustc_query_system[caf472e4bac2b2b6]::dep_graph::graph::DepGraph<rustc_middle[1a4ce3311a146f18]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[a4bd04fc7a0236b8]::plumbing::QueryCtxt>
28: 0x7f40d0356c6a - <rustc_query_system[caf472e4bac2b2b6]::dep_graph::graph::DepGraph<rustc_middle[1a4ce3311a146f18]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[a4bd04fc7a0236b8]::plumbing::QueryCtxt>
29: 0x7f40d0356c6a - <rustc_query_system[caf472e4bac2b2b6]::dep_graph::graph::DepGraph<rustc_middle[1a4ce3311a146f18]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[a4bd04fc7a0236b8]::plumbing::QueryCtxt>
30: 0x7f40d0356c6a - <rustc_query_system[caf472e4bac2b2b6]::dep_graph::graph::DepGraph<rustc_middle[1a4ce3311a146f18]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[a4bd04fc7a0236b8]::plumbing::QueryCtxt>
31: 0x7f40d0356c6a - <rustc_query_system[caf472e4bac2b2b6]::dep_graph::graph::DepGraph<rustc_middle[1a4ce3311a146f18]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[a4bd04fc7a0236b8]::plumbing::QueryCtxt>
32: 0x7f40d0356c6a - <rustc_query_system[caf472e4bac2b2b6]::dep_graph::graph::DepGraph<rustc_middle[1a4ce3311a146f18]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[a4bd04fc7a0236b8]::plumbing::QueryCtxt>
33: 0x7f40d0356c6a - <rustc_query_system[caf472e4bac2b2b6]::dep_graph::graph::DepGraph<rustc_middle[1a4ce3311a146f18]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[a4bd04fc7a0236b8]::plumbing::QueryCtxt>
34: 0x7f40d07f1308 - rustc_query_system[caf472e4bac2b2b6]::query::plumbing::try_execute_query::<rustc_query_impl[a4bd04fc7a0236b8]::queries::evaluate_obligation, rustc_query_impl[a4bd04fc7a0236b8]::plumbing::QueryCtxt>
35: 0x7f40d0896caf - <rustc_trait_selection[bd925f3b8b513d1]::traits::fulfill::FulfillProcessor as rustc_data_structures[a232da6b1231993b]::obligation_forest::ObligationProcessor>::process_obligation
36: 0x7f40d0893b24 - <rustc_data_structures[a232da6b1231993b]::obligation_forest::ObligationForest<rustc_trait_selection[bd925f3b8b513d1]::traits::fulfill::PendingPredicateObligation>>::process_obligations::<rustc_trait_selection[bd925f3b8b513d1]::traits::fulfill::FulfillProcessor>
37: 0x7f40d0d21730 - <rustc_trait_selection[bd925f3b8b513d1]::traits::engine::ObligationCtxt>::select_all_or_error
38: 0x7f40d0fe5af8 - rustc_hir_analysis[a0a3e006032d7694]::check::wfcheck::check_item_type
39: 0x7f40d0fce02d - rustc_hir_analysis[a0a3e006032d7694]::check::wfcheck::check_well_formed
40: 0x7f40d07d5043 - rustc_query_system[caf472e4bac2b2b6]::query::plumbing::try_execute_query::<rustc_query_impl[a4bd04fc7a0236b8]::queries::check_well_formed, rustc_query_impl[a4bd04fc7a0236b8]::plumbing::QueryCtxt>
41: 0x7f40d19e7f86 - rustc_query_system[caf472e4bac2b2b6]::query::plumbing::force_query::<rustc_query_impl[a4bd04fc7a0236b8]::queries::check_well_formed, rustc_query_impl[a4bd04fc7a0236b8]::plumbing::QueryCtxt, rustc_middle[1a4ce3311a146f18]::dep_graph::dep_node::DepKind>
42: 0x7f40d19e7e30 - rustc_query_impl[a4bd04fc7a0236b8]::plumbing::force_from_dep_node::<rustc_query_impl[a4bd04fc7a0236b8]::queries::check_well_formed>
43: 0x7f40d0356cd4 - <rustc_query_system[caf472e4bac2b2b6]::dep_graph::graph::DepGraph<rustc_middle[1a4ce3311a146f18]::dep_graph::dep_node::DepKind>>::try_mark_previous_green::<rustc_query_impl[a4bd04fc7a0236b8]::plumbing::QueryCtxt>
44: 0x7f40d03569fd - <rustc_query_system[caf472e4bac2b2b6]::dep_graph::graph::DepGraph<rustc_middle[1a4ce3311a146f18]::dep_graph::dep_node::DepKind>>::try_mark_green::<rustc_query_impl[a4bd04fc7a0236b8]::plumbing::QueryCtxt>
45: 0x7f40d186757d - rustc_query_system[caf472e4bac2b2b6]::query::plumbing::ensure_must_run::<rustc_query_impl[a4bd04fc7a0236b8]::queries::check_mod_type_wf, rustc_query_impl[a4bd04fc7a0236b8]::plumbing::QueryCtxt>
46: 0x7f40d18673bb - <rustc_query_impl[a4bd04fc7a0236b8]::Queries as rustc_middle[1a4ce3311a146f18]::ty::query::QueryEngine>::check_mod_type_wf
47: 0x7f40d065f538 - rustc_data_structures[a232da6b1231993b]::sync::par_for_each_in::<&[rustc_hir[7ba7e3fd39e56ac1]::hir_id::OwnerId], <rustc_middle[1a4ce3311a146f18]::hir::map::Map>::par_for_each_module<rustc_hir_analysis[a0a3e006032d7694]::check_crate::{closure#5}::{closure#0}::{closure#0}>::{closure#0}>
48: 0x7f40d065f3c0 - <rustc_session[b87ece769e9b9511]::session::Session>::track_errors::<rustc_hir_analysis[a0a3e006032d7694]::check_crate::{closure#5}, ()>
49: 0x7f40d065c150 - rustc_hir_analysis[a0a3e006032d7694]::check_crate
50: 0x7f40d0652122 - rustc_interface[bd8390756bd7a52a]::passes::analysis
51: 0x7f40d1a25ba8 - rustc_query_system[caf472e4bac2b2b6]::query::plumbing::try_execute_query::<rustc_query_impl[a4bd04fc7a0236b8]::queries::analysis, rustc_query_impl[a4bd04fc7a0236b8]::plumbing::QueryCtxt>
52: 0x7f40d1a2567f - <rustc_query_impl[a4bd04fc7a0236b8]::Queries as rustc_middle[1a4ce3311a146f18]::ty::query::QueryEngine>::analysis
53: 0x7f40d186bc16 - <rustc_middle[1a4ce3311a146f18]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[fb92b3e21ac03dce]::run_compiler::{closure#1}::{closure#2}::{closure#4}, core[911a585bea10363d]::result::Result<(), rustc_span[fab0eb11f1fed58d]::ErrorGuaranteed>>
54: 0x7f40d141cd38 - rustc_span[fab0eb11f1fed58d]::with_source_map::<core[911a585bea10363d]::result::Result<(), rustc_span[fab0eb11f1fed58d]::ErrorGuaranteed>, rustc_interface[bd8390756bd7a52a]::interface::run_compiler<core[911a585bea10363d]::result::Result<(), rustc_span[fab0eb11f1fed58d]::ErrorGuaranteed>, rustc_driver_impl[fb92b3e21ac03dce]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
55: 0x7f40d14143cc - std[685882fd5f6d52e5]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[bd8390756bd7a52a]::util::run_in_thread_pool_with_globals<rustc_interface[bd8390756bd7a52a]::interface::run_compiler<core[911a585bea10363d]::result::Result<(), rustc_span[fab0eb11f1fed58d]::ErrorGuaranteed>, rustc_driver_impl[fb92b3e21ac03dce]::run_compiler::{closure#1}>::{closure#0}, core[911a585bea10363d]::result::Result<(), rustc_span[fab0eb11f1fed58d]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[911a585bea10363d]::result::Result<(), rustc_span[fab0eb11f1fed58d]::ErrorGuaranteed>>
56: 0x7f40d1413dfa - <<std[685882fd5f6d52e5]::thread::Builder>::spawn_unchecked_<rustc_interface[bd8390756bd7a52a]::util::run_in_thread_pool_with_globals<rustc_interface[bd8390756bd7a52a]::interface::run_compiler<core[911a585bea10363d]::result::Result<(), rustc_span[fab0eb11f1fed58d]::ErrorGuaranteed>, rustc_driver_impl[fb92b3e21ac03dce]::run_compiler::{closure#1}>::{closure#0}, core[911a585bea10363d]::result::Result<(), rustc_span[fab0eb11f1fed58d]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[911a585bea10363d]::result::Result<(), rustc_span[fab0eb11f1fed58d]::ErrorGuaranteed>>::{closure#1} as core[911a585bea10363d]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
57: 0x7f40cef74593 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h39990b24eedef2ab
at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/alloc/src/boxed.rs:1987:9
58: 0x7f40cef74593 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h01a027258444143b
at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/alloc/src/boxed.rs:1987:9
59: 0x7f40cef74593 - std::sys::unix::thread::Thread::new::thread_start::ha4f1cdd9c25884ba
at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/sys/unix/thread.rs:108:17
60: 0x7f40cec94b43 - start_thread
at ./nptl/./nptl/pthread_create.c:442:8
61: 0x7f40ced26a00 - clone3
at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
62: 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: rustc 1.69.0 (84c898d65 2023-04-16) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -C incremental=[REDACTED]
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [evaluate_obligation] evaluating trait selection obligation `alloc::collections::vec_deque::VecDeque<futures_channel::oneshot::Sender<bb8::internals::InternalsGuard<pool::ServerPool>>>: core::marker::Send`
#1 [check_well_formed] checking that `pool::POOLS` is well-formed
#2 [analysis] running analysis passes on this crate
end of query stack
encountered while trying to mark dependency green: opt_local_def_id_to_hir_id(619df5bdb6932b6d-80215b2ba58b471)
encountered while trying to mark dependency green: type_of(619df5bdb6932b6d-80215b2ba58b471)
encountered while trying to mark dependency green: TraitSelect(7ee66a601b4b4f20-38ad9bc8c16930da)
encountered while trying to mark dependency green: TraitSelect(6d7cb845e42dc452-131c8a742e38664c)
encountered while trying to mark dependency green: TraitSelect(40207b40dd6e74c1-308f4099d4deaa08)
encountered while trying to mark dependency green: TraitSelect(d68a97320cc60055-d7a8d0f12cac3cfd)
encountered while trying to mark dependency green: TraitSelect(bd0d613b2650dc26-4f4ae71889e57074)
encountered while trying to mark dependency green: TraitSelect(32e2c1c3e810e99b-78154ed741fd7874)
encountered while trying to mark dependency green: TraitSelect(e3925663089ab81b-3801b3f6ab8a4a20)
encountered while trying to mark dependency green: TraitSelect(eb2ce587fcd0670f-a48ed54bbe2d805b)
encountered while trying to mark dependency green: TraitSelect(9f81beb6643373f8-96ec7eae242e4d75)
encountered while trying to mark dependency green: TraitSelect(d1bad4c4951daada-7a42b16b502795ad)
encountered while trying to mark dependency green: TraitSelect(9eee8111f562f938-10746131d1fd39)
encountered while trying to mark dependency green: TraitSelect(254c887bf552da28-fdaada29158b02b6)
encountered while trying to mark dependency green: evaluate_obligation(76dabffde3d732b3-44361ad90d971d00)
encountered while trying to mark dependency green: check_well_formed(619df5bdb6932b6d-3f94309e5e8143fd)
encountered while trying to mark dependency green: check_mod_type_wf(619df5bdb6932b6d-9218d4cb3ddb3d16)
error: could not compile `pgcat`
The error went away after I did cargo clean
and I couldn't reproduce it again, so sadly no backtrace.
Metadata
Metadata
Assignees
Labels
Area: Incremental compilationCategory: This is a bug.Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Relevant to the compiler team, which will review and decide on the PR/issue.