Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running valgrind 32bit binaries on 64 bit machine

Tags:

linux

valgrind

I'm trying to run valgrind 32bit binaries on 64 bit machine(linux) and i'm getting this error:

valgrind: failed to start tool 'memcheck' for platform 'x86-linux': No such file or directory

What do i need to do to make it work?

like image 401
itzikos Avatar asked Dec 31 '15 14:12

itzikos


1 Answers

You do not have installed Valgrind for analysing 32-bit programs on your Linux distribution.

For example on Ubuntu 15.04, installing Valgrind via

apt-get install valgrind

installs both 32-bit and 64-bit versions of the Valgrind analytical tools:

$ ls -1 /usr/lib/valgrind/memcheck-*
/usr/lib/valgrind/memcheck-amd64-linux
/usr/lib/valgrind/memcheck-x86-linux

What is you Linux distribution?

like image 121
ivosh Avatar answered Sep 28 '22 04:09

ivosh