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

Parallel test execution examples might deadlock #133

Open
ngoldbaum opened this issue Feb 7, 2025 · 0 comments
Open

Parallel test execution examples might deadlock #133

ngoldbaum opened this issue Feb 7, 2025 · 0 comments

Comments

@ngoldbaum
Copy link
Collaborator

The examples in this section might lead to deadlocks if for whatever reason creating a thread raises an error or any other action raises an error before all threads are able to call barrier.wait():

https://py-free-threading.github.io/debugging/#writing-explicitly-concurrent-test-cases

We should update these examples to spawn threads inside a generic try/except and explicitly abort the barrier in the error case.

See numpy/numpy#28290 (comment) where I ran into such a deadlock inside the NumPy CI.

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

1 participant