[issue46717] Raising exception multiple times leaks memory
George Gensure
report at bugs.python.org
Thu Feb 10 21:59:51 EST 2022
New submission from George Gensure <ggensure at fb.com>:
Instantiating an exception and raising it multiple times causes 1 frame and 2 traceback objects to remain allocated for each raise. The attached example causes python to consume 8GB of ram after a few seconds of execution on Windows/Linux.
----------
components: Interpreter Core
files: exc.py
messages: 413035
nosy: ggensure
priority: normal
severity: normal
status: open
title: Raising exception multiple times leaks memory
type: resource usage
versions: Python 3.11
Added file: https://bugs.python.org/file50619/exc.py
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46717>
_______________________________________
More information about the Python-bugs-list
mailing list