[New-bugs-announce] [issue31095] Checking all tp_dealloc with Py_TPFLAGS_HAVE_GC

INADA Naoki report at bugs.python.org
Tue Aug 1 01:49:49 EDT 2017


New submission from INADA Naoki:

like GH-2966, most types with Py_TPFLAGS_HAVE_GC
should call PyObject_GC_UnTrack() at top of the tp_dealloc.

For example, I found lru_cache doesn't call it and I can produce
segmentation fault.

I'll check other types too.

----------
components: Extension Modules, Interpreter Core
files: lru_cache_segv.py
messages: 299600
nosy: inada.naoki
priority: normal
severity: normal
status: open
title: Checking all tp_dealloc with Py_TPFLAGS_HAVE_GC
versions: Python 3.6, Python 3.7
Added file: http://bugs.python.org/file47055/lru_cache_segv.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31095>
_______________________________________


More information about the New-bugs-announce mailing list