`multiprocessing.Queue`: Exceeding a certain amount of bytes in the queue prevents proper exit
Open
@gpshead is already working on this.
Since Dec 24, 2024.
3.12
3.13
3.14
extension-modules
topic-multiprocessing
type-bug
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 35.9k
- PR merge metrics
- PR metrics pending
Description
Bug report
Bug description:
This terminates properly:
from multiprocessing import Queue
Queue().put(b"0" * 65514)
print("end")
while this prints 'end' and is then stuck:
from multiprocessing import Queue
Queue().put(b"0" * 65515)
print("end")
CPython versions tested on:
Latest identified version without the issue: 3.9.6
Oldest identified version with the issue: 3.9.18
Operating systems tested on:
Linux, macOS
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.