[New-bugs-announce] [issue41229] Asynchronous generator memory leak

JIanqiu Tao report at bugs.python.org
Tue Jul 7 08:08:08 EDT 2020


New submission from JIanqiu Tao <zkonge at outlook.com>:

The resource used by asynchronous generator can't be released properly when works with "asend" method.

Besides, in Python 3.7-, a RuntimeError was raised when asyncio.run complete, but the message is puzzling:
  RuntimeError: can't send non-None value to a just-started coroutine

In Python 3.8+, No Exception showed.

Python3.5 unsupport yield in async function, so it seems no affect?

----------
components: Interpreter Core, asyncio
files: leak.py
messages: 373221
nosy: asvetlov, yselivanov, zkonge
priority: normal
severity: normal
status: open
title: Asynchronous generator memory leak
type: resource usage
versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9
Added file: https://bugs.python.org/file49302/leak.py

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


More information about the New-bugs-announce mailing list