Skip to content

Internal compiler error: 'index out of bounds' #10905

@wackywendell

Description

@wackywendell

When trying to compile this code, I get the following error:

$ rustc --lib "mdsim2.rs"
task 'rustc' failed at 'index out of bounds: the len is 26499407 but the index is 26499407', /build/rust-git/src/rust/src/libextra/ebml.rs:100
error: internal compiler error: unexpected failure
This message reflects a bug in the Rust compiler. 
We would appreciate a bug report: https://github.com/mozilla/rust/wiki/HOWTO-submit-a-Rust-bug-report
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1 to get further details and report the results to github.com/mozilla/rust/issues
task '<main>' failed at 'explicit failure', /build/rust-git/src/rust/src/librustc/lib.rs:393
$ rustc -v
rustc 0.9-pre (f817ed3 2013-12-09 13:51:32 -0800)
host: x86_64-unknown-linux-gnu

Note that this requires nalgebra, which I had compiled just previously in my ~/.rust directory (different from the attached Gist file).

Also, I did try running with RUST_LOG=rustc=1, but I could see no difference; I'll file a separate bug report for that.

One more note: when I stripped this file down, the compiler error changed; it used to say task 'rustc' failed at 'lookup_item: id not found: 74888', /build/rust-git/src/rust/src/librustc/metadata/decoder.rs:91/

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