2014-07-24 53 views
0

我第一次在代碼上運行valgerind。如何避免valgrind strlen錯誤?

我得到了一個錯誤:

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

這是在Valgrind的一個錯誤:https://bugs.kde.org/show_bug.cgi?id=286864
一種它patch適用於Debian的,但它看起來並不像一個完整的解決方案:

但是,執行sudo apt-get install libc6-dbg:i386似乎已經解決了它this人。

+0

謝謝,我看到了,但是我沒有成功安裝它(ubuntu)。 – Shtrudle

+0

希望其中之一能解決它:https://www.google.co.in/search?q=libc6-dbg&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox -a&信道= SB&gfe_rd = CR EI = sOHRU9OBDurV8gfYpoCYBg – Nav