[PyQt] memory corruption

Giovanni Bajo rasky at develer.com
Tue Nov 25 18:26:57 GMT 2008


On 11/25/2008 4:36 PM, lucaberto at libero.it wrote:
> hello i have made a little software for xdcc transfer via irc i use thread, sometimes all works good and other times i get this error:
> 
> *** glibc detected *** ./main: malloc(): memory corruption: 0xb55c72c0 ***
> ======= Backtrace: =========
> /lib/libc.so.6[0xb7e7afc4]
> /lib/libc.so.6[0xb7e7d6aa]
> /lib/libc.so.6(__libc_malloc+0x9c)[0xb7e7f11c]
> ./main(PyObject_Malloc+0xe0)[0x8082bf0]
> ./main(PyString_FromStringAndSize+0xa8)[0x8089b68]
> /tmp/_MEI28650/PyQt4.QtNetwork.so[0xb663eeef]
> ./main(PyCFunction_Call+0x18d)[0x81050fd]
> ./main(PyEval_EvalFrameEx+0x5a49)[0x80b8319]
> ./main(PyEval_EvalCodeEx+0x6ad)[0x80b9b6d]
> ./main[0x81040ca]
> ./main(PyObject_Call+0x37)[0x805bd97]
> ./main[0x8061aa8]
> ./main(PyObject_Call+0x37)[0x805bd97]
> ./main(PyEval_CallObjectWithKeywords+0x7c)[0x80b1c2c]
> /tmp/_MEI28650/sip.so[0xb6b8d2d3]
> /tmp/_MEI28650/PyQt4.QtCore.so[0xb66d598d]
> /tmp/_MEI28650/PyQt4.QtCore.so[0xb67095a6]
> /usr/lib/libQtCore.so.4[0xb6be29b7]
> /lib/libpthread.so.0[0xb7f9a175]
> /lib/libc.so.6(clone+0x5e)[0xb7edcdce]
> 
> You can give me some ideas, if you need the source i will send

See my emails for a similar topic a few days ago. I see you're using 
QThread, but you might have a problem with what you do from within the 
thread.

(BTW: you don't need threads to use multiple sockets; that's a perfect 
example of when you should not be using threads in the first place)
-- 
Giovanni Bajo
Develer S.r.l.
http://www.develer.com


More information about the PyQt mailing list