Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uprustc hangs #34535
Comments
aochagavia
changed the title
rustc is stuck
rustc hangs
Jun 28, 2016
This comment has been minimized.
This comment has been minimized.
|
I'll investigate. |
This comment has been minimized.
This comment has been minimized.
|
@jseyfried Thanks! A short update (now using It may be interesting to note that I was importing Surprisingly, the code compiles after some changes (see the repo at the latest commit). You can see a diff here. After seeing this, I thought that the problem was solved by removing the In other words, adding modules and new dependencies randomly got my crate to compile. |
arielb1
added
regression-from-stable-to-beta
and removed
regression-from-stable-to-nightly
labels
Jul 7, 2016
This comment has been minimized.
This comment has been minimized.
|
1.11 is now beta |
This comment has been minimized.
This comment has been minimized.
|
triage: P-high |
rust-highfive
added
P-high
and removed
I-nominated
labels
Jul 7, 2016
This comment has been minimized.
This comment has been minimized.
|
My suggestion here is to run it under a debugger and stop after it has been hung for a while, to get a backtrace. |
This comment has been minimized.
This comment has been minimized.
|
regression; needs to be investigated. @jseyfried are you still planning to try to look at this? (I think @arielb1 will also look at it in parallel.) |
nrc
assigned
arielb1
Jul 7, 2016
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@jseyfried make any progress on this last week? |
This comment has been minimized.
This comment has been minimized.
|
@brson sorry for the delay on this. |
This comment has been minimized.
This comment has been minimized.
|
I'm having trouble reproducing this (I've tried on a two different Linux machines). |
This comment has been minimized.
This comment has been minimized.
|
I was also not able to reproduce. Could you help us @aochagavia? |
This comment has been minimized.
This comment has been minimized.
|
I tried to reproduce it, but the compiler hit an ICE when compiling |
This comment has been minimized.
This comment has been minimized.
|
@aochagavia What about nightlies from a few days ago? |
This comment has been minimized.
This comment has been minimized.
|
Using |
This comment has been minimized.
This comment has been minimized.
|
I too can't reproduce on Linux. All of stable, beta, nightly-2016-06-14 terminates promptly with 3 errors. |
This comment has been minimized.
This comment has been minimized.
|
Is it entirely Windows-specific? |
arielb1
added
I-crash
and removed
I-wrong
I-slow
labels
Jul 21, 2016
This comment has been minimized.
This comment has been minimized.
|
(reassinging to niko in hopes that he can reproduce it on his windows box) |
pnkfelix
assigned
nikomatsakis
and unassigned
arielb1
Jul 21, 2016
This comment has been minimized.
This comment has been minimized.
|
My results building cd1b56c39d02cb7b6a0aa06b32f3e02e36b986e3 with the command
No hangs. I didn't try to find the exact nightly used in the OP, but used a more recent one. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
ICE? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
We're going to lower the priority, since we can't seem to reproduce it and it is not blocking @aochagavia (right?). @aochagavia if you are able to at least get a backtrace, that would certainly be helpful. Otherwise, we'll have to see if it occurs more often or elsewhere! |
This comment has been minimized.
This comment has been minimized.
|
triage: P-medium |
rust-highfive
added
P-medium
and removed
P-high
labels
Jul 28, 2016
nikomatsakis
removed their assignment
Jul 28, 2016
This comment has been minimized.
This comment has been minimized.
I've commented out all use of plugins in my crate, though I use a bunch of nightly features. Looking at strace output, it appears the bottom child is blocking on Maybe there are too many errors?
This isn't the same hang location I'm encountering in practice ( |
This comment has been minimized.
This comment has been minimized.
|
The "too many errors" does not hang on my computer |
This comment has been minimized.
This comment has been minimized.
|
Ah 16871 is rustup. |
arielb1
referenced this issue
Aug 4, 2016
Closed
telemetry mode hangs if there are too many errors #639
This comment has been minimized.
This comment has been minimized.
|
moved to rust-lung-nursery/rustup.rs#639 |
aochagavia commentedJun 28, 2016
•
edited
OS: Windows 10 x64
rustc:
rustc 1.9.0 (e4e8b6668 2016-05-18)andrustc 1.11.0-nightly (ab0b87458 2016-06-13).First of all I am sorry I was unable to come up with a minimal example. I tried a couple of times but it just didn't trigger the issue. I am working on a simple game, but instead of compiling in <10 seconds (as usual), it hangs indefinetly (I gave up after about 5 minutes).
Running with
time-passesWhen compiling with nightly, the output of
cargo rustc -- -Ztime-passesis:As you can see, the compiler is stuck after AST validation (note how I needed
^Cto kill Cargo).When compiling with stable, the output is:
Additional information (tested on stable):
If I remove the
controllers::keyboardmodule, the compiler runs without problems.If I replace this line by
pub fn press(key: u8) {, the output with-Ztime-passeschanges:For whatever reason, rustc is able to go a little bit further in this case.
Related issues
Maybe this is a duplicate of #33776