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

bpo-32576: use queue.SimpleQueue in critical places #5216

Merged
merged 1 commit into from
Jan 18, 2018

Conversation

pitrou
Copy link
Member

@pitrou pitrou commented Jan 17, 2018

Where a queue may be invoked from a weakref callback, we need to use the reentrant SimpleQueue.

https://bugs.python.org/issue32576

Where a queue may be invoked from a weakref callback, we need
to use the reentrant SimpleQueue.
@gpshead
Copy link
Member

gpshead commented Jan 17, 2018

I don't know the multiprocessing internals well but I believe this makes sense after reading through the code and looking at where things are passed and used. Can you verify that this fixes the executor-hang.py reproducer in https://bugs.python.org/issue21009?

@pitrou
Copy link
Member Author

pitrou commented Jan 18, 2018

Can you verify that this fixes the executor-hang.py reproducer in https://bugs.python.org/issue21009?

Unfortunately the reproducer works by monkey-patching queue.Queue, which obviously won't trigger the issue with this PR.

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.

None yet

4 participants