• 2911阅读
  • 0回复

[提问]Qt valgrind內存洩漏分析.. [复制链接]

上一主题 下一主题
离线yishiang0217
 

只看楼主 倒序阅读 楼主  发表于: 2017-07-25
開發平台(Platform): (Ex: Win10, Linux, ...)

VMWare-Ubuntu 16.04
編譯器(Ex: GCC, clang, VC++...)
gcc
問題(Question):

各位板友大家好,
剛剛隨意開一個新的QDialog專案,沒有新增任何程式碼,
直接於command line輸入「valgrind --tool=memcheck --leak-check=full ./Test」

視窗程式出現後再將之關閉,分析結果出現一堆錯誤..
--
(上面省略)
==7722== 3,928 bytes in 1 blocks are definitely lost in loss record 7,377 of 7,430
==7722==    at 0x4C2FB55: calloc (in /usr/lib/valgrind/vgpreload_
memcheck-amd64-linux.so)
==7722==    by 0x1B032FBD: ??? (in /usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so)
==7722==    by 0x1B031727: ??? (in /usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so)
==7722==    by 0x1B031DCE: ??? (in /usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so)
==7722==    by 0x1AA4F3D5: ??? (in /usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so)
==7722==    by 0x1AD0FF9B: ??? (in /usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so)
==7722==    by 0x1AD0BC5E: ??? (in /usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so)
==7722==    by 0x7119EB2: ??? (in /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0)
==7722==    by 0x70F0603: ??? (in /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0)
==7722==    by 0x70EC1E6: glXGetFBConfigs (in /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0)
==7722==    by 0x70ED5B1: glXChooseFBConfig (in /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0)
==7722==    by 0x10211D06: ??? (in /home/james/Qt/5.9.1/gcc_64/plugins/xcbglintegrations/libqxcb-glx-integration.so)
==7722==
==7722== LEAK SUMMARY:
==7722==    definitely lost: 5,036 bytes in 11 blocks
==7722==    indirectly lost: 572 bytes in 16 blocks
==7722==      possibly lost: 3,808 bytes in 33 blocks
==7722==    still reachable: 1,449,425 bytes in 18,802 blocks
==7722==                       of which reachable via heuristic:
==7722==                         length64           : 5,336 bytes in 89 blocks
==7722==                         newarray           : 2,160 bytes in 55 blocks
==7722==         suppressed: 0 bytes in 0 blocks
==7722== Reachable blocks (those to which a pointer was found) are not shown.
==7722== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==7722==
==7722== For counts of detected and suppressed errors, rerun with: -v
==7722== ERROR SUMMARY: 37 errors from 37 contexts (suppressed: 0 from 0)
--
這是怎麼回事,我都快瘋了...
和估狗教授查到的內容長得不一樣..
http://www.voidcn.com/blog/A8572785/article/p-2225404.html

別人是真的故意有漏才跑出1個錯誤,我的怎麼會...Orz

懇請板上大神協助阿,謝謝:)

快速回复
限100 字节
 
上一个 下一个