Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Common framework leaks on 5.0.1
stream13 last edited by
I am a total novice in Qt, please don't be strict.
I have written simple app using Qt, and found some leaks. Those leak's traces go inside of a framework.
Then I made an empty GUI project, and launched valgrind.
valgrind --leak-check=yes --track-origins=yes --show-reachable=yes -v ./sample_app
==5000== LEAK SUMMARY:
==5000== definitely lost: 16,060 bytes in 66 blocks
==5000== indirectly lost: 96,134 bytes in 1,644 blocks
==5000== possibly lost: 13,540 bytes in 105 blocks
==5000== still reachable: 80,759 bytes in 514 blocks
==5000== suppressed: 0 bytes in 0 blocks
==5000== ERROR SUMMARY: 108 errors from 108 contexts (suppressed: 3 from 3)
And of course system configs:
root@main:~# cat /etc/lsb-release | grep "DESC" ; uname -i ; aptitude show libqt5core5 | grep Vers
What should I do reduce leaks? Build Qt from sources? Use another version?
Valgrind is know for producing false positives for Qt libraries. You - probably - don't need to worry about those.