开发者

Is there a problem running a program using the framewave library under valgrind?

I have a set of unit tests, which are testing a program using the framewave library.

The problem occurs when I run these unit tests using valgrind to check if the code causes memory problems. It looks like the unit test enters an endless loop because it waits for some threads to be joined (although I disabled threads with fwSetNumThreads)

Has anyone experienced similar problems? If yes, how did you solve it?

A seconda开发者_开发知识库ry question: do I have to pass some parameters to valgrind for multi-threaded programs?

EDIT

My valgrind's version is :

valgrind --version
valgrind-3.4.1

And this is what I discovered in the output that keeps on repeating (that I haven't seen before) :

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


These errors are actually result of a bug in valgrind (the version of valgrind I am using is 3.4.1) :

DWARF2 CFI reader: unhandled CFI instruction 0:10

http://valgrind.org/docs/manual/dist.news.html
Valgrind giving errors with getline()
https://bugs.kde.org/show_bug.cgi?id=197512

Updating the valgrind to the latest version (3.6.1 at the time of writing this) fixes this error.

How to suppress "DWARF2 CFI reader: unhandled CFI instruction" error in valgrind output? explains this, but it just tells to update the valgrind to the latest version.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜