使用 Qt Creator 的 Memcheck 函数返回以下内容:
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 **
配置中是否有某些内容未正确设置,或者这是 Qt Creator 的错误?我在设置中看不到可以注入命令行参数或设置 XML 文件输出的任何位置。
这是由于一个xml-socket 错误 https://bugs.kde.org/show_bug.cgi?id=382998在 valgrind-3.13 中。
目前,如果您想毫无问题地使用 valgrind,可以降级到 valgrind-3.12。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)