Closed Ray-Eldath closed 3 years ago
Your nightly is pretty old and this could be a duplicate of https://github.com/rust-lang/rust/issues/84970
Would you mind updating your compiler via rustup update
and try again?
this is fixed by https://github.com/tikv/tikv/pull/10638, turns out the relatively old version of rust-toolchain is the sin. Many thanks!
Code
This ICE originated from a building attempt of TiKV, a rather well-known key-value store implemented in Rust. I couldn't extract a minimap working example out from it (Sorry), but to reproduce the ICE is rather simple:
git clone https://github.com/tikv/tikv
git checkout 75721a3a
RUSTFLAGS="-Z instrument-coverage" cargo build
RUSTFLAGS="-Z instrument-coverage" cargo build
, againThis ICE is reproducible. Except for the first time, each time you invoke
RUSTFLAGS="-Z instrument-coverage" cargo build
will give you an ICE.The thing is that if you run
cargo clean
before you build again, it'll works fine (but all deps need to be rebuilt). And if you built without-Z instrument-coverage
, it will build successfully as well.I suppose this have something to do with incremental building, caching and MIR (seems
instrument-coverage
works at this level, and the error message also suggest this).Meta
rustc --version --verbose
:Note that
-Z instrument-coverage
only works on nightly versions.Error output
Backtrace
``` root@IDC-172-16-6-59 /d/tikv ((75721a3a…))# RUSTFLAGS="-Z instrument-coverage" RUST_BACKTRACE=1 cargo build Compiling tikv-server v0.0.1 (/data1/tikv/cmd/tikv-server) Compiling tikv-ctl v0.0.1 (/data1/tikv/cmd/tikv-ctl) Compiling coprocessor_plugin_api v0.1.0 (/data1/tikv/components/coprocessor_plugin_api) Compiling tikv v5.1.0-alpha (/data1/tikv) Compiling resolved_ts v0.0.1 (/data1/tikv/components/resolved_ts) Compiling backup v0.0.1 (/data1/tikv/components/backup) Compiling cdc v0.0.1 (/data1/tikv/components/cdc) Compiling server v0.0.1 (/data1/tikv/components/server) thread 'rustc' panicked at 'assertion failed: `(left == right)` left: `Some(Fingerprint(744976991366620565, 4903258567134195453))`, right: `Some(Fingerprint(9945911964289799804, 5137872301857410145))`: found unstable fingerprints for optimized_mir(tikv[b254]::server::service::kv::{impl#2}::kv_get::{closure#3}): Body { basic_blocks: [BasicBlockData { statements: [_11 = const false, _11 = const true, Coverage::Expression(4294967295) = 1 + 0 for src/server/proxy.rs:204:18 - 205:14, Coverage::Counter(1) for src/server/proxy.rs:184:59 - 188:41, _5 = _2, _7 = &(_1.0: kvproto::kvrpcpb::GetRequest), _6 = _7], terminator: Some(Terminator { source_info: SourceInfo { span: /data1/tikv/src/server/proxy.rs:186:21: 186:51 (#11264), scope: scope[0] }, kind: _4 = TikvClient::kv_get_async(move _5, move _6) -> [return: bb1, unwind: bb9] }), is_cleanup: false }, BasicBlockData { statements: [], terminator: Some(Terminator { source_info: SourceInfo { span: /data1/tikv/src/server/proxy.rs:186:21: 186:60 (#11264), scope: scope[0] }, kind: _3 = Result::, grpcio::Error>::unwrap(move _4) -> [return: bb2, unwind: bb9] }), is_cleanup: false }, BasicBlockData { statements: [_8 = _2, _11 = const false, (_10.0: grpcio::ClientUnaryReceiver) = move _3, (_10.1: grpcio::UnarySink) = move (_1.1: grpcio::UnarySink), discriminant(_10) = 0], terminator: Some(Terminator { source_info: SourceInfo { span: /data1/tikv/src/server/proxy.rs:188:30: 204:18 (#11264), scope: scope[1] }, kind: _9 = from_generator::<[static generator@ as Tikv>::kv_get::{closure#3}::{closure#0} {ResumeTy, ClientUnaryReceiver, (), Result, kvproto::kvrpcpb::GetResponse, UnarySink, UnarySinkResult, RpcStatus}]>(move _10) -> [return: bb3, unwind: bb9] }), is_cleanup: false }, BasicBlockData { statements: [], terminator: Some(Terminator { source_info: SourceInfo { span: /data1/tikv/src/server/proxy.rs:188:17: 204:19 (#11264), scope: scope[1] }, kind: _0 = TikvClient::spawn::(move _8, move _9) -> [return: bb4, unwind: bb9] }), is_cleanup: false }, BasicBlockData { statements: [], terminator: Some(Terminator { source_info: SourceInfo { span: /data1/tikv/src/server/proxy.rs:205:13: 205:14 (#11264), scope: scope[0] }, kind: drop((_1.0: kvproto::kvrpcpb::GetRequest)) -> bb6 }), is_cleanup: false }, BasicBlockData { statements: [], terminator: Some(Terminator { source_info: SourceInfo { span: /data1/tikv/src/server/proxy.rs:184:45: 205:14 (#11264), scope: scope[0] }, kind: resume }), is_cleanup: true }, BasicBlockData { statements: [], terminator: Some(Terminator { source_info: SourceInfo { span: /data1/tikv/src/server/proxy.rs:205:14: 205:14 (#11264), scope: scope[0] }, kind: return }), is_cleanup: false }, BasicBlockData { statements: [], terminator: Some(Terminator { source_info: SourceInfo { span: /data1/tikv/src/server/proxy.rs:205:13: 205:14 (#11264), scope: scope[0] }, kind: switchInt(_11) -> [false: bb5, otherwise: bb8] }), is_cleanup: true }, BasicBlockData { statements: [], terminator: Some(Terminator { source_info: SourceInfo { span: /data1/tikv/src/server/proxy.rs:205:13: 205:14 (#11264), scope: scope[0] }, kind: drop((_1.1: grpcio::UnarySink)) -> bb5 }), is_cleanup: true }, BasicBlockData { statements: [], terminator: Some(Terminator { source_info: SourceInfo { span: /data1/tikv/src/server/proxy.rs:205:13: 205:14 (#11264), scope: scope[0] }, kind: drop((_1.0: kvproto::kvrpcpb::GetRequest)) -> bb7 }), is_cleanup: true }], phase: Optimization, source: MirSource { instance: Item(WithOptConstParam { did: DefId(205:23413 ~ tikv[b254]::server::service::kv::{impl#2}::kv_get::{closure#3}), const_param_did: None }), promoted: None }, source_scopes: [SourceScopeData { span: /data1/tikv/src/server/proxy.rs:184:45: 205:14 (#11264), parent_scope: None, inlined: None, inlined_parent_scope: None, local_data: Clear }, SourceScopeData { span: /data1/tikv/src/server/proxy.rs:185:17: 205:14 (#11264), parent_scope: Some(scope[0]), inlined: None, inlined_parent_scope: None, local_data: Clear }], generator: None, local_decls: [LocalDecl { mutability: Mut, local_info: None, internal: false, is_block_tail: None, ty: (), user_ty: None, source_info: SourceInfo { span: /data1/tikv/src/server/proxy.rs:184:59: 184:59 (#11264), scope: scope[0] } }, LocalDecl { mutability: Mut, local_info: None, internal: false, is_block_tail: None, ty: [closure@ as kvproto::tikvpb::Tikv>::kv_get::{closure#3}], user_ty: None, source_info: SourceInfo { span: /data1/tikv/src/server/proxy.rs:184:45: 205:14 (#11264), scope: scope[0] } }, LocalDecl { mutability: Not, local_info: Some(User(Clear)), internal: false, is_block_tail: None, ty: &kvproto::tikvpb::TikvClient, user_ty: None, source_info: SourceInfo { span: /data1/tikv/src/server/proxy.rs:184:51: 184:57 (#11264), scope: scope[0] } }, LocalDecl { mutability: Not, local_info: Some(User(Clear)), internal: false, is_block_tail: None, ty: grpcio::ClientUnaryReceiver, user_ty: None, source_info: SourceInfo { span: /data1/tikv/src/server/proxy.rs:185:21: 185:22 (#11264), scope: scope[0] } }, LocalDecl { mutability: Mut, local_info: None, internal: false, is_block_tail: None, ty: std::result::Result, grpcio::Error>, user_ty: None, source_info: SourceInfo { span: /data1/tikv/src/server/proxy.rs:186:21: 186:51 (#11264), scope: scope[0] } }, LocalDecl { mutability: Mut, local_info: None, internal: false, is_block_tail: None, ty: &kvproto::tikvpb::TikvClient, user_ty: None, source_info: SourceInfo { span: /data1/tikv/src/server/proxy.rs:186:21: 186:27 (#11264), scope: scope[0] } }, LocalDecl { mutability: Mut, local_info: None, internal: false, is_block_tail: None, ty: &kvproto::kvrpcpb::GetRequest, user_ty: None, source_info: SourceInfo { span: /data1/tikv/src/lib.rs:1:1: 1:1 (#11264), scope: scope[0] } }, LocalDecl { mutability: Not, local_info: None, internal: false, is_block_tail: None, ty: &kvproto::kvrpcpb::GetRequest, user_ty: None, source_info: SourceInfo { span: /data1/tikv/src/lib.rs:1:1: 1:1 (#11264), scope: scope[0] } }, LocalDecl { mutability: Mut, local_info: None, internal: false, is_block_tail: Some(BlockTailInfo { tail_result_is_ignored: true, span: /data1/tikv/src/server/proxy.rs:188:17: 204:19 (#11264) }), ty: &kvproto::tikvpb::TikvClient, user_ty: None, source_info: SourceInfo { span: /data1/tikv/src/server/proxy.rs:188:17: 188:23 (#11264), scope: scope[0] } }, LocalDecl { mutability: Mut, local_info: None, internal: false, is_block_tail: Some(BlockTailInfo { tail_result_is_ignored: true, span: /data1/tikv/src/server/proxy.rs:188:17: 204:19 (#11264) }), ty: impl futures::Future, user_ty: None, source_info: SourceInfo { span: /data1/tikv/src/server/proxy.rs:188:30: 204:18 (#11264), scope: scope[0] } }, LocalDecl { mutability: Mut, local_info: None, internal: false, is_block_tail: Some(BlockTailInfo { tail_result_is_ignored: true, span: /data1/tikv/src/server/proxy.rs:188:17: 204:19 (#11264) }), ty: [static generator@ as kvproto::tikvpb::Tikv>::kv_get::{closure#3}::{closure#0} {std::future::ResumeTy, grpcio::ClientUnaryReceiver, (), std::result::Result, kvproto::kvrpcpb::GetResponse, grpcio::UnarySink, grpcio::UnarySinkResult, grpcio::RpcStatus}], user_ty: None, source_info: SourceInfo { span: /data1/tikv/src/server/proxy.rs:188:41: 204:18 (#11264), scope: scope[0] } }, LocalDecl { mutability: Mut, local_info: None, internal: true, is_block_tail: None, ty: bool, user_ty: None, source_info: SourceInfo { span: /data1/tikv/src/server/proxy.rs:205:13: 205:14 (#11264), scope: scope[0] } }], user_type_annotations: [], arg_count: 2, spread_arg: None, var_debug_info: [VarDebugInfo { name: "client", source_info: SourceInfo { span: /data1/tikv/src/server/proxy.rs:184:51: 184:57 (#11264), scope: scope[0] }, value: _2 }, VarDebugInfo { name: "req", source_info: SourceInfo { span: /data1/tikv/src/server/service/kv.rs:169:53: 169:56 (#11265), scope: scope[0] }, value: (_1.0: kvproto::kvrpcpb::GetRequest) }, VarDebugInfo { name: "sink", source_info: SourceInfo { span: /data1/tikv/src/server/service/kv.rs:169:67: 169:71 (#11265), scope: scope[0] }, value: (_1.1: grpcio::UnarySink) }, VarDebugInfo { name: "f", source_info: SourceInfo { span: /data1/tikv/src/server/proxy.rs:185:21: 185:22 (#11264), scope: scope[1] }, value: _3 }], span: /data1/tikv/src/server/proxy.rs:184:45: 205:14 (#11264), required_consts: [], is_polymorphic: true, predecessor_cache: PredecessorCache { cache: OnceCell(Uninit) }, is_cyclic: GraphIsCyclicCache { cache: OnceCell(Uninit) } }', /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/compiler/rustc_query_system/src/query/plumbing.rs:593:5
stack backtrace:
0: rust_begin_unwind
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/std/src/panicking.rs:493:5
1: core::panicking::panic_fmt
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/panicking.rs:92:14
2: core::panicking::assert_failed_inner
3: core::panicking::assert_failed
4: rustc_query_system::query::plumbing::incremental_verify_ich
5: rustc_query_system::query::plumbing::load_from_disk_and_cache_in_memory
6: rustc_data_structures::stack::ensure_sufficient_stack
7: rustc_query_system::query::plumbing::get_query_impl
8: ::optimized_mir
9: rustc_middle::ty::::instance_mir
10: rustc_mir::monomorphize::collector::collect_neighbours
11: rustc_mir::monomorphize::collector::collect_items_rec
12: rustc_mir::monomorphize::collector::collect_items_rec
13: rustc_mir::monomorphize::collector::collect_items_rec
14: rustc_mir::monomorphize::collector::collect_items_rec
15: rustc_mir::monomorphize::collector::collect_items_rec
16: rustc_mir::monomorphize::collector::collect_items_rec
17: rustc_mir::monomorphize::collector::collect_items_rec
18: rustc_mir::monomorphize::collector::collect_items_rec
19: rustc_mir::monomorphize::collector::collect_items_rec
20: rustc_mir::monomorphize::collector::collect_items_rec
21: rustc_mir::monomorphize::collector::collect_items_rec
22: rustc_mir::monomorphize::collector::collect_items_rec
23: rustc_mir::monomorphize::collector::collect_items_rec
24: rustc_mir::monomorphize::collector::collect_items_rec
25: rustc_mir::monomorphize::collector::collect_items_rec
26: rustc_session::utils::::time
27: rustc_mir::monomorphize::collector::collect_crate_mono_items
28: rustc_mir::monomorphize::partitioning::collect_and_partition_mono_items
29: rustc_query_impl:: for rustc_query_impl::queries::collect_and_partition_mono_items>::compute
30: rustc_middle::dep_graph::::with_deps
31: rustc_query_system::dep_graph::graph::DepGraph::with_task_impl
32: rustc_data_structures::stack::ensure_sufficient_stack
33: rustc_query_system::query::plumbing::force_query_with_job
34: rustc_query_system::query::plumbing::force_query_impl
35: rustc_query_system::query::plumbing::force_query
36: rustc_query_impl::query_callbacks::collect_and_partition_mono_items::force_from_dep_node
37: rustc_query_system::dep_graph::graph::DepGraph::try_mark_previous_green
38: rustc_query_system::dep_graph::graph::DepGraph::try_mark_green_and_read
39: rustc_data_structures::stack::ensure_sufficient_stack
40: rustc_query_system::query::plumbing::get_query_impl
41: ::exported_symbols
42: rustc_metadata::rmeta::encoder::EncodeContext::encode_crate_root
43: rustc_metadata::rmeta::encoder::encode_metadata_impl
44: rustc_data_structures::sync::join
45: rustc_metadata::rmeta::decoder::cstore_impl::::encode_metadata
46: rustc_middle::ty::context::TyCtxt::encode_metadata
47: rustc_interface::passes::QueryContext::enter
48: rustc_interface::queries::Queries::ongoing_codegen
49: rustc_interface::queries::::enter
50: rustc_span::with_source_map
51: rustc_interface::interface::create_compiler_and_run
52: scoped_tls::ScopedKey::set
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
note: rustc 1.53.0-nightly (16bf626a3 2021-04-14) running on x86_64-unknown-linux-gnu
note: compiler flags: -Z instrument-coverage -C embed-bitcode=no -C codegen-units=4 -C debuginfo=1 -C overflow-checks=off -C incremental --crate-type lib
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [optimized_mir] optimizing MIR for ` as kvproto::tikvpb::Tikv>::kv_get::{closure#3}`
#1 [collect_and_partition_mono_items] collect_and_partition_mono_items
#2 [exported_symbols] exported_symbols
end of query stack
error: internal compiler error: trimmed_def_paths constructed
|
= note: delayed at 0: rustc_errors::Handler::delay_good_path_bug
1: rustc_middle::ty::print::pretty::trimmed_def_paths
2: rustc_query_impl:: for rustc_query_impl::queries::trimmed_def_paths>::compute
3: rustc_middle::dep_graph::::with_deps
4: rustc_query_system::dep_graph::graph::DepGraph::with_task_impl
5: rustc_data_structures::stack::ensure_sufficient_stack
6: rustc_query_system::query::plumbing::force_query_with_job
7: rustc_query_system::query::plumbing::get_query_impl
8: rustc_query_system::query::plumbing::get_query
9: as rustc_middle::ty::print::Printer>::print_def_path
10: rustc_middle::ty::print::pretty::PrettyPrinter::pretty_print_const_value
11: rustc_middle::ty::print::pretty::PrettyPrinter::pretty_print_const
12: rustc_middle::mir::pretty_print_const
13: core::fmt::write
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/fmt/mod.rs:1094:17
14: core::fmt::Formatter::write_fmt
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/fmt/mod.rs:1537:9
15: ::fmt
16: core::fmt::write
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/fmt/mod.rs:1094:17
17: core::fmt::Formatter::write_fmt
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/fmt/mod.rs:1537:9
18: ::fmt
19: core::fmt::write
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/fmt/mod.rs:1094:17
20: core::fmt::Formatter::write_fmt
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/fmt/mod.rs:1537:9
21: ::fmt
22: core::fmt::builders::DebugStruct::field::{{closure}}
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/fmt/builders.rs:154:17
core::result::Result::and_then
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/result.rs:704:22
core::fmt::builders::DebugStruct::field
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/fmt/builders.rs:137:23
23: ::fmt
24: core::fmt::builders::DebugTuple::field::{{closure}}
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/fmt/builders.rs:344:17
core::result::Result::and_then
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/result.rs:704:22
core::fmt::builders::DebugTuple::field
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/fmt/builders.rs:331:23
25: <&T as core::fmt::Debug>::fmt
26: core::fmt::builders::DebugStruct::field::{{closure}}
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/fmt/builders.rs:154:17
core::result::Result::and_then
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/result.rs:704:22
core::fmt::builders::DebugStruct::field
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/fmt/builders.rs:137:23
27: ::fmt
28: core::fmt::builders::DebugInner::entry::{{closure}}
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/fmt/builders.rs:416:17
core::result::Result::and_then
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/result.rs:704:22
core::fmt::builders::DebugInner::entry
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/fmt/builders.rs:402:23
29: core::fmt::builders::DebugSet::entry
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/fmt/builders.rs:491:9
30: core::fmt::builders::DebugList::entries
31: <[T] as core::fmt::Debug>::fmt
32: core::fmt::builders::DebugStruct::field::{{closure}}
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/fmt/builders.rs:154:17
core::result::Result::and_then
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/result.rs:704:22
core::fmt::builders::DebugStruct::field
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/fmt/builders.rs:137:23
33: ::fmt
34: core::fmt::write
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/fmt/mod.rs:1094:17
35: ::fmt
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/fmt/mod.rs:445:9
36: core::fmt::write
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/fmt/mod.rs:1094:17
37: core::fmt::Write::write_fmt
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/fmt/mod.rs:184:9
std::panicking::begin_panic_handler::PanicPayload::fill::{{closure}}
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/std/src/panicking.rs:459:22
core::option::Option::get_or_insert_with
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/option.rs:929:26
std::panicking::begin_panic_handler::PanicPayload::fill
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/std/src/panicking.rs:457:13
::get
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/std/src/panicking.rs:475:13
38: std::panicking::rust_panic_with_hook
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/std/src/panicking.rs:594:34
39: std::panicking::begin_panic_handler::{{closure}}
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/std/src/panicking.rs:497:13
40: std::sys_common::backtrace::__rust_end_short_backtrace
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/std/src/sys_common/backtrace.rs:141:18
41: rust_begin_unwind
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/std/src/panicking.rs:493:5
42: core::panicking::panic_fmt
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/panicking.rs:92:14
43: core::panicking::assert_failed_inner
44: core::panicking::assert_failed
45: rustc_query_system::query::plumbing::incremental_verify_ich
46: rustc_query_system::query::plumbing::load_from_disk_and_cache_in_memory
47: rustc_data_structures::stack::ensure_sufficient_stack
48: rustc_query_system::query::plumbing::get_query_impl
49: ::optimized_mir
50: rustc_middle::ty::::instance_mir
51: rustc_mir::monomorphize::collector::collect_neighbours
52: rustc_mir::monomorphize::collector::collect_items_rec
53: rustc_mir::monomorphize::collector::collect_items_rec
54: rustc_mir::monomorphize::collector::collect_items_rec
55: rustc_mir::monomorphize::collector::collect_items_rec
56: rustc_mir::monomorphize::collector::collect_items_rec
57: rustc_mir::monomorphize::collector::collect_items_rec
58: rustc_mir::monomorphize::collector::collect_items_rec
59: rustc_mir::monomorphize::collector::collect_items_rec
60: rustc_mir::monomorphize::collector::collect_items_rec
61: rustc_mir::monomorphize::collector::collect_items_rec
62: rustc_mir::monomorphize::collector::collect_items_rec
63: rustc_mir::monomorphize::collector::collect_items_rec
64: rustc_mir::monomorphize::collector::collect_items_rec
65: rustc_mir::monomorphize::collector::collect_items_rec
66: rustc_mir::monomorphize::collector::collect_items_rec
67: rustc_session::utils::::time
68: rustc_mir::monomorphize::collector::collect_crate_mono_items
69: rustc_mir::monomorphize::partitioning::collect_and_partition_mono_items
70: rustc_query_impl:: for rustc_query_impl::queries::collect_and_partition_mono_items>::compute
71: rustc_middle::dep_graph::::with_deps
72: rustc_query_system::dep_graph::graph::DepGraph::with_task_impl
73: rustc_data_structures::stack::ensure_sufficient_stack
74: rustc_query_system::query::plumbing::force_query_with_job
75: rustc_query_system::query::plumbing::force_query_impl
76: rustc_query_system::query::plumbing::force_query
77: rustc_query_impl::query_callbacks::collect_and_partition_mono_items::force_from_dep_node
78: rustc_query_system::dep_graph::graph::DepGraph::try_mark_previous_green
79: rustc_query_system::dep_graph::graph::DepGraph::try_mark_green_and_read
80: rustc_data_structures::stack::ensure_sufficient_stack
81: rustc_query_system::query::plumbing::get_query_impl
82: ::exported_symbols
83: rustc_metadata::rmeta::encoder::EncodeContext::encode_crate_root
84: rustc_metadata::rmeta::encoder::encode_metadata_impl
85: rustc_data_structures::sync::join
86: rustc_metadata::rmeta::decoder::cstore_impl::::encode_metadata
87: rustc_middle::ty::context::TyCtxt::encode_metadata
88: rustc_interface::passes::QueryContext::enter
89: rustc_interface::queries::Queries::ongoing_codegen
90: rustc_interface::queries::::enter
91: rustc_span::with_source_map
92: rustc_interface::interface::create_compiler_and_run
93: scoped_tls::ScopedKey::set
94: std::sys_common::backtrace::__rust_begin_short_backtrace
95: core::ops::function::FnOnce::call_once{{vtable.shim}}
96: as core::ops::function::FnOnce>::call_once
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/alloc/src/boxed.rs:1546:9
as core::ops::function::FnOnce>::call_once
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/alloc/src/boxed.rs:1546:9
std::sys::unix::thread::Thread::new::thread_start
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/std/src/sys/unix/thread.rs:71:17
97: start_thread
98: __clone
thread 'rustc' panicked at 'no warnings or errors encountered even though `delayed_good_path_bugs` issued', compiler/rustc_errors/src/lib.rs:1018:13
stack backtrace:
0: 0x7fe69d10b320 - std::backtrace_rs::backtrace::libunwind::trace::hdcf4f90f85129e83
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5
1: 0x7fe69d10b320 - std::backtrace_rs::backtrace::trace_unsynchronized::h2669e30cb82f6732
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x7fe69d10b320 - std::sys_common::backtrace::_print_fmt::hfbda19e17f6db318
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/std/src/sys_common/backtrace.rs:67:5
3: 0x7fe69d10b320 - ::fmt::h1a8751bf59281272
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/std/src/sys_common/backtrace.rs:46:22
4: 0x7fe69d17c6cf - core::fmt::write::h7aa6cd0067dca82a
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/core/src/fmt/mod.rs:1094:17
5: 0x7fe69d0ffb45 - std::io::Write::write_fmt::hd7dd3a1df9b6befb
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/std/src/io/mod.rs:1580:15
6: 0x7fe69d10f02b - std::sys_common::backtrace::_print::h551e9ec8a9fa8106
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/std/src/sys_common/backtrace.rs:49:5
7: 0x7fe69d10f02b - std::sys_common::backtrace::print::ha4b1c5e95fa040b3
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/std/src/sys_common/backtrace.rs:36:9
8: 0x7fe69d10f02b - std::panicking::default_hook::{{closure}}::h0b34c9ab7fb9f857
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/std/src/panicking.rs:208:50
9: 0x7fe69d10eb0d - std::panicking::default_hook::h3067e8318decd17a
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/std/src/panicking.rs:225:9
10: 0x7fe69d8d14dd - rustc_driver::report_ice::h0582ed2432eb0d01
11: 0x7fe69d10f740 - std::panicking::rust_panic_with_hook::h81b8facc50f34daa
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/std/src/panicking.rs:595:17
12: 0x7fe69d10f317 - std::panicking::begin_panic_handler::{{closure}}::ha376ab85d95a000e
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/std/src/panicking.rs:497:13
13: 0x7fe69d10b7dc - std::sys_common::backtrace::__rust_end_short_backtrace::h6795c8afdd1a77e6
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/std/src/sys_common/backtrace.rs:141:18
14: 0x7fe69d10f279 - rust_begin_unwind
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/std/src/panicking.rs:493:5
15: 0x7fe69d0db07b - std::panicking::begin_panic_fmt::hf43a0025042538e2
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/std/src/panicking.rs:435:5
16: 0x7fe69fd4f429 - rustc_errors::HandlerInner::flush_delayed::ha043eb844eec51b4
17: 0x7fe69fd4df80 - ::drop::h20e6dc4c247e2972
18: 0x7fe69f3c72f6 - core::ptr::drop_in_place::ha7b7bc007b685a43
19: 0x7fe69f3d5b91 - as core::ops::drop::Drop>::drop::h0df1456cb7f7b3c5
20: 0x7fe69f3bc03d - core::ptr::drop_in_place::h4b05c244ac5fa340
21: 0x7fe69f3bbc14 - rustc_span::with_source_map::h67cb68e15a9ffc39
22: 0x7fe69f3bd781 - rustc_interface::interface::create_compiler_and_run::he6a465670788f848
23: 0x7fe69f3d6f08 - scoped_tls::ScopedKey::set::h8de4c07d6e313e7a
24: 0x7fe69f3d7423 - std::sys_common::backtrace::__rust_begin_short_backtrace::h953d4096b984a1d5
25: 0x7fe69f3dac05 - core::ops::function::FnOnce::call_once{{vtable.shim}}::hf2d8af4e3cccbbb1
26: 0x7fe69d11f517 - as core::ops::function::FnOnce>::call_once::h3aa31cb6360b59d9
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/alloc/src/boxed.rs:1546:9
27: 0x7fe69d11f517 - as core::ops::function::FnOnce>::call_once::h7719d3c7c5841461
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/alloc/src/boxed.rs:1546:9
28: 0x7fe69d11f517 - std::sys::unix::thread::Thread::new::thread_start::hfbe13ead469fd0bc
at /rustc/16bf626a31cb5b121d0bca2baa969b4f67eb0dab/library/std/src/sys/unix/thread.rs:71:17
29: 0x7fe69ce62ea5 - start_thread
30: 0x7fe69c77f9fd - __clone
31: 0x0 -
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
note: rustc 1.53.0-nightly (16bf626a3 2021-04-14) running on x86_64-unknown-linux-gnu
note: compiler flags: -Z instrument-coverage -C embed-bitcode=no -C codegen-units=4 -C debuginfo=1 -C overflow-checks=off -C incremental --crate-type lib
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
end of query stack
thread panicked while panicking. aborting.
error: could not compile `server`
Caused by:
process didn't exit successfully: `rustc --crate-name server --edition=2018 components/server/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C codegen-units=4 -C debuginfo=1 -C overflow-checks=off --cfg 'feature="cloud-aws"' --cfg 'feature="cloud-gcp"' --cfg 'feature="protobuf-codec"' --cfg 'feature="test-engines-rocksdb"' -C metadata=ed52035630cd5fb0 -C extra-filename=-ed52035630cd5fb0 --out-dir /data1/tikv/target/debug/deps -C incremental=/data1/tikv/target/debug/incremental -L dependency=/data1/tikv/target/debug/deps --extern backup=/data1/tikv/target/debug/deps/libbackup-bc7393b4c90f9ab5.rmeta --extern cdc=/data1/tikv/target/debug/deps/libcdc-931dfc38ed9f5067.rmeta --extern chrono=/data1/tikv/target/debug/deps/libchrono-7a2da5d42796f384.rmeta --extern clap=/data1/tikv/target/debug/deps/libclap-d53f464fedea08bb.rmeta --extern collections=/data1/tikv/target/debug/deps/libcollections-e6fdb127dd7299a6.rmeta --extern concurrency_manager=/data1/tikv/target/debug/deps/libconcurrency_manager-8e1644bae2e17de6.rmeta --extern crossbeam=/data1/tikv/target/debug/deps/libcrossbeam-a77f1aab42803930.rmeta --extern encryption=/data1/tikv/target/debug/deps/libencryption-cccdf26c8b459258.rmeta --extern encryption_export=/data1/tikv/target/debug/deps/libencryption_export-80809a8414d90cc2.rmeta --extern engine_rocks=/data1/tikv/target/debug/deps/libengine_rocks-3e81ddd49e244981.rmeta --extern engine_traits=/data1/tikv/target/debug/deps/libengine_traits-5d54ac4465cabea3.rmeta --extern error_code=/data1/tikv/target/debug/deps/liberror_code-fb8ddce8a3e71e45.rmeta --extern file_system=/data1/tikv/target/debug/deps/libfile_system-d0bf1c32c4f573c7.rmeta --extern fs2=/data1/tikv/target/debug/deps/libfs2-0bdebfb3106b6732.rmeta --extern futures=/data1/tikv/target/debug/deps/libfutures-ec6011a6951206f0.rmeta --extern grpcio=/data1/tikv/target/debug/deps/libgrpcio-e7463bbd0f7d0235.rmeta --extern hex=/data1/tikv/target/debug/deps/libhex-ce230483e69d3d24.rmeta --extern keys=/data1/tikv/target/debug/deps/libkeys-db5ee80b8000fb0b.rmeta --extern kvproto=/data1/tikv/target/debug/deps/libkvproto-d539359ac5066f58.rmeta --extern libc=/data1/tikv/target/debug/deps/liblibc-372386c93e7db1fa.rmeta --extern log=/data1/tikv/target/debug/deps/liblog-25f8a54fcc271855.rmeta --extern log_wrappers=/data1/tikv/target/debug/deps/liblog_wrappers-985e8160a01ac89e.rmeta --extern nix=/data1/tikv/target/debug/deps/libnix-61b175c1a3b30064.rmeta --extern pd_client=/data1/tikv/target/debug/deps/libpd_client-c77ca1e8ba3dd403.rmeta --extern prometheus=/data1/tikv/target/debug/deps/libprometheus-1884a36f8a378c07.rmeta --extern promptly=/data1/tikv/target/debug/deps/libpromptly-db2961724d376ed9.rmeta --extern protobuf=/data1/tikv/target/debug/deps/libprotobuf-96e2baca486a21e8.rmeta --extern raft=/data1/tikv/target/debug/deps/libraft-52e33e67cf482215.rmeta --extern raft_log_engine=/data1/tikv/target/debug/deps/libraft_log_engine-5e1c2847cb04c88d.rmeta --extern raftstore=/data1/tikv/target/debug/deps/libraftstore-4bf15830aec642cf.rmeta --extern rand=/data1/tikv/target/debug/deps/librand-5bf2cd3178adf8f1.rmeta --extern resolved_ts=/data1/tikv/target/debug/deps/libresolved_ts-cdab603cf3f35052.rmeta --extern resource_metering=/data1/tikv/target/debug/deps/libresource_metering-0be3edd2af6e6a79.rmeta --extern security=/data1/tikv/target/debug/deps/libsecurity-8282defe3b3f5032.rmeta --extern serde_json=/data1/tikv/target/debug/deps/libserde_json-1603da175f6c308d.rmeta --extern signal=/data1/tikv/target/debug/deps/libsignal-84166d64d60caab0.rmeta --extern slog=/data1/tikv/target/debug/deps/libslog-1d03c6e13441418f.rmeta --extern slog_global=/data1/tikv/target/debug/deps/libslog_global-0bcc63cbc5f0c0a0.rmeta --extern tempfile=/data1/tikv/target/debug/deps/libtempfile-917041ab3b982af3.rmeta --extern tikv=/data1/tikv/target/debug/deps/libtikv-2b4bf342a9cac117.rmeta --extern tikv_alloc=/data1/tikv/target/debug/deps/libtikv_alloc-72622b4c100f1947.rmeta --extern tikv_util=/data1/tikv/target/debug/deps/libtikv_util-bfe835c45d51d676.rmeta --extern tokio=/data1/tikv/target/debug/deps/libtokio-48e9a6808624a864.rmeta --extern toml=/data1/tikv/target/debug/deps/libtoml-be8c434e679326e6.rmeta --extern txn_types=/data1/tikv/target/debug/deps/libtxn_types-47d8b79e9daccfb8.rmeta --extern vlog=/data1/tikv/target/debug/deps/libvlog-9b31cf57f32a19c6.rmeta --extern yatp=/data1/tikv/target/debug/deps/libyatp-edb2b0dbcc5c1996.rmeta -Z instrument-coverage -L native=/data1/tikv/target/debug/build/libz-sys-52052d5c62ca5903/out/build -L native=/data1/tikv/target/debug/build/libz-sys-52052d5c62ca5903/out/lib -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/re2 -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/cares/cares/lib -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/time -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/time -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/time -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/container -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/container -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/base -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/base -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/base -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/base -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/base -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/base -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/base -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/numeric -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/types -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/types -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/debugging -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/debugging -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/debugging -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/debugging -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/status -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/status -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/strings -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/strings -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/strings -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/strings -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/synchronization -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/synchronization -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/hash -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/hash -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out/build/third_party/abseil-cpp/absl/hash -L native=/data1/tikv/target/debug/build/grpcio-sys-dc8d0ef310932a8f/out -L native=/data1/tikv/target/debug/build/libz-sys-52052d5c62ca5903/out/lib -L native=/data1/tikv/target/debug/build/libz-sys-52052d5c62ca5903/out/lib -L native=/data1/tikv/target/debug/build/openssl-sys-a0d3255c19d4a68d/out/openssl-build/install/lib -L native=/data1/tikv/target/debug/build/backtrace-sys-12fc2638d475fde4/out -L native=/data1/tikv/target/debug/build/librocksdb_sys-7b352369283807fa/out/build -L native=/usr/local/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../lib64 -L native=/data1/tikv/target/debug/build/librocksdb_sys-7b352369283807fa/out -L native=/data1/tikv/target/debug/build/bzip2-sys-73a3194f178acf98/out/lib -L native=/data1/tikv/target/debug/build/libtitan_sys-b8baa51083059706/out/build -L native=/data1/tikv/target/debug/build/lz4-sys-20fafba43505d789/out -L native=/data1/tikv/target/debug/build/snappy-sys-129b4548154966fb/out/build -L native=/data1/tikv/target/debug/build/zstd-sys-8c7e8fd8b65ef5e7/out -L native=/data1/tikv/target/debug/build/ring-ede43e0cfd1efd23/out` (signal: 4, SIGILL: illegal instruction)
```