Skip to content

assertion crash when compile install #19718

Closed
@chenyukang

Description

@chenyukang

I got crash error when compile rust from latest code, the backtrace is:

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/yukang/code/rust/src/libcore/slice.rs:432

stack backtrace:
   1:        0x10750c64f - rt::backtrace::imp::write::he6ae76d5c086b537mvy
   2:        0x10750ea58 - failure::on_fail::ha8c26b1aae769234SSy
   3:        0x107750515 - unwind::begin_unwind_inner::h4cb4bf3aa4dbc81fwJc
   4:        0x107750226 - unwind::begin_unwind_fmt::hddb950f2b0b62f22HGc
   5:        0x107750002 - rust_begin_unwind
   6:        0x10779e79c - panicking::panic_fmt::ha4796e0cee579356C4l
   7:        0x107799222 - panicking::panic::h34ba2bf0644dc9ddE1l
   8:        0x104f03cf8 - metadata::loader::Context<'a>::extract_one::h3a7bf3263487f55cexB
   9:        0x104efdb95 - metadata::loader::Context<'a>::find_library_crate::h6f3e9c05b81e3c01qmB
  10:        0x104ef47d0 - metadata::creader::resolve_crate::h09f6bc6a70647d07P2z
  11:        0x104eef4f2 - metadata::creader::Env<'a>.visit..Visitor<'v>::visit_view_item::hcff95e1efff9afb6Ctz
  12:        0x104eeebff - metadata::creader::read_crates::h5ef98a287c815642wsz
  13:        0x10432db1f - util::common::time::h12363387714013853731
  14:        0x1042f2ea0 - driver::phase_3_run_analysis_passes::h901ed30c20dee8d2Ota
  15:        0x1042e5cd7 - driver::compile_input::h988899b864c44467pba
  16:        0x104379cba - run::closure.21707
  17:        0x10438606e - task::TaskBuilder::try_future::closure.23161
  18:        0x1074ed84d - task::TaskBuilder::spawn_internal::closure.31465
  19:        0x10774e7a2 - task::Task::spawn::closure.5663
  20:        0x1077b645c - rust_try_inner
  21:        0x1077b6446 - rust_try
  22:        0x10774e6bf - task::Task::run::h534effda633f7973GMb
  23:        0x10774e42d - task::Task::spawn::closure.5639
  24:        0x10774f7ee - thread::thread_start::h76921074dd87a458J4b
  25:     0x7fff8d10b899 - _pthread_body
  26:     0x7fff8d10b72a - _pthread_struct_init

make: *** [x86_64-apple-darwin/stage1/lib/rustlib/x86_64-apple-darwin/lib/stamp.rustc_typeck] Error 101

my OS is:

Darwin kang-mini.local 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun  3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions