[New-bugs-announce] [issue36126] Reference count leakage in structseq_repr
zasdfgbnm
report at bugs.python.org
Tue Feb 26 12:09:57 EST 2019
New submission from zasdfgbnm <qasdfgtyuiop at gmail.com>:
In Python 2.7 structseq is not a tuple, and in `structseq_repr` a tuple is created to help extracting items. However when the check at https://github.com/python/cpython/blob/2.7/Objects/structseq.c#L268 fails, the reference count of this tuple is not decreased, causing memory leakage.
To reproduce, download the attached file, install and run the `quicktest.py` and watch the memory usage.
This bug only exists on python 2.7, because on python >3.2, no helper tuple is created.
----------
components: Interpreter Core
files: structseq.tar.xz
messages: 336699
nosy: zasdfgbnm
priority: normal
pull_requests: 12082
severity: normal
status: open
title: Reference count leakage in structseq_repr
type: behavior
versions: Python 2.7
Added file: https://bugs.python.org/file48172/structseq.tar.xz
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36126>
_______________________________________
More information about the New-bugs-announce
mailing list