[issue32879] Race condition in multiprocessing Queue

2019-11-10 Thread Eric Meyer


Eric Meyer  added the comment:

The problem I was seeing ended up being improper GIL management in a c++ 
extension. It seems putting items that were created without the GIL on the 
queue causes a seg fault.

--

___
Python tracker 
<https://bugs.python.org/issue32879>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32879] Race condition in multiprocessing Queue

2019-10-07 Thread Eric Meyer


Eric Meyer  added the comment:

multiprocessing.SimpleQueue is another workaround to this issue.

I agree the docs should be clearer about this. Additionally, it would be 
helpful if there was a way to optionally put an item on a multiprocessing.Queue 
and block until the item has been written to the pipe (or block until it is 
safe to mutate,garbage collect,etc the item in the calling thread).

--
nosy: +highvelcty

___
Python tracker 
<https://bugs.python.org/issue32879>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com