David <[email protected]> added the comment:
Small update:
After commenting out Py_XDECREF(self->restype) in function
CThunkObject_dealloc(PyObject *_self), I can import ctypes without getting a
segmentation fault.
static void
CThunkObject_dealloc(PyObject *_self)
{
CThunkObject *self = (CThunkObject *)_self;
PyObject_GC_UnTrack(self);
Py_XDECREF(self->converters);
Py_XDECREF(self->callable);
//Py_XDECREF(self->restype);
if (self->pcl_write)
ffi_closure_free(self->pcl_write);
PyObject_GC_Del(self);
}
But I'm afraid I don't know what other effects could result with this change.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue35350>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com