Skip to content

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.

4 participants