Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustc 1.13.0 hangs/out of memory #37942

Closed
ctsa opened this issue Nov 22, 2016 · 3 comments
Closed

rustc 1.13.0 hangs/out of memory #37942

ctsa opened this issue Nov 22, 2016 · 3 comments
Labels
E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added.

Comments

@ctsa
Copy link

ctsa commented Nov 22, 2016

I'm using the latest stable release (1.13.0) installed via rustup on Ubuntu 16.04. I ran into a compiler hang after a copy/paste slipup, and reduced the testcase down to the following:

main.rs:

fn main() {
    extern crate rand;
    use rand::Rng;
}

What I see when compiling is:

$ /usr/bin/time -v rustc main.rs 
fatal runtime error: out of memory
Command exited with non-zero status 1
        Command being timed: "rustc main.rs"
        User time (seconds): 47.28
        System time (seconds): 0.98
        Percent of CPU this job got: 99%
        Elapsed (wall clock) time (h:mm:ss or m:ss): 0:48.56
        Average shared text size (kbytes): 0
        Average unshared data size (kbytes): 0
        Average stack size (kbytes): 0
        Average total size (kbytes): 0
        Maximum resident set size (kbytes): 4259424
        Average resident set size (kbytes): 0
        Major (requiring I/O) page faults: 0
        Minor (reclaiming a frame) page faults: 88942
        Voluntary context switches: 9
        Involuntary context switches: 3471
        Swaps: 0
        File system inputs: 0
        File system outputs: 0
        Socket messages sent: 0
        Socket messages received: 0
        Signals delivered: 0
        Page size (bytes): 4096
        Exit status: 1
@durka
Copy link
Contributor

durka commented Nov 23, 2016

Fixed on beta/nightly.

@arielb1
Copy link
Contributor

arielb1 commented Nov 23, 2016

cc @jseyfried

@arielb1 arielb1 added the E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added. label Nov 23, 2016
@jseyfried
Copy link
Contributor

This is #36881, which was fixed in #36882 (currently in beta).

@arielb1 arielb1 closed this as completed Dec 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Projects
None yet
Development

No branches or pull requests

4 participants