Skip to content

the compiler unexpectedly panicked. this is a bug. #49113

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
sagiegurari opened this issue Mar 17, 2018 · 9 comments
Closed

the compiler unexpectedly panicked. this is a bug. #49113

sagiegurari opened this issue Mar 17, 2018 · 9 comments
Assignees
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ O-Arm Target: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 state P-high High priority regression-from-stable-to-nightly Performance or correctness regression from stable to nightly.

Comments

@sagiegurari
Copy link

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)
> 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.heygears.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.heygears.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)
@bjorn3
Copy link
Member

bjorn3 commented Mar 17, 2018

Looks like dup of #49065

@sagiegurari
Copy link
Author

ya maybe. tried to find something similar, but didn't find in the titles.

@kennytm kennytm added I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ O-Arm Target: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 state regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. C-bug Category: This is a bug. labels Mar 18, 2018
@sagiegurari
Copy link
Author

I guess #48923 is related as well as #49065 was just closed

@sagiegurari
Copy link
Author

Actually reading more, I see they complain on incremental builds and for me it is a simple clean build.
Might be wrong but it does look like high priority.

@bjorn3
Copy link
Member

bjorn3 commented Mar 19, 2018

Cargo uses incremental builds by default now (rust-lang/cargo#4817)

@nikomatsakis
Copy link
Contributor

Hopefully a duplicate of #48923.

@sagiegurari can you verify if (a) using CARGO_INCREMENTAL=0 stops the problem and (b) get the output using RUST_BACKTRACE=1?

@nikomatsakis
Copy link
Contributor

triage: P-high

Since likely incremental bug, assigning to @michaelwoerister

@sagiegurari
Copy link
Author

sagiegurari commented Mar 22, 2018

I upgraded to the latest nightly 2018-03-20 and it looks like everything is working fine now.
Wasn't aware there was a fix already.

@michaelwoerister
Copy link
Member

This was probably MIRI related then. Thanks for the update, @sagiegurari!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ O-Arm Target: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 state P-high High priority regression-from-stable-to-nightly Performance or correctness regression from stable to nightly.
Projects
None yet
Development

No branches or pull requests

6 participants