如何避免valgrind strlen错误?

时间:2014-07-24 15:50:12

标签: linux valgrind

我第一次在代码上运行valgerind。

我收到了下一个错误:

valgrind:  Fatal error at startup: a function redirection
valgrind:  which is mandatory for this platform-tool combination
valgrind:  cannot be set up.  Details of the redirection are:
valgrind:  
valgrind:  A must-be-redirected function
valgrind:  whose name matches the pattern:      strlen
valgrind:  in an object with soname matching:   ld-linux.so.2
valgrind:  was not found whilst processing
valgrind:  symbols from the object with soname: ld-linux.so.2

我该怎么做才能解决这个问题?

感谢。

1 个答案:

答案 0 :(得分:2)

这是Valgrind的一个错误:https://bugs.kde.org/show_bug.cgi?id=286864
Debian可以使用patch,但它看起来不是一个完整的解决方案:

但是,执行sudo apt-get install libc6-dbg:i386似乎已为this人解决了问题。