Important: Please read the Qt Code of Conduct -

Common framework leaks on 5.0.1

  • Hi everyone!

    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
    DISTRIB_DESCRIPTION="Ubuntu 13.04"
    Version: 5.0.1+dfsg-0ubuntu4

    What should I do reduce leaks? Build Qt from sources? Use another version?
    Any ideas?

  • Moderators

    Valgrind is know for producing false positives for Qt libraries. You - probably - don't need to worry about those.

Log in to reply