Skip to content

internal compiler error: 'index out of bounds' #17289

Closed
@oblitum

Description

@oblitum

Building rust-lang/cargo@31c4baf on 63eaba2 but got this:

Could not compile `libgit2`.

--- stdout
task 'rustc' failed at 'index out of bounds: the len is 56 but the index is 406', /private/tmp/rust-2WTYvO/src/libsyntax/lib.rs:1

stack backtrace:
   1:        0x112809249 - rt::backtrace::imp::write::h1903589be5ac481cdPq
   2:        0x11280c5a1 - failure::on_fail::h77d0ffb2719b85cdR5q
   3:        0x112aab955 - unwind::begin_unwind_inner::hea9898af96e0a19fPQd
   4:        0x112aab608 - unwind::begin_unwind_fmt::h5d7843f827787588hOd
   5:        0x112aab2f2 - rust_begin_unwind
   6:        0x112afdf8c - failure::begin_unwind::heb0c8adb522059ea1mk
   7:        0x112afde5e - failure::fail_bounds_check::hba050a8e3d6df883skk
   8:        0x11a078684 - util::interner::StrInterner::get::h99d136e0eccf641c0pa
   9:        0x11a08f968 - ast::Name::as_str::h58412323700bd16aTMb
  10:        0x11a139681 - parse::parser::Parser<'a>::lit_from_token::h599eab467f4278f5ChK
  11:        0x11a13dc2c - parse::parser::Parser<'a>::parse_lit::hd28284011a2b4b93GjK
  12:        0x11a142603 - parse::parser::Parser<'a>::parse_bottom_expr::h2ee1d373c8341700lBK
  13:        0x11a14a146 - parse::parser::Parser<'a>::parse_prefix_expr::h6dc3a17b37d46ec4wfL
  14:        0x11a14a7fd - parse::parser::Parser<'a>::parse_assign_expr::h953c9b592ca189495nL
  15:        0x11a07e572 - parse::parser::Parser<'a>::parse_expr::h7d6bce249db03716syL
  16:        0x11793238e - parse_string::h676aa2a77ed1f92a7ua
  17:        0x11792f6d4 - expand_link_config::hb827bede6339e9c4Cba
  18:        0x110bc915a - ext::base::MacroExpanderFn.TTMacroExpander::expand::h83ec5aed6913e433m80
  19:        0x110c3eef6 - ext::expand::expand_item_mac::h3d741d0c6f4a7ab6kX7
  20:        0x110c3c07e - ext::expand::expand_item::hc11b8daef767cb165O7
  21:        0x110c48b87 - fold::noop_fold_mod::closure.52184
  22:        0x110c48980 - iter::Iterator::collect::h14144417837773372411
  23:        0x110c46c0f - fold::Folder::fold_mod::h9466688161727339124
  24:        0x110ca07bd - ext::expand::expand_crate::h8b0c4df0d18f5931vC8
  25:        0x11003132b - driver::driver::phase_2_configure_and_expand::closure.143781
  26:        0x10fe35475 - driver::driver::phase_2_configure_and_expand::h1a0cbe5b588f3d2eoou
  27:        0x10fff5262 - driver::driver::compile_input::h1ee1e1d504016d0evhu
  28:        0x11009f0b4 - driver::run_compiler::h4e5f868faf7a819d17x
  29:        0x11009d2e6 - driver::main_args::closure.147625
  30:        0x10f7af13b - task::TaskBuilder<S>::try_future::closure.100304
  31:        0x10f7af033 - task::TaskBuilder<S>::spawn_internal::closure.100275
  32:        0x10f72359d - task::spawn_opts::closure.8507
  33:        0x112b0dfcc - rust_try_inner
  34:        0x112b0dfb6 - rust_try
  35:        0x112aa8cd7 - unwind::try::hc47eaaee76e18794xFd
  36:        0x112aa8b4c - task::Task::run::h4aaec2a6b65d966fPVc
  37:        0x10f7233f2 - task::spawn_opts::closure.8446
  38:        0x112aaa80a - thread::thread_start::h8561d3c1c3e6984d1fd
  39:     0x7fff88377899 - _pthread_body
  40:     0x7fff8837772a - _pthread_struct_init


--- stderr
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. 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


To learn more, run the command again with --verbose.
make: *** [cargo-x86_64-apple-darwin] Error 101

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️O-macosOperating system: macOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions