Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler in 1.30.1 stable reliably panics on Windows #56095

Closed
saarw opened this issue Nov 20, 2018 · 5 comments
Closed

Compiler in 1.30.1 stable reliably panics on Windows #56095

saarw opened this issue Nov 20, 2018 · 5 comments
Labels
O-windows Operating system: Windows P-high High priority regression-from-stable-to-stable Performance or correctness regression from one stable version to another. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@saarw
Copy link

saarw commented Nov 20, 2018

The error message is similar to issue 51648 that we have been getting intermittedly, but it happens on every build with 1.30.1 stable so we're stuck on 1.29.2

thread 'main' panicked at 'specified instant was later than self', libcore\option.rs:1000:5
stack backtrace:
   0:     0x7ffc06250a42 - <std::sys::windows::args::Args as core::ops::drop::Drop>::drop::h3c622202de4456c4
   1:     0x7ffc06239daf - <std::ffi::os_str::OsString as std::sys_common::IntoInner<std::sys::windows::os_str::Buf>>::into_inner::h415ec8c6a7b1bd47
   2:     0x7ffc062381d8 - std::panicking::take_hook::h3937a60fe973a64c
   3:     0x7ffc06237e91 - std::panicking::take_hook::h3937a60fe973a64c
   4:     0x7ffc04b1a915 - <rustc::ty::sty::Binder<rustc::ty::ProjectionPredicate<'tcx>> as rustc::ty::ToPredicate<'tcx>>::to_predicate::hd06aaf2cfecf7de0
   5:     0x7ffc06238a61 - std::panicking::rust_panic_with_hook::he76b6048816969d0
   6:     0x7ffc06238563 - std::panicking::begin_panic_fmt::h248f4869d9c62d57
   7:     0x7ffc06238448 - rust_begin_unwind
   8:     0x7ffc0626e03b - core::panicking::panic_fmt::h1e20b7b5ab259b79
   9:     0x7ffc0626e0b1 - core::option::expect_failed::h4cc921c1033cea62
  10:     0x7ffc06263480 - std::sys::windows::os::chdir::h2a02e42357330437
  11:     0x7ffc06243c0f - std::time::Instant::elapsed::h3b187a6518b38008
  12:     0x7ffc04511a70 - rustc::util::profiling::SelfProfiler::end_activity::hee039e3975b19685
  13:     0x7ffc0473fdbf - rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_print_query_stack::h3d7e8a96faf530c9
  14:     0x7ffc0489ee24 - rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_print_query_stack::h3d7e8a96faf530c9
  15:     0x7ffc04506ecf - <rustc::ty::layout::LayoutCx<'tcx, rustc::ty::context::TyCtxt<'a, 'tcx, 'tcx>> as rustc_target::abi::LayoutOf>::layout_of::h83117a2b33985ecb
  16:     0x7ffbf17d3cab - <&'a rustc_codegen_llvm::context::CodegenCx<'ll, 'tcx> as rustc_target::abi::LayoutOf>::layout_of::h2fdca99ac8f08d08
  17:     0x7ffbf188b47a - <rustc_codegen_llvm::back::linker::MsvcLinker<'a> as rustc_codegen_llvm::back::linker::Linker>::finalize::h9d864b634f0ced36
  18:     0x7ffbf182669d - <rustc_codegen_llvm::metadata::LlvmMetadataLoader as rustc::middle::cstore::MetadataLoader>::get_dylib_metadata::h0dc800baca7439fd
  19:     0x7ffbf17cc97f - <rustc_target::abi::call::FnType<'tcx, &'tcx rustc::ty::TyS<'tcx>> as rustc_codegen_llvm::abi::FnTypeExt<'tcx>>::new::h50d601eaf60aa1ab
  20:     0x7ffbf1851020 - rustc_codegen_llvm::debuginfo::CrateDebugContext::new::hde60f66b4a3b494b
  21:     0x7ffbf18be484 - rustc_codegen_llvm::mono_item::predefine_fn::h16171ea4bb426a90
  22:     0x7ffbf17f7977 - <rustc_codegen_llvm::metadata::LlvmMetadataLoader as rustc::middle::cstore::MetadataLoader>::get_dylib_metadata::h0dc800baca7439fd
  23:     0x7ffbf184c27d - <rustc_codegen_llvm::base::ValueIter<'ll> as core::iter::iterator::Iterator>::next::he0da395b4329cfa7
  24:     0x7ffbf18bb5d6 - <rustc_codegen_llvm::meth::VirtualIndex as core::fmt::Debug>::fmt::h84bb946c7446b930
  25:     0x7ffbf1848d54 - <rustc_codegen_llvm::base::ValueIter<'ll> as core::iter::iterator::Iterator>::next::he0da395b4329cfa7
  26:     0x7ffbf1883caf - <rustc_codegen_llvm::LlvmCodegenBackend as rustc_codegen_utils::codegen_backend::CodegenBackend>::codegen_crate::hc44896d7df975d85
  27:     0x7ffc0a1e5267 - rustc_driver::target_features::add_configuration::he35ca591bcb31a2a
  28:     0x7ffc0a2085bb - rustc_driver::driver::phase_4_codegen::hf5b4a549e4e2af7b
  29:     0x7ffc0a1a9072 - rustc_driver::profile::trace::write_style::haabee05f2ed35edf
  30:     0x7ffc0a1a38a5 - <unknown>
  31:     0x7ffc0a254fb0 - <rustc_driver::pretty::IdentifiedAnnotation<'hir> as rustc_driver::pretty::HirPrinterSupport<'hir>>::sess::hced09d8c09ffffee
  32:     0x7ffc0a2ba8c4 - <rustc_driver::CompilationFailure as core::fmt::Debug>::fmt::h2c936c58119fa67e
  33:     0x7ffc0a1fea65 - rustc_driver::driver::compile_input::h42c1b22ca6e8c252
  34:     0x7ffc0a297287 - rustc_driver::run_compiler::h557d85aa1314cf64
  35:     0x7ffc0a1fc774 - <env_logger::filter::inner::Filter as core::fmt::Display>::fmt::hd9a22bb7a2ae036a
  36:     0x7ffc0a295f07 - rustc_driver::run_compiler::h557d85aa1314cf64
  37:     0x7ffc0a1fbab4 - <env_logger::filter::inner::Filter as core::fmt::Display>::fmt::hd9a22bb7a2ae036a
  38:     0x7ffc0626a191 - _rust_maybe_catch_panic
  39:     0x7ffc0a293132 - rustc_driver::profile::dump::hfbdd114d72b3a9d6
  40:     0x7ffc0a2a58fd - rustc_driver::main::h167cf5a4a061f28a
  41:     0x7ff6f6ea1055 - <unknown>
  42:     0x7ffc062383a6 - std::panicking::update_panic_count::h83bb9890939a8cf6
  43:     0x7ffc0626a191 - _rust_maybe_catch_panic
  44:     0x7ffc0624a342 - std::rt::lang_start_internal::h0426125eaa59a4f1
  45:     0x7ff6f6ea1049 - <unknown>
  46:     0x7ff6f6ea1298 - <unknown>
  47:     0x7ffc191c8363 - BaseThreadInitThunk
  48:     0x7ffc195170d0 - RtlUserThreadStart
query stack during panic:
#0 [symbol_name] computing the symbol for `std::ptr::read::<alloc::collections::btree::node::Root<std::sys::windows::process::WindowsEnvKey, std::option::Option<std::ffi::OsString>>>`
#1 [collect_and_partition_mono_items] collect_and_partition_mono_items
#2 [exported_symbols] exported_symbols
end of query stack

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/blob/master/CONTRIBUTING.md#bug-reports

note: rustc 1.30.1 (1433507eb 2018-11-07) running on x86_64-pc-windows-msvc

note: compiler flags: -C debuginfo=2 --crate-type lib
@hellow554
Copy link
Contributor

Does this happen with your code only (if yes, can you show?), does it happen with every code (e.g. fn main() {println!("Hello!");})

@saarw
Copy link
Author

saarw commented Nov 20, 2018

Can't really replace the program in this environment where the only difference between failing and successful builds is that we swap out the rust release number passed to rustup at the beginning of the build script. It's a huge project and I suspect it might happen when compiling dependencies (can you tell what module is compiled when the error happens from the logs below?)

Sometimes the error also has this "already borrowed error" (included below) as part of the stack. Could that be new for 1.30.1? (while the "specified instant was later than self" is the old intermittent failure that's been reported on multiple versions in issue 51648)

Full log
  1.30.1-x86_64-pc-windows-msvc unchanged - rustc 1.30.1 (1433507eb 2018-11-07)

$ cargo clean
$ cargo update
    Updating crates.io index
$ cargo test
   Compiling semver-parser v0.7.0
   Compiling winapi-build v0.1.1
   Compiling proc-macro2 v0.4.24
   Compiling winapi v0.3.6
   Compiling unicode-xid v0.1.0
   Compiling void v1.0.2
   Compiling rand_core v0.3.0
   Compiling serde v1.0.80
   Compiling version_check v0.1.5
   Compiling winapi v0.2.8
   Compiling nodrop v0.1.13
   Compiling stable_deref_trait v1.1.1
   Compiling cfg-if v0.1.6
   Compiling memoffset v0.2.1
   Compiling byteorder v1.2.7
   Compiling lazy_static v1.2.0
   Compiling scopeguard v0.3.3
   Compiling cc v1.0.25
   Compiling matches v0.1.8
   Compiling failure_derive v0.1.3
   Compiling libc v0.2.43
   Compiling encoding_index_tests v0.1.4
   Compiling slab v0.4.1
   Compiling lazycell v1.2.0
   Compiling futures v0.1.25
   Compiling unicode-normalization v0.1.7
   Compiling siphasher v0.2.3
   Compiling crossbeam-utils v0.5.0
   Compiling rustc-demangle v0.1.9
   Compiling untrusted v0.6.2
   Compiling percent-encoding v1.0.1
   Compiling lazycell v0.5.1
   Compiling ipconfig v0.1.7
   Compiling num-traits v0.2.6
   Compiling fnv v1.0.6
   Compiling linked-hash-map v0.4.2
   Compiling num-integer v0.1.39
   Compiling widestring v0.2.2
   Compiling itoa v0.4.3
   Compiling httparse v1.3.3
   Compiling flate2-crc v0.1.1
   Compiling safemem v0.3.0
   Compiling ryu v0.2.7
   Compiling pkg-config v0.3.14
   Compiling quick-error v1.2.2
   Compiling indexmap v1.0.2
   Compiling string v0.1.1
   Compiling traitobject v0.1.0
   Compiling gcc v0.3.55
   Compiling try-lock v0.2.2
   Compiling owning_ref v0.2.4
   Compiling regex v1.0.6
   Compiling scoped-tls v0.1.2
   Compiling ucd-util v0.1.3
   Compiling bitflags v1.0.4
   Compiling crossbeam v0.3.2
   Compiling rustc-serialize v0.3.24
   Compiling log-mdc v0.1.0
   Compiling utf8-ranges v1.0.2
   Compiling dtoa v0.4.3
   Compiling antidote v1.0.0
   Compiling jni-sys v0.3.0
   Compiling pest v0.4.1
   Compiling sha1 v0.6.0
   Compiling language-tags v0.2.2
   Compiling askama_escape v0.1.0
   Compiling treebitmap v0.3.1
   Compiling ipnet v2.0.0
   Compiling ws2_32-sys v0.2.1
   Compiling kernel32-sys v0.2.2
   Compiling semver v0.9.0
   Compiling unreachable v1.0.0
   Compiling rand_core v0.2.2
   Compiling unicase v1.4.2
   Compiling unicase v2.2.0
   Compiling memchr v2.1.1
   Compiling actix-web v0.7.14
   Compiling arrayvec v0.4.7
   Compiling owning_ref v0.4.0
   Compiling crossbeam-utils v0.6.1
   Compiling base64 v0.10.0
   Compiling thread_local v0.3.6
   Compiling ring v0.13.2
   Compiling miniz-sys v0.1.11
   Compiling brotli-sys v0.3.2
   Compiling unicode-bidi v0.3.4
   Compiling num_cpus v1.8.0
   Compiling encoding-index-tradchinese v1.20141219.5
   Compiling encoding-index-japanese v1.20141219.5
   Compiling encoding-index-simpchinese v1.20141219.5
   Compiling encoding-index-singlebyte v1.20141219.5
   Compiling encoding-index-korean v1.20141219.5
   Compiling tokio-executor v0.1.5
   Compiling tower-service v0.1.0
   Compiling iovec v0.1.2
   Compiling lru-cache v0.1.1
   Compiling base64 v0.9.3
   Compiling humantime v1.1.1
   Compiling unsafe-any v0.4.2
   Compiling rust-crypto v0.2.36
   Compiling my-project (C:\Gitlab\builds\a9f98505\0\my project)
warning: use of deprecated item 'gcc::Build': crate has been renamed to `cc`, the `gcc` name is not maintained
 --> build.rs:3:5
  |
3 | use gcc::Build;
  |     ^^^^^^^^^^
  |
  = note: #[warn(deprecated)] on by default

warning: use of deprecated item 'gcc::Build': crate has been renamed to `cc`, the `gcc` name is not maintained
 --> build.rs:6:5
  |
6 |     Build::new().files(
  |     ^^^^^^^^^^

warning: use of deprecated item 'gcc::Build::new': crate has been renamed to `cc`, the `gcc` name is not maintained
 --> build.rs:6:5
  |
6 |     Build::new().files(
  |     ^^^^^^^^^^

   Compiling regex-syntax v0.6.3
   Compiling rustc_version v0.2.3
   Compiling smallvec v0.6.6
   Compiling crossbeam-epoch v0.5.2
   Compiling lock_api v0.1.5
   Compiling crossbeam-epoch v0.6.1
   Compiling futures-cpupool v0.1.8
   Compiling encoding v0.2.33
   Compiling tokio-current-thread v0.1.3
   Compiling tokio-timer v0.2.7
   Compiling bytes v0.4.11
   Compiling typemap v0.3.3
   Compiling idna v0.1.5
   Compiling parking_lot_core v0.3.1
   Compiling quote v0.6.10
   Compiling net2 v0.2.33
   Compiling rand v0.5.5
   Compiling os_pipe v0.6.2
   Compiling backtrace v0.3.9
   Compiling winutil v0.1.1
   Compiling shared_child v0.3.3
   Compiling socket2 v0.3.8
   Compiling winreg v0.5.1
   Compiling rand v0.4.3
   Compiling time v0.1.40
   Compiling thread-id v3.3.0
   Compiling term v0.5.1
   Compiling crossbeam-deque v0.5.2
   Compiling crossbeam-deque v0.6.2
   Compiling log v0.4.6
   Compiling erased-serde v0.3.6
   Compiling http v0.1.13
   Compiling ordered-float v1.0.1
   Compiling serde_json v1.0.33
   Compiling url v1.7.2
   Compiling syn v0.15.21
   Compiling miow v0.2.1
   Compiling error-chain v0.8.1
   Compiling hostname v0.1.5
   Compiling uuid v0.7.1
   Compiling duct v0.9.2
   Compiling parking_lot_core v0.2.14
   Compiling rand v0.3.22
   Compiling uuid v0.6.5
   Compiling phf_shared v0.7.23
   Compiling aho-corasick v0.6.9
   Compiling tokio-io v0.1.10
   Compiling tokio-threadpool v0.1.8
   Compiling want v0.0.6
   Compiling mime v0.3.12
   Compiling flate2 v1.0.5
   Compiling brotli2 v0.3.2
   Compiling sct v0.4.0
   Compiling webpki v0.18.1
   Compiling chrono v0.4.6
   Compiling serde-value v0.5.3
   Compiling cookie v0.11.0
   Compiling serde_urlencoded v0.5.4
   Compiling mio v0.6.16
   Compiling resolv-conf v0.6.1
   Compiling onig_sys v66.1.4
   Compiling parking_lot v0.3.8
   Compiling synstructure v0.10.1
   Compiling actix_derive v0.3.2
   Compiling serde_derive v1.0.80
   Compiling phf_generator v0.7.23
   Compiling phf v0.7.23
   Compiling tokio-codec v0.1.1
   Compiling h2 v0.1.13
   Compiling tokio-fs v0.1.4
   Compiling ct-logs v0.4.0
   Compiling rustls v0.13.1
   Compiling webpki-roots v0.15.0
   Compiling simplelog v0.5.3
   Compiling parking_lot v0.6.4
   Compiling chashmap v2.2.0
   Compiling phf_codegen v0.7.23
   Compiling log4rs v0.8.1
thread 'main' panicked at 'specified instant was later than self', libcore\option.rs:1000:5
stack backtrace:
   0:     0x7ffc06250a42 - <std::sys::windows::args::Args as core::ops::drop::Drop>::drop::h3c622202de4456c4
   1:     0x7ffc06239daf - <std::ffi::os_str::OsString as std::sys_common::IntoInner<std::sys::windows::os_str::Buf>>::into_inner::h415ec8c6a7b1bd47
   2:     0x7ffc062381d8 - std::panicking::take_hook::h3937a60fe973a64c
   3:     0x7ffc06237e91 - std::panicking::take_hook::h3937a60fe973a64c
   4:     0x7ffc04b1a915 - <rustc::ty::sty::Binder<rustc::ty::ProjectionPredicate<'tcx>> as rustc::ty::ToPredicate<'tcx>>::to_predicate::hd06aaf2cfecf7de0
   5:     0x7ffc06238a61 - std::panicking::rust_panic_with_hook::he76b6048816969d0
   6:     0x7ffc06238563 - std::panicking::begin_panic_fmt::h248f4869d9c62d57
   7:     0x7ffc06238448 - rust_begin_unwind
   8:     0x7ffc0626e03b - core::panicking::panic_fmt::h1e20b7b5ab259b79
   9:     0x7ffc0626e0b1 - core::option::expect_failed::h4cc921c1033cea62
  10:     0x7ffc06263480 - std::sys::windows::os::chdir::h2a02e42357330437
  11:     0x7ffc06243c0f - std::time::Instant::elapsed::h3b187a6518b38008
  12:     0x7ffc04511a70 - rustc::util::profiling::SelfProfiler::end_activity::hee039e3975b19685
  13:     0x7ffc0475b05c - rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_print_query_stack::h3d7e8a96faf530c9
  14:     0x7ffc048d5f89 - rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_print_query_stack::h3d7e8a96faf530c9
  15:     0x7ffc043da021 - rustc::traits::select::SelectionContext::coinductive_predicate::h9f69174ab6992db3
  16:     0x7ffc044903f0 - rustc::dep_graph::graph::DepGraph::assert_ignored::h90122fe68bc537f0
  17:     0x7ffc043d92ff - rustc::traits::select::SelectionContext::coinductive_predicate::h9f69174ab6992db3
  18:     0x7ffc043d627b - rustc::traits::select::SelectionContext::select::hd91564c5d65892be
  19:     0x7ffc046d18e6 - rustc::ty::context::tls::track_diagnostic::h7d1e5e8dde7229ea
  20:     0x7ffc04a33862 - rustc::traits::codegen::codegen_fulfill_obligation::h4a9ba366eb6576b5
  21:     0x7ffc0471717f - rustc::ty::query::on_disk_cache::__ty_decoder_impl::<impl serialize::serialize::Decoder for rustc::ty::query::on_disk_cache::CacheDecoder<'a, 'tcx, 'x>>::read_str::h74a91adacef878ed
  22:     0x7ffc0471c5ce - rustc::ty::query::on_disk_cache::__ty_decoder_impl::<impl serialize::serialize::Decoder for rustc::ty::query::on_disk_cache::CacheDecoder<'a, 'tcx, 'x>>::read_str::h74a91adacef878ed
  23:     0x7ffc0444af7e - rustc::dep_graph::graph::DepGraph::assert_ignored::h90122fe68bc537f0
  24:     0x7ffc0469068b - rustc::ty::context::tls::track_diagnostic::h7d1e5e8dde7229ea
  25:     0x7ffc047394fa - rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_print_query_stack::h3d7e8a96faf530c9
  26:     0x7ffc048374c8 - rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_print_query_stack::h3d7e8a96faf530c9
  27:     0x7ffc0450b580 - rustc::ty::instance::Instance::resolve::hd0f1ffbf67c1146a
  28:     0x7ffc055b297a - <rustc_mir::monomorphize::collector::MirNeighborCollector<'a, 'tcx> as rustc::mir::visit::Visitor<'tcx>>::visit_static::h9901d6145ffdd7b2
  29:     0x7ffc055b24f5 - <rustc_mir::monomorphize::collector::MirNeighborCollector<'a, 'tcx> as rustc::mir::visit::Visitor<'tcx>>::visit_terminator_kind::h7d4f53f2424b0ec1
  30:     0x7ffc055afb21 - rustc_mir::monomorphize::collector::collect_crate_mono_items::h251c200a569f2a28
  31:     0x7ffc055b01a8 - rustc_mir::monomorphize::collector::collect_crate_mono_items::h251c200a569f2a28
  32:     0x7ffc055b01a8 - rustc_mir::monomorphize::collector::collect_crate_mono_items::h251c200a569f2a28
  33:     0x7ffc055b01a8 - rustc_mir::monomorphize::collector::collect_crate_mono_items::h251c200a569f2a28
  34:     0x7ffc055b01a8 - rustc_mir::monomorphize::collector::collect_crate_mono_items::h251c200a569f2a28
  35:     0x7ffc055b01a8 - rustc_mir::monomorphize::collector::collect_crate_mono_items::h251c200a569f2a28
  36:     0x7ffc055b01a8 - rustc_mir::monomorphize::collector::collect_crate_mono_items::h251c200a569f2a28
  37:     0x7ffc055b01a8 - rustc_mir::monomorphize::collector::collect_crate_mono_items::h251c200a569f2a28
  38:     0x7ffc055b01a8 - rustc_mir::monomorphize::collector::collect_crate_mono_items::h251c200a569f2a28
  39:     0x7ffc055b01a8 - rustc_mir::monomorphize::collector::collect_crate_mono_items::h251c200a569f2a28
  40:     0x7ffc055b01a8 - rustc_mir::monomorphize::collector::collect_crate_mono_items::h251c200a569f2a28
  41:     0x7ffc055b01a8 - rustc_mir::monomorphize::collector::collect_crate_mono_items::h251c200a569f2a28
  42:     0x7ffc05839229 - <rustc_mir::interpret::operand::OpTy<'tcx> as core::cmp::PartialEq>::eq::h4f9114d1f3031e91
  43:     0x7ffc05801051 - <rustc_mir::dataflow::graphviz::Edge as core::fmt::Debug>::fmt::h8ac6832eb0edcf61
  44:     0x7ffc055aea22 - rustc_mir::monomorphize::collector::collect_crate_mono_items::h251c200a569f2a28
  45:     0x7ffbf177fdca - <rustc_codegen_llvm::builder::Builder<'a, 'll, 'tcx> as core::ops::drop::Drop>::drop::h439a46702de5aef6
  46:     0x7ffbf184b53f - <rustc_codegen_llvm::base::ValueIter<'ll> as core::iter::iterator::Iterator>::next::he0da395b4329cfa7
  47:     0x7ffc0471d38c - rustc::ty::query::on_disk_cache::__ty_decoder_impl::<impl serialize::serialize::Decoder for rustc::ty::query::on_disk_cache::CacheDecoder<'a, 'tcx, 'x>>::read_str::h74a91adacef878ed
  48:     0x7ffc044438de - rustc::dep_graph::graph::DepGraph::assert_ignored::h90122fe68bc537f0
  49:     0x7ffc046e12c8 - rustc::ty::context::tls::track_diagnostic::h7d1e5e8dde7229ea
  50:     0x7ffc04742e0a - rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_print_query_stack::h3d7e8a96faf530c9
  51:     0x7ffc048c2a19 - rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_print_query_stack::h3d7e8a96faf530c9
  52:     0x7ffbf1898fd5 - <rustc_codegen_llvm::llvm::archive_ro::Iter<'a> as core::ops::drop::Drop>::drop::h444f68424a25a50e
  53:     0x7ffc0471d35c - rustc::ty::query::on_disk_cache::__ty_decoder_impl::<impl serialize::serialize::Decoder for rustc::ty::query::on_disk_cache::CacheDecoder<'a, 'tcx, 'x>>::read_str::h74a91adacef878ed
  54:     0x7ffc04432a0d - rustc::dep_graph::graph::DepGraph::assert_ignored::h90122fe68bc537f0
  55:     0x7ffc04681d5b - rustc::ty::context::tls::track_diagnostic::h7d1e5e8dde7229ea
  56:     0x7ffc0474d2e5 - rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_print_query_stack::h3d7e8a96faf530c9
  57:     0x7ffc047e65f5 - rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_print_query_stack::h3d7e8a96faf530c9
  58:     0x7ffc0981fc82 - <rustc::hir::def_id::DefId as rustc_metadata::index_builder::DepGraphRead>::read::h3b340e84fe341165
  59:     0x7ffc098e9fd2 - rustc_metadata::cstore_impl::<impl rustc::middle::cstore::CrateStore for rustc_metadata::cstore::CStore>::encode_metadata::h5928354363ef3377
  60:     0x7ffc048ec802 - rustc::ty::context::TyCtxt::encode_metadata::hbb71956da7be1969
  61:     0x7ffbf18472ae - rustc_codegen_llvm::base::codegen_instance::hce299f7a7f59487a
  62:     0x7ffbf177f803 - <rustc_codegen_llvm::builder::Builder<'a, 'll, 'tcx> as core::ops::drop::Drop>::drop::h439a46702de5aef6
  63:     0x7ffbf1847d3a - <rustc_codegen_llvm::base::ValueIter<'ll> as core::iter::iterator::Iterator>::next::he0da395b4329cfa7
  64:     0x7ffbf1883caf - <rustc_codegen_llvm::LlvmCodegenBackend as rustc_codegen_utils::codegen_backend::CodegenBackend>::codegen_crate::hc44896d7df975d85
  65:     0x7ffc0a1e5267 - rustc_driver::target_features::add_configuration::he35ca591bcb31a2a
  66:     0x7ffc0a2085bb - rustc_driver::driver::phase_4_codegen::hf5b4a549e4e2af7b
  67:     0x7ffc0a1a9072 - rustc_driver::profile::trace::write_style::haabee05f2ed35edf
  68:     0x7ffc0a1a38a5 - <unknown>
  69:     0x7ffc0a254fb0 - <rustc_driver::pretty::IdentifiedAnnotation<'hir> as rustc_driver::pretty::HirPrinterSupport<'hir>>::sess::hced09d8c09ffffee
  70:     0x7ffc0a2ba8c4 - <rustc_driver::CompilationFailure as core::fmt::Debug>::fmt::h2c936c58119fa67e
  71:     0x7ffc0a1fea65 - rustc_driver::driver::compile_input::h42c1b22ca6e8c252
  72:     0x7ffc0a297287 - rustc_driver::run_compiler::h557d85aa1314cf64
  73:     0x7ffc0a1fc774 - <env_logger::filter::inner::Filter as core::fmt::Display>::fmt::hd9a22bb7a2ae036a
  74:     0x7ffc0a295f07 - rustc_driver::run_compiler::h557d85aa1314cf64
  75:     0x7ffc0a1fbab4 - <env_logger::filter::inner::Filter as core::fmt::Display>::fmt::hd9a22bb7a2ae036a
  76:     0x7ffc0626a191 - _rust_maybe_catch_panic
  77:     0x7ffc0a293132 - rustc_driver::profile::dump::hfbdd114d72b3a9d6
  78:     0x7ffc0a2a58fd - rustc_driver::main::h167cf5a4a061f28a
  79:     0x7ff6f6ea1055 - <unknown>
  80:     0x7ffc062383a6 - std::panicking::update_panic_count::h83bb9890939a8cf6
  81:     0x7ffc0626a191 - _rust_maybe_catch_panic
  82:     0x7ffc0624a342 - std::rt::lang_start_internal::h0426125eaa59a4f1
  83:     0x7ff6f6ea1049 - <unknown>
  84:     0x7ff6f6ea1298 - <unknown>
  85:     0x7ffc191c8363 - BaseThreadInitThunk
  86:     0x7ffc195170d0 - RtlUserThreadStart
query stack during panic:
thread 'main' panicked at 'already borrowed: BorrowMutError', libcore\result.rs:1009:5
stack backtrace:
   0:     0x7ffc06250a42 - <std::sys::windows::args::Args as core::ops::drop::Drop>::drop::h3c622202de4456c4
   1:     0x7ffc06239daf - <std::ffi::os_str::OsString as std::sys_common::IntoInner<std::sys::windows::os_str::Buf>>::into_inner::h415ec8c6a7b1bd47
   2:     0x7ffc062381d8 - std::panicking::take_hook::h3937a60fe973a64c
   3:     0x7ffc06237e91 - std::panicking::take_hook::h3937a60fe973a64c
   4:     0x7ffc04b1a915 - <rustc::ty::sty::Binder<rustc::ty::ProjectionPredicate<'tcx>> as rustc::ty::ToPredicate<'tcx>>::to_predicate::hd06aaf2cfecf7de0
   5:     0x7ffc06238a61 - std::panicking::rust_panic_with_hook::he76b6048816969d0
   6:     0x7ffc06238563 - std::panicking::begin_panic_fmt::h248f4869d9c62d57
   7:     0x7ffc06238448 - rust_begin_unwind
   8:     0x7ffc0626e03b - core::panicking::panic_fmt::h1e20b7b5ab259b79
   9:     0x7ffc0491fb4d - rustc::ty::context::TypeckTables::expr_ty::hc1058cd284ce58a1
  10:     0x7ffc0488a38f - rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_print_query_stack::h3d7e8a96faf530c9
  11:     0x7ffc04734e68 - rustc::ty::item_path::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::absolute_item_path_str::hbfa9ebaa77c425cf
  12:     0x7ffc043fb71b - <rustc::ty::query::queries::codegen_fulfill_obligation<'tcx> as rustc::ty::query::config::QueryDescription<'tcx>>::describe::h1c62d507b0930774
  13:     0x7ffc04a65948 - rustc::ty::query::Query::describe::h0d90940216c099a7
  14:     0x7ffc0462e8b4 - rustc::ty::context::tls::track_diagnostic::h7d1e5e8dde7229ea
  15:     0x7ffc04b1a9c3 - <rustc::ty::sty::Binder<rustc::ty::ProjectionPredicate<'tcx>> as rustc::ty::ToPredicate<'tcx>>::to_predicate::hd06aaf2cfecf7de0
  16:     0x7ffc06238a61 - std::panicking::rust_panic_with_hook::he76b6048816969d0
  17:     0x7ffc06238563 - std::panicking::begin_panic_fmt::h248f4869d9c62d57
  18:     0x7ffc06238448 - rust_begin_unwind
  19:     0x7ffc0626e03b - core::panicking::panic_fmt::h1e20b7b5ab259b79
  20:     0x7ffc0626e0b1 - core::option::expect_failed::h4cc921c1033cea62
  21:     0x7ffc06263480 - std::sys::windows::os::chdir::h2a02e42357330437
  22:     0x7ffc06243c0f - std::time::Instant::elapsed::h3b187a6518b38008
  23:     0x7ffc04511a70 - rustc::util::profiling::SelfProfiler::end_activity::hee039e3975b19685
  24:     0x7ffc0475b05c - rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_print_query_stack::h3d7e8a96faf530c9
  25:     0x7ffc048d5f89 - rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_print_query_stack::h3d7e8a96faf530c9
  26:     0x7ffc043da021 - rustc::traits::select::SelectionContext::coinductive_predicate::h9f69174ab6992db3
  27:     0x7ffc044903f0 - rustc::dep_graph::graph::DepGraph::assert_ignored::h90122fe68bc537f0
  28:     0x7ffc043d92ff - rustc::traits::select::SelectionContext::coinductive_predicate::h9f69174ab6992db3
  29:     0x7ffc043d627b - rustc::traits::select::SelectionContext::select::hd91564c5d65892be
  30:     0x7ffc046d18e6 - rustc::ty::context::tls::track_diagnostic::h7d1e5e8dde7229ea
  31:     0x7ffc04a33862 - rustc::traits::codegen::codegen_fulfill_obligation::h4a9ba366eb6576b5
  32:     0x7ffc0471717f - rustc::ty::query::on_disk_cache::__ty_decoder_impl::<impl serialize::serialize::Decoder for rustc::ty::query::on_disk_cache::CacheDecoder<'a, 'tcx, 'x>>::read_str::h74a91adacef878ed
  33:     0x7ffc0471c5ce - rustc::ty::query::on_disk_cache::__ty_decoder_impl::<impl serialize::serialize::Decoder for rustc::ty::query::on_disk_cache::CacheDecoder<'a, 'tcx, 'x>>::read_str::h74a91adacef878ed
  34:     0x7ffc0444af7e - rustc::dep_graph::graph::DepGraph::assert_ignored::h90122fe68bc537f0
  35:     0x7ffc0469068b - rustc::ty::context::tls::track_diagnostic::h7d1e5e8dde7229ea
  36:     0x7ffc047394fa - rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_print_query_stack::h3d7e8a96faf530c9
  37:     0x7ffc048374c8 - rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_print_query_stack::h3d7e8a96faf530c9
  38:     0x7ffc0450b580 - rustc::ty::instance::Instance::resolve::hd0f1ffbf67c1146a
  39:     0x7ffc055b297a - <rustc_mir::monomorphize::collector::MirNeighborCollector<'a, 'tcx> as rustc::mir::visit::Visitor<'tcx>>::visit_static::h9901d6145ffdd7b2
  40:     0x7ffc055b24f5 - <rustc_mir::monomorphize::collector::MirNeighborCollector<'a, 'tcx> as rustc::mir::visit::Visitor<'tcx>>::visit_terminator_kind::h7d4f53f2424b0ec1
  41:     0x7ffc055afb21 - rustc_mir::monomorphize::collector::collect_crate_mono_items::h251c200a569f2a28
  42:     0x7ffc055b01a8 - rustc_mir::monomorphize::collector::collect_crate_mono_items::h251c200a569f2a28
  43:     0x7ffc055b01a8 - rustc_mir::monomorphize::collector::collect_crate_mono_items::h251c200a569f2a28
  44:     0x7ffc055b01a8 - rustc_mir::monomorphize::collector::collect_crate_mono_items::h251c200a569f2a28
  45:     0x7ffc055b01a8 - rustc_mir::monomorphize::collector::collect_crate_mono_items::h251c200a569f2a28
  46:     0x7ffc055b01a8 - rustc_mir::monomorphize::collector::collect_crate_mono_items::h251c200a569f2a28
  47:     0x7ffc055b01a8 - rustc_mir::monomorphize::collector::collect_crate_mono_items::h251c200a569f2a28
  48:     0x7ffc055b01a8 - rustc_mir::monomorphize::collector::collect_crate_mono_items::h251c200a569f2a28
  49:     0x7ffc055b01a8 - rustc_mir::monomorphize::collector::collect_crate_mono_items::h251c200a569f2a28
  50:     0x7ffc055b01a8 - rustc_mir::monomorphize::collector::collect_crate_mono_items::h251c200a569f2a28
  51:     0x7ffc055b01a8 - rustc_mir::monomorphize::collector::collect_crate_mono_items::h251c200a569f2a28
  52:     0x7ffc055b01a8 - rustc_mir::monomorphize::collector::collect_crate_mono_items::h251c200a569f2a28
  53:     0x7ffc05839229 - <rustc_mir::interpret::operand::OpTy<'tcx> as core::cmp::PartialEq>::eq::h4f9114d1f3031e91
  54:     0x7ffc05801051 - <rustc_mir::dataflow::graphviz::Edge as core::fmt::Debug>::fmt::h8ac6832eb0edcf61
  55:     0x7ffc055aea22 - rustc_mir::monomorphize::collector::collect_crate_mono_items::h251c200a569f2a28
  56:     0x7ffbf177fdca - <rustc_codegen_llvm::builder::Builder<'a, 'll, 'tcx> as core::ops::drop::Drop>::drop::h439a46702de5aef6
  57:     0x7ffbf184b53f - <rustc_codegen_llvm::base::ValueIter<'ll> as core::iter::iterator::Iterator>::next::he0da395b4329cfa7
  58:     0x7ffc0471d38c - rustc::ty::query::on_disk_cache::__ty_decoder_impl::<impl serialize::serialize::Decoder for rustc::ty::query::on_disk_cache::CacheDecoder<'a, 'tcx, 'x>>::read_str::h74a91adacef878ed
  59:     0x7ffc044438de - rustc::dep_graph::graph::DepGraph::assert_ignored::h90122fe68bc537f0
  60:     0x7ffc046e12c8 - rustc::ty::context::tls::track_diagnostic::h7d1e5e8dde7229ea
  61:     0x7ffc04742e0a - rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_print_query_stack::h3d7e8a96faf530c9
  62:     0x7ffc048c2a19 - rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_print_query_stack::h3d7e8a96faf530c9
  63:     0x7ffbf1898fd5 - <rustc_codegen_llvm::llvm::archive_ro::Iter<'a> as core::ops::drop::Drop>::drop::h444f68424a25a50e
  64:     0x7ffc0471d35c - rustc::ty::query::on_disk_cache::__ty_decoder_impl::<impl serialize::serialize::Decoder for rustc::ty::query::on_disk_cache::CacheDecoder<'a, 'tcx, 'x>>::read_str::h74a91adacef878ed
  65:     0x7ffc04432a0d - rustc::dep_graph::graph::DepGraph::assert_ignored::h90122fe68bc537f0
  66:     0x7ffc04681d5b - rustc::ty::context::tls::track_diagnostic::h7d1e5e8dde7229ea
  67:     0x7ffc0474d2e5 - rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_print_query_stack::h3d7e8a96faf530c9
  68:     0x7ffc047e65f5 - rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::try_print_query_stack::h3d7e8a96faf530c9
  69:     0x7ffc0981fc82 - <rustc::hir::def_id::DefId as rustc_metadata::index_builder::DepGraphRead>::read::h3b340e84fe341165
  70:     0x7ffc098e9fd2 - rustc_metadata::cstore_impl::<impl rustc::middle::cstore::CrateStore for rustc_metadata::cstore::CStore>::encode_metadata::h5928354363ef3377
  71:     0x7ffc048ec802 - rustc::ty::context::TyCtxt::encode_metadata::hbb71956da7be1969
  72:     0x7ffbf18472ae - rustc_codegen_llvm::base::codegen_instance::hce299f7a7f59487a
  73:     0x7ffbf177f803 - <rustc_codegen_llvm::builder::Builder<'a, 'll, 'tcx> as core::ops::drop::Drop>::drop::h439a46702de5aef6
  74:     0x7ffbf1847d3a - <rustc_codegen_llvm::base::ValueIter<'ll> as core::iter::iterator::Iterator>::next::he0da395b4329cfa7
  75:     0x7ffbf1883caf - <rustc_codegen_llvm::LlvmCodegenBackend as rustc_codegen_utils::codegen_backend::CodegenBackend>::codegen_crate::hc44896d7df975d85
  76:     0x7ffc0a1e5267 - rustc_driver::target_features::add_configuration::he35ca591bcb31a2a
  77:     0x7ffc0a2085bb - rustc_driver::driver::phase_4_codegen::hf5b4a549e4e2af7b
  78:     0x7ffc0a1a9072 - rustc_driver::profile::trace::write_style::haabee05f2ed35edf
  79:     0x7ffc0a1a38a5 - <unknown>
  80:     0x7ffc0a254fb0 - <rustc_driver::pretty::IdentifiedAnnotation<'hir> as rustc_driver::pretty::HirPrinterSupport<'hir>>::sess::hced09d8c09ffffee
  81:     0x7ffc0a2ba8c4 - <rustc_driver::CompilationFailure as core::fmt::Debug>::fmt::h2c936c58119fa67e
  82:     0x7ffc0a1fea65 - rustc_driver::driver::compile_input::h42c1b22ca6e8c252
  83:     0x7ffc0a297287 - rustc_driver::run_compiler::h557d85aa1314cf64
  84:     0x7ffc0a1fc774 - <env_logger::filter::inner::Filter as core::fmt::Display>::fmt::hd9a22bb7a2ae036a
  85:     0x7ffc0a295f07 - rustc_driver::run_compiler::h557d85aa1314cf64
  86:     0x7ffc0a1fbab4 - <env_logger::filter::inner::Filter as core::fmt::Display>::fmt::hd9a22bb7a2ae036a
  87:     0x7ffc0626a191 - _rust_maybe_catch_panic
  88:     0x7ffc0a293132 - rustc_driver::profile::dump::hfbdd114d72b3a9d6
  89:     0x7ffc0a2a58fd - rustc_driver::main::h167cf5a4a061f28a
  90:     0x7ff6f6ea1055 - <unknown>
  91:     0x7ffc062383a6 - std::panicking::update_panic_count::h83bb9890939a8cf6
  92:     0x7ffc0626a191 - _rust_maybe_catch_panic
  93:     0x7ffc0624a342 - std::rt::lang_start_internal::h0426125eaa59a4f1
  94:     0x7ff6f6ea1049 - <unknown>
  95:     0x7ff6f6ea1298 - <unknown>
  96:     0x7ffc191c8363 - BaseThreadInitThunk
  97:     0x7ffc195170d0 - RtlUserThreadStart

@wesleywiser
Copy link
Member

Looks like a duplicate of #51648

@saarw
Copy link
Author

saarw commented Nov 22, 2018

Yes, difference is that issue #51648 is intermittent, while this happens every time and only started with 1.30.1.

@pietroalbini pietroalbini added I-nominated T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. regression-from-stable-to-stable Performance or correctness regression from one stable version to another. labels Nov 22, 2018
@nagisa nagisa added O-windows Operating system: Windows P-high High priority and removed I-nominated labels Nov 22, 2018
@nagisa
Copy link
Member

nagisa commented Nov 22, 2018

Closing as a duplicate. There does not appear to be any reason to believe that it is not a duplicate based on intermittency (or lack of it thereof).

@nagisa nagisa closed this as completed Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-windows Operating system: Windows P-high High priority regression-from-stable-to-stable Performance or correctness regression from one stable version to another. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

5 participants