<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2>Hello all,<br><br>I am looking for a bug in a PyQt application that sometimes crashes. When it crashes it always crashes in PyObject_Malloc :<br><br> if (pool != pool->nextpool) {<br> /*<br> * There is a used pool for this size class.<br> * Pick up the head block of its free list.<br> */<br> ++pool->ref.count;<br> bp = pool->freeblock;<br> assert(bp != NULL);<br>-------> if ((pool->freeblock = *(block **)bp) != NULL) { <---Line of code where crash occurs<br> UNLOCK();<br> return (void *)bp;<br> }<br>Most of the time it dereferences a null pointer at this line, but sometimes also another invalid address like 0xffffffff.<br>It looks like the heap gets corrupted somehow, now I already read in the archives about similar problems and someone noticed the use of QThreads, our application uses multithreading too, with the use of QThreads.<br>Is there something we should be aware of when using QThreads ? (Besides the normal precautions to prevent race conditions of course).<br><br>Has anybody had similar problems, and also, do you have suggestions as what the best way is to pinpoint a problem like this ??<br><br>Thanks in advance,<br><br>Lambert<br><br><br><br></FONT>