[New-bugs-announce] [issue36813] QueueListener not calling task_done upon termination

Bar Harel report at bugs.python.org
Mon May 6 11:03:59 EDT 2019


New submission from Bar Harel <bzvi7919 at gmail.com>:

QueueListener does not call task_done upon termination, causing an unsuspecting thread to deadlock.

Steps to reproduce:

>>> import queue
>>> q = queue.Queue()
>>> from logging.handlers import QueueListener
>>> h = QueueListener(q)
>>> h.start()
>>> h.stop()
# Goodbye cruel world!
>>> q.join()

Fixing and uploading a patch as we speak.

----------
components: Library (Lib)
messages: 341519
nosy: bar.harel
priority: normal
severity: normal
status: open
title: QueueListener not calling task_done upon termination
type: behavior
versions: Python 3.6, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36813>
_______________________________________


More information about the New-bugs-announce mailing list