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

Unable to compile tests due to compiler panic #28151

Closed
aomader opened this issue Sep 1, 2015 · 1 comment · Fixed by #28190
Closed

Unable to compile tests due to compiler panic #28151

aomader opened this issue Sep 1, 2015 · 1 comment · Fixed by #28190
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@aomader
Copy link

aomader commented Sep 1, 2015

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)
@jdm jdm added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Sep 1, 2015
arielb1 pushed a commit to arielb1/rust that referenced this issue Sep 3, 2015
bors added a commit that referenced this issue Sep 5, 2015
@Manishearth
Copy link
Member

Another code example: #28261 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants