Skip to content

'rustc --pretty typed' fails for hello world #4264

Description

@richard-uk1

(edited to update syntax)

Command is

rustc --pretty typed hello.rs

Code is (hello.rs)

/*
 *
 */
fn main() {
    println!("Hello, world");
}

Stack trace(some debugging info but not all)

rust: task failed at 'option::get none', /home/qwerty/Programming/rust/rust-dev/src/librustc/rustc.rc:1
/usr/local/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x4b)[0x7f81918e94fb]
/usr/local/bin/../lib/librustrt.so(+0x2d0f9)[0x7f81918fd0f9]
/usr/local/bin/../lib/librustrt.so(upcall_fail+0x1b0)[0x7f81918ebcb0]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xa2dcb)[0x7f8193098dcb]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x37b7e)[0x7f819302db7e]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x17a70f)[0x7f8191ca670f]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6driver6driver12compile_upto17_b151657a4240fde03_05E+0x1348)[0x7f81922743e8]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x78280c)[0x7f81922ae80c]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6driver6driver18pretty_print_input17_76d831c4da689e353_05E+0xb8)[0x7f8192278928]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN12run_compiler17_ddc4abe87a436fd43_05E+0x20a7)[0x7f81922a71d7]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x78280c)[0x7f81922ae80c]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x781523)[0x7f81922ad523]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x78058c)[0x7f81922ac58c]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x7c2af)[0x7f81930722af]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xb34e0)[0x7f81930a94e0]
/usr/local/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x24)[0x7f81918e9d64]
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', /home/qwerty/Programming/rust/rust-dev/src/librustc/rustc.rc:425
/usr/local/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x4b)[0x7f81918e94fb]
/usr/local/bin/../lib/librustrt.so(+0x2d0f9)[0x7f81918fd0f9]
/usr/local/bin/../lib/librustrt.so(upcall_fail+0x1b0)[0x7f81918ebcb0]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xa2dcb)[0x7f8193098dcb]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x37b7e)[0x7f819302db7e]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xb34e0)[0x7f81930a94e0]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN7monitor17_3dc9d53d274031c13_05E+0x29de)[0x7f81922ab54e]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x78280c)[0x7f81922ae80c]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN4main16_2fb85b4a659c4103_05E+0x86)[0x7f81922ae416]
/usr/local/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x24)[0x7f81918e9d64]
rust: domain main @0x20ca1f0 root task failed
rust: task failed at 'killed', /home/qwerty/Programming/rust/rust-dev/src/libcore/task/mod.rs:570
/usr/local/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x4b)[0x7f81918e94fb]
/usr/local/bin/../lib/librustrt.so(+0x2d0f9)[0x7f81918fd0f9]
/usr/local/bin/../lib/librustrt.so(upcall_fail+0x1b0)[0x7f81918ebcb0]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xa2dcb)[0x7f8193098dcb]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x37b7e)[0x7f819302db7e]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(_ZN4task5yield17_56812fae66173efd3_05E+0xbd)[0x7f819305aead]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x91c66)[0x7f8193087c66]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xb34e0)[0x7f81930a94e0]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(_ZN7private11weaken_task17_ababfc7d1239606c3_05E+0xd9)[0x7f8193087aa9]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x9199b)[0x7f819308799b]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x8c573)[0x7f8193082573]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x7c2af)[0x7f81930722af]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xb34e0)[0x7f81930a94e0]
/usr/local/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x24)[0x7f81918e9d64]

Compiler is the latest development version from the repos here.
System is linux x86_64 Ubuntu 12.04
gcc: gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)A-prettyArea: Pretty printing (including `-Z unpretty`)I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions