This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author n0s69z
Recipients n0s69z
Date 2018-11-30.09:06:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1543568802.99.0.788709270274.issue35350@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-11-30 09:06:43n0s69zsetrecipients: + n0s69z
2018-11-30 09:06:42n0s69zsetmessageid: <1543568802.99.0.788709270274.issue35350@psf.upfronthosting.co.za>
2018-11-30 09:06:42n0s69zlinkissue35350 messages
2018-11-30 09:06:42n0s69zcreate