Is anyone using valgrind and Qt?

后端 未结 3 1303
醉酒成梦
醉酒成梦 2020-12-11 01:15

I am trying to debug a large application build using Qt/C++ and valgrind is reporting a lot of memory leak from internal Qt stuff. Could anyone share a proper valgrind suppr

3条回答
  •  [愿得一人]
    2020-12-11 01:32

    --show-reachable shows memory that hasn't actually leaked, even though valgrind calls it a loss record. Your test app doesn't leak any memory.

    You don't need any valgrind suppressions for this particular case. For others, maybe, but you should use valgrind's --gen-suppressions option to generate those suppressions for you.

提交回复
热议问题