Valgrind in Qt Creator

南楼画角 提交于 2019-12-10 18:24:19

问题


Using the Memcheck function of Qt Creator returns the following:

valgrind: Bad option: --xml=yes, but no XML destination specified
valgrind: --xml=yes has been specified, but there is no XML output
valgrind: destination.  You must specify an XML output destination
valgrind: using --xml-fd, --xml-file or --xml-socket.
valgrind: Use --help for more information or consult the user manual.
Analyzing finished.
** Unknown error **

Is there something in the configuration that hasn't been set properly, or is this a Qt Creator bug? I can't see anywhere in the settings where I could possibly inject a command line argument or set the XML file output.


回答1:


It's due a xml-socket bug in valgrind-3.13.

For now, you can downgrade to valgrind-3.12 if you want to use valgrind without any problems.



来源:https://stackoverflow.com/questions/45531851/valgrind-in-qt-creator

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!