[issue39599] ABI breakage between Python 3.7.4 and 3.7.5: change in PyGC_Head structure

Inada Naoki report at bugs.python.org
Wed Feb 12 02:46:54 EST 2020


Inada Naoki <songofacandy at gmail.com> added the comment:

https://github.com/python/cpython/blob/95905ce0f41fd42eb1ef60ddb83f057401c3d52f/Include/cpython/objimpl.h#L89

_Py_AS_GC and all APIs to get PyGC_Head from PyObject* are not only unstable, but also private.

I thought PyGC_Head must not be used directly from extensions, so we changed its layout.

Since Julien said "my code does not access PyGC_Head at all", I still think it was not real ABI breakage.

I suppose other serious bug (e.g. dungling pointer, missing refcount increment, etc) caused the segfault.

----------

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


More information about the Python-bugs-list mailing list