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

ICE while compiling piston-gfx_texture #28261

Closed
dobrite opened this issue Sep 5, 2015 · 3 comments
Closed

ICE while compiling piston-gfx_texture #28261

dobrite opened this issue Sep 5, 2015 · 3 comments
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@dobrite
Copy link

dobrite commented Sep 5, 2015

While compiling piston-gfx_texture v0.3.0
PistonDevelopers/gfx_texture#67

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:        0x10771d7d0 - sys::backtrace::tracing::imp::write::h8eb606f0676b1c68Sqs
   2:        0x1077245eb - panicking::on_panic::h439344cab6a0722eKXw
   3:        0x1076e6312 - rt::unwind::begin_unwind_inner::h208ecd91d43787c9Msw
   4:        0x1076e709d - rt::unwind::begin_unwind_fmt::hf44048ddc5eaca53Srw
   5:        0x1077241f7 - rust_begin_unwind
   6:        0x107767780 - panicking::panic_fmt::hd63ccd83aea7a95388E
   7:        0x1044d4e3c - middle::region::RegionMaps::lookup_code_extent::h79ca6c63fd2282e8XtM
   8:        0x10439950a - middle::region::RegionMaps::node_extent::hd5c126474fdac37aduM
   9:        0x103e95ab2 - check::regionck::visit_expr::h5bee824ec8eb42cbYXc
  10:        0x103e913f1 - check::regionck::regionck_expr::h2328ab0d8df9ce4fFoc
  11:        0x103f2d196 - check::CheckItemTypesVisitor<'a, 'tcx>.Visitor<'tcx>::visit_ty::hf7c585d35e19050eErp
  12:        0x103f2cede - visit::walk_path::h17066397228797825325
  13:        0x103f2e046 - visit::walk_generics::h9324826419166596983
  14:        0x103f2df31 - visit::Visitor::visit_fn::h12805300175219594938
  15:        0x103f2cd93 - visit::walk_item::h12260364110452110519
  16:        0x103fe7c8c - check_crate::hab56984f02914bb3szE
  17:        0x10381bdea - driver::phase_3_run_analysis_passes::closure.21701
  18:        0x1037fd92a - middle::ty::ctxt<'tcx>::create_and_enter::h17306982840569711098
  19:        0x1037f9105 - driver::phase_3_run_analysis_passes::h17425279237084051649
  20:        0x1037d9ad5 - driver::compile_input::he87cc9423ff645a1Yba
  21:        0x10393d750 - run_compiler::h3fee87f6f710fd16eqc
  22:        0x10393b049 - boxed::F.FnBox<A>::call_box::h16432922749427286300
  23:        0x10393aa42 - rt::unwind::try::try_fn::h2840794312642008657
  24:        0x1077241a8 - __rust_try
  25:        0x1077103b0 - rt::unwind::try::inner_try::h1851ddf9ecd93c2fFow
  26:        0x10393abf2 - boxed::F.FnBox<A>::call_box::h3074866770647242799
  27:        0x10772351d - sys::thread::Thread::new::thread_start::hc131c4deb753ff20oNv
  28:     0x7fff8de3b267 - _pthread_body
  29:     0x7fff8de3b1e4 - _pthread_start

Could not compile `piston-gfx_texture`.

rustc --version --verbose:
rustc 1.4.0-nightly (779b2a9 2015-09-04)
binary: rustc
commit-hash: 779b2a9
commit-date: 2015-09-04
host: x86_64-apple-darwin
release: 1.4.0-nightly

🍻

@alexispurslane
Copy link
Contributor

Does anyone have an idea as to how to track down this bug? It looks like Rust itself is accessing an undefined key, and then the libstd hash is doing a .expect()

@steveklabnik steveklabnik added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Sep 5, 2015
@jdm
Copy link
Contributor

jdm commented Sep 5, 2015

The first step is to isolate the code that's triggering the problem. Running with RUSTLOG=debug will yield an incredible amount of debug output, but it may help track down the source of the problem.

@Manishearth
Copy link
Member

#28151

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

No branches or pull requests

5 participants