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

Christian Meesters meesters at gmx.de
Wed Feb 25 10:51:20 EST 2009


Hi,

>> 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.
Might be a good point, but can you give me a hint where to look 
specifically?
> 
> (BTW, when you know the size, it's better to use PyList_New(size) +
> PyList_SET_ITEM instead of PyList_New(0) + PyList_Append)
Just rewrote that section.

Thank you.
Christian



More information about the Python-list mailing list