[New-bugs-announce] [issue32841] Asyncio.Condition prevents cancellation

Bar Harel report at bugs.python.org
Tue Feb 13 16:30:02 EST 2018


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

Hey guys,

A week after a serious asyncio.Lock bug, I found another bug that makes asyncio.Condition ignore and prevent cancellation in some cases due to an "except: pass" which tbh is a little embarrassing.

What happens is that during the time it takes to get back a conditional lock after notifying it, asyncio completely ignores all cancellations sent to the waiting task.

le_bug.py: Contains the bug
le_patch.diff: Contains a very simple fix (will send a pull on Github too)
le_meme.jpg: Contains my face after debugging this for 4 hours

Yuri, I hope you didn't miss me during this week ;-)

-- Bar

----------
components: asyncio
files: le_bug.py
messages: 312140
nosy: asvetlov, bar.harel, yselivanov
priority: normal
severity: normal
status: open
title: Asyncio.Condition prevents cancellation
type: behavior
versions: Python 3.6, Python 3.7, Python 3.8
Added file: https://bugs.python.org/file47439/le_bug.py

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


More information about the New-bugs-announce mailing list