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.