Skip to content

Various things are failing to build properly (ICE from metadata::loader::Context<'a>::extract_one) #19768

Closed
@chris-morgan

Description

@chris-morgan

Current master (da83ad8) is not working happily for me.

Firstly when building rustc itself I hit such an ICE on stage1 rustc_typeck; make clean fixed that.

Then building rust-http was failing on its openssl-sys dependency, and cargo clean doesn’t fix anything.

Here’s a log:

   Compiling openssl-sys v0.2.3 (https://github.com/sfackler/rust-openssl.git#9754b8e4)
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' panicked at 'assertion failed: end <= self.len()', /home/chris/rust/src/libcore/slice.rs:432

stack backtrace:
   1:     0x7ff4f487d4f0 - rt::backtrace::imp::write::hd08c312ffc24fdebBOx
   2:     0x7ff4f4880730 - failure::on_fail::h785d0db211373a4f1fy
   3:     0x7ff4f44c7830 - unwind::begin_unwind_inner::hfc6b33c4e303b822CJc
   4:     0x7ff4f44c7330 - unwind::begin_unwind_fmt::hbda4059670da174bZGc
   5:     0x7ff4f44c72f0 - rust_begin_unwind
   6:     0x7ff4f4519c90 - panicking::panic_fmt::h3347be739dbf7017Rtl
   7:     0x7ff4f4517990 - panicking::panic::h6f0e3fd368a3c76fhrl
   8:     0x7ff4f2dcab00 - metadata::loader::Context<'a>::extract_one::h275fd852bfdea8d0Pww
   9:     0x7ff4f2dc3770 - metadata::loader::Context<'a>::find_library_crate::hb35b23961c7ce9c3bnw
  10:     0x7ff4f2dbf1b0 - metadata::creader::PluginMetadataReader<'a>::read_plugin_metadata::h9a142a675de3ca43fdv
  11:     0x7ff4f2df5600 - plugin::load::PluginLoader<'a>.Visitor<'v>::visit_view_item::h6d9f73839121a1f5E6z
  12:     0x7ff4f2df4a30 - plugin::load::load_plugins::hcb515aa23d5f5e2eu5z
  13:     0x7ff4f4ca7e00 - driver::phase_2_configure_and_expand::h72ba3d5a14580daeQha
  14:     0x7ff4f4c9bed0 - driver::compile_input::hcab4bf799aef8163pba
  15:     0x7ff4f4d38ce0 - run_compiler::h59dcc43484c56d16EYb
  16:     0x7ff4f4d38bd0 - run::closure.21438
  17:     0x7ff4f4d4a5e0 - task::TaskBuilder::try_future::closure.22892
  18:     0x7ff4f4855970 - task::TaskBuilder::spawn_internal::closure.30605
  19:     0x7ff4f44c54d0 - task::Task::spawn::closure.5728
  20:     0x7ff4f452cab0 - rust_try_inner
  21:     0x7ff4f452caa0 - rust_try
  22:     0x7ff4f44c55b0 - unwind::try::h5bac8429de8dabf8Tyc
  23:     0x7ff4f44c5370 - task::Task::run::haa8aeae9a3513920fKb
  24:     0x7ff4f44c4f60 - task::Task::spawn::closure.5704
  25:     0x7ff4f44c69b0 - thread::thread_start::h870320451dc7eb6dw1b
  26:     0x7ff4ef561250 - start_thread
  27:     0x7ff4f419c589 - clone
  28:                0x0 - <unknown>

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