-
-
Notifications
You must be signed in to change notification settings - Fork 718
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
Comments
Thanks a lot for tracking this down and reporting it here! |
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. |
Sure, thanks again for your work on this. |
Hello, there is the sentiment not to include the fix in Python 3.11 unless the issue is affecting a considerable number of users. Just wanted to ask what's the situation on your front? Are you able to workaround the problem and/or have a fix for your use case? Feel free to comment directly on the PR python/cpython#117332 |
I haven't taken the time to find a fix. Unfortunately, I selfishly skipped over version 3.11 and jumped straight to 3.12 |
Do you think this could be a good solution for dask distributed users? I mean, could/should this be documented somewhere? |
It definitely should be better documented, which was my initial intention when I opened this issue. |
Thanks @epizut let's wait some feedback from a Dask maintainer and take action after that. |
Apologies for the slow reply. IIUC this deadlock can happen in pretty much every situation since our profiling thread is using The CPython PR discusses enabling/disabling the GC. Is this a workaround that could work for us? (Not sure about perf implications) Beyond this, I guess the only workaround we could provide is to disable the profiling thread entirely on python 3.11. Any other advice? |
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:
The text was updated successfully, but these errors were encountered: