[New-bugs-announce] [issue46954] Awaiting multiple times on same task increases memory usage unboundedly
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.
nosy: asvetlov, davidmanzanares, yselivanov
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>
More information about the New-bugs-announce