[Tracker-discuss] [issue669] Python3.7 crash in PyCFunction_New due to broken _PyObject_GC_TRACK

Enric metatracker at psf.upfronthosting.co.za
Tue Dec 4 07:28:48 EST 2018


New submission from Enric <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

----------
files: reproducer.cpp
messages: 3556
nosy: etejedor
priority: bug
status: unread
title: Python3.7 crash in PyCFunction_New due to broken _PyObject_GC_TRACK

_______________________________________________________
PSF Meta Tracker <metatracker at psf.upfronthosting.co.za>
<http://psf.upfronthosting.co.za/roundup/meta/issue669>
_______________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reproducer.cpp
Type: text/x-c++src
Size: 276 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/tracker-discuss/attachments/20181204/a52207ef/attachment.cpp>


More information about the Tracker-discuss mailing list