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

Add a workaround for parallel rustc crashing when there are delayed bugs #135988

Merged
merged 2 commits into from
Jan 27, 2025

Conversation

bjorn3
Copy link
Member

@bjorn3 bjorn3 commented Jan 24, 2025

This doesn't fix the root cause of this crash, but at least stops it from happening for the time being.

Workaround for #135870

This doesn't fix the root cause of this crash, but at least stops it
from happening for the time being.
@rustbot
Copy link
Collaborator

rustbot commented Jan 24, 2025

r? @chenyukang

rustbot has assigned @chenyukang.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jan 24, 2025
@lqd
Copy link
Member

lqd commented Jan 24, 2025

r? lqd

@rustbot rustbot assigned lqd and unassigned chenyukang Jan 24, 2025
@lqd
Copy link
Member

lqd commented Jan 24, 2025

Let's add the MCVE as a tests/ui/parallel-rustc test.

@rustbot author

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 24, 2025
@bjorn3
Copy link
Member Author

bjorn3 commented Jan 24, 2025

Added

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jan 24, 2025
@bjorn3 bjorn3 force-pushed the workaround_parallel_rustc_crash branch from 9e783e2 to 207a2a2 Compare January 26, 2025 10:04
@@ -0,0 +1,6 @@
//@ compile-flags: -Z threads=2
//@ check-fail
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
//@ check-fail

That's the default and shouldn't be necessary?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@lqd
Copy link
Member

lqd commented Jan 26, 2025

r=me with or without the nit above

@bjorn3 bjorn3 force-pushed the workaround_parallel_rustc_crash branch from 207a2a2 to 6f543d5 Compare January 26, 2025 13:56
@bjorn3
Copy link
Member Author

bjorn3 commented Jan 26, 2025

@bors r=lqd

@bors
Copy link
Contributor

bors commented Jan 26, 2025

📌 Commit 6f543d5 has been approved by lqd

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 26, 2025
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 27, 2025
…llaumeGomez

Rollup of 10 pull requests

Successful merges:

 - rust-lang#135773 (Clarify WindowsMut (Lending)Iterator)
 - rust-lang#135807 (Implement phantom variance markers)
 - rust-lang#135876 (fix doc for std::sync::mpmc)
 - rust-lang#135988 (Add a workaround for parallel rustc crashing when there are delayed bugs)
 - rust-lang#136037 (Mark all NuttX targets as tier 3 target and support the standard library)
 - rust-lang#136064 (Add a suggestion to cast target_feature fn items to fn pointers.)
 - rust-lang#136082 (Incorporate `iter_nodes` into `graph::DirectedGraph`)
 - rust-lang#136112 (Clean up all dead files inside `tests/ui/`)
 - rust-lang#136114 (Use identifiers more in diagnostics code)
 - rust-lang#136118 (Change `collect_and_partition_mono_items` tuple return type to a struct)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit a02e788 into rust-lang:master Jan 27, 2025
6 checks passed
@rustbot rustbot added this to the 1.86.0 milestone Jan 27, 2025
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Jan 27, 2025
Rollup merge of rust-lang#135988 - bjorn3:workaround_parallel_rustc_crash, r=lqd

Add a workaround for parallel rustc crashing when there are delayed bugs

This doesn't fix the root cause of this crash, but at least stops it from happening for the time being.

Workaround for rust-lang#135870
@bjorn3 bjorn3 deleted the workaround_parallel_rustc_crash branch February 1, 2025 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants