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

Deadlock with python 3.11 #8616

Open
epizut opened this issue Apr 11, 2024 · 3 comments
Open

Deadlock with python 3.11 #8616

epizut opened this issue Apr 11, 2024 · 3 comments
Labels
deadlock The cluster appears to not make any progress

Comments

@epizut
Copy link

epizut commented Apr 11, 2024

I spent a lot of time digging into a deadlock issue with Dask distributed and Python 3.11.
This issue was created so other people won't have to lose the same amount of time debugging endless dask and CPython stacks.

Thanks to @diegorusso we now have a pending fix python/cpython#116969

Solutions:

  • Wait for #116969 if you are forced to use py3.11, but be aware that you need either python<3.11.9 or dask>=2024.4.1 due to #11035
  • Skip 3.11 and move to 3.12
@fjetter
Copy link
Member

fjetter commented Apr 12, 2024

Thanks a lot for tracking this down and reporting it here!

@fjetter fjetter added deadlock The cluster appears to not make any progress and removed needs triage labels Apr 12, 2024
@diegorusso
Copy link

diegorusso commented Apr 12, 2024

It really depends if they are going to accept the PR. In theory 3.11.9 is the latest release bug fix they do it. After that, there will be just source distributions releases with security fixes for the distros to pick up.
I really hope they accept the PR because 3.11 will still be used for quite some time.

@epizut
Copy link
Author

epizut commented Apr 12, 2024

Sure, thanks again for your work on this.
In the meamtime, we could make the dask gc diagnostic optional or even better try to make it non re-entrant on the CPython lock by avoiding calling _current_frames()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deadlock The cluster appears to not make any progress
Projects
None yet
Development

No branches or pull requests

3 participants