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
Python hangs on fork when a logger is in use in a background thread #81610
Comments
It's possible to cause Python child processes to encountered a deadlock and hang on fork by:
The attached Python script can be used to reproduce this issue in Python 2.7.15 and Python 3.6.5 |
This issue seems _very_ similar to https://bugs.python.org/issue6721, but I wasn't able to encounter the exact stack I've been seeing on my end. Specifically, when I run the reproducer script in this issue (hang.py) for a few minutes, hung child processes start to build up. |
Here's the stack of one the hung child processes under py2.7:
Here's the similar stack under py3.6:
|
See also https://bugs.python.org/issue36533 |
Also, for what it's worth, I'm *not* able to reproduce this hang in Python 3.7.0. |
Actually, I think I *am* seeing this on 3.7:
|
Has anyone been able to reproduce this in 3.8+ or above? We believe we're seeing an instance of this in Python 3.8.6 but |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: