-
Notifications
You must be signed in to change notification settings - Fork 13.3k
--fix hangs with parallel rustc #140093
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
Labels
Comments
also reproducible on stable rustc 1.86.0 |
also happens with just |
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Apr 22, 2025
Add a jobserver proxy to ensure at least one token is always held This adds a jobserver proxy to ensure at least one token is always held by `rustc`. Currently with `-Z threads` `rustc` can temporarily give up all its tokens, causing `cargo` to spawn additional `rustc` instances beyond the job limit. The current behavior causes an issue with `cargo fix` which has a global lock preventing concurrent `rustc` instances, but it also holds a jobserver token, causing a deadlock when `rustc` gives up its token. That is fixed by this PR. Fixes rust-lang#133873 and rust-lang#140093.
lnicola
pushed a commit
to lnicola/rust-analyzer
that referenced
this issue
May 1, 2025
Add a jobserver proxy to ensure at least one token is always held This adds a jobserver proxy to ensure at least one token is always held by `rustc`. Currently with `-Z threads` `rustc` can temporarily give up all its tokens, causing `cargo` to spawn additional `rustc` instances beyond the job limit. The current behavior causes an issue with `cargo fix` which has a global lock preventing concurrent `rustc` instances, but it also holds a jobserver token, causing a deadlock when `rustc` gives up its token. That is fixed by this PR. Fixes rust-lang/rust#67385. Fixes rust-lang/rust#133873. Fixes rust-lang/rust#140093.
github-actions bot
pushed a commit
to rust-lang/miri
that referenced
this issue
May 3, 2025
Add a jobserver proxy to ensure at least one token is always held This adds a jobserver proxy to ensure at least one token is always held by `rustc`. Currently with `-Z threads` `rustc` can temporarily give up all its tokens, causing `cargo` to spawn additional `rustc` instances beyond the job limit. The current behavior causes an issue with `cargo fix` which has a global lock preventing concurrent `rustc` instances, but it also holds a jobserver token, causing a deadlock when `rustc` gives up its token. That is fixed by this PR. Fixes rust-lang/rust#67385. Fixes rust-lang/rust#133873. Fixes rust-lang/rust#140093.
github-actions bot
pushed a commit
to rust-lang/rustc-dev-guide
that referenced
this issue
May 5, 2025
Add a jobserver proxy to ensure at least one token is always held This adds a jobserver proxy to ensure at least one token is always held by `rustc`. Currently with `-Z threads` `rustc` can temporarily give up all its tokens, causing `cargo` to spawn additional `rustc` instances beyond the job limit. The current behavior causes an issue with `cargo fix` which has a global lock preventing concurrent `rustc` instances, but it also holds a jobserver token, causing a deadlock when `rustc` gives up its token. That is fixed by this PR. Fixes rust-lang/rust#67385. Fixes rust-lang/rust#133873. Fixes rust-lang/rust#140093.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
repro:
At some point there will be no more progress during the builds, it looks like we get stuck on
build.rs
scripts?Works fine without the
-Zthreads=2
and also works fine without the--fix
What is weird that we don't seem to hang with active cpu load, but I can still see some rustc processes running
The text was updated successfully, but these errors were encountered: