Skip to content

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

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

Closed
chris-morgan opened this issue Dec 12, 2014 · 11 comments
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@chris-morgan
Copy link
Member

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>
@alexcrichton
Copy link
Member

Closing as a dupe of #19757, #19744, and #19718 (just needs a make clean).

@chris-morgan
Copy link
Member Author

@alexcrichton As I said, it’s not just rustc itself that’s failing, other things are failing too, for which cargo clean is not fixing anything.

(Nor for that matter do I consider requiring make clean to be an acceptable solution; it still indicates a bug, an ICE is always a bug.)

@milibopp
Copy link
Contributor

I'm running into the same issue with a completely fresh project. This is definitely a reproducible bug in the compiler.

My Cargo.toml reads like this:

[package]
name = "rust-ice-19768"
version = "0.0.1"
authors = ["Eduard Bopp <[email protected]>"]

[dependencies.nalgebra]
git = "https://github.com/sebcrozet/nalgebra"

[dependencies.acacia]
git = "https://github.com/aepsil0n/acacia"

and src/lib.rs merely declares these extern crates:

extern crate acacia;
extern crate nalgebra;

Note that acacia depends on nalgebra. When I change the order of crate declarations like so

extern crate nalgebra;
extern crate acacia;

it magically works again. This may point to a workaround. The backtrace is similar to the one posted by @cmr:

$ env RUST_BACKTRACE=1 cargo build --verbose                                                                                                                     ~/d/t/rust-ice-19768 130
   Compiling nalgebra v0.1.0 (https://github.com/sebcrozet/nalgebra#6c431ff6)
     Running `rustc src/lib.rs --crate-name nalgebra --crate-type lib -g -C metadata=d0bd0af049b73250 -C extra-filename=-d0bd0af049b73250 --out-dir /home/eduard/dev/toy/rust-ice-19768/target/deps --dep-info /home/eduard/dev/toy/rust-ice-19768/target/.fingerprint/nalgebra-d0bd0af049b73250/dep-lib-nalgebra -L /home/eduard/dev/toy/rust-ice-19768/target/deps -L /home/eduard/dev/toy/rust-ice-19768/target/deps -Awarnings`
       Fresh quickcheck v0.1.5 (https://github.com/BurntSushi/quickcheck#d7daf088)
       Fresh quickcheck_macros v0.1.5 (https://github.com/BurntSushi/quickcheck#d7daf088)
   Compiling acacia v0.0.1 (https://github.com/aepsil0n/acacia#bd2468e5)
     Running `rustc /home/eduard/.cargo/git/checkouts/acacia-c7b632136de50e89/master/src/lib.rs --crate-name acacia --crate-type lib -g -C metadata=44130cf3227ab7ae -C extra-filename=-44130cf3227ab7ae --out-dir /home/eduard/dev/toy/rust-ice-19768/target/deps --dep-info /home/eduard/dev/toy/rust-ice-19768/target/.fingerprint/acacia-44130cf3227ab7ae/dep-lib-acacia -L /home/eduard/dev/toy/rust-ice-19768/target/deps -L /home/eduard/dev/toy/rust-ice-19768/target/deps --extern quickcheck_macros=/home/eduard/dev/toy/rust-ice-19768/target/deps/libquickcheck_macros-45b5ea34e15bd1a0.so --extern nalgebra=/home/eduard/dev/toy/rust-ice-19768/target/deps/libnalgebra-d0bd0af049b73250.rlib --extern quickcheck=/home/eduard/dev/toy/rust-ice-19768/target/deps/libquickcheck-06670abe8b1a8157.rlib -Awarnings`
   Compiling rust-ice-19768 v0.0.1 (file:///home/eduard/dev/toy/rust-ice-19768)
     Running `rustc /home/eduard/dev/toy/rust-ice-19768/src/lib.rs --crate-name rust-ice-19768 --crate-type lib -g -C metadata=48de707623d5662d -C extra-filename=-48de707623d5662d --out-dir /home/eduard/dev/toy/rust-ice-19768/target --dep-info /home/eduard/dev/toy/rust-ice-19768/target/.fingerprint/rust-ice-19768-48de707623d5662d/dep-lib-rust-ice-19768 -L /home/eduard/dev/toy/rust-ice-19768/target -L /home/eduard/dev/toy/rust-ice-19768/target/deps --extern nalgebra=/home/eduard/dev/toy/rust-ice-19768/target/deps/libnalgebra-d0bd0af049b73250.rlib --extern acacia=/home/eduard/dev/toy/rust-ice-19768/target/deps/libacacia-44130cf3227ab7ae.rlib`
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()', /build/rust-git/src/rust/src/libcore/slice.rs:432

stack backtrace:
   1:     0x7f380a62d210 - rt::backtrace::imp::write::h49d8ac939d8781e7GOx
   2:     0x7f380a630310 - <unknown>
   3:     0x7f380a28c740 - unwind::begin_unwind_inner::h0288b255d3ea1869CJc
   4:     0x7f380a28c240 - unwind::begin_unwind_fmt::hf57382361e769392ZGc
   5:     0x7f380a28c200 - rust_begin_unwind
   6:     0x7f380a2cce20 - panicking::panic_fmt::hbf754a34cfe87a0eRtl
   7:     0x7f380a2cab20 - panicking::panic::hb1246f74b69e7954hrl
   8:     0x7f3808c56a70 - <unknown>
   9:     0x7f3808c4f6d0 - <unknown>
  10:     0x7f3808c4ad70 - metadata::loader::Context<'a>::load_library_crate::hddfb7c19c92a7307Rew
  11:     0x7f3808c45da0 - <unknown>
  12:     0x7f3808c48170 - <unknown>
  13:     0x7f3808c45da0 - <unknown>
  14:     0x7f3808c40ef0 - metadata::creader::Env<'a>.visit..Visitor<'v>::visit_view_item::h070c7cbec1c3f414pzu
  15:     0x7f3808c40380 - metadata::creader::read_crates::h20d08d8c8148ca69jyu
  16:     0x7f380aa9b2f0 - <unknown>
  17:     0x7f380aa5c250 - driver::phase_3_run_analysis_passes::h04cc27406c5d68a4Cta
  18:     0x7f380aa4b5e0 - driver::compile_input::hb6e5a7fd0e2cfd7cpba
  19:     0x7f380aae6970 - <unknown>
  20:     0x7f380aae6860 - <unknown>
  21:     0x7f380aaf80b0 - <unknown>
  22:     0x7f380a607160 - <unknown>
  23:     0x7f380a28a3e0 - <unknown>
  24:     0x7f380a2dfb90 - <unknown>
  25:     0x7f380a2dfb80 - rust_try
  26:     0x7f380a28a4c0 - unwind::try::h77d5b9b394dc26e4Tyc
  27:     0x7f380a28a280 - task::Task::run::hc596a395d876c158fKb
  28:     0x7f380a289e70 - <unknown>
  29:     0x7f380a28b8c0 - <unknown>
  30:     0x7f38056b2250 - start_thread
  31:     0x7f3809f61589 - clone
  32:                0x0 - <unknown>

Could not compile `rust-ice-19768`.

Caused by:
  Process didn't exit successfully: `rustc /home/eduard/dev/toy/rust-ice-19768/src/lib.rs --crate-name rust-ice-19768 --crate-type lib -g -C metadata=48de707623d5662d -C extra-filename=-48de707623d5662d --out-dir /home/eduard/dev/toy/rust-ice-19768/target --dep-info /home/eduard/dev/toy/rust-ice-19768/target/.fingerprint/rust-ice-19768-48de707623d5662d/dep-lib-rust-ice-19768 -L /home/eduard/dev/toy/rust-ice-19768/target -L /home/eduard/dev/toy/rust-ice-19768/target/deps --extern nalgebra=/home/eduard/dev/toy/rust-ice-19768/target/deps/libnalgebra-d0bd0af049b73250.rlib --extern acacia=/home/eduard/dev/toy/rust-ice-19768/target/deps/libacacia-44130cf3227ab7ae.rlib` (status=101)

@alexcrichton
Copy link
Member

I'll reopen this for now to track this, but I am unable to reproduce this with @aepsil0n's bug and I can't build rust-http right now due to it's master not compiling.

@aepsil0n are you sure you don't have stale libraries lying around elsewhere on the system? @chris-morgan same question for you here.

@chris-morgan do you have a reproducible example that I could test out on?

@alexcrichton alexcrichton reopened this Dec 12, 2014
@blanham
Copy link

blanham commented Dec 12, 2014

Was seeing this last night with the 12-10 nightly on OS X 10.10. This was failing on any input, including a fresh "hello, world" project generated by Cargo. Once I rolled back to the 12-08 nightly everything worked fine.

rustc 0.13.0-nightly (c38e73fef 2014-12-10 20:11:27 +0000)
binary: rustc
commit-hash: c38e73fef53e8520e5170c40713e32ab965a8abe
commit-date: 2014-12-10 20:11:27 +0000
host: x86_64-apple-darwin
release: 0.13.0-nightly
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()', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/libcore/slice.rs:432

stack backtrace:
   1:        0x10a41b5c0 - rt::backtrace::imp::write::hd3da47399b536f3dgVx
   2:        0x10a41e7d0 - failure::on_fail::hcbaa4351fd1cd347Uhy
   3:        0x10a670d95 - unwind::begin_unwind_inner::haf8c40ccae1da676FBc
   4:        0x10a670a77 - unwind::begin_unwind_fmt::h87e7c1472ee8c5812yc
   5:        0x10a670792 - rust_begin_unwind
   6:        0x10a6be4ac - panicking::panic_fmt::hc20ce06aae9c0de4Rtl
   7:        0x10a6b8f32 - panicking::panic::h572d9d2d545626c0hrl
   8:        0x107c8899d - metadata::loader::Context<'a>::extract_one::hdcc6f00df22da57bPww
   9:        0x107c8194e - metadata::loader::Context<'a>::find_library_crate::ha32a500828f7e95bbnw
  10:        0x107c7c93f - metadata::creader::PluginMetadataReader<'a>::read_plugin_metadata::h8f31ae7fa13eec2ffdv
  11:        0x107cb2c1d - plugin::load::PluginLoader<'a>.Visitor<'v>::visit_view_item::ha74f181071d8dd35E6z
  12:        0x107cb1fbb - plugin::load::load_plugins::h0b07b6b282d9e473u5z
  13:        0x106e488ff - driver::phase_2_configure_and_expand::hf7f3c8e52f612c09Qha
  14:        0x106e3c92f - driver::compile_input::h6cedb9382e2b9854pba
  15:        0x106ed42bd - run_compiler::h542f569c873ccc9aEYb
  16:        0x106ed2d1e - run::closure.21411
  17:        0x106ee415e - task::TaskBuilder::try_future::closure.22865
  18:        0x10a3f4843 - task::TaskBuilder::spawn_internal::closure.30641
  19:        0x10a66e99d - task::Task::spawn::closure.5568
  20:        0x10a6d616c - rust_try_inner
  21:        0x10a6d6156 - rust_try
  22:        0x10a66ea77 - unwind::try::h20dac7ad984fece2Wqc
  23:        0x10a66e84c - task::Task::run::h28163a638413e040fIb
  24:        0x10a66e54f - task::Task::spawn::closure.5544
  25:        0x10a66fe57 - thread::thread_start::h20523d95201137f0wZb
  26:     0x7fff933b62fc - _pthread_body
  27:     0x7fff933b6279 - _pthread_body

@milibopp
Copy link
Contributor

@alexcrichton I am sure, that I have not installed any library that is not distributed with the compiler system-wide and afaik cargo does not look into random folders in my workspace hunting for them.

So, I ran cargo clean, deleted the target folder manually, even created a new project to reproduce the bug. So I'll try to reproduce this on another machine.

I updated Rust and tried it with dea7143 and c38e73f. There's a gist with the project that fails for me.

In any case, as @cmr pointed out, the compiler shouldn't ICE, even if there are stale libraries hanging around, should it?

@alexcrichton
Copy link
Member

Can you try running with RUST_LOG=rustc::metadata::loader and paste the output here?

@milibopp
Copy link
Contributor

Turns out I was wrong. There was indeed an old version of nalgebra dated 2014/2/15 from some pre-cargo workaround. Sorry, I had totally forgotten about that.

INFO:rustc::metadata::loader: lib candidate: /usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libstd-4e7c5e5c.rlib
INFO:rustc::metadata::loader: lib candidate: /usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libstd-4e7c5e5c.so
INFO:rustc::metadata::loader: rlib reading metadata from: /usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-4e7c5e5c.rlib
INFO:rustc::metadata::loader: reading libstd-4e7c5e5c.rlib => 0ms
INFO:rustc::metadata::loader: lib candidate: /usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-4e7c5e5c.rlib
INFO:rustc::metadata::loader: rlib reading metadata from: /usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-4e7c5e5c.rlib
INFO:rustc::metadata::loader: reading liballoc-4e7c5e5c.rlib => 0ms
INFO:rustc::metadata::loader: lib candidate: /usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libcore-4e7c5e5c.rlib
INFO:rustc::metadata::loader: rlib reading metadata from: /usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-4e7c5e5c.rlib
INFO:rustc::metadata::loader: reading libcore-4e7c5e5c.rlib => 0ms
INFO:rustc::metadata::loader: lib candidate: /usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-4e7c5e5c.rlib
INFO:rustc::metadata::loader: rlib reading metadata from: /usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-4e7c5e5c.rlib
INFO:rustc::metadata::loader: reading liblibc-4e7c5e5c.rlib => 0ms
INFO:rustc::metadata::loader: lib candidate: /usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libunicode-4e7c5e5c.rlib
INFO:rustc::metadata::loader: rlib reading metadata from: /usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunicode-4e7c5e5c.rlib
INFO:rustc::metadata::loader: reading libunicode-4e7c5e5c.rlib => 0ms
INFO:rustc::metadata::loader: lib candidate: /usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libcollections-4e7c5e5c.rlib
INFO:rustc::metadata::loader: rlib reading metadata from: /usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcollections-4e7c5e5c.rlib
INFO:rustc::metadata::loader: reading libcollections-4e7c5e5c.rlib => 0ms
INFO:rustc::metadata::loader: lib candidate: /usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/librand-4e7c5e5c.rlib
INFO:rustc::metadata::loader: rlib reading metadata from: /usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/librand-4e7c5e5c.rlib
INFO:rustc::metadata::loader: reading librand-4e7c5e5c.rlib => 0ms
INFO:rustc::metadata::loader: lib candidate: /usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/librustrt-4e7c5e5c.rlib
INFO:rustc::metadata::loader: lib candidate: /usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/librustrt-4e7c5e5c.so
INFO:rustc::metadata::loader: rlib reading metadata from: /usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustrt-4e7c5e5c.rlib
INFO:rustc::metadata::loader: reading librustrt-4e7c5e5c.rlib => 0ms
INFO:rustc::metadata::loader: rlib reading metadata from: /home/eduard/dev/toy/rust-ice-19768/target/deps/libacacia-44130cf3227ab7ae.rlib
INFO:rustc::metadata::loader: reading libacacia-44130cf3227ab7ae.rlib => 0ms
INFO:rustc::metadata::loader: lib candidate: /home/eduard/dev/toy/rust-ice-19768/target/deps/libnalgebra-d0bd0af049b73250.rlib
INFO:rustc::metadata::loader: lib candidate: /usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libnalgebra-4c93d261-0.1.rlib
INFO:rustc::metadata::loader: rlib reading metadata from: /usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libnalgebra-4c93d261-0.1.rlib
INFO:rustc::metadata::loader: reading libnalgebra-4c93d261-0.1.rlib => 0ms
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()', /build/rust-git/src/rust/src/libcore/slice.rs:432

stack backtrace:
   1:     0x7f2914c98210 - rt::backtrace::imp::write::h49d8ac939d8781e7GOx
   2:     0x7f2914c9b310 - <unknown>
   3:     0x7f29148f7740 - unwind::begin_unwind_inner::h0288b255d3ea1869CJc
   4:     0x7f29148f7240 - unwind::begin_unwind_fmt::hf57382361e769392ZGc
   5:     0x7f29148f7200 - rust_begin_unwind
   6:     0x7f2914937e20 - panicking::panic_fmt::hbf754a34cfe87a0eRtl
   7:     0x7f2914935b20 - panicking::panic::hb1246f74b69e7954hrl
   8:     0x7f29132c1a30 - <unknown>
   9:     0x7f29132ba690 - <unknown>
  10:     0x7f29132b5d30 - metadata::loader::Context<'a>::load_library_crate::hddfb7c19c92a7307Rew
  11:     0x7f29132b0d60 - <unknown>
  12:     0x7f29132b3130 - <unknown>
  13:     0x7f29132b0d60 - <unknown>
  14:     0x7f29132abeb0 - metadata::creader::Env<'a>.visit..Visitor<'v>::visit_view_item::h070c7cbec1c3f414pzu
  15:     0x7f29132ab340 - metadata::creader::read_crates::h20d08d8c8148ca69jyu
  16:     0x7f29151062f0 - <unknown>
  17:     0x7f29150c7250 - driver::phase_3_run_analysis_passes::he4c9c4f305f26aeeCta
  18:     0x7f29150b65e0 - driver::compile_input::h0203f9fb584e1f48pba
  19:     0x7f2915151910 - <unknown>
  20:     0x7f2915151800 - <unknown>
  21:     0x7f2915163050 - <unknown>
  22:     0x7f2914c72160 - <unknown>
  23:     0x7f29148f53e0 - <unknown>
  24:     0x7f291494ab90 - <unknown>
  25:     0x7f291494ab80 - rust_try
  26:     0x7f29148f54c0 - unwind::try::h77d5b9b394dc26e4Tyc
  27:     0x7f29148f5280 - task::Task::run::hc596a395d876c158fKb
  28:     0x7f29148f4e70 - <unknown>
  29:     0x7f29148f68c0 - <unknown>
  30:     0x7f290fd1d250 - start_thread
  31:     0x7f29145cc589 - clone
  32:                0x0 - <unknown>

@alexcrichton
Copy link
Member

@chris-morgan can you try running with that same command?

@huonw huonw added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Dec 17, 2014
@chris-morgan
Copy link
Member Author

Here’s an example from rust-http, where it fails in openssl-sys. The command was got from cargo build --verbose.

$ RUST_LOG=rustc::metadata::loader rustc /home/chris/.cargo/git/checkouts/rust-openssl-4145800ab3594a0f/master/openssl-sys/src/lib.rs --crate-name openssl-sys --crate-type lib -g -C metadata=c31362507ac3b399 -C extra-filename=-c31362507ac3b399 --out-dir /home/chris/rust-http/target/deps --dep-info /home/chris/rust-http/target/.fingerprint/openssl-sys-c31362507ac3b399/dep-lib-openssl-sys -L /home/chris/rust-http/target/deps -L /home/chris/rust-http/target/deps -Awarnings -L /usr/lib -l ssl -l crypto
INFO:rustc::metadata::loader: lib candidate: /usr/lib/libstd-59beb4f7-0.11.0-pre.rlib
INFO:rustc::metadata::loader: lib candidate: /usr/lib/libstd-59beb4f7-0.11.0-pre.so
INFO:rustc::metadata::loader: lib candidate: /usr/lib/libstdc++.so
INFO:rustc::metadata::loader: lib candidate: /home/chris/opt/rust/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-4e7c5e5c.rlib
INFO:rustc::metadata::loader: lib candidate: /home/chris/opt/rust/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-4e7c5e5c.so
INFO:rustc::metadata::loader: dylib reading metadata from: /usr/lib/libstdc++.so.6.0.20
DEBUG:rustc::metadata::loader: get_metadata_section: name 
DEBUG:rustc::metadata::loader: get_metadata_section: name .note.gnu.build-id
DEBUG:rustc::metadata::loader: get_metadata_section: name .gnu.hash
DEBUG:rustc::metadata::loader: get_metadata_section: name .dynsym
DEBUG:rustc::metadata::loader: get_metadata_section: name .dynstr
DEBUG:rustc::metadata::loader: get_metadata_section: name .gnu.version
DEBUG:rustc::metadata::loader: get_metadata_section: name .gnu.version_d
DEBUG:rustc::metadata::loader: get_metadata_section: name .gnu.version_r
DEBUG:rustc::metadata::loader: get_metadata_section: name .rela.dyn
DEBUG:rustc::metadata::loader: get_metadata_section: name .rela.plt
DEBUG:rustc::metadata::loader: get_metadata_section: name .init
DEBUG:rustc::metadata::loader: get_metadata_section: name .plt
DEBUG:rustc::metadata::loader: get_metadata_section: name .text
DEBUG:rustc::metadata::loader: get_metadata_section: name .fini
DEBUG:rustc::metadata::loader: get_metadata_section: name .rodata
DEBUG:rustc::metadata::loader: get_metadata_section: name .eh_frame_hdr
DEBUG:rustc::metadata::loader: get_metadata_section: name .eh_frame
DEBUG:rustc::metadata::loader: get_metadata_section: name .gcc_except_table
DEBUG:rustc::metadata::loader: get_metadata_section: name .tbss
DEBUG:rustc::metadata::loader: get_metadata_section: name .init_array
DEBUG:rustc::metadata::loader: get_metadata_section: name .fini_array
DEBUG:rustc::metadata::loader: get_metadata_section: name .jcr
DEBUG:rustc::metadata::loader: get_metadata_section: name .data.rel.ro
DEBUG:rustc::metadata::loader: get_metadata_section: name .dynamic
DEBUG:rustc::metadata::loader: get_metadata_section: name .got
DEBUG:rustc::metadata::loader: get_metadata_section: name .got.plt
DEBUG:rustc::metadata::loader: get_metadata_section: name .data
DEBUG:rustc::metadata::loader: get_metadata_section: name .bss
DEBUG:rustc::metadata::loader: get_metadata_section: name .comment
DEBUG:rustc::metadata::loader: get_metadata_section: name .debug_aranges
DEBUG:rustc::metadata::loader: get_metadata_section: name .debug_info
DEBUG:rustc::metadata::loader: get_metadata_section: name .debug_abbrev
DEBUG:rustc::metadata::loader: get_metadata_section: name .debug_line
DEBUG:rustc::metadata::loader: get_metadata_section: name .debug_str
DEBUG:rustc::metadata::loader: get_metadata_section: name .debug_loc
DEBUG:rustc::metadata::loader: get_metadata_section: name .debug_ranges
DEBUG:rustc::metadata::loader: get_metadata_section: name .shstrtab
DEBUG:rustc::metadata::loader: get_metadata_section: name .symtab
DEBUG:rustc::metadata::loader: get_metadata_section: name .strtab
INFO:rustc::metadata::loader: reading libstdc++.so.6.0.20 => 0ms
INFO:rustc::metadata::loader: no metadata found
INFO:rustc::metadata::loader: rlib reading metadata from: /home/chris/opt/rust/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-4e7c5e5c.rlib
INFO:rustc::metadata::loader: reading libstd-4e7c5e5c.rlib => 0ms
INFO:rustc::metadata::loader: rlib reading metadata from: /usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-59beb4f7-0.11.0-pre.rlib
INFO:rustc::metadata::loader: reading libstd-59beb4f7-0.11.0-pre.rlib => 0ms
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:119

stack backtrace:
   1:     0x7fe97baa8cb0 - rt::backtrace::imp::write::he833ac6ceeaffba7FUx
   2:     0x7fe97baac080 - failure::on_fail::h854fc12341fc775e3ly
   3:     0x7fe97b6e2070 - unwind::begin_unwind_inner::h4cba7a159498d42faNc
   4:     0x7fe97b6e1b70 - unwind::begin_unwind_fmt::h8a8e9d1a1bcccc61xKc
   5:     0x7fe97b6e1b30 - rust_begin_unwind
   6:     0x7fe97b734d60 - panicking::panic_fmt::h9907a8e31ba54b84gll
   7:     0x7fe97b732a60 - panicking::panic::h96bf5aa3a954ec4eGil
   8:     0x7fe979e031b0 - metadata::loader::Context<'a>::extract_one::h1cd45d747fca78ddYzq
   9:     0x7fe979dfb0f0 - metadata::loader::Context<'a>::find_library_crate::h40143a4c672c09bekqq
  10:     0x7fe979df6c60 - metadata::creader::PluginMetadataReader<'a>::read_plugin_metadata::hc7ab5dca73da937eygp
  11:     0x7fe979e2d650 - plugin::load::PluginLoader<'a>.Visitor<'v>::visit_view_item::h735ac4c27cdca5e2T9t
  12:     0x7fe979e2ca80 - plugin::load::load_plugins::h6d9f72909f1dd8a0J8t
  13:     0x7fe97beeaa30 - driver::phase_2_configure_and_expand::hd0af59d1072d8b22Sha
  14:     0x7fe97bede8d0 - driver::compile_input::h9bc853abf80ea006rba
  15:     0x7fe97c092910 - run_compiler::h8f684c83f08e07dfAYb
  16:     0x7fe97c089550 - thunk::F.Invoke<A, R>::invoke::h9148176715583558026
  17:     0x7fe97ba81060 - thunk::F.Invoke<A, R>::invoke::h3657185632151857599
  18:     0x7fe97b6e07e0 - task::Task::spawn_thunk::closure.5783
  19:     0x7fe97b7492b0 - rust_try_inner
  20:     0x7fe97b7492a0 - rust_try
  21:     0x7fe97b6e08f0 - unwind::try::hf911d270a8188879rCc
  22:     0x7fe97b6e0680 - task::Task::run::h6b0467fbfd3af2dcsNb
  23:     0x7fe97b6dfdf0 - thunk::F.Invoke<A, R>::invoke::h12189959489304490692
  24:     0x7fe97b6e1740 - thread::thread_start::hb135021f83af19ccM4b
  25:     0x7fe9763ee250 - start_thread
  26:     0x7fe97b3b6589 - clone
  27:                0x0 - <unknown>

Incidentally, since Cargo shifted to using the 2014-12-12 nightly I can’t build Cargo, it fails in libz-sys as well as openssl-sys.

@alexcrichton
Copy link
Member

Fixed by #19799

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