Skip to content

Compiler crash in ebml.rs #2089

Closed
Closed
@evanmcc

Description

@evanmcc
import io::{println};
import vec;

fn main(args: [str]) {
    let mut args = args;
    let binary: str = vec::shift(args);
    println(binary);
}

fails to compile with the error:

evan@bodine:~/src/rustbugs/ebml$ RUST_LOG=rustc=1,::rt::backtrace rustc ebml.rs
rust: upcall fail 'Expected label id but found node', src/libstd/ebml.rs:380
error: internal compiler error unexpected failure
note: The compiler hit an unexpected failure path. This is a bug. Try running with RUST_LOG=rustc=0,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: upcall fail 'explicit failure', src/rustc/driver/rustc.rs:182
rust: domain main @0x102829600 root task failed

This seems to be the minimal repro case. I haven't been able to work around it, so not entirely sure what's happening.

OS X 10.6, intel core2duo, branch master at commit 0904f25

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions