[issue35350] importing "ctypes" immediately causes a segmentation fault
David
report at bugs.python.org
Fri Nov 30 04:06:43 EST 2018
David <raging.blaze at gmail.com> 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 <report at bugs.python.org>
<https://bugs.python.org/issue35350>
_______________________________________
More information about the Python-bugs-list
mailing list