2012년 10월 4일 목요일

valgrind error when using ssh connection

try : ssh userid@host "valgrind"
error message : valgrind : failed to start tool 'memcheck' for platform 'x86-linux' ...


check : ssh userid@host "env; valgrind"
...

if no "VALGRIND_LIB" settings, you can try again as follow:

check : ssh userid@host "export VALGRIND_LIB=/usr/lib/valgrind; valgrind"
of
check : ssh userid@host "export VALGRIND_LIB=/usr/local/lib/valgrind; valgrind"

...

reason : valgrind cannot found memcheck or callgrind for x86-linux platform, they should be located at valgrind lib directory such as "/usr/lib/valgrind" or "/usr/local/lib/valgrind"

solution

modify sshd_config :
PermitUserEnvironment no --> yes

add user ssh environment file
#> vi ~/.ssh/environment
VALGRIND_LIB=/usr/lib/valgrind
or
VALGRIND_LIB=/usr/local/lib/valgrind

and, you should restart sshd on server.

댓글 2개:

익명 :

Highly dеѕcriptivе poѕt, I enjοyеd
that bit. Wіll there be a paгt 2?

Here is mу hοmepage; payday loans

익명 :

Yоu're so cool! I do not suppose I have read through a single thing like this before. So nice to discover somebody with genuine thoughts on this issue. Really.. thanks for starting this up. This web site is one thing that is required on the internet, someone with some originality!

My website - payday loans