[New-bugs-announce] [issue35408] Python3.7 crash in PyCFunction_New due to broken _PyObject_GC_TRACK

Enric Tejedor Saavedra report at bugs.python.org
Tue Dec 4 07:35:18 EST 2018


New submission from Enric Tejedor Saavedra <lenric at gmail.com>:

Attached is a reproducer that calls PyCFunction_New. The reproducer runs normally with Python 3.6.5, but it crashes with Python 3.7.1. The reason seems to be that the _PyObject_GC_TRACK macro ends up being called and it is broken in Python3.7.

A fix for that macro seems to have been committed to master:

https://github.com/python/cpython/pull/10507

----------
components: Interpreter Core
files: reproducer.cpp
messages: 331040
nosy: etejedor
priority: normal
severity: normal
status: open
title: Python3.7 crash in PyCFunction_New due to broken _PyObject_GC_TRACK
type: crash
versions: Python 3.7
Added file: https://bugs.python.org/file47971/reproducer.cpp

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


More information about the New-bugs-announce mailing list