-
Notifications
You must be signed in to change notification settings - Fork 13k
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 hangs #34535
Comments
I'll investigate. |
@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. |
1.11 is now beta |
triage: P-high |
My suggestion here is to run it under a debugger and stop after it has been hung for a while, to get a backtrace. |
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.) |
@jseyfried make any progress on this last week? |
@brson sorry for the delay on this. |
I'm having trouble reproducing this (I've tried on a two different Linux machines). |
I was also not able to reproduce. Could you help us @aochagavia? |
I tried to reproduce it, but the compiler hit an ICE when compiling |
@aochagavia What about nightlies from a few days ago? |
Using |
I too can't reproduce on Linux. All of stable, beta, nightly-2016-06-14 terminates promptly with 3 errors. |
Is it entirely Windows-specific? |
(reassinging to niko in hopes that he can reproduce it on his windows box) |
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. |
ICE? |
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! |
triage: P-medium |
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 ( |
The "too many errors" does not hang on my computer |
Ah 16871 is rustup. |
moved to rust-lung-nursery/rustup.rs#639 |
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-passes
When compiling with nightly, the output of
cargo rustc -- -Ztime-passes
is:As you can see, the compiler is stuck after AST validation (note how I needed
^C
to kill Cargo).When compiling with stable, the output is:
Additional information (tested on stable):
If I remove the
controllers::keyboard
module, the compiler runs without problems.If I replace this line by
pub fn press(key: u8) {
, the output with-Ztime-passes
changes:For whatever reason, rustc is able to go a little bit further in this case.
Related issues
Maybe this is a duplicate of #33776
The text was updated successfully, but these errors were encountered: