[New-bugs-announce] [issue27585] asyncio.Lock deadlock after cancellation

sss report at bugs.python.org
Thu Jul 21 13:06:41 EDT 2016


New submission from sss:

The lock.py file prints

DEADLOCK HERE
_locked:  False
_waiters: deque([<Future cancelled>])

I think the problem is that acquire() will block because of the cancelled future in _waiters, but release() has already ran so no one will wake it up.

----------
components: asyncio
files: lock.py
messages: 270944
nosy: gvanrossum, haypo, sss, yselivanov
priority: normal
severity: normal
status: open
title: asyncio.Lock deadlock after cancellation
versions: Python 3.5
Added file: http://bugs.python.org/file43820/lock.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27585>
_______________________________________


More information about the New-bugs-announce mailing list