Skip to content

Compiler in 1.30.1 stable reliably panics on Windows #56095

Closed
@saarw

Description

@saarw

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-windowsOperating system: WindowsP-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions