This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alexmojaki
Recipients alexmojaki
Date 2020-08-22.11:42:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1598096535.13.0.114988714243.issue41614@roundup.psfhosted.org>
In-reply-to
Content
See attached file. The summary is that I start a Process, which starts a Thread, which puts some values on a Queue which was originally created by the parent process and passed down. Usually this works but occasionally the parent process doesn't see the items on the queue: queue.get() times out and queue.empty() is True, although queue.qsize() is accurate.

I can reproduce this on master:

Python 3.10.0a0 (heads/master:802726a, Aug 22 2020, 12:56:09) 
[GCC 7.5.0] on linux

as well as other versions I have installed which I've selected. On 3.6 it seems like the problem is even worse and some of my comments don't apply.

I've tested the script on Ubuntu 18.04.4, but the general problem seems to also happen on OSX although I can't confirm that now.
History
Date User Action Args
2020-08-22 11:42:15alexmojakisetrecipients: + alexmojaki
2020-08-22 11:42:15alexmojakisetmessageid: <1598096535.13.0.114988714243.issue41614@roundup.psfhosted.org>
2020-08-22 11:42:15alexmojakilinkissue41614 messages
2020-08-22 11:42:14alexmojakicreate