我有一套单元测试,它使用framewave library测试程序。使用valgrind下的framewave库运行程序有问题吗?
当我使用valgrind运行这些单元测试来检查代码是否会导致内存问题时,会发生此问题。它看起来像单元测试进入无限循环,因为它等待一些线程加入(虽然我禁用fwSetNumThreads
线程)
有没有人遇到类似的问题?如果是的话,你是如何解决它的?
第二个问题:我是否必须向valgrind传递一些参数给多线程程序?
编辑
我的valgrind的版本是:
valgrind --version
valgrind-3.4.1
这是我在上重复(我没有见过)保持输出发现:
DWARF2 CFI reader: unhandled CFI instruction 0:10
DWARF2 CFI reader: unhandled CFI instruction 0:10
DWARF2 CFI reader: unhandled CFI instruction 0:10
DWARF2 CFI reader: unhandled CFI instruction 0:10
DWARF2 CFI reader: unhandled CFI instruction 0:10
DWARF2 CFI reader: unhandled CFI instruction 0:10
Duplicate:http://stackoverflow.com/questions/1520186/how-to-suppress-dwarf2-cfi-reader-unhandled-cfi-instruction-error-in-valgrind – yanjost 2011-07-13 08:56:09