diff --git a/examples/raft-kv-memstore-grpc/build.rs b/examples/raft-kv-memstore-grpc/build.rs index e1cd6302a..fec47a627 100644 --- a/examples/raft-kv-memstore-grpc/build.rs +++ b/examples/raft-kv-memstore-grpc/build.rs @@ -1,12 +1,14 @@ fn main() -> Result<(), Box> { println!("cargo:rerun-if-changed=src/*"); - tonic_build::configure().compile_protos( - &[ - "proto/internal_service.proto", - "proto/management_service.proto", - "proto/api_service.proto", - ], - &["proto"], - )?; + tonic_build::configure() + .type_attribute("openraftpb.Node", "#[derive(Eq, serde::Serialize, serde::Deserialize)]") + .compile_protos( + &[ + "proto/internal_service.proto", + "proto/management_service.proto", + "proto/api_service.proto", + ], + &["proto"], + )?; Ok(()) } diff --git a/examples/raft-kv-memstore-grpc/proto/management_service.proto b/examples/raft-kv-memstore-grpc/proto/management_service.proto index 265887e7c..a612cdcd9 100644 --- a/examples/raft-kv-memstore-grpc/proto/management_service.proto +++ b/examples/raft-kv-memstore-grpc/proto/management_service.proto @@ -18,34 +18,33 @@ service ManagementService { // InitRequest contains the initial set of nodes for cluster initialization message InitRequest { - repeated Node nodes = 1; // List of initial cluster nodes + repeated Node nodes = 1; // List of initial cluster nodes } // Node represents a single node in the Raft cluster message Node { - string rpc_addr = 1; // RPC address for node communication - uint64 node_id = 2; // Unique identifier for the node + string rpc_addr = 1; // RPC address for node communication + uint64 node_id = 2; // Unique identifier for the node } // AddLearnerRequest specifies parameters for adding a learner node message AddLearnerRequest { - Node node = 1; // Node to be added as a learner - bool blocking = 2; // Whether to wait for the operation to complete + Node node = 1; // Node to be added as a learner } // RaftRequestString represents a string-based Raft request message RaftRequestString { - string data = 1; // Request data in string format + string data = 1; // Request data in string format } // RaftReplyString represents a string-based Raft response message RaftReplyString { - string data = 1; // Response data - string error = 2; // Error message, if any + string data = 1; // Response data + string error = 2; // Error message, if any } // ChangeMembershipRequest specifies parameters for modifying cluster membership message ChangeMembershipRequest { - repeated uint64 members = 1; // New set of member node IDs + repeated uint64 members = 1; // New set of member node IDs bool retain = 2; // Whether to retain existing configuration } diff --git a/examples/raft-kv-memstore-grpc/rustc-ice-2024-12-10T18_09_47-86281.txt b/examples/raft-kv-memstore-grpc/rustc-ice-2024-12-10T18_09_47-86281.txt new file mode 100644 index 000000000..867dd626d --- /dev/null +++ b/examples/raft-kv-memstore-grpc/rustc-ice-2024-12-10T18_09_47-86281.txt @@ -0,0 +1,176 @@ +thread 'rustc' panicked at compiler/rustc_metadata/src/rmeta/def_path_hash_map.rs:23:54: +called `Option::unwrap()` on a `None` value +stack backtrace: + 0: 0x103204b00 - std::backtrace::Backtrace::create::hb0cc1249139a1455 + 1: 0x10d073690 - as core[5adf5740b9e46934]::ops::function::Fn<(&dyn for<'a, 'b> core[5adf5740b9e46934]::ops::function::Fn<(&'a std[c0699ea198d25f18]::panic::PanicHookInfo<'b>,), Output = ()> + core[5adf5740b9e46934]::marker::Sync + core[5adf5740b9e46934]::marker::Send, &std[c0699ea198d25f18]::panic::PanicHookInfo)>>::call + 2: 0x10321de28 - std::panicking::rust_panic_with_hook::h2116230dcb95ce5a + 3: 0x10321d710 - std::panicking::begin_panic_handler::{{closure}}::hf100b4a3ea76eab7 + 4: 0x10321b2bc - std::sys::backtrace::__rust_end_short_backtrace::h45852148cffd4f7d + 5: 0x10321d400 - _rust_begin_unwind + 6: 0x103278a6c - core::panicking::panic_fmt::hbd81035675c8e9f6 + 7: 0x103278ad8 - core::panicking::panic::hb5be5f7e0a537da8 + 8: 0x1032789f4 - core::option::unwrap_failed::he0e81e69c8cc5ecb + 9: 0x10dc042c8 - >::call_once + 10: 0x10dc645b8 - ::def_path_hash_to_def_id + 11: 0x10e553878 - ::{closure#0} as core[5adf5740b9e46934]::ops::function::FnOnce<(rustc_middle[6f39fb7e2a7faa6a]::ty::context::TyCtxt, rustc_query_system[ece7294309cc0af]::dep_graph::dep_node::DepNode)>>::call_once + 12: 0x10e6e5f00 - >::try_mark_previous_green:: + 13: 0x10e6e5f4c - >::try_mark_previous_green:: + 14: 0x10e6e5f4c - >::try_mark_previous_green:: + 15: 0x10e6e5f4c - >::try_mark_previous_green:: + 16: 0x10e6e5f4c - >::try_mark_previous_green:: + 17: 0x10e6e5f4c - >::try_mark_previous_green:: + 18: 0x10e6e5f4c - >::try_mark_previous_green:: + 19: 0x10e6e5f4c - >::try_mark_previous_green:: + 20: 0x10e6e5f4c - >::try_mark_previous_green:: + 21: 0x10e6e5f4c - >::try_mark_previous_green:: + 22: 0x10e6e5f4c - >::try_mark_previous_green:: + 23: 0x10e6e5ccc - >::try_mark_green:: + 24: 0x10e4b70f4 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, rustc_middle[6f39fb7e2a7faa6a]::query::erase::Erased<[u8; 2usize]>>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 25: 0x10e6deecc - rustc_query_impl[4de7ee3194b11efa]::query_impl::evaluate_obligation::get_query_incr::__rust_end_short_backtrace + 26: 0x10eb37ee0 - ::evaluate_obligation + 27: 0x10eb38488 - ::evaluate_obligation_no_overflow + 28: 0x10eb1786c - ::process_trait_obligation + 29: 0x10eb16d98 - ::process_obligation + 30: 0x10d62fcd0 - >::process_obligations:: + 31: 0x10d5f1218 - as rustc_infer[468610b7cf94ec88]::traits::engine::TraitEngine>::select_where_possible + 32: 0x10d51ae94 - ::check_argument_types + 33: 0x10d51a70c - ::check_method_argument_types + 34: 0x10d56607c - ::check_expr_kind + 35: 0x10d503eac - ::check_expr_with_expectation_and_args + 36: 0x10d55d7a0 - ::check_expr_kind + 37: 0x10d503eac - ::check_expr_with_expectation_and_args + 38: 0x10d55d7a0 - ::check_expr_kind + 39: 0x10d503eac - ::check_expr_with_expectation_and_args + 40: 0x10d55d7a0 - ::check_expr_kind + 41: 0x10d503eac - ::check_expr_with_expectation_and_args + 42: 0x10d521dc4 - ::check_decl + 43: 0x10d52247c - ::check_block_with_expected + 44: 0x10d503eac - ::check_expr_with_expectation_and_args + 45: 0x10d504aa8 - ::check_return_expr + 46: 0x10d6b6494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 47: 0x10d564294 - ::check_expr_kind + 48: 0x10d503eac - ::check_expr_with_expectation_and_args + 49: 0x10d521dc4 - ::check_decl + 50: 0x10d52247c - ::check_block_with_expected + 51: 0x10d503eac - ::check_expr_with_expectation_and_args + 52: 0x10d504aa8 - ::check_return_expr + 53: 0x10d6b6494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 54: 0x10d65f618 - rustc_hir_typeck[8a5a263a57e61841]::typeck + 55: 0x10e583ad4 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 56: 0x10e6947c4 - >::call_once + 57: 0x10e52cb44 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 58: 0x10e6c478c - rustc_query_impl[4de7ee3194b11efa]::query_impl::typeck::get_query_incr::__rust_end_short_backtrace + 59: 0x10d3b1b18 - ::par_body_owners::::{closure#0} + 60: 0x10d3a29b8 - ::run::<(), rustc_data_structures[4a438291929cf436]::sync::parallel::enabled::par_for_each_in<&rustc_span[8788673922ec3ae1]::def_id::LocalDefId, &[rustc_span[8788673922ec3ae1]::def_id::LocalDefId], ::par_body_owners::{closure#0}>::{closure#0}::{closure#0}::{closure#0}> + 61: 0x10d3a19a0 - rustc_hir_analysis[3be39a9c48dd4c06]::check_crate + 62: 0x10d9cef90 - rustc_interface[c88b6df23cac61ce]::passes::analysis + 63: 0x10e583be8 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 64: 0x10e750fd4 - >::call_once + 65: 0x10e49e714 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 66: 0x10e6b5cc8 - rustc_query_impl[4de7ee3194b11efa]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace + 67: 0x10d07529c - ::enter::> + 68: 0x10d083498 - ::enter::, rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 69: 0x10d0ade10 - rustc_span[8788673922ec3ae1]::create_session_globals_then::, rustc_interface[c88b6df23cac61ce]::util::run_in_thread_with_globals, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}> + 70: 0x10d07702c - std[c0699ea198d25f18]::sys::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 71: 0x10d0abd64 - <::spawn_unchecked_, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#2} as core[5adf5740b9e46934]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 72: 0x103226374 - std::sys::pal::unix::thread::Thread::new::thread_start::h9c452b63693017ce + 73: 0x195cb72e4 - __pthread_deallocate + + +rustc version: 1.81.0-nightly (cf2df68d1 2024-07-01) +platform: aarch64-apple-darwin + +query stack during panic: +#0 [evaluate_obligation] evaluating trait selection obligation `openraft::storage::snapshot::Snapshot: core::marker::Send` +#1 [typeck] type-checking `main` +#2 [analysis] running analysis passes on this crate +end of query stack +thread 'rustc' panicked at compiler/rustc_metadata/src/rmeta/def_path_hash_map.rs:23:54: +called `Option::unwrap()` on a `None` value +stack backtrace: + 0: 0x103204b00 - std::backtrace::Backtrace::create::hb0cc1249139a1455 + 1: 0x10d073690 - as core[5adf5740b9e46934]::ops::function::Fn<(&dyn for<'a, 'b> core[5adf5740b9e46934]::ops::function::Fn<(&'a std[c0699ea198d25f18]::panic::PanicHookInfo<'b>,), Output = ()> + core[5adf5740b9e46934]::marker::Sync + core[5adf5740b9e46934]::marker::Send, &std[c0699ea198d25f18]::panic::PanicHookInfo)>>::call + 2: 0x10321de28 - std::panicking::rust_panic_with_hook::h2116230dcb95ce5a + 3: 0x10321d710 - std::panicking::begin_panic_handler::{{closure}}::hf100b4a3ea76eab7 + 4: 0x10321b2bc - std::sys::backtrace::__rust_end_short_backtrace::h45852148cffd4f7d + 5: 0x10321d400 - _rust_begin_unwind + 6: 0x103278a6c - core::panicking::panic_fmt::hbd81035675c8e9f6 + 7: 0x103278ad8 - core::panicking::panic::hb5be5f7e0a537da8 + 8: 0x1032789f4 - core::option::unwrap_failed::he0e81e69c8cc5ecb + 9: 0x10dc042c8 - >::call_once + 10: 0x10dc645b8 - ::def_path_hash_to_def_id + 11: 0x10d936178 - rustc_interface[c88b6df23cac61ce]::callbacks::dep_node_debug + 12: 0x10e795540 - ::fmt + 13: 0x10325e124 - core::fmt::write::ha0d0a570cdd0b640 + 14: 0x10320f158 - <&std::io::stdio::Stderr as std::io::Write>::write_fmt::h6719717d6d9f7763 + 15: 0x10320fb68 - std::io::stdio::_eprint::h397d20c6266f5912 + 16: 0x1115e3e24 - rustc_query_system[ece7294309cc0af]::dep_graph::graph::print_markframe_trace:: + 17: 0x10e6e6a54 - >::try_mark_previous_green:: + 18: 0x10e6e5f4c - >::try_mark_previous_green:: + 19: 0x10e6e5f4c - >::try_mark_previous_green:: + 20: 0x10e6e5f4c - >::try_mark_previous_green:: + 21: 0x10e6e5f4c - >::try_mark_previous_green:: + 22: 0x10e6e5f4c - >::try_mark_previous_green:: + 23: 0x10e6e5f4c - >::try_mark_previous_green:: + 24: 0x10e6e5f4c - >::try_mark_previous_green:: + 25: 0x10e6e5f4c - >::try_mark_previous_green:: + 26: 0x10e6e5f4c - >::try_mark_previous_green:: + 27: 0x10e6e5f4c - >::try_mark_previous_green:: + 28: 0x10e6e5ccc - >::try_mark_green:: + 29: 0x10e4b70f4 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, rustc_middle[6f39fb7e2a7faa6a]::query::erase::Erased<[u8; 2usize]>>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 30: 0x10e6deecc - rustc_query_impl[4de7ee3194b11efa]::query_impl::evaluate_obligation::get_query_incr::__rust_end_short_backtrace + 31: 0x10eb37ee0 - ::evaluate_obligation + 32: 0x10eb38488 - ::evaluate_obligation_no_overflow + 33: 0x10eb1786c - ::process_trait_obligation + 34: 0x10eb16d98 - ::process_obligation + 35: 0x10d62fcd0 - >::process_obligations:: + 36: 0x10d5f1218 - as rustc_infer[468610b7cf94ec88]::traits::engine::TraitEngine>::select_where_possible + 37: 0x10d51ae94 - ::check_argument_types + 38: 0x10d51a70c - ::check_method_argument_types + 39: 0x10d56607c - ::check_expr_kind + 40: 0x10d503eac - ::check_expr_with_expectation_and_args + 41: 0x10d55d7a0 - ::check_expr_kind + 42: 0x10d503eac - ::check_expr_with_expectation_and_args + 43: 0x10d55d7a0 - ::check_expr_kind + 44: 0x10d503eac - ::check_expr_with_expectation_and_args + 45: 0x10d55d7a0 - ::check_expr_kind + 46: 0x10d503eac - ::check_expr_with_expectation_and_args + 47: 0x10d521dc4 - ::check_decl + 48: 0x10d52247c - ::check_block_with_expected + 49: 0x10d503eac - ::check_expr_with_expectation_and_args + 50: 0x10d504aa8 - ::check_return_expr + 51: 0x10d6b6494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 52: 0x10d564294 - ::check_expr_kind + 53: 0x10d503eac - ::check_expr_with_expectation_and_args + 54: 0x10d521dc4 - ::check_decl + 55: 0x10d52247c - ::check_block_with_expected + 56: 0x10d503eac - ::check_expr_with_expectation_and_args + 57: 0x10d504aa8 - ::check_return_expr + 58: 0x10d6b6494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 59: 0x10d65f618 - rustc_hir_typeck[8a5a263a57e61841]::typeck + 60: 0x10e583ad4 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 61: 0x10e6947c4 - >::call_once + 62: 0x10e52cb44 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 63: 0x10e6c478c - rustc_query_impl[4de7ee3194b11efa]::query_impl::typeck::get_query_incr::__rust_end_short_backtrace + 64: 0x10d3b1b18 - ::par_body_owners::::{closure#0} + 65: 0x10d3a29b8 - ::run::<(), rustc_data_structures[4a438291929cf436]::sync::parallel::enabled::par_for_each_in<&rustc_span[8788673922ec3ae1]::def_id::LocalDefId, &[rustc_span[8788673922ec3ae1]::def_id::LocalDefId], ::par_body_owners::{closure#0}>::{closure#0}::{closure#0}::{closure#0}> + 66: 0x10d3a19a0 - rustc_hir_analysis[3be39a9c48dd4c06]::check_crate + 67: 0x10d9cef90 - rustc_interface[c88b6df23cac61ce]::passes::analysis + 68: 0x10e583be8 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 69: 0x10e750fd4 - >::call_once + 70: 0x10e49e714 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 71: 0x10e6b5cc8 - rustc_query_impl[4de7ee3194b11efa]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace + 72: 0x10d07529c - ::enter::> + 73: 0x10d083498 - ::enter::, rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 74: 0x10d0ade10 - rustc_span[8788673922ec3ae1]::create_session_globals_then::, rustc_interface[c88b6df23cac61ce]::util::run_in_thread_with_globals, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}> + 75: 0x10d07702c - std[c0699ea198d25f18]::sys::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 76: 0x10d0abd64 - <::spawn_unchecked_, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#2} as core[5adf5740b9e46934]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 77: 0x103226374 - std::sys::pal::unix::thread::Thread::new::thread_start::h9c452b63693017ce + 78: 0x195cb72e4 - __pthread_deallocate + + +query stack during panic: +#0 [evaluate_obligation] evaluating trait selection obligation `openraft::storage::snapshot::Snapshot: core::marker::Send` +#1 [typeck] type-checking `main` +#2 [analysis] running analysis passes on this crate +end of query stack diff --git a/examples/raft-kv-memstore-grpc/rustc-ice-2024-12-10T18_09_47-86283.txt b/examples/raft-kv-memstore-grpc/rustc-ice-2024-12-10T18_09_47-86283.txt new file mode 100644 index 000000000..9ca3beea3 --- /dev/null +++ b/examples/raft-kv-memstore-grpc/rustc-ice-2024-12-10T18_09_47-86283.txt @@ -0,0 +1,176 @@ +thread 'rustc' panicked at compiler/rustc_metadata/src/rmeta/def_path_hash_map.rs:23:54: +called `Option::unwrap()` on a `None` value +stack backtrace: + 0: 0x104df8b00 - std::backtrace::Backtrace::create::hb0cc1249139a1455 + 1: 0x10ec67690 - as core[5adf5740b9e46934]::ops::function::Fn<(&dyn for<'a, 'b> core[5adf5740b9e46934]::ops::function::Fn<(&'a std[c0699ea198d25f18]::panic::PanicHookInfo<'b>,), Output = ()> + core[5adf5740b9e46934]::marker::Sync + core[5adf5740b9e46934]::marker::Send, &std[c0699ea198d25f18]::panic::PanicHookInfo)>>::call + 2: 0x104e11e28 - std::panicking::rust_panic_with_hook::h2116230dcb95ce5a + 3: 0x104e11710 - std::panicking::begin_panic_handler::{{closure}}::hf100b4a3ea76eab7 + 4: 0x104e0f2bc - std::sys::backtrace::__rust_end_short_backtrace::h45852148cffd4f7d + 5: 0x104e11400 - _rust_begin_unwind + 6: 0x104e6ca6c - core::panicking::panic_fmt::hbd81035675c8e9f6 + 7: 0x104e6cad8 - core::panicking::panic::hb5be5f7e0a537da8 + 8: 0x104e6c9f4 - core::option::unwrap_failed::he0e81e69c8cc5ecb + 9: 0x10f7f82c8 - >::call_once + 10: 0x10f8585b8 - ::def_path_hash_to_def_id + 11: 0x110147878 - ::{closure#0} as core[5adf5740b9e46934]::ops::function::FnOnce<(rustc_middle[6f39fb7e2a7faa6a]::ty::context::TyCtxt, rustc_query_system[ece7294309cc0af]::dep_graph::dep_node::DepNode)>>::call_once + 12: 0x1102d9f00 - >::try_mark_previous_green:: + 13: 0x1102d9f4c - >::try_mark_previous_green:: + 14: 0x1102d9f4c - >::try_mark_previous_green:: + 15: 0x1102d9f4c - >::try_mark_previous_green:: + 16: 0x1102d9f4c - >::try_mark_previous_green:: + 17: 0x1102d9f4c - >::try_mark_previous_green:: + 18: 0x1102d9f4c - >::try_mark_previous_green:: + 19: 0x1102d9f4c - >::try_mark_previous_green:: + 20: 0x1102d9f4c - >::try_mark_previous_green:: + 21: 0x1102d9f4c - >::try_mark_previous_green:: + 22: 0x1102d9f4c - >::try_mark_previous_green:: + 23: 0x1102d9ccc - >::try_mark_green:: + 24: 0x1100ab0f4 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, rustc_middle[6f39fb7e2a7faa6a]::query::erase::Erased<[u8; 2usize]>>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 25: 0x1102d2ecc - rustc_query_impl[4de7ee3194b11efa]::query_impl::evaluate_obligation::get_query_incr::__rust_end_short_backtrace + 26: 0x11072bee0 - ::evaluate_obligation + 27: 0x11072c488 - ::evaluate_obligation_no_overflow + 28: 0x11070b86c - ::process_trait_obligation + 29: 0x11070ad98 - ::process_obligation + 30: 0x10f223cd0 - >::process_obligations:: + 31: 0x10f1e5218 - as rustc_infer[468610b7cf94ec88]::traits::engine::TraitEngine>::select_where_possible + 32: 0x10f10ee94 - ::check_argument_types + 33: 0x10f10e70c - ::check_method_argument_types + 34: 0x10f15a07c - ::check_expr_kind + 35: 0x10f0f7eac - ::check_expr_with_expectation_and_args + 36: 0x10f1517a0 - ::check_expr_kind + 37: 0x10f0f7eac - ::check_expr_with_expectation_and_args + 38: 0x10f1517a0 - ::check_expr_kind + 39: 0x10f0f7eac - ::check_expr_with_expectation_and_args + 40: 0x10f1517a0 - ::check_expr_kind + 41: 0x10f0f7eac - ::check_expr_with_expectation_and_args + 42: 0x10f115dc4 - ::check_decl + 43: 0x10f11647c - ::check_block_with_expected + 44: 0x10f0f7eac - ::check_expr_with_expectation_and_args + 45: 0x10f0f8aa8 - ::check_return_expr + 46: 0x10f2aa494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 47: 0x10f158294 - ::check_expr_kind + 48: 0x10f0f7eac - ::check_expr_with_expectation_and_args + 49: 0x10f115dc4 - ::check_decl + 50: 0x10f11647c - ::check_block_with_expected + 51: 0x10f0f7eac - ::check_expr_with_expectation_and_args + 52: 0x10f0f8aa8 - ::check_return_expr + 53: 0x10f2aa494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 54: 0x10f253618 - rustc_hir_typeck[8a5a263a57e61841]::typeck + 55: 0x110177ad4 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 56: 0x1102887c4 - >::call_once + 57: 0x110120b44 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 58: 0x1102b878c - rustc_query_impl[4de7ee3194b11efa]::query_impl::typeck::get_query_incr::__rust_end_short_backtrace + 59: 0x10efa5b18 - ::par_body_owners::::{closure#0} + 60: 0x10ef969b8 - ::run::<(), rustc_data_structures[4a438291929cf436]::sync::parallel::enabled::par_for_each_in<&rustc_span[8788673922ec3ae1]::def_id::LocalDefId, &[rustc_span[8788673922ec3ae1]::def_id::LocalDefId], ::par_body_owners::{closure#0}>::{closure#0}::{closure#0}::{closure#0}> + 61: 0x10ef959a0 - rustc_hir_analysis[3be39a9c48dd4c06]::check_crate + 62: 0x10f5c2f90 - rustc_interface[c88b6df23cac61ce]::passes::analysis + 63: 0x110177be8 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 64: 0x110344fd4 - >::call_once + 65: 0x110092714 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 66: 0x1102a9cc8 - rustc_query_impl[4de7ee3194b11efa]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace + 67: 0x10ec6929c - ::enter::> + 68: 0x10ec77498 - ::enter::, rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 69: 0x10eca1e10 - rustc_span[8788673922ec3ae1]::create_session_globals_then::, rustc_interface[c88b6df23cac61ce]::util::run_in_thread_with_globals, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}> + 70: 0x10ec6b02c - std[c0699ea198d25f18]::sys::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 71: 0x10ec9fd64 - <::spawn_unchecked_, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#2} as core[5adf5740b9e46934]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 72: 0x104e1a374 - std::sys::pal::unix::thread::Thread::new::thread_start::h9c452b63693017ce + 73: 0x195cb72e4 - __pthread_deallocate + + +rustc version: 1.81.0-nightly (cf2df68d1 2024-07-01) +platform: aarch64-apple-darwin + +query stack during panic: +#0 [evaluate_obligation] evaluating trait selection obligation `openraft::storage::snapshot::Snapshot: core::marker::Send` +#1 [typeck] type-checking `main` +#2 [analysis] running analysis passes on this crate +end of query stack +thread 'rustc' panicked at compiler/rustc_metadata/src/rmeta/def_path_hash_map.rs:23:54: +called `Option::unwrap()` on a `None` value +stack backtrace: + 0: 0x104df8b00 - std::backtrace::Backtrace::create::hb0cc1249139a1455 + 1: 0x10ec67690 - as core[5adf5740b9e46934]::ops::function::Fn<(&dyn for<'a, 'b> core[5adf5740b9e46934]::ops::function::Fn<(&'a std[c0699ea198d25f18]::panic::PanicHookInfo<'b>,), Output = ()> + core[5adf5740b9e46934]::marker::Sync + core[5adf5740b9e46934]::marker::Send, &std[c0699ea198d25f18]::panic::PanicHookInfo)>>::call + 2: 0x104e11e28 - std::panicking::rust_panic_with_hook::h2116230dcb95ce5a + 3: 0x104e11710 - std::panicking::begin_panic_handler::{{closure}}::hf100b4a3ea76eab7 + 4: 0x104e0f2bc - std::sys::backtrace::__rust_end_short_backtrace::h45852148cffd4f7d + 5: 0x104e11400 - _rust_begin_unwind + 6: 0x104e6ca6c - core::panicking::panic_fmt::hbd81035675c8e9f6 + 7: 0x104e6cad8 - core::panicking::panic::hb5be5f7e0a537da8 + 8: 0x104e6c9f4 - core::option::unwrap_failed::he0e81e69c8cc5ecb + 9: 0x10f7f82c8 - >::call_once + 10: 0x10f8585b8 - ::def_path_hash_to_def_id + 11: 0x10f52a178 - rustc_interface[c88b6df23cac61ce]::callbacks::dep_node_debug + 12: 0x110389540 - ::fmt + 13: 0x104e52124 - core::fmt::write::ha0d0a570cdd0b640 + 14: 0x104e03158 - <&std::io::stdio::Stderr as std::io::Write>::write_fmt::h6719717d6d9f7763 + 15: 0x104e03b68 - std::io::stdio::_eprint::h397d20c6266f5912 + 16: 0x1131d7e24 - rustc_query_system[ece7294309cc0af]::dep_graph::graph::print_markframe_trace:: + 17: 0x1102daa54 - >::try_mark_previous_green:: + 18: 0x1102d9f4c - >::try_mark_previous_green:: + 19: 0x1102d9f4c - >::try_mark_previous_green:: + 20: 0x1102d9f4c - >::try_mark_previous_green:: + 21: 0x1102d9f4c - >::try_mark_previous_green:: + 22: 0x1102d9f4c - >::try_mark_previous_green:: + 23: 0x1102d9f4c - >::try_mark_previous_green:: + 24: 0x1102d9f4c - >::try_mark_previous_green:: + 25: 0x1102d9f4c - >::try_mark_previous_green:: + 26: 0x1102d9f4c - >::try_mark_previous_green:: + 27: 0x1102d9f4c - >::try_mark_previous_green:: + 28: 0x1102d9ccc - >::try_mark_green:: + 29: 0x1100ab0f4 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, rustc_middle[6f39fb7e2a7faa6a]::query::erase::Erased<[u8; 2usize]>>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 30: 0x1102d2ecc - rustc_query_impl[4de7ee3194b11efa]::query_impl::evaluate_obligation::get_query_incr::__rust_end_short_backtrace + 31: 0x11072bee0 - ::evaluate_obligation + 32: 0x11072c488 - ::evaluate_obligation_no_overflow + 33: 0x11070b86c - ::process_trait_obligation + 34: 0x11070ad98 - ::process_obligation + 35: 0x10f223cd0 - >::process_obligations:: + 36: 0x10f1e5218 - as rustc_infer[468610b7cf94ec88]::traits::engine::TraitEngine>::select_where_possible + 37: 0x10f10ee94 - ::check_argument_types + 38: 0x10f10e70c - ::check_method_argument_types + 39: 0x10f15a07c - ::check_expr_kind + 40: 0x10f0f7eac - ::check_expr_with_expectation_and_args + 41: 0x10f1517a0 - ::check_expr_kind + 42: 0x10f0f7eac - ::check_expr_with_expectation_and_args + 43: 0x10f1517a0 - ::check_expr_kind + 44: 0x10f0f7eac - ::check_expr_with_expectation_and_args + 45: 0x10f1517a0 - ::check_expr_kind + 46: 0x10f0f7eac - ::check_expr_with_expectation_and_args + 47: 0x10f115dc4 - ::check_decl + 48: 0x10f11647c - ::check_block_with_expected + 49: 0x10f0f7eac - ::check_expr_with_expectation_and_args + 50: 0x10f0f8aa8 - ::check_return_expr + 51: 0x10f2aa494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 52: 0x10f158294 - ::check_expr_kind + 53: 0x10f0f7eac - ::check_expr_with_expectation_and_args + 54: 0x10f115dc4 - ::check_decl + 55: 0x10f11647c - ::check_block_with_expected + 56: 0x10f0f7eac - ::check_expr_with_expectation_and_args + 57: 0x10f0f8aa8 - ::check_return_expr + 58: 0x10f2aa494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 59: 0x10f253618 - rustc_hir_typeck[8a5a263a57e61841]::typeck + 60: 0x110177ad4 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 61: 0x1102887c4 - >::call_once + 62: 0x110120b44 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 63: 0x1102b878c - rustc_query_impl[4de7ee3194b11efa]::query_impl::typeck::get_query_incr::__rust_end_short_backtrace + 64: 0x10efa5b18 - ::par_body_owners::::{closure#0} + 65: 0x10ef969b8 - ::run::<(), rustc_data_structures[4a438291929cf436]::sync::parallel::enabled::par_for_each_in<&rustc_span[8788673922ec3ae1]::def_id::LocalDefId, &[rustc_span[8788673922ec3ae1]::def_id::LocalDefId], ::par_body_owners::{closure#0}>::{closure#0}::{closure#0}::{closure#0}> + 66: 0x10ef959a0 - rustc_hir_analysis[3be39a9c48dd4c06]::check_crate + 67: 0x10f5c2f90 - rustc_interface[c88b6df23cac61ce]::passes::analysis + 68: 0x110177be8 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 69: 0x110344fd4 - >::call_once + 70: 0x110092714 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 71: 0x1102a9cc8 - rustc_query_impl[4de7ee3194b11efa]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace + 72: 0x10ec6929c - ::enter::> + 73: 0x10ec77498 - ::enter::, rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 74: 0x10eca1e10 - rustc_span[8788673922ec3ae1]::create_session_globals_then::, rustc_interface[c88b6df23cac61ce]::util::run_in_thread_with_globals, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}> + 75: 0x10ec6b02c - std[c0699ea198d25f18]::sys::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 76: 0x10ec9fd64 - <::spawn_unchecked_, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#2} as core[5adf5740b9e46934]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 77: 0x104e1a374 - std::sys::pal::unix::thread::Thread::new::thread_start::h9c452b63693017ce + 78: 0x195cb72e4 - __pthread_deallocate + + +query stack during panic: +#0 [evaluate_obligation] evaluating trait selection obligation `openraft::storage::snapshot::Snapshot: core::marker::Send` +#1 [typeck] type-checking `main` +#2 [analysis] running analysis passes on this crate +end of query stack diff --git a/examples/raft-kv-memstore-grpc/rustc-ice-2024-12-10T18_09_56-86384.txt b/examples/raft-kv-memstore-grpc/rustc-ice-2024-12-10T18_09_56-86384.txt new file mode 100644 index 000000000..1320bb563 --- /dev/null +++ b/examples/raft-kv-memstore-grpc/rustc-ice-2024-12-10T18_09_56-86384.txt @@ -0,0 +1,176 @@ +thread 'rustc' panicked at compiler/rustc_metadata/src/rmeta/def_path_hash_map.rs:23:54: +called `Option::unwrap()` on a `None` value +stack backtrace: + 0: 0x104cb4b00 - std::backtrace::Backtrace::create::hb0cc1249139a1455 + 1: 0x10eb23690 - as core[5adf5740b9e46934]::ops::function::Fn<(&dyn for<'a, 'b> core[5adf5740b9e46934]::ops::function::Fn<(&'a std[c0699ea198d25f18]::panic::PanicHookInfo<'b>,), Output = ()> + core[5adf5740b9e46934]::marker::Sync + core[5adf5740b9e46934]::marker::Send, &std[c0699ea198d25f18]::panic::PanicHookInfo)>>::call + 2: 0x104ccde28 - std::panicking::rust_panic_with_hook::h2116230dcb95ce5a + 3: 0x104ccd710 - std::panicking::begin_panic_handler::{{closure}}::hf100b4a3ea76eab7 + 4: 0x104ccb2bc - std::sys::backtrace::__rust_end_short_backtrace::h45852148cffd4f7d + 5: 0x104ccd400 - _rust_begin_unwind + 6: 0x104d28a6c - core::panicking::panic_fmt::hbd81035675c8e9f6 + 7: 0x104d28ad8 - core::panicking::panic::hb5be5f7e0a537da8 + 8: 0x104d289f4 - core::option::unwrap_failed::he0e81e69c8cc5ecb + 9: 0x10f6b42c8 - >::call_once + 10: 0x10f7145b8 - ::def_path_hash_to_def_id + 11: 0x110003878 - ::{closure#0} as core[5adf5740b9e46934]::ops::function::FnOnce<(rustc_middle[6f39fb7e2a7faa6a]::ty::context::TyCtxt, rustc_query_system[ece7294309cc0af]::dep_graph::dep_node::DepNode)>>::call_once + 12: 0x110195f00 - >::try_mark_previous_green:: + 13: 0x110195f4c - >::try_mark_previous_green:: + 14: 0x110195f4c - >::try_mark_previous_green:: + 15: 0x110195f4c - >::try_mark_previous_green:: + 16: 0x110195f4c - >::try_mark_previous_green:: + 17: 0x110195f4c - >::try_mark_previous_green:: + 18: 0x110195f4c - >::try_mark_previous_green:: + 19: 0x110195f4c - >::try_mark_previous_green:: + 20: 0x110195f4c - >::try_mark_previous_green:: + 21: 0x110195f4c - >::try_mark_previous_green:: + 22: 0x110195f4c - >::try_mark_previous_green:: + 23: 0x110195ccc - >::try_mark_green:: + 24: 0x10ff670f4 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, rustc_middle[6f39fb7e2a7faa6a]::query::erase::Erased<[u8; 2usize]>>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 25: 0x11018eecc - rustc_query_impl[4de7ee3194b11efa]::query_impl::evaluate_obligation::get_query_incr::__rust_end_short_backtrace + 26: 0x1105e7ee0 - ::evaluate_obligation + 27: 0x1105e8488 - ::evaluate_obligation_no_overflow + 28: 0x1105c786c - ::process_trait_obligation + 29: 0x1105c6d98 - ::process_obligation + 30: 0x10f0dfcd0 - >::process_obligations:: + 31: 0x10f0a1218 - as rustc_infer[468610b7cf94ec88]::traits::engine::TraitEngine>::select_where_possible + 32: 0x10efcae94 - ::check_argument_types + 33: 0x10efca70c - ::check_method_argument_types + 34: 0x10f01607c - ::check_expr_kind + 35: 0x10efb3eac - ::check_expr_with_expectation_and_args + 36: 0x10f00d7a0 - ::check_expr_kind + 37: 0x10efb3eac - ::check_expr_with_expectation_and_args + 38: 0x10f00d7a0 - ::check_expr_kind + 39: 0x10efb3eac - ::check_expr_with_expectation_and_args + 40: 0x10f00d7a0 - ::check_expr_kind + 41: 0x10efb3eac - ::check_expr_with_expectation_and_args + 42: 0x10efd1dc4 - ::check_decl + 43: 0x10efd247c - ::check_block_with_expected + 44: 0x10efb3eac - ::check_expr_with_expectation_and_args + 45: 0x10efb4aa8 - ::check_return_expr + 46: 0x10f166494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 47: 0x10f014294 - ::check_expr_kind + 48: 0x10efb3eac - ::check_expr_with_expectation_and_args + 49: 0x10efd1dc4 - ::check_decl + 50: 0x10efd247c - ::check_block_with_expected + 51: 0x10efb3eac - ::check_expr_with_expectation_and_args + 52: 0x10efb4aa8 - ::check_return_expr + 53: 0x10f166494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 54: 0x10f10f618 - rustc_hir_typeck[8a5a263a57e61841]::typeck + 55: 0x110033ad4 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 56: 0x1101447c4 - >::call_once + 57: 0x10ffdcb44 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 58: 0x11017478c - rustc_query_impl[4de7ee3194b11efa]::query_impl::typeck::get_query_incr::__rust_end_short_backtrace + 59: 0x10ee61b18 - ::par_body_owners::::{closure#0} + 60: 0x10ee529b8 - ::run::<(), rustc_data_structures[4a438291929cf436]::sync::parallel::enabled::par_for_each_in<&rustc_span[8788673922ec3ae1]::def_id::LocalDefId, &[rustc_span[8788673922ec3ae1]::def_id::LocalDefId], ::par_body_owners::{closure#0}>::{closure#0}::{closure#0}::{closure#0}> + 61: 0x10ee519a0 - rustc_hir_analysis[3be39a9c48dd4c06]::check_crate + 62: 0x10f47ef90 - rustc_interface[c88b6df23cac61ce]::passes::analysis + 63: 0x110033be8 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 64: 0x110200fd4 - >::call_once + 65: 0x10ff4e714 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 66: 0x110165cc8 - rustc_query_impl[4de7ee3194b11efa]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace + 67: 0x10eb2529c - ::enter::> + 68: 0x10eb33498 - ::enter::, rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 69: 0x10eb5de10 - rustc_span[8788673922ec3ae1]::create_session_globals_then::, rustc_interface[c88b6df23cac61ce]::util::run_in_thread_with_globals, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}> + 70: 0x10eb2702c - std[c0699ea198d25f18]::sys::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 71: 0x10eb5bd64 - <::spawn_unchecked_, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#2} as core[5adf5740b9e46934]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 72: 0x104cd6374 - std::sys::pal::unix::thread::Thread::new::thread_start::h9c452b63693017ce + 73: 0x195cb72e4 - __pthread_deallocate + + +rustc version: 1.81.0-nightly (cf2df68d1 2024-07-01) +platform: aarch64-apple-darwin + +query stack during panic: +#0 [evaluate_obligation] evaluating trait selection obligation `openraft::storage::snapshot::Snapshot: core::marker::Send` +#1 [typeck] type-checking `main` +#2 [analysis] running analysis passes on this crate +end of query stack +thread 'rustc' panicked at compiler/rustc_metadata/src/rmeta/def_path_hash_map.rs:23:54: +called `Option::unwrap()` on a `None` value +stack backtrace: + 0: 0x104cb4b00 - std::backtrace::Backtrace::create::hb0cc1249139a1455 + 1: 0x10eb23690 - as core[5adf5740b9e46934]::ops::function::Fn<(&dyn for<'a, 'b> core[5adf5740b9e46934]::ops::function::Fn<(&'a std[c0699ea198d25f18]::panic::PanicHookInfo<'b>,), Output = ()> + core[5adf5740b9e46934]::marker::Sync + core[5adf5740b9e46934]::marker::Send, &std[c0699ea198d25f18]::panic::PanicHookInfo)>>::call + 2: 0x104ccde28 - std::panicking::rust_panic_with_hook::h2116230dcb95ce5a + 3: 0x104ccd710 - std::panicking::begin_panic_handler::{{closure}}::hf100b4a3ea76eab7 + 4: 0x104ccb2bc - std::sys::backtrace::__rust_end_short_backtrace::h45852148cffd4f7d + 5: 0x104ccd400 - _rust_begin_unwind + 6: 0x104d28a6c - core::panicking::panic_fmt::hbd81035675c8e9f6 + 7: 0x104d28ad8 - core::panicking::panic::hb5be5f7e0a537da8 + 8: 0x104d289f4 - core::option::unwrap_failed::he0e81e69c8cc5ecb + 9: 0x10f6b42c8 - >::call_once + 10: 0x10f7145b8 - ::def_path_hash_to_def_id + 11: 0x10f3e6178 - rustc_interface[c88b6df23cac61ce]::callbacks::dep_node_debug + 12: 0x110245540 - ::fmt + 13: 0x104d0e124 - core::fmt::write::ha0d0a570cdd0b640 + 14: 0x104cbf158 - <&std::io::stdio::Stderr as std::io::Write>::write_fmt::h6719717d6d9f7763 + 15: 0x104cbfb68 - std::io::stdio::_eprint::h397d20c6266f5912 + 16: 0x113093e24 - rustc_query_system[ece7294309cc0af]::dep_graph::graph::print_markframe_trace:: + 17: 0x110196a54 - >::try_mark_previous_green:: + 18: 0x110195f4c - >::try_mark_previous_green:: + 19: 0x110195f4c - >::try_mark_previous_green:: + 20: 0x110195f4c - >::try_mark_previous_green:: + 21: 0x110195f4c - >::try_mark_previous_green:: + 22: 0x110195f4c - >::try_mark_previous_green:: + 23: 0x110195f4c - >::try_mark_previous_green:: + 24: 0x110195f4c - >::try_mark_previous_green:: + 25: 0x110195f4c - >::try_mark_previous_green:: + 26: 0x110195f4c - >::try_mark_previous_green:: + 27: 0x110195f4c - >::try_mark_previous_green:: + 28: 0x110195ccc - >::try_mark_green:: + 29: 0x10ff670f4 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, rustc_middle[6f39fb7e2a7faa6a]::query::erase::Erased<[u8; 2usize]>>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 30: 0x11018eecc - rustc_query_impl[4de7ee3194b11efa]::query_impl::evaluate_obligation::get_query_incr::__rust_end_short_backtrace + 31: 0x1105e7ee0 - ::evaluate_obligation + 32: 0x1105e8488 - ::evaluate_obligation_no_overflow + 33: 0x1105c786c - ::process_trait_obligation + 34: 0x1105c6d98 - ::process_obligation + 35: 0x10f0dfcd0 - >::process_obligations:: + 36: 0x10f0a1218 - as rustc_infer[468610b7cf94ec88]::traits::engine::TraitEngine>::select_where_possible + 37: 0x10efcae94 - ::check_argument_types + 38: 0x10efca70c - ::check_method_argument_types + 39: 0x10f01607c - ::check_expr_kind + 40: 0x10efb3eac - ::check_expr_with_expectation_and_args + 41: 0x10f00d7a0 - ::check_expr_kind + 42: 0x10efb3eac - ::check_expr_with_expectation_and_args + 43: 0x10f00d7a0 - ::check_expr_kind + 44: 0x10efb3eac - ::check_expr_with_expectation_and_args + 45: 0x10f00d7a0 - ::check_expr_kind + 46: 0x10efb3eac - ::check_expr_with_expectation_and_args + 47: 0x10efd1dc4 - ::check_decl + 48: 0x10efd247c - ::check_block_with_expected + 49: 0x10efb3eac - ::check_expr_with_expectation_and_args + 50: 0x10efb4aa8 - ::check_return_expr + 51: 0x10f166494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 52: 0x10f014294 - ::check_expr_kind + 53: 0x10efb3eac - ::check_expr_with_expectation_and_args + 54: 0x10efd1dc4 - ::check_decl + 55: 0x10efd247c - ::check_block_with_expected + 56: 0x10efb3eac - ::check_expr_with_expectation_and_args + 57: 0x10efb4aa8 - ::check_return_expr + 58: 0x10f166494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 59: 0x10f10f618 - rustc_hir_typeck[8a5a263a57e61841]::typeck + 60: 0x110033ad4 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 61: 0x1101447c4 - >::call_once + 62: 0x10ffdcb44 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 63: 0x11017478c - rustc_query_impl[4de7ee3194b11efa]::query_impl::typeck::get_query_incr::__rust_end_short_backtrace + 64: 0x10ee61b18 - ::par_body_owners::::{closure#0} + 65: 0x10ee529b8 - ::run::<(), rustc_data_structures[4a438291929cf436]::sync::parallel::enabled::par_for_each_in<&rustc_span[8788673922ec3ae1]::def_id::LocalDefId, &[rustc_span[8788673922ec3ae1]::def_id::LocalDefId], ::par_body_owners::{closure#0}>::{closure#0}::{closure#0}::{closure#0}> + 66: 0x10ee519a0 - rustc_hir_analysis[3be39a9c48dd4c06]::check_crate + 67: 0x10f47ef90 - rustc_interface[c88b6df23cac61ce]::passes::analysis + 68: 0x110033be8 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 69: 0x110200fd4 - >::call_once + 70: 0x10ff4e714 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 71: 0x110165cc8 - rustc_query_impl[4de7ee3194b11efa]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace + 72: 0x10eb2529c - ::enter::> + 73: 0x10eb33498 - ::enter::, rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 74: 0x10eb5de10 - rustc_span[8788673922ec3ae1]::create_session_globals_then::, rustc_interface[c88b6df23cac61ce]::util::run_in_thread_with_globals, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}> + 75: 0x10eb2702c - std[c0699ea198d25f18]::sys::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 76: 0x10eb5bd64 - <::spawn_unchecked_, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#2} as core[5adf5740b9e46934]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 77: 0x104cd6374 - std::sys::pal::unix::thread::Thread::new::thread_start::h9c452b63693017ce + 78: 0x195cb72e4 - __pthread_deallocate + + +query stack during panic: +#0 [evaluate_obligation] evaluating trait selection obligation `openraft::storage::snapshot::Snapshot: core::marker::Send` +#1 [typeck] type-checking `main` +#2 [analysis] running analysis passes on this crate +end of query stack diff --git a/examples/raft-kv-memstore-grpc/rustc-ice-2024-12-10T18_10_07-86478.txt b/examples/raft-kv-memstore-grpc/rustc-ice-2024-12-10T18_10_07-86478.txt new file mode 100644 index 000000000..eff84f0df --- /dev/null +++ b/examples/raft-kv-memstore-grpc/rustc-ice-2024-12-10T18_10_07-86478.txt @@ -0,0 +1,176 @@ +thread 'rustc' panicked at compiler/rustc_metadata/src/rmeta/def_path_hash_map.rs:23:54: +called `Option::unwrap()` on a `None` value +stack backtrace: + 0: 0x100ab4b00 - std::backtrace::Backtrace::create::hb0cc1249139a1455 + 1: 0x10a923690 - as core[5adf5740b9e46934]::ops::function::Fn<(&dyn for<'a, 'b> core[5adf5740b9e46934]::ops::function::Fn<(&'a std[c0699ea198d25f18]::panic::PanicHookInfo<'b>,), Output = ()> + core[5adf5740b9e46934]::marker::Sync + core[5adf5740b9e46934]::marker::Send, &std[c0699ea198d25f18]::panic::PanicHookInfo)>>::call + 2: 0x100acde28 - std::panicking::rust_panic_with_hook::h2116230dcb95ce5a + 3: 0x100acd710 - std::panicking::begin_panic_handler::{{closure}}::hf100b4a3ea76eab7 + 4: 0x100acb2bc - std::sys::backtrace::__rust_end_short_backtrace::h45852148cffd4f7d + 5: 0x100acd400 - _rust_begin_unwind + 6: 0x100b28a6c - core::panicking::panic_fmt::hbd81035675c8e9f6 + 7: 0x100b28ad8 - core::panicking::panic::hb5be5f7e0a537da8 + 8: 0x100b289f4 - core::option::unwrap_failed::he0e81e69c8cc5ecb + 9: 0x10b4b42c8 - >::call_once + 10: 0x10b5145b8 - ::def_path_hash_to_def_id + 11: 0x10be03878 - ::{closure#0} as core[5adf5740b9e46934]::ops::function::FnOnce<(rustc_middle[6f39fb7e2a7faa6a]::ty::context::TyCtxt, rustc_query_system[ece7294309cc0af]::dep_graph::dep_node::DepNode)>>::call_once + 12: 0x10bf95f00 - >::try_mark_previous_green:: + 13: 0x10bf95f4c - >::try_mark_previous_green:: + 14: 0x10bf95f4c - >::try_mark_previous_green:: + 15: 0x10bf95f4c - >::try_mark_previous_green:: + 16: 0x10bf95f4c - >::try_mark_previous_green:: + 17: 0x10bf95f4c - >::try_mark_previous_green:: + 18: 0x10bf95f4c - >::try_mark_previous_green:: + 19: 0x10bf95f4c - >::try_mark_previous_green:: + 20: 0x10bf95f4c - >::try_mark_previous_green:: + 21: 0x10bf95f4c - >::try_mark_previous_green:: + 22: 0x10bf95f4c - >::try_mark_previous_green:: + 23: 0x10bf95ccc - >::try_mark_green:: + 24: 0x10bd670f4 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, rustc_middle[6f39fb7e2a7faa6a]::query::erase::Erased<[u8; 2usize]>>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 25: 0x10bf8eecc - rustc_query_impl[4de7ee3194b11efa]::query_impl::evaluate_obligation::get_query_incr::__rust_end_short_backtrace + 26: 0x10c3e7ee0 - ::evaluate_obligation + 27: 0x10c3e8488 - ::evaluate_obligation_no_overflow + 28: 0x10c3c786c - ::process_trait_obligation + 29: 0x10c3c6d98 - ::process_obligation + 30: 0x10aedfcd0 - >::process_obligations:: + 31: 0x10aea1218 - as rustc_infer[468610b7cf94ec88]::traits::engine::TraitEngine>::select_where_possible + 32: 0x10adcae94 - ::check_argument_types + 33: 0x10adca70c - ::check_method_argument_types + 34: 0x10ae1607c - ::check_expr_kind + 35: 0x10adb3eac - ::check_expr_with_expectation_and_args + 36: 0x10ae0d7a0 - ::check_expr_kind + 37: 0x10adb3eac - ::check_expr_with_expectation_and_args + 38: 0x10ae0d7a0 - ::check_expr_kind + 39: 0x10adb3eac - ::check_expr_with_expectation_and_args + 40: 0x10ae0d7a0 - ::check_expr_kind + 41: 0x10adb3eac - ::check_expr_with_expectation_and_args + 42: 0x10add1dc4 - ::check_decl + 43: 0x10add247c - ::check_block_with_expected + 44: 0x10adb3eac - ::check_expr_with_expectation_and_args + 45: 0x10adb4aa8 - ::check_return_expr + 46: 0x10af66494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 47: 0x10ae14294 - ::check_expr_kind + 48: 0x10adb3eac - ::check_expr_with_expectation_and_args + 49: 0x10add1dc4 - ::check_decl + 50: 0x10add247c - ::check_block_with_expected + 51: 0x10adb3eac - ::check_expr_with_expectation_and_args + 52: 0x10adb4aa8 - ::check_return_expr + 53: 0x10af66494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 54: 0x10af0f618 - rustc_hir_typeck[8a5a263a57e61841]::typeck + 55: 0x10be33ad4 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 56: 0x10bf447c4 - >::call_once + 57: 0x10bddcb44 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 58: 0x10bf7478c - rustc_query_impl[4de7ee3194b11efa]::query_impl::typeck::get_query_incr::__rust_end_short_backtrace + 59: 0x10ac61b18 - ::par_body_owners::::{closure#0} + 60: 0x10ac529b8 - ::run::<(), rustc_data_structures[4a438291929cf436]::sync::parallel::enabled::par_for_each_in<&rustc_span[8788673922ec3ae1]::def_id::LocalDefId, &[rustc_span[8788673922ec3ae1]::def_id::LocalDefId], ::par_body_owners::{closure#0}>::{closure#0}::{closure#0}::{closure#0}> + 61: 0x10ac519a0 - rustc_hir_analysis[3be39a9c48dd4c06]::check_crate + 62: 0x10b27ef90 - rustc_interface[c88b6df23cac61ce]::passes::analysis + 63: 0x10be33be8 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 64: 0x10c000fd4 - >::call_once + 65: 0x10bd4e714 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 66: 0x10bf65cc8 - rustc_query_impl[4de7ee3194b11efa]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace + 67: 0x10a92529c - ::enter::> + 68: 0x10a933498 - ::enter::, rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 69: 0x10a95de10 - rustc_span[8788673922ec3ae1]::create_session_globals_then::, rustc_interface[c88b6df23cac61ce]::util::run_in_thread_with_globals, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}> + 70: 0x10a92702c - std[c0699ea198d25f18]::sys::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 71: 0x10a95bd64 - <::spawn_unchecked_, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#2} as core[5adf5740b9e46934]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 72: 0x100ad6374 - std::sys::pal::unix::thread::Thread::new::thread_start::h9c452b63693017ce + 73: 0x195cb72e4 - __pthread_deallocate + + +rustc version: 1.81.0-nightly (cf2df68d1 2024-07-01) +platform: aarch64-apple-darwin + +query stack during panic: +#0 [evaluate_obligation] evaluating trait selection obligation `openraft::storage::snapshot::Snapshot: core::marker::Send` +#1 [typeck] type-checking `main` +#2 [analysis] running analysis passes on this crate +end of query stack +thread 'rustc' panicked at compiler/rustc_metadata/src/rmeta/def_path_hash_map.rs:23:54: +called `Option::unwrap()` on a `None` value +stack backtrace: + 0: 0x100ab4b00 - std::backtrace::Backtrace::create::hb0cc1249139a1455 + 1: 0x10a923690 - as core[5adf5740b9e46934]::ops::function::Fn<(&dyn for<'a, 'b> core[5adf5740b9e46934]::ops::function::Fn<(&'a std[c0699ea198d25f18]::panic::PanicHookInfo<'b>,), Output = ()> + core[5adf5740b9e46934]::marker::Sync + core[5adf5740b9e46934]::marker::Send, &std[c0699ea198d25f18]::panic::PanicHookInfo)>>::call + 2: 0x100acde28 - std::panicking::rust_panic_with_hook::h2116230dcb95ce5a + 3: 0x100acd710 - std::panicking::begin_panic_handler::{{closure}}::hf100b4a3ea76eab7 + 4: 0x100acb2bc - std::sys::backtrace::__rust_end_short_backtrace::h45852148cffd4f7d + 5: 0x100acd400 - _rust_begin_unwind + 6: 0x100b28a6c - core::panicking::panic_fmt::hbd81035675c8e9f6 + 7: 0x100b28ad8 - core::panicking::panic::hb5be5f7e0a537da8 + 8: 0x100b289f4 - core::option::unwrap_failed::he0e81e69c8cc5ecb + 9: 0x10b4b42c8 - >::call_once + 10: 0x10b5145b8 - ::def_path_hash_to_def_id + 11: 0x10b1e6178 - rustc_interface[c88b6df23cac61ce]::callbacks::dep_node_debug + 12: 0x10c045540 - ::fmt + 13: 0x100b0e124 - core::fmt::write::ha0d0a570cdd0b640 + 14: 0x100abf158 - <&std::io::stdio::Stderr as std::io::Write>::write_fmt::h6719717d6d9f7763 + 15: 0x100abfb68 - std::io::stdio::_eprint::h397d20c6266f5912 + 16: 0x10ee93e24 - rustc_query_system[ece7294309cc0af]::dep_graph::graph::print_markframe_trace:: + 17: 0x10bf96a54 - >::try_mark_previous_green:: + 18: 0x10bf95f4c - >::try_mark_previous_green:: + 19: 0x10bf95f4c - >::try_mark_previous_green:: + 20: 0x10bf95f4c - >::try_mark_previous_green:: + 21: 0x10bf95f4c - >::try_mark_previous_green:: + 22: 0x10bf95f4c - >::try_mark_previous_green:: + 23: 0x10bf95f4c - >::try_mark_previous_green:: + 24: 0x10bf95f4c - >::try_mark_previous_green:: + 25: 0x10bf95f4c - >::try_mark_previous_green:: + 26: 0x10bf95f4c - >::try_mark_previous_green:: + 27: 0x10bf95f4c - >::try_mark_previous_green:: + 28: 0x10bf95ccc - >::try_mark_green:: + 29: 0x10bd670f4 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, rustc_middle[6f39fb7e2a7faa6a]::query::erase::Erased<[u8; 2usize]>>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 30: 0x10bf8eecc - rustc_query_impl[4de7ee3194b11efa]::query_impl::evaluate_obligation::get_query_incr::__rust_end_short_backtrace + 31: 0x10c3e7ee0 - ::evaluate_obligation + 32: 0x10c3e8488 - ::evaluate_obligation_no_overflow + 33: 0x10c3c786c - ::process_trait_obligation + 34: 0x10c3c6d98 - ::process_obligation + 35: 0x10aedfcd0 - >::process_obligations:: + 36: 0x10aea1218 - as rustc_infer[468610b7cf94ec88]::traits::engine::TraitEngine>::select_where_possible + 37: 0x10adcae94 - ::check_argument_types + 38: 0x10adca70c - ::check_method_argument_types + 39: 0x10ae1607c - ::check_expr_kind + 40: 0x10adb3eac - ::check_expr_with_expectation_and_args + 41: 0x10ae0d7a0 - ::check_expr_kind + 42: 0x10adb3eac - ::check_expr_with_expectation_and_args + 43: 0x10ae0d7a0 - ::check_expr_kind + 44: 0x10adb3eac - ::check_expr_with_expectation_and_args + 45: 0x10ae0d7a0 - ::check_expr_kind + 46: 0x10adb3eac - ::check_expr_with_expectation_and_args + 47: 0x10add1dc4 - ::check_decl + 48: 0x10add247c - ::check_block_with_expected + 49: 0x10adb3eac - ::check_expr_with_expectation_and_args + 50: 0x10adb4aa8 - ::check_return_expr + 51: 0x10af66494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 52: 0x10ae14294 - ::check_expr_kind + 53: 0x10adb3eac - ::check_expr_with_expectation_and_args + 54: 0x10add1dc4 - ::check_decl + 55: 0x10add247c - ::check_block_with_expected + 56: 0x10adb3eac - ::check_expr_with_expectation_and_args + 57: 0x10adb4aa8 - ::check_return_expr + 58: 0x10af66494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 59: 0x10af0f618 - rustc_hir_typeck[8a5a263a57e61841]::typeck + 60: 0x10be33ad4 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 61: 0x10bf447c4 - >::call_once + 62: 0x10bddcb44 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 63: 0x10bf7478c - rustc_query_impl[4de7ee3194b11efa]::query_impl::typeck::get_query_incr::__rust_end_short_backtrace + 64: 0x10ac61b18 - ::par_body_owners::::{closure#0} + 65: 0x10ac529b8 - ::run::<(), rustc_data_structures[4a438291929cf436]::sync::parallel::enabled::par_for_each_in<&rustc_span[8788673922ec3ae1]::def_id::LocalDefId, &[rustc_span[8788673922ec3ae1]::def_id::LocalDefId], ::par_body_owners::{closure#0}>::{closure#0}::{closure#0}::{closure#0}> + 66: 0x10ac519a0 - rustc_hir_analysis[3be39a9c48dd4c06]::check_crate + 67: 0x10b27ef90 - rustc_interface[c88b6df23cac61ce]::passes::analysis + 68: 0x10be33be8 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 69: 0x10c000fd4 - >::call_once + 70: 0x10bd4e714 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 71: 0x10bf65cc8 - rustc_query_impl[4de7ee3194b11efa]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace + 72: 0x10a92529c - ::enter::> + 73: 0x10a933498 - ::enter::, rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 74: 0x10a95de10 - rustc_span[8788673922ec3ae1]::create_session_globals_then::, rustc_interface[c88b6df23cac61ce]::util::run_in_thread_with_globals, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}> + 75: 0x10a92702c - std[c0699ea198d25f18]::sys::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 76: 0x10a95bd64 - <::spawn_unchecked_, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#2} as core[5adf5740b9e46934]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 77: 0x100ad6374 - std::sys::pal::unix::thread::Thread::new::thread_start::h9c452b63693017ce + 78: 0x195cb72e4 - __pthread_deallocate + + +query stack during panic: +#0 [evaluate_obligation] evaluating trait selection obligation `openraft::storage::snapshot::Snapshot: core::marker::Send` +#1 [typeck] type-checking `main` +#2 [analysis] running analysis passes on this crate +end of query stack diff --git a/examples/raft-kv-memstore-grpc/rustc-ice-2024-12-10T18_11_38-88701.txt b/examples/raft-kv-memstore-grpc/rustc-ice-2024-12-10T18_11_38-88701.txt new file mode 100644 index 000000000..a62111256 --- /dev/null +++ b/examples/raft-kv-memstore-grpc/rustc-ice-2024-12-10T18_11_38-88701.txt @@ -0,0 +1,176 @@ +thread 'rustc' panicked at compiler/rustc_metadata/src/rmeta/def_path_hash_map.rs:23:54: +called `Option::unwrap()` on a `None` value +stack backtrace: + 0: 0x1019d0b00 - std::backtrace::Backtrace::create::hb0cc1249139a1455 + 1: 0x10b83f690 - as core[5adf5740b9e46934]::ops::function::Fn<(&dyn for<'a, 'b> core[5adf5740b9e46934]::ops::function::Fn<(&'a std[c0699ea198d25f18]::panic::PanicHookInfo<'b>,), Output = ()> + core[5adf5740b9e46934]::marker::Sync + core[5adf5740b9e46934]::marker::Send, &std[c0699ea198d25f18]::panic::PanicHookInfo)>>::call + 2: 0x1019e9e28 - std::panicking::rust_panic_with_hook::h2116230dcb95ce5a + 3: 0x1019e9710 - std::panicking::begin_panic_handler::{{closure}}::hf100b4a3ea76eab7 + 4: 0x1019e72bc - std::sys::backtrace::__rust_end_short_backtrace::h45852148cffd4f7d + 5: 0x1019e9400 - _rust_begin_unwind + 6: 0x101a44a6c - core::panicking::panic_fmt::hbd81035675c8e9f6 + 7: 0x101a44ad8 - core::panicking::panic::hb5be5f7e0a537da8 + 8: 0x101a449f4 - core::option::unwrap_failed::he0e81e69c8cc5ecb + 9: 0x10c3d02c8 - >::call_once + 10: 0x10c4305b8 - ::def_path_hash_to_def_id + 11: 0x10cd1f878 - ::{closure#0} as core[5adf5740b9e46934]::ops::function::FnOnce<(rustc_middle[6f39fb7e2a7faa6a]::ty::context::TyCtxt, rustc_query_system[ece7294309cc0af]::dep_graph::dep_node::DepNode)>>::call_once + 12: 0x10ceb1f00 - >::try_mark_previous_green:: + 13: 0x10ceb1f4c - >::try_mark_previous_green:: + 14: 0x10ceb1f4c - >::try_mark_previous_green:: + 15: 0x10ceb1f4c - >::try_mark_previous_green:: + 16: 0x10ceb1f4c - >::try_mark_previous_green:: + 17: 0x10ceb1f4c - >::try_mark_previous_green:: + 18: 0x10ceb1f4c - >::try_mark_previous_green:: + 19: 0x10ceb1f4c - >::try_mark_previous_green:: + 20: 0x10ceb1f4c - >::try_mark_previous_green:: + 21: 0x10ceb1f4c - >::try_mark_previous_green:: + 22: 0x10ceb1f4c - >::try_mark_previous_green:: + 23: 0x10ceb1ccc - >::try_mark_green:: + 24: 0x10cc830f4 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, rustc_middle[6f39fb7e2a7faa6a]::query::erase::Erased<[u8; 2usize]>>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 25: 0x10ceaaecc - rustc_query_impl[4de7ee3194b11efa]::query_impl::evaluate_obligation::get_query_incr::__rust_end_short_backtrace + 26: 0x10d303ee0 - ::evaluate_obligation + 27: 0x10d304488 - ::evaluate_obligation_no_overflow + 28: 0x10d2e386c - ::process_trait_obligation + 29: 0x10d2e2d98 - ::process_obligation + 30: 0x10bdfbcd0 - >::process_obligations:: + 31: 0x10bdbd218 - as rustc_infer[468610b7cf94ec88]::traits::engine::TraitEngine>::select_where_possible + 32: 0x10bce6e94 - ::check_argument_types + 33: 0x10bce670c - ::check_method_argument_types + 34: 0x10bd3207c - ::check_expr_kind + 35: 0x10bccfeac - ::check_expr_with_expectation_and_args + 36: 0x10bd297a0 - ::check_expr_kind + 37: 0x10bccfeac - ::check_expr_with_expectation_and_args + 38: 0x10bd297a0 - ::check_expr_kind + 39: 0x10bccfeac - ::check_expr_with_expectation_and_args + 40: 0x10bd297a0 - ::check_expr_kind + 41: 0x10bccfeac - ::check_expr_with_expectation_and_args + 42: 0x10bceddc4 - ::check_decl + 43: 0x10bcee47c - ::check_block_with_expected + 44: 0x10bccfeac - ::check_expr_with_expectation_and_args + 45: 0x10bcd0aa8 - ::check_return_expr + 46: 0x10be82494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 47: 0x10bd30294 - ::check_expr_kind + 48: 0x10bccfeac - ::check_expr_with_expectation_and_args + 49: 0x10bceddc4 - ::check_decl + 50: 0x10bcee47c - ::check_block_with_expected + 51: 0x10bccfeac - ::check_expr_with_expectation_and_args + 52: 0x10bcd0aa8 - ::check_return_expr + 53: 0x10be82494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 54: 0x10be2b618 - rustc_hir_typeck[8a5a263a57e61841]::typeck + 55: 0x10cd4fad4 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 56: 0x10ce607c4 - >::call_once + 57: 0x10ccf8b44 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 58: 0x10ce9078c - rustc_query_impl[4de7ee3194b11efa]::query_impl::typeck::get_query_incr::__rust_end_short_backtrace + 59: 0x10bb7db18 - ::par_body_owners::::{closure#0} + 60: 0x10bb6e9b8 - ::run::<(), rustc_data_structures[4a438291929cf436]::sync::parallel::enabled::par_for_each_in<&rustc_span[8788673922ec3ae1]::def_id::LocalDefId, &[rustc_span[8788673922ec3ae1]::def_id::LocalDefId], ::par_body_owners::{closure#0}>::{closure#0}::{closure#0}::{closure#0}> + 61: 0x10bb6d9a0 - rustc_hir_analysis[3be39a9c48dd4c06]::check_crate + 62: 0x10c19af90 - rustc_interface[c88b6df23cac61ce]::passes::analysis + 63: 0x10cd4fbe8 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 64: 0x10cf1cfd4 - >::call_once + 65: 0x10cc6a714 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 66: 0x10ce81cc8 - rustc_query_impl[4de7ee3194b11efa]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace + 67: 0x10b84129c - ::enter::> + 68: 0x10b84f498 - ::enter::, rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 69: 0x10b879e10 - rustc_span[8788673922ec3ae1]::create_session_globals_then::, rustc_interface[c88b6df23cac61ce]::util::run_in_thread_with_globals, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}> + 70: 0x10b84302c - std[c0699ea198d25f18]::sys::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 71: 0x10b877d64 - <::spawn_unchecked_, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#2} as core[5adf5740b9e46934]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 72: 0x1019f2374 - std::sys::pal::unix::thread::Thread::new::thread_start::h9c452b63693017ce + 73: 0x195cb72e4 - __pthread_deallocate + + +rustc version: 1.81.0-nightly (cf2df68d1 2024-07-01) +platform: aarch64-apple-darwin + +query stack during panic: +#0 [evaluate_obligation] evaluating trait selection obligation `openraft::storage::snapshot::Snapshot: core::marker::Send` +#1 [typeck] type-checking `main` +#2 [analysis] running analysis passes on this crate +end of query stack +thread 'rustc' panicked at compiler/rustc_metadata/src/rmeta/def_path_hash_map.rs:23:54: +called `Option::unwrap()` on a `None` value +stack backtrace: + 0: 0x1019d0b00 - std::backtrace::Backtrace::create::hb0cc1249139a1455 + 1: 0x10b83f690 - as core[5adf5740b9e46934]::ops::function::Fn<(&dyn for<'a, 'b> core[5adf5740b9e46934]::ops::function::Fn<(&'a std[c0699ea198d25f18]::panic::PanicHookInfo<'b>,), Output = ()> + core[5adf5740b9e46934]::marker::Sync + core[5adf5740b9e46934]::marker::Send, &std[c0699ea198d25f18]::panic::PanicHookInfo)>>::call + 2: 0x1019e9e28 - std::panicking::rust_panic_with_hook::h2116230dcb95ce5a + 3: 0x1019e9710 - std::panicking::begin_panic_handler::{{closure}}::hf100b4a3ea76eab7 + 4: 0x1019e72bc - std::sys::backtrace::__rust_end_short_backtrace::h45852148cffd4f7d + 5: 0x1019e9400 - _rust_begin_unwind + 6: 0x101a44a6c - core::panicking::panic_fmt::hbd81035675c8e9f6 + 7: 0x101a44ad8 - core::panicking::panic::hb5be5f7e0a537da8 + 8: 0x101a449f4 - core::option::unwrap_failed::he0e81e69c8cc5ecb + 9: 0x10c3d02c8 - >::call_once + 10: 0x10c4305b8 - ::def_path_hash_to_def_id + 11: 0x10c102178 - rustc_interface[c88b6df23cac61ce]::callbacks::dep_node_debug + 12: 0x10cf61540 - ::fmt + 13: 0x101a2a124 - core::fmt::write::ha0d0a570cdd0b640 + 14: 0x1019db158 - <&std::io::stdio::Stderr as std::io::Write>::write_fmt::h6719717d6d9f7763 + 15: 0x1019dbb68 - std::io::stdio::_eprint::h397d20c6266f5912 + 16: 0x10fdafe24 - rustc_query_system[ece7294309cc0af]::dep_graph::graph::print_markframe_trace:: + 17: 0x10ceb2a54 - >::try_mark_previous_green:: + 18: 0x10ceb1f4c - >::try_mark_previous_green:: + 19: 0x10ceb1f4c - >::try_mark_previous_green:: + 20: 0x10ceb1f4c - >::try_mark_previous_green:: + 21: 0x10ceb1f4c - >::try_mark_previous_green:: + 22: 0x10ceb1f4c - >::try_mark_previous_green:: + 23: 0x10ceb1f4c - >::try_mark_previous_green:: + 24: 0x10ceb1f4c - >::try_mark_previous_green:: + 25: 0x10ceb1f4c - >::try_mark_previous_green:: + 26: 0x10ceb1f4c - >::try_mark_previous_green:: + 27: 0x10ceb1f4c - >::try_mark_previous_green:: + 28: 0x10ceb1ccc - >::try_mark_green:: + 29: 0x10cc830f4 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, rustc_middle[6f39fb7e2a7faa6a]::query::erase::Erased<[u8; 2usize]>>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 30: 0x10ceaaecc - rustc_query_impl[4de7ee3194b11efa]::query_impl::evaluate_obligation::get_query_incr::__rust_end_short_backtrace + 31: 0x10d303ee0 - ::evaluate_obligation + 32: 0x10d304488 - ::evaluate_obligation_no_overflow + 33: 0x10d2e386c - ::process_trait_obligation + 34: 0x10d2e2d98 - ::process_obligation + 35: 0x10bdfbcd0 - >::process_obligations:: + 36: 0x10bdbd218 - as rustc_infer[468610b7cf94ec88]::traits::engine::TraitEngine>::select_where_possible + 37: 0x10bce6e94 - ::check_argument_types + 38: 0x10bce670c - ::check_method_argument_types + 39: 0x10bd3207c - ::check_expr_kind + 40: 0x10bccfeac - ::check_expr_with_expectation_and_args + 41: 0x10bd297a0 - ::check_expr_kind + 42: 0x10bccfeac - ::check_expr_with_expectation_and_args + 43: 0x10bd297a0 - ::check_expr_kind + 44: 0x10bccfeac - ::check_expr_with_expectation_and_args + 45: 0x10bd297a0 - ::check_expr_kind + 46: 0x10bccfeac - ::check_expr_with_expectation_and_args + 47: 0x10bceddc4 - ::check_decl + 48: 0x10bcee47c - ::check_block_with_expected + 49: 0x10bccfeac - ::check_expr_with_expectation_and_args + 50: 0x10bcd0aa8 - ::check_return_expr + 51: 0x10be82494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 52: 0x10bd30294 - ::check_expr_kind + 53: 0x10bccfeac - ::check_expr_with_expectation_and_args + 54: 0x10bceddc4 - ::check_decl + 55: 0x10bcee47c - ::check_block_with_expected + 56: 0x10bccfeac - ::check_expr_with_expectation_and_args + 57: 0x10bcd0aa8 - ::check_return_expr + 58: 0x10be82494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 59: 0x10be2b618 - rustc_hir_typeck[8a5a263a57e61841]::typeck + 60: 0x10cd4fad4 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 61: 0x10ce607c4 - >::call_once + 62: 0x10ccf8b44 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 63: 0x10ce9078c - rustc_query_impl[4de7ee3194b11efa]::query_impl::typeck::get_query_incr::__rust_end_short_backtrace + 64: 0x10bb7db18 - ::par_body_owners::::{closure#0} + 65: 0x10bb6e9b8 - ::run::<(), rustc_data_structures[4a438291929cf436]::sync::parallel::enabled::par_for_each_in<&rustc_span[8788673922ec3ae1]::def_id::LocalDefId, &[rustc_span[8788673922ec3ae1]::def_id::LocalDefId], ::par_body_owners::{closure#0}>::{closure#0}::{closure#0}::{closure#0}> + 66: 0x10bb6d9a0 - rustc_hir_analysis[3be39a9c48dd4c06]::check_crate + 67: 0x10c19af90 - rustc_interface[c88b6df23cac61ce]::passes::analysis + 68: 0x10cd4fbe8 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 69: 0x10cf1cfd4 - >::call_once + 70: 0x10cc6a714 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 71: 0x10ce81cc8 - rustc_query_impl[4de7ee3194b11efa]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace + 72: 0x10b84129c - ::enter::> + 73: 0x10b84f498 - ::enter::, rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 74: 0x10b879e10 - rustc_span[8788673922ec3ae1]::create_session_globals_then::, rustc_interface[c88b6df23cac61ce]::util::run_in_thread_with_globals, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}> + 75: 0x10b84302c - std[c0699ea198d25f18]::sys::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 76: 0x10b877d64 - <::spawn_unchecked_, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#2} as core[5adf5740b9e46934]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 77: 0x1019f2374 - std::sys::pal::unix::thread::Thread::new::thread_start::h9c452b63693017ce + 78: 0x195cb72e4 - __pthread_deallocate + + +query stack during panic: +#0 [evaluate_obligation] evaluating trait selection obligation `openraft::storage::snapshot::Snapshot: core::marker::Send` +#1 [typeck] type-checking `main` +#2 [analysis] running analysis passes on this crate +end of query stack diff --git a/examples/raft-kv-memstore-grpc/rustc-ice-2024-12-10T18_11_38-88702.txt b/examples/raft-kv-memstore-grpc/rustc-ice-2024-12-10T18_11_38-88702.txt new file mode 100644 index 000000000..21e889cfd --- /dev/null +++ b/examples/raft-kv-memstore-grpc/rustc-ice-2024-12-10T18_11_38-88702.txt @@ -0,0 +1,176 @@ +thread 'rustc' panicked at compiler/rustc_metadata/src/rmeta/def_path_hash_map.rs:23:54: +called `Option::unwrap()` on a `None` value +stack backtrace: + 0: 0x1033d8b00 - std::backtrace::Backtrace::create::hb0cc1249139a1455 + 1: 0x10d247690 - as core[5adf5740b9e46934]::ops::function::Fn<(&dyn for<'a, 'b> core[5adf5740b9e46934]::ops::function::Fn<(&'a std[c0699ea198d25f18]::panic::PanicHookInfo<'b>,), Output = ()> + core[5adf5740b9e46934]::marker::Sync + core[5adf5740b9e46934]::marker::Send, &std[c0699ea198d25f18]::panic::PanicHookInfo)>>::call + 2: 0x1033f1e28 - std::panicking::rust_panic_with_hook::h2116230dcb95ce5a + 3: 0x1033f1710 - std::panicking::begin_panic_handler::{{closure}}::hf100b4a3ea76eab7 + 4: 0x1033ef2bc - std::sys::backtrace::__rust_end_short_backtrace::h45852148cffd4f7d + 5: 0x1033f1400 - _rust_begin_unwind + 6: 0x10344ca6c - core::panicking::panic_fmt::hbd81035675c8e9f6 + 7: 0x10344cad8 - core::panicking::panic::hb5be5f7e0a537da8 + 8: 0x10344c9f4 - core::option::unwrap_failed::he0e81e69c8cc5ecb + 9: 0x10ddd82c8 - >::call_once + 10: 0x10de385b8 - ::def_path_hash_to_def_id + 11: 0x10e727878 - ::{closure#0} as core[5adf5740b9e46934]::ops::function::FnOnce<(rustc_middle[6f39fb7e2a7faa6a]::ty::context::TyCtxt, rustc_query_system[ece7294309cc0af]::dep_graph::dep_node::DepNode)>>::call_once + 12: 0x10e8b9f00 - >::try_mark_previous_green:: + 13: 0x10e8b9f4c - >::try_mark_previous_green:: + 14: 0x10e8b9f4c - >::try_mark_previous_green:: + 15: 0x10e8b9f4c - >::try_mark_previous_green:: + 16: 0x10e8b9f4c - >::try_mark_previous_green:: + 17: 0x10e8b9f4c - >::try_mark_previous_green:: + 18: 0x10e8b9f4c - >::try_mark_previous_green:: + 19: 0x10e8b9f4c - >::try_mark_previous_green:: + 20: 0x10e8b9f4c - >::try_mark_previous_green:: + 21: 0x10e8b9f4c - >::try_mark_previous_green:: + 22: 0x10e8b9f4c - >::try_mark_previous_green:: + 23: 0x10e8b9ccc - >::try_mark_green:: + 24: 0x10e68b0f4 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, rustc_middle[6f39fb7e2a7faa6a]::query::erase::Erased<[u8; 2usize]>>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 25: 0x10e8b2ecc - rustc_query_impl[4de7ee3194b11efa]::query_impl::evaluate_obligation::get_query_incr::__rust_end_short_backtrace + 26: 0x10ed0bee0 - ::evaluate_obligation + 27: 0x10ed0c488 - ::evaluate_obligation_no_overflow + 28: 0x10eceb86c - ::process_trait_obligation + 29: 0x10ecead98 - ::process_obligation + 30: 0x10d803cd0 - >::process_obligations:: + 31: 0x10d7c5218 - as rustc_infer[468610b7cf94ec88]::traits::engine::TraitEngine>::select_where_possible + 32: 0x10d6eee94 - ::check_argument_types + 33: 0x10d6ee70c - ::check_method_argument_types + 34: 0x10d73a07c - ::check_expr_kind + 35: 0x10d6d7eac - ::check_expr_with_expectation_and_args + 36: 0x10d7317a0 - ::check_expr_kind + 37: 0x10d6d7eac - ::check_expr_with_expectation_and_args + 38: 0x10d7317a0 - ::check_expr_kind + 39: 0x10d6d7eac - ::check_expr_with_expectation_and_args + 40: 0x10d7317a0 - ::check_expr_kind + 41: 0x10d6d7eac - ::check_expr_with_expectation_and_args + 42: 0x10d6f5dc4 - ::check_decl + 43: 0x10d6f647c - ::check_block_with_expected + 44: 0x10d6d7eac - ::check_expr_with_expectation_and_args + 45: 0x10d6d8aa8 - ::check_return_expr + 46: 0x10d88a494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 47: 0x10d738294 - ::check_expr_kind + 48: 0x10d6d7eac - ::check_expr_with_expectation_and_args + 49: 0x10d6f5dc4 - ::check_decl + 50: 0x10d6f647c - ::check_block_with_expected + 51: 0x10d6d7eac - ::check_expr_with_expectation_and_args + 52: 0x10d6d8aa8 - ::check_return_expr + 53: 0x10d88a494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 54: 0x10d833618 - rustc_hir_typeck[8a5a263a57e61841]::typeck + 55: 0x10e757ad4 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 56: 0x10e8687c4 - >::call_once + 57: 0x10e700b44 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 58: 0x10e89878c - rustc_query_impl[4de7ee3194b11efa]::query_impl::typeck::get_query_incr::__rust_end_short_backtrace + 59: 0x10d585b18 - ::par_body_owners::::{closure#0} + 60: 0x10d5769b8 - ::run::<(), rustc_data_structures[4a438291929cf436]::sync::parallel::enabled::par_for_each_in<&rustc_span[8788673922ec3ae1]::def_id::LocalDefId, &[rustc_span[8788673922ec3ae1]::def_id::LocalDefId], ::par_body_owners::{closure#0}>::{closure#0}::{closure#0}::{closure#0}> + 61: 0x10d5759a0 - rustc_hir_analysis[3be39a9c48dd4c06]::check_crate + 62: 0x10dba2f90 - rustc_interface[c88b6df23cac61ce]::passes::analysis + 63: 0x10e757be8 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 64: 0x10e924fd4 - >::call_once + 65: 0x10e672714 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 66: 0x10e889cc8 - rustc_query_impl[4de7ee3194b11efa]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace + 67: 0x10d24929c - ::enter::> + 68: 0x10d257498 - ::enter::, rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 69: 0x10d281e10 - rustc_span[8788673922ec3ae1]::create_session_globals_then::, rustc_interface[c88b6df23cac61ce]::util::run_in_thread_with_globals, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}> + 70: 0x10d24b02c - std[c0699ea198d25f18]::sys::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 71: 0x10d27fd64 - <::spawn_unchecked_, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#2} as core[5adf5740b9e46934]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 72: 0x1033fa374 - std::sys::pal::unix::thread::Thread::new::thread_start::h9c452b63693017ce + 73: 0x195cb72e4 - __pthread_deallocate + + +rustc version: 1.81.0-nightly (cf2df68d1 2024-07-01) +platform: aarch64-apple-darwin + +query stack during panic: +#0 [evaluate_obligation] evaluating trait selection obligation `openraft::storage::snapshot::Snapshot: core::marker::Send` +#1 [typeck] type-checking `main` +#2 [analysis] running analysis passes on this crate +end of query stack +thread 'rustc' panicked at compiler/rustc_metadata/src/rmeta/def_path_hash_map.rs:23:54: +called `Option::unwrap()` on a `None` value +stack backtrace: + 0: 0x1033d8b00 - std::backtrace::Backtrace::create::hb0cc1249139a1455 + 1: 0x10d247690 - as core[5adf5740b9e46934]::ops::function::Fn<(&dyn for<'a, 'b> core[5adf5740b9e46934]::ops::function::Fn<(&'a std[c0699ea198d25f18]::panic::PanicHookInfo<'b>,), Output = ()> + core[5adf5740b9e46934]::marker::Sync + core[5adf5740b9e46934]::marker::Send, &std[c0699ea198d25f18]::panic::PanicHookInfo)>>::call + 2: 0x1033f1e28 - std::panicking::rust_panic_with_hook::h2116230dcb95ce5a + 3: 0x1033f1710 - std::panicking::begin_panic_handler::{{closure}}::hf100b4a3ea76eab7 + 4: 0x1033ef2bc - std::sys::backtrace::__rust_end_short_backtrace::h45852148cffd4f7d + 5: 0x1033f1400 - _rust_begin_unwind + 6: 0x10344ca6c - core::panicking::panic_fmt::hbd81035675c8e9f6 + 7: 0x10344cad8 - core::panicking::panic::hb5be5f7e0a537da8 + 8: 0x10344c9f4 - core::option::unwrap_failed::he0e81e69c8cc5ecb + 9: 0x10ddd82c8 - >::call_once + 10: 0x10de385b8 - ::def_path_hash_to_def_id + 11: 0x10db0a178 - rustc_interface[c88b6df23cac61ce]::callbacks::dep_node_debug + 12: 0x10e969540 - ::fmt + 13: 0x103432124 - core::fmt::write::ha0d0a570cdd0b640 + 14: 0x1033e3158 - <&std::io::stdio::Stderr as std::io::Write>::write_fmt::h6719717d6d9f7763 + 15: 0x1033e3b68 - std::io::stdio::_eprint::h397d20c6266f5912 + 16: 0x1117b7e24 - rustc_query_system[ece7294309cc0af]::dep_graph::graph::print_markframe_trace:: + 17: 0x10e8baa54 - >::try_mark_previous_green:: + 18: 0x10e8b9f4c - >::try_mark_previous_green:: + 19: 0x10e8b9f4c - >::try_mark_previous_green:: + 20: 0x10e8b9f4c - >::try_mark_previous_green:: + 21: 0x10e8b9f4c - >::try_mark_previous_green:: + 22: 0x10e8b9f4c - >::try_mark_previous_green:: + 23: 0x10e8b9f4c - >::try_mark_previous_green:: + 24: 0x10e8b9f4c - >::try_mark_previous_green:: + 25: 0x10e8b9f4c - >::try_mark_previous_green:: + 26: 0x10e8b9f4c - >::try_mark_previous_green:: + 27: 0x10e8b9f4c - >::try_mark_previous_green:: + 28: 0x10e8b9ccc - >::try_mark_green:: + 29: 0x10e68b0f4 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, rustc_middle[6f39fb7e2a7faa6a]::query::erase::Erased<[u8; 2usize]>>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 30: 0x10e8b2ecc - rustc_query_impl[4de7ee3194b11efa]::query_impl::evaluate_obligation::get_query_incr::__rust_end_short_backtrace + 31: 0x10ed0bee0 - ::evaluate_obligation + 32: 0x10ed0c488 - ::evaluate_obligation_no_overflow + 33: 0x10eceb86c - ::process_trait_obligation + 34: 0x10ecead98 - ::process_obligation + 35: 0x10d803cd0 - >::process_obligations:: + 36: 0x10d7c5218 - as rustc_infer[468610b7cf94ec88]::traits::engine::TraitEngine>::select_where_possible + 37: 0x10d6eee94 - ::check_argument_types + 38: 0x10d6ee70c - ::check_method_argument_types + 39: 0x10d73a07c - ::check_expr_kind + 40: 0x10d6d7eac - ::check_expr_with_expectation_and_args + 41: 0x10d7317a0 - ::check_expr_kind + 42: 0x10d6d7eac - ::check_expr_with_expectation_and_args + 43: 0x10d7317a0 - ::check_expr_kind + 44: 0x10d6d7eac - ::check_expr_with_expectation_and_args + 45: 0x10d7317a0 - ::check_expr_kind + 46: 0x10d6d7eac - ::check_expr_with_expectation_and_args + 47: 0x10d6f5dc4 - ::check_decl + 48: 0x10d6f647c - ::check_block_with_expected + 49: 0x10d6d7eac - ::check_expr_with_expectation_and_args + 50: 0x10d6d8aa8 - ::check_return_expr + 51: 0x10d88a494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 52: 0x10d738294 - ::check_expr_kind + 53: 0x10d6d7eac - ::check_expr_with_expectation_and_args + 54: 0x10d6f5dc4 - ::check_decl + 55: 0x10d6f647c - ::check_block_with_expected + 56: 0x10d6d7eac - ::check_expr_with_expectation_and_args + 57: 0x10d6d8aa8 - ::check_return_expr + 58: 0x10d88a494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 59: 0x10d833618 - rustc_hir_typeck[8a5a263a57e61841]::typeck + 60: 0x10e757ad4 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 61: 0x10e8687c4 - >::call_once + 62: 0x10e700b44 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 63: 0x10e89878c - rustc_query_impl[4de7ee3194b11efa]::query_impl::typeck::get_query_incr::__rust_end_short_backtrace + 64: 0x10d585b18 - ::par_body_owners::::{closure#0} + 65: 0x10d5769b8 - ::run::<(), rustc_data_structures[4a438291929cf436]::sync::parallel::enabled::par_for_each_in<&rustc_span[8788673922ec3ae1]::def_id::LocalDefId, &[rustc_span[8788673922ec3ae1]::def_id::LocalDefId], ::par_body_owners::{closure#0}>::{closure#0}::{closure#0}::{closure#0}> + 66: 0x10d5759a0 - rustc_hir_analysis[3be39a9c48dd4c06]::check_crate + 67: 0x10dba2f90 - rustc_interface[c88b6df23cac61ce]::passes::analysis + 68: 0x10e757be8 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 69: 0x10e924fd4 - >::call_once + 70: 0x10e672714 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 71: 0x10e889cc8 - rustc_query_impl[4de7ee3194b11efa]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace + 72: 0x10d24929c - ::enter::> + 73: 0x10d257498 - ::enter::, rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 74: 0x10d281e10 - rustc_span[8788673922ec3ae1]::create_session_globals_then::, rustc_interface[c88b6df23cac61ce]::util::run_in_thread_with_globals, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}> + 75: 0x10d24b02c - std[c0699ea198d25f18]::sys::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 76: 0x10d27fd64 - <::spawn_unchecked_, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#2} as core[5adf5740b9e46934]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 77: 0x1033fa374 - std::sys::pal::unix::thread::Thread::new::thread_start::h9c452b63693017ce + 78: 0x195cb72e4 - __pthread_deallocate + + +query stack during panic: +#0 [evaluate_obligation] evaluating trait selection obligation `openraft::storage::snapshot::Snapshot: core::marker::Send` +#1 [typeck] type-checking `main` +#2 [analysis] running analysis passes on this crate +end of query stack diff --git a/examples/raft-kv-memstore-grpc/rustc-ice-2024-12-10T18_11_46-88800.txt b/examples/raft-kv-memstore-grpc/rustc-ice-2024-12-10T18_11_46-88800.txt new file mode 100644 index 000000000..e2982f31c --- /dev/null +++ b/examples/raft-kv-memstore-grpc/rustc-ice-2024-12-10T18_11_46-88800.txt @@ -0,0 +1,176 @@ +thread 'rustc' panicked at compiler/rustc_metadata/src/rmeta/def_path_hash_map.rs:23:54: +called `Option::unwrap()` on a `None` value +stack backtrace: + 0: 0x101688b00 - std::backtrace::Backtrace::create::hb0cc1249139a1455 + 1: 0x10b4f7690 - as core[5adf5740b9e46934]::ops::function::Fn<(&dyn for<'a, 'b> core[5adf5740b9e46934]::ops::function::Fn<(&'a std[c0699ea198d25f18]::panic::PanicHookInfo<'b>,), Output = ()> + core[5adf5740b9e46934]::marker::Sync + core[5adf5740b9e46934]::marker::Send, &std[c0699ea198d25f18]::panic::PanicHookInfo)>>::call + 2: 0x1016a1e28 - std::panicking::rust_panic_with_hook::h2116230dcb95ce5a + 3: 0x1016a1710 - std::panicking::begin_panic_handler::{{closure}}::hf100b4a3ea76eab7 + 4: 0x10169f2bc - std::sys::backtrace::__rust_end_short_backtrace::h45852148cffd4f7d + 5: 0x1016a1400 - _rust_begin_unwind + 6: 0x1016fca6c - core::panicking::panic_fmt::hbd81035675c8e9f6 + 7: 0x1016fcad8 - core::panicking::panic::hb5be5f7e0a537da8 + 8: 0x1016fc9f4 - core::option::unwrap_failed::he0e81e69c8cc5ecb + 9: 0x10c0882c8 - >::call_once + 10: 0x10c0e85b8 - ::def_path_hash_to_def_id + 11: 0x10c9d7878 - ::{closure#0} as core[5adf5740b9e46934]::ops::function::FnOnce<(rustc_middle[6f39fb7e2a7faa6a]::ty::context::TyCtxt, rustc_query_system[ece7294309cc0af]::dep_graph::dep_node::DepNode)>>::call_once + 12: 0x10cb69f00 - >::try_mark_previous_green:: + 13: 0x10cb69f4c - >::try_mark_previous_green:: + 14: 0x10cb69f4c - >::try_mark_previous_green:: + 15: 0x10cb69f4c - >::try_mark_previous_green:: + 16: 0x10cb69f4c - >::try_mark_previous_green:: + 17: 0x10cb69f4c - >::try_mark_previous_green:: + 18: 0x10cb69f4c - >::try_mark_previous_green:: + 19: 0x10cb69f4c - >::try_mark_previous_green:: + 20: 0x10cb69f4c - >::try_mark_previous_green:: + 21: 0x10cb69f4c - >::try_mark_previous_green:: + 22: 0x10cb69f4c - >::try_mark_previous_green:: + 23: 0x10cb69ccc - >::try_mark_green:: + 24: 0x10c93b0f4 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, rustc_middle[6f39fb7e2a7faa6a]::query::erase::Erased<[u8; 2usize]>>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 25: 0x10cb62ecc - rustc_query_impl[4de7ee3194b11efa]::query_impl::evaluate_obligation::get_query_incr::__rust_end_short_backtrace + 26: 0x10cfbbee0 - ::evaluate_obligation + 27: 0x10cfbc488 - ::evaluate_obligation_no_overflow + 28: 0x10cf9b86c - ::process_trait_obligation + 29: 0x10cf9ad98 - ::process_obligation + 30: 0x10bab3cd0 - >::process_obligations:: + 31: 0x10ba75218 - as rustc_infer[468610b7cf94ec88]::traits::engine::TraitEngine>::select_where_possible + 32: 0x10b99ee94 - ::check_argument_types + 33: 0x10b99e70c - ::check_method_argument_types + 34: 0x10b9ea07c - ::check_expr_kind + 35: 0x10b987eac - ::check_expr_with_expectation_and_args + 36: 0x10b9e17a0 - ::check_expr_kind + 37: 0x10b987eac - ::check_expr_with_expectation_and_args + 38: 0x10b9e17a0 - ::check_expr_kind + 39: 0x10b987eac - ::check_expr_with_expectation_and_args + 40: 0x10b9e17a0 - ::check_expr_kind + 41: 0x10b987eac - ::check_expr_with_expectation_and_args + 42: 0x10b9a5dc4 - ::check_decl + 43: 0x10b9a647c - ::check_block_with_expected + 44: 0x10b987eac - ::check_expr_with_expectation_and_args + 45: 0x10b988aa8 - ::check_return_expr + 46: 0x10bb3a494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 47: 0x10b9e8294 - ::check_expr_kind + 48: 0x10b987eac - ::check_expr_with_expectation_and_args + 49: 0x10b9a5dc4 - ::check_decl + 50: 0x10b9a647c - ::check_block_with_expected + 51: 0x10b987eac - ::check_expr_with_expectation_and_args + 52: 0x10b988aa8 - ::check_return_expr + 53: 0x10bb3a494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 54: 0x10bae3618 - rustc_hir_typeck[8a5a263a57e61841]::typeck + 55: 0x10ca07ad4 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 56: 0x10cb187c4 - >::call_once + 57: 0x10c9b0b44 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 58: 0x10cb4878c - rustc_query_impl[4de7ee3194b11efa]::query_impl::typeck::get_query_incr::__rust_end_short_backtrace + 59: 0x10b835b18 - ::par_body_owners::::{closure#0} + 60: 0x10b8269b8 - ::run::<(), rustc_data_structures[4a438291929cf436]::sync::parallel::enabled::par_for_each_in<&rustc_span[8788673922ec3ae1]::def_id::LocalDefId, &[rustc_span[8788673922ec3ae1]::def_id::LocalDefId], ::par_body_owners::{closure#0}>::{closure#0}::{closure#0}::{closure#0}> + 61: 0x10b8259a0 - rustc_hir_analysis[3be39a9c48dd4c06]::check_crate + 62: 0x10be52f90 - rustc_interface[c88b6df23cac61ce]::passes::analysis + 63: 0x10ca07be8 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 64: 0x10cbd4fd4 - >::call_once + 65: 0x10c922714 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 66: 0x10cb39cc8 - rustc_query_impl[4de7ee3194b11efa]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace + 67: 0x10b4f929c - ::enter::> + 68: 0x10b507498 - ::enter::, rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 69: 0x10b531e10 - rustc_span[8788673922ec3ae1]::create_session_globals_then::, rustc_interface[c88b6df23cac61ce]::util::run_in_thread_with_globals, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}> + 70: 0x10b4fb02c - std[c0699ea198d25f18]::sys::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 71: 0x10b52fd64 - <::spawn_unchecked_, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#2} as core[5adf5740b9e46934]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 72: 0x1016aa374 - std::sys::pal::unix::thread::Thread::new::thread_start::h9c452b63693017ce + 73: 0x195cb72e4 - __pthread_deallocate + + +rustc version: 1.81.0-nightly (cf2df68d1 2024-07-01) +platform: aarch64-apple-darwin + +query stack during panic: +#0 [evaluate_obligation] evaluating trait selection obligation `openraft::storage::snapshot::Snapshot: core::marker::Send` +#1 [typeck] type-checking `main` +#2 [analysis] running analysis passes on this crate +end of query stack +thread 'rustc' panicked at compiler/rustc_metadata/src/rmeta/def_path_hash_map.rs:23:54: +called `Option::unwrap()` on a `None` value +stack backtrace: + 0: 0x101688b00 - std::backtrace::Backtrace::create::hb0cc1249139a1455 + 1: 0x10b4f7690 - as core[5adf5740b9e46934]::ops::function::Fn<(&dyn for<'a, 'b> core[5adf5740b9e46934]::ops::function::Fn<(&'a std[c0699ea198d25f18]::panic::PanicHookInfo<'b>,), Output = ()> + core[5adf5740b9e46934]::marker::Sync + core[5adf5740b9e46934]::marker::Send, &std[c0699ea198d25f18]::panic::PanicHookInfo)>>::call + 2: 0x1016a1e28 - std::panicking::rust_panic_with_hook::h2116230dcb95ce5a + 3: 0x1016a1710 - std::panicking::begin_panic_handler::{{closure}}::hf100b4a3ea76eab7 + 4: 0x10169f2bc - std::sys::backtrace::__rust_end_short_backtrace::h45852148cffd4f7d + 5: 0x1016a1400 - _rust_begin_unwind + 6: 0x1016fca6c - core::panicking::panic_fmt::hbd81035675c8e9f6 + 7: 0x1016fcad8 - core::panicking::panic::hb5be5f7e0a537da8 + 8: 0x1016fc9f4 - core::option::unwrap_failed::he0e81e69c8cc5ecb + 9: 0x10c0882c8 - >::call_once + 10: 0x10c0e85b8 - ::def_path_hash_to_def_id + 11: 0x10bdba178 - rustc_interface[c88b6df23cac61ce]::callbacks::dep_node_debug + 12: 0x10cc19540 - ::fmt + 13: 0x1016e2124 - core::fmt::write::ha0d0a570cdd0b640 + 14: 0x101693158 - <&std::io::stdio::Stderr as std::io::Write>::write_fmt::h6719717d6d9f7763 + 15: 0x101693b68 - std::io::stdio::_eprint::h397d20c6266f5912 + 16: 0x10fa67e24 - rustc_query_system[ece7294309cc0af]::dep_graph::graph::print_markframe_trace:: + 17: 0x10cb6aa54 - >::try_mark_previous_green:: + 18: 0x10cb69f4c - >::try_mark_previous_green:: + 19: 0x10cb69f4c - >::try_mark_previous_green:: + 20: 0x10cb69f4c - >::try_mark_previous_green:: + 21: 0x10cb69f4c - >::try_mark_previous_green:: + 22: 0x10cb69f4c - >::try_mark_previous_green:: + 23: 0x10cb69f4c - >::try_mark_previous_green:: + 24: 0x10cb69f4c - >::try_mark_previous_green:: + 25: 0x10cb69f4c - >::try_mark_previous_green:: + 26: 0x10cb69f4c - >::try_mark_previous_green:: + 27: 0x10cb69f4c - >::try_mark_previous_green:: + 28: 0x10cb69ccc - >::try_mark_green:: + 29: 0x10c93b0f4 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, rustc_middle[6f39fb7e2a7faa6a]::query::erase::Erased<[u8; 2usize]>>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 30: 0x10cb62ecc - rustc_query_impl[4de7ee3194b11efa]::query_impl::evaluate_obligation::get_query_incr::__rust_end_short_backtrace + 31: 0x10cfbbee0 - ::evaluate_obligation + 32: 0x10cfbc488 - ::evaluate_obligation_no_overflow + 33: 0x10cf9b86c - ::process_trait_obligation + 34: 0x10cf9ad98 - ::process_obligation + 35: 0x10bab3cd0 - >::process_obligations:: + 36: 0x10ba75218 - as rustc_infer[468610b7cf94ec88]::traits::engine::TraitEngine>::select_where_possible + 37: 0x10b99ee94 - ::check_argument_types + 38: 0x10b99e70c - ::check_method_argument_types + 39: 0x10b9ea07c - ::check_expr_kind + 40: 0x10b987eac - ::check_expr_with_expectation_and_args + 41: 0x10b9e17a0 - ::check_expr_kind + 42: 0x10b987eac - ::check_expr_with_expectation_and_args + 43: 0x10b9e17a0 - ::check_expr_kind + 44: 0x10b987eac - ::check_expr_with_expectation_and_args + 45: 0x10b9e17a0 - ::check_expr_kind + 46: 0x10b987eac - ::check_expr_with_expectation_and_args + 47: 0x10b9a5dc4 - ::check_decl + 48: 0x10b9a647c - ::check_block_with_expected + 49: 0x10b987eac - ::check_expr_with_expectation_and_args + 50: 0x10b988aa8 - ::check_return_expr + 51: 0x10bb3a494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 52: 0x10b9e8294 - ::check_expr_kind + 53: 0x10b987eac - ::check_expr_with_expectation_and_args + 54: 0x10b9a5dc4 - ::check_decl + 55: 0x10b9a647c - ::check_block_with_expected + 56: 0x10b987eac - ::check_expr_with_expectation_and_args + 57: 0x10b988aa8 - ::check_return_expr + 58: 0x10bb3a494 - rustc_hir_typeck[8a5a263a57e61841]::check::check_fn + 59: 0x10bae3618 - rustc_hir_typeck[8a5a263a57e61841]::typeck + 60: 0x10ca07ad4 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 61: 0x10cb187c4 - >::call_once + 62: 0x10c9b0b44 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 63: 0x10cb4878c - rustc_query_impl[4de7ee3194b11efa]::query_impl::typeck::get_query_incr::__rust_end_short_backtrace + 64: 0x10b835b18 - ::par_body_owners::::{closure#0} + 65: 0x10b8269b8 - ::run::<(), rustc_data_structures[4a438291929cf436]::sync::parallel::enabled::par_for_each_in<&rustc_span[8788673922ec3ae1]::def_id::LocalDefId, &[rustc_span[8788673922ec3ae1]::def_id::LocalDefId], ::par_body_owners::{closure#0}>::{closure#0}::{closure#0}::{closure#0}> + 66: 0x10b8259a0 - rustc_hir_analysis[3be39a9c48dd4c06]::check_crate + 67: 0x10be52f90 - rustc_interface[c88b6df23cac61ce]::passes::analysis + 68: 0x10ca07be8 - rustc_query_impl[4de7ee3194b11efa]::plumbing::__rust_begin_short_backtrace::> + 69: 0x10cbd4fd4 - >::call_once + 70: 0x10c922714 - rustc_query_system[ece7294309cc0af]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[4de7ee3194b11efa]::plumbing::QueryCtxt, true> + 71: 0x10cb39cc8 - rustc_query_impl[4de7ee3194b11efa]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace + 72: 0x10b4f929c - ::enter::> + 73: 0x10b507498 - ::enter::, rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 74: 0x10b531e10 - rustc_span[8788673922ec3ae1]::create_session_globals_then::, rustc_interface[c88b6df23cac61ce]::util::run_in_thread_with_globals, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}> + 75: 0x10b4fb02c - std[c0699ea198d25f18]::sys::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>> + 76: 0x10b52fd64 - <::spawn_unchecked_, rustc_driver_impl[e7b8c3572b232ce2]::run_compiler::{closure#0}>::{closure#1}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5adf5740b9e46934]::result::Result<(), rustc_span[8788673922ec3ae1]::ErrorGuaranteed>>::{closure#2} as core[5adf5740b9e46934]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 77: 0x1016aa374 - std::sys::pal::unix::thread::Thread::new::thread_start::h9c452b63693017ce + 78: 0x195cb72e4 - __pthread_deallocate + + +query stack during panic: +#0 [evaluate_obligation] evaluating trait selection obligation `openraft::storage::snapshot::Snapshot: core::marker::Send` +#1 [typeck] type-checking `main` +#2 [analysis] running analysis passes on this crate +end of query stack diff --git a/examples/raft-kv-memstore-grpc/src/grpc/management_service.rs b/examples/raft-kv-memstore-grpc/src/grpc/management_service.rs index 4bc773b35..ae6ffcb0a 100644 --- a/examples/raft-kv-memstore-grpc/src/grpc/management_service.rs +++ b/examples/raft-kv-memstore-grpc/src/grpc/management_service.rs @@ -107,7 +107,7 @@ impl ManagementService for ManagementServiceImpl { let result = self .raft_node - .add_learner(node.node_id, raft_node, req.blocking) + .add_learner(node.node_id, raft_node, true) .await .map_err(|e| Status::internal(format!("Failed to add learner node: {}", e)))?; diff --git a/examples/raft-kv-memstore-grpc/src/lib.rs b/examples/raft-kv-memstore-grpc/src/lib.rs index 08a12e8d5..97282e699 100644 --- a/examples/raft-kv-memstore-grpc/src/lib.rs +++ b/examples/raft-kv-memstore-grpc/src/lib.rs @@ -1,7 +1,6 @@ #![allow(clippy::uninlined_format_args)] -use std::fmt::Display; - +use crate::protobuf::Node; use crate::store::Request; use crate::store::Response; @@ -25,18 +24,6 @@ pub type LogStore = store::LogStore; pub type StateMachineStore = store::StateMachineStore; pub type Raft = openraft::Raft; -#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, PartialEq, Eq, Default)] -pub struct Node { - pub node_id: u64, - pub rpc_addr: String, -} - -impl Display for Node { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "Node {{ rpc_addr: {}, node_id: {} }}", self.rpc_addr, self.node_id) - } -} - pub mod protobuf { tonic::include_proto!("openraftpb"); }