Multithreading – * * * glibc detected * * * double free or corrupt (fasttop):
The clear call to qbytearray generates the following exception:
*Glibc * / home / Yan / fps2 / fps2 detected: double free or damaged (fasttop):
0 1 ?? 2 free 3 qbytearray:: clear() 4 fpsengine:: getdatagrams 5 fpsengine:: xmitdata 6 fpsengine:: GetData 7 threaddatalog:: run 8?? 9 start_ Thread 10 clone 11?? 0
Is this a QT error or is it possibly related to my code? I know that qobjects is not thread safe (QT definition is not that multiple threads call the same function of the same object instance), but my functions are mutually exclusive Even if I call the same function often, I rarely get this error Attachment: one way to prevent this is env var malloc_ CHECK_ 0
This site involves similar problems, and some posts seem to suggest that it is caused by an incompatible glibc version
*** glibc detected *** perl: double free or corruption (!prev): 0x0c2b7138 ***
Solution
It may be many different things, including the temporary qbytearray returned by the reference function call, but it is unlikely (IMO) to become an error in QT
Here are some ideas for debugging:
>Run it under Valgrind to see if it highlights the problem > run your application against the QT version with available debug symbols > enable core dump and see if you get the core file