Skip to content

rustc build from HEAD panicks #19744

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
untitaker opened this issue Dec 11, 2014 · 3 comments
Closed

rustc build from HEAD panicks #19744

untitaker opened this issue Dec 11, 2014 · 3 comments

Comments

@untitaker
Copy link
Contributor

Archlinux:

$ RUST_BACKTRACE=1 make
cfg: build triple x86_64-unknown-linux-gnu
cfg: host triples x86_64-unknown-linux-gnu
cfg: target triples x86_64-unknown-linux-gnu
cfg: enabling more debugging (CFG_ENABLE_DEBUG)
cfg: host for x86_64-unknown-linux-gnu is x86_64
cfg: os for x86_64-unknown-linux-gnu is unknown-linux-gnu
cfg: good valgrind for x86_64-unknown-linux-gnu is 1
cfg: using CC=gcc (CFG_CC)
cfg: enabling valgrind run-pass tests (CFG_ENABLE_VALGRIND_RPASS)
rustc: x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblog
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/untitaker/projects/rust/src/libcore/slice.rs:432

stack backtrace:
   1:     0x7f8681a534e0 - rt::backtrace::imp::write::h8f3ddc8f415cb59aGOx
   2:     0x7f8681a56720 - failure::on_fail::h7cd43dba16cc0f876fy
   3:     0x7f868169d830 - unwind::begin_unwind_inner::h0395964cdbdfc487CJc
   4:     0x7f868169d330 - unwind::begin_unwind_fmt::h2d5fc7181bcc7c37ZGc
   5:     0x7f868169d2f0 - rust_begin_unwind
   6:     0x7f86816efc90 - panicking::panic_fmt::h8f65394db1e5cd12Rtl
   7:     0x7f86816ed990 - panicking::panic::h29878e5b2190a75ahrl
   8:     0x7f867ffa0780 - metadata::loader::Context<'a>::extract_one::hfe6ef78f810a3f33Pww
   9:     0x7f867ff993f0 - metadata::loader::Context<'a>::find_library_crate::h3139dc8ccd572619bnw
  10:     0x7f867ff94bf0 - metadata::loader::Context<'a>::load_library_crate::h64f05663732f82faRew
  11:     0x7f867ff8f970 - metadata::creader::resolve_crate::hab96be16e8d4eb78u6u
  12:     0x7f867ff89f00 - metadata::creader::Env<'a>.visit..Visitor<'v>::visit_view_item::hda55b65fa089a578pzu
  13:     0x7f867ff89320 - metadata::creader::read_crates::hb3f52378c8eedcd4jyu
  14:     0x7f8681ec2760 - util::common::time::h13602981685918876014
  15:     0x7f8681e83120 - driver::phase_3_run_analysis_passes::hd743276d656939a0Cta
  16:     0x7f8681e71eb0 - driver::compile_input::hfdfb71bde631b671pba
  17:     0x7f8681f0e9c0 - run_compiler::ha3c7a06f8b4d7dccEYb
  18:     0x7f8681f0e8b0 - run::closure.21405
  19:     0x7f8681f202c0 - task::TaskBuilder::try_future::closure.22859
  20:     0x7f8681a2b960 - task::TaskBuilder::spawn_internal::closure.30614
  21:     0x7f868169b4d0 - task::Task::spawn::closure.5729
  22:     0x7f8681702ab0 - rust_try_inner
  23:     0x7f8681702aa0 - rust_try
  24:     0x7f868169b5b0 - unwind::try::h8902e4b3c8b1997fTyc
  25:     0x7f868169b370 - task::Task::run::h1ea22de48de2edbdfKb
  26:     0x7f868169af60 - task::Task::spawn::closure.5705
  27:     0x7f868169c9b0 - thread::thread_start::h5b83d88cdd72e2e4w1b
  28:     0x7f867c72e250 - start_thread
  29:     0x7f8681372589 - clone
  30:                0x0 - <unknown>

/home/untitaker/projects/rust/mk/target.mk:165: recipe for target 'x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/stamp.log' failed
make: *** [x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/stamp.log] Error 101

I'll fiddle around with gdb later.

@steveklabnik
Copy link
Member

make clean should fix this.

@alexcrichton
Copy link
Member

Yes, and if this reproduces afterwards, feel free to reopen!

@untitaker
Copy link
Contributor Author

Indeed it did, thanks!

@alexcrichton FWIW I wouldn't have been able to reopen this issue, since you closed it. I would've been able to reopen only if I closed it myself.

alexcrichton added a commit to alexcrichton/rust that referenced this issue Dec 13, 2014
brson added a commit to brson/rust that referenced this issue Dec 16, 2014
bors added a commit that referenced this issue Dec 17, 2014
Fix a panic where the compiler was looking at stale or old metadata.

See #19798, #19772, #19757, #19744, #19718, #19691.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants