Skip to content

multiprocessing.Queue: Exceeding a certain amount of bytes in the queue prevents proper exit #128186

Open
@ebonnal

Description

@ebonnal

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

Metadata

Metadata

Assignees

Labels

3.12only security fixes3.13bugs and security fixes3.14new features, bugs and security fixesextension-modulesC modules in the Modules dirtopic-multiprocessingtype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions