the compiler unexpectedly panicked. this is a bug. #49113
Closed
Description
I upgraded to a new rust nightly and now it seems the compiler crashes during build.
- I'm using raspberry pi 3
> uname -a
Linux pidesk 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l GNU/Linux
- rust version:
> rustc --version
rustc 1.26.0-nightly (55c984ee5 2018-03-16)
- code example which causes issue: /~https://github.com/sagiegurari/misc-test/tree/rust2
- error:
> cargo check
Compiling test v0.0.1 (file:///media/projects/misc-test)
Finished dev [unoptimized + debuginfo] target(s) in 0.70 secs
> cargo build --verbose
Compiling utf8-ranges v1.0.0
Running `rustc --crate-name utf8_ranges /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/utf8-ranges-1.0.0/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=0d901130be5be452 -C extra-filename=-0d901130be5be452 --out-dir /media/projects/misc-test/target/debug/deps -L dependency=/media/projects/misc-test/target/debug/deps --cap-lints allow`
thread 'rustc' panicked at 'index out of bounds: the len is 21696714 but the index is 21696714', /checkout/src/libserialize/opaque.rs:259:21
note: Run with `RUST_BACKTRACE=1` for a backtrace.
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
note: rustc 1.26.0-nightly (55c984ee5 2018-03-16) running on armv7-unknown-linux-gnueabihf
note: compiler flags: -C debuginfo=2 --crate-type lib
note: some of the compiler flags provided by cargo are hidden
error: Could not compile `utf8-ranges`.
Caused by:
process didn't exit successfully: `rustc --crate-name utf8_ranges /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/utf8-ranges-1.0.0/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=0d901130be5be452 -C extra-filename=-0d901130be5be452 --out-dir /media/projects/misc-test/target/debug/deps -L dependency=/media/projects/misc-test/target/debug/deps --cap-lints allow` (exit code: 101)