Skip to content

test: Join child threads on windows in tests #25824

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

Merged
merged 1 commit into from
May 28, 2015

Conversation

alexcrichton
Copy link
Member

Windows tests can often deadlock if a child thread continues after the main
thread and then panics, and a println! executed in a child thread after the
main thread has exited is at risk of panicking.

Windows tests can often deadlock if a child thread continues after the main
thread and then panics, and a `println!` executed in a child thread after the
main thread has exited is at risk of panicking.
@rust-highfive
Copy link
Contributor

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@nikomatsakis
Copy link
Contributor

@bors r+

@bors
Copy link
Collaborator

bors commented May 27, 2015

📌 Commit 279ec9b has been approved by nikomatsakis

@nikomatsakis
Copy link
Contributor

@bors p=1

@bors
Copy link
Collaborator

bors commented May 27, 2015

⌛ Testing commit 279ec9b with merge dc4818c...

@bors
Copy link
Collaborator

bors commented May 27, 2015

💔 Test failed - auto-win-gnu-32-opt

@alexcrichton
Copy link
Member Author

@bors: retry

On Wed, May 27, 2015 at 3:05 PM, bors [email protected] wrote:

[image: 💔] Test failed - auto-win-gnu-32-opt
http://buildbot.rust-lang.org/builders/auto-win-gnu-32-opt/builds/98


Reply to this email directly or view it on GitHub
#25824 (comment).

@bors
Copy link
Collaborator

bors commented May 28, 2015

⌛ Testing commit 279ec9b with merge 1a3cffb...

bors added a commit that referenced this pull request May 28, 2015
…r=nikomatsakis

Windows tests can often deadlock if a child thread continues after the main
thread and then panics, and a `println!` executed in a child thread after the
main thread has exited is at risk of panicking.
@bors bors merged commit 279ec9b into rust-lang:master May 28, 2015
@alexcrichton alexcrichton deleted the fix-deadlocking-test-on-windows branch July 10, 2015 22:32
alexcrichton added a commit to alexcrichton/rust that referenced this pull request May 5, 2017
Windows historically has problems with threads panicking and the main thread
exiting at the same time, typically causing deadlocks. In the past (rust-lang#25824)
we've joined on threads but this just prevents running the test for now to avoid
tampering with the example.
bors added a commit that referenced this pull request May 5, 2017
std: Prevent deadlocks in doctests on Windows

Windows historically has problems with threads panicking and the main thread
exiting at the same time, typically causing deadlocks. In the past (#25824)
we've joined on threads but this just prevents running the test for now to avoid
tampering with the example.
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

Successfully merging this pull request may close these issues.

4 participants