[New-bugs-announce] [issue46954] Awaiting multiple times on same task increases memory usage unboundedly
David M.
report at bugs.python.org
Tue Mar 8 04:51:03 EST 2022
New submission from David M. <davidmanz at protonmail.com>:
Awaiting multiple times on a single task that failed with an exception results in an unbounded increase in memory usage. Enough repeated "await"s of the task can result in an OOM.
The same pattern on a task that didn't raise an exception behaves as expected.
The attached short script ends up using more than 1GB of memory in less than a minute.
----------
components: asyncio
files: multi_await_exception.py
messages: 414739
nosy: asvetlov, davidmanzanares, yselivanov
priority: normal
severity: normal
status: open
title: Awaiting multiple times on same task increases memory usage unboundedly
versions: Python 3.10, Python 3.11, Python 3.7, Python 3.8, Python 3.9
Added file: https://bugs.python.org/file50664/multi_await_exception.py
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46954>
_______________________________________
More information about the New-bugs-announce
mailing list