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 <rep...@bugs.python.org> <http://bugs.python.org/issue31095> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com