glibc detected *** python: corrupted double-linked list

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Wed Feb 25 10:33:13 EST 2009


En Wed, 25 Feb 2009 10:40:23 -0200, Christian Meesters <meesters at gmx.de>  
escribió:

> I have a problem using my software on my 64bit laptop, after an update of
> my system. The same code still runs on 32bit Intel, but on my laptop I
> provoke the crash in the title. The crash is caused - as narrowed down by
> me - by returning a static PyObject from a C-extension function.

I think you got all the reference counts wrong, specially dummy1, dummy2  
and r.

(BTW, when you know the size, it's better to use PyList_New(size) +  
PyList_SET_ITEM instead of PyList_New(0) + PyList_Append)

-- 
Gabriel Genellina




More information about the Python-list mailing list