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 maggyero
Recipients maggyero
Date 2022-03-15.18:28:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1647368913.23.0.350559928091.issue47029@roundup.psfhosted.org>
In-reply-to
Content
A `BrokenPipeError` exception is raised when the queue thread of a `multiprocessing.Queue` still sends enqueued items to the write end of the queue pipe *after* the read end of the queue pipe has been [automatically closed during its garbage collection](https://docs.python.org/3/library/socket.html#socket.socket.close) following the garbage collection of the queue (the write end of the queue pipe is not garbage collected because it is also referenced by the queue thread):

```
import multiprocessing

def main():
    q = multiprocessing.Queue()
    q.put(0)

if __name__ == '__main__':
    main()
```
History
Date User Action Args
2022-03-15 18:28:33maggyerosetrecipients: + maggyero
2022-03-15 18:28:33maggyerosetmessageid: <1647368913.23.0.350559928091.issue47029@roundup.psfhosted.org>
2022-03-15 18:28:33maggyerolinkissue47029 messages
2022-03-15 18:28:33maggyerocreate