Skip to content

rustc hangs where there are lots of compilation warnings #41956

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

Closed
boblehest opened this issue May 12, 2017 · 3 comments
Closed

rustc hangs where there are lots of compilation warnings #41956

boblehest opened this issue May 12, 2017 · 3 comments

Comments

@boblehest
Copy link
Contributor

I tried to compile this and it causes rustc to freeze both on stable and nightly on my computer. Playground handles it without any issues.

Using strace shows that it's blocking on write(). Full strace output here.

Meta

Stable:

rustc 1.17.0 (56124baa9 2017-04-24)
binary: rustc
commit-hash: 56124baa9e73f28c0709e59e74783cf234a978cf
commit-date: 2017-04-24
host: x86_64-unknown-linux-gnu
release: 1.17.0
LLVM version: 3.9

Nightly:

rustc 1.19.0-nightly (e40beb3af 2017-05-11)
binary: rustc
commit-hash: e40beb3af162e676e40704854dd6547ee8d4cf60
commit-date: 2017-05-11
host: x86_64-unknown-linux-gnu
release: 1.19.0-nightly
LLVM version: 4.0
@boblehest
Copy link
Contributor Author

boblehest commented May 13, 2017

I compiled this from source (same revision as the nightly I'm running), and it does not exhibit the same behavior (the test file compiles successfully.) The versions I used in the comment above were installed by rustup.

rustc 1.19.0-dev (e40beb3af 2017-05-11)
binary: rustc
commit-hash: e40beb3af162e676e40704854dd6547ee8d4cf60
commit-date: 2017-05-11
host: x86_64-unknown-linux-gnu
release: 1.19.0-dev
LLVM version: 4.0

@TimNN
Copy link
Contributor

TimNN commented May 13, 2017

Which rustup --version were you using?

This reminds me of a rustup bug quite some time ago which occurred when telemetry was enabled.

@boblehest
Copy link
Contributor Author

boblehest commented May 13, 2017

rustup 0.3.0 (7d7fed2 2016-07-14)

Interesting. The rustup package itself says version 1.2.0-6. rustup self update just gives me an error. I'll try to figure out how to fix it then, thanks. :)

Edit: Updating rustup fixed the issue. You were correct, here's the old issue: rust-lang/rustup/issues/639

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants