Skip to content

Unable to compile tests due to compiler panic #28151

Closed
@aomader

Description

@aomader

While trying to compile crate test code using cargo test the compiler panics.

The code is public and the causing commit can be found here. The output of the corresponding travis build can be seen here.

As you can see in the whole build, it compiled fine with beta and 1.0.0 though.

Meta

rustc --version --verbose:

rustc 1.4.0-nightly (fe9cef7da 2015-08-30)
binary: rustc
commit-hash: fe9cef7dae8732897820c0e4ca65bc7ee33604be
commit-date: 2015-08-30
host: x86_64-pc-windows-gnu
release: 1.4.0-nightly

Backtrace:

% RUST_BACKTRACE=1 cargo test --verbose
       Fresh winapi v0.2.2
       Fresh winapi-build v0.1.1
       Fresh libc v0.1.10
       Fresh order-stat v0.1.2
       Fresh log v0.3.2
       Fresh advapi32-sys v0.1.2
       Fresh rand v0.3.11
   Compiling cogset v0.2.0 (file:///C:/MSYS2/home/amader/Projects/cogset)
     Running `rustc examples\\dbscan.rs --crate-name dbscan --crate-type bin -g --out-dir C:\\MSYS2\\home\\amader\\Projects\\cogset\\target\\debug\\examples --emit=dep-info,link -L dependency=C:\\MSYS2\\home\\amader\\Projects\\cogset\\target\\debug -L dependency=C:\\MSYS2\\home\\amader\\Projects\\cogset\\target\\debug\\deps --extern rand=C:\\MSYS2\\home\\amader\\Projects\\cogset\\target\\debug\\deps\\librand-bdfcc55d3466feb3.rlib --extern quickcheck=C:\\MSYS2\\home\\amader\\Projects\\cogset\\target\\debug\\deps\\libquickcheck-59b3b3c789ff994b.rlib --extern order_stat=C:\\MSYS2\\home\\amader\\Projects\\cogset\\target\\debug\\deps\\liborder_stat-773286dd3d011b06.rlib --extern cogset=C:\\MSYS2\\home\\amader\\Projects\\cogset\\target\\debug\\libcogset.rlib`
       Fresh quickcheck v0.2.23
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
thread 'rustc' panicked at 'no entry found for key', ../src/libcore\option.rs:332

stack backtrace:
   1:         0x699bd3fe - sys::backtrace::write::haf323d6bf94e647azys
   2:         0x699c71f5 - rt::unwind::register::h6be04ffa27a82396NJw
   3:         0x6998569f - rt::unwind::begin_unwind_inner::h115730e0cef4a140WGw
   4:         0x6998602c - rt::unwind::begin_unwind_fmt::h4f9d83c15f244e992Fw
   5:         0x699c6c13 - rust_begin_unwind
   6:         0x699dc9d9 - panicking::panic_fmt::hdd95a351ec758ee6J7E
   7:         0x693455cd - middle::region::RegionMaps::lookup_code_extent::h4f7e4194f7a502c1MzM
   8:         0x6920776a - middle::region::RegionMaps::node_extent::h65f3294ef4977aa62zM
   9:         0x670aa7a3 - check::regionck::Rcx<'a, 'tcx>.Visitor<'v>::visit_item::hd9670f9c526dff73pSc
  10:         0x670a60f4 - check::regionck::regionck_expr::h2f708ec6701b1bafAoc
  11:         0x6713edde - check::CheckItemTypesVisitor<'a, 'tcx>.Visitor<'tcx>::visit_ty::h464b4d707085591cVmp
  12:         0x6713eb3f - check::check_item_type::h2553747e89268045tKp
  13:         0x6713eeca - check::CheckItemTypesVisitor<'a, 'tcx>.Visitor<'tcx>::visit_ty::h464b4d707085591cVmp
  14:         0x6713eb73 - check::check_item_type::h2553747e89268045tKp
  15:         0x6713fe07 - check::CheckItemTypesVisitor<'a, 'tcx>.Visitor<'tcx>::visit_ty::h464b4d707085591cVmp
  16:         0x6713fc83 - check::CheckItemTypesVisitor<'a, 'tcx>.Visitor<'tcx>::visit_ty::h464b4d707085591cVmp
  17:         0x6713e535 - check::check_item_type::h2553747e89268045tKp
  18:         0x6713fcd1 - check::CheckItemTypesVisitor<'a, 'tcx>.Visitor<'tcx>::visit_ty::h464b4d707085591cVmp
  19:         0x6713e535 - check::check_item_type::h2553747e89268045tKp
  20:         0x671fe7be - check_crate::hab4d02fd3b68d976wAE
  21:         0x67c06308 - driver::assign_node_ids_and_map::h0470786b3cad8440mEa
  22:         0x67be69a3 - driver::assign_node_ids_and_map::h0470786b3cad8440mEa
  23:         0x67be1e66 - driver::assign_node_ids_and_map::h0470786b3cad8440mEa
  24:         0x67bc278c - driver::compile_input::h295ed33499eb9d4aTba
  25:         0x67d31978 - run_compiler::hb00bf2cf10d8f7fb0bc
  26:         0x67d2f2d0 - run::h121fc37bdfac807cGbc
  27:         0x67d2ed49 - run::h121fc37bdfac807cGbc
  28:         0x699b0744 - rt::unwind::try::inner_try::h629698b626ab0373PCw
  29:         0x67d2eee4 - run::h121fc37bdfac807cGbc
  30:         0x699c4ece - rt::util::report_overflow::h02d3c14ad344f989vnw
  31:         0x77335a4d - BaseThreadInitThunk

Could not compile `cogset`.

Caused by:
  Process didn't exit successfully: `rustc examples\dbscan.rs --crate-name dbscan --crate-type bin -g --out-dir C:\MSYS2\home\amader\Projects\cogset\target\debug\examples --emit=dep-info,link -L dependency=C:\MSYS2\home\amader\Projects\cogset\target\debug -L dependency=C:\MSYS2\home\amader\Projects\cogset\target\debug\deps --extern rand=C:\MSYS2\home\amader\Projects\cogset\target\debug\deps\librand-bdfcc55d3466feb3.rlib --extern quickcheck=C:\MSYS2\home\amader\Projects\cogset\target\debug\deps\libquickcheck-59b3b3c789ff994b.rlib --extern order_stat=C:\MSYS2\home\amader\Projects\cogset\target\debug\deps\liborder_stat-773286dd3d011b06.rlib --extern cogset=C:\MSYS2\home\amader\Projects\cogset\target\debug\libcogset.rlib` (exit code: 101)

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions