Hi Tom,
I am trying to run valgrind on my executable which is of 32-bit. I am
getting the following error:
valgrind  <executable>
valgrind: wrong ELF executable class (eg. 32-bit instead of 64-bit)
valgrind: <executable>: cannot execute binary file

Couple of other logs which are useful:
file <executable>
<executable>: ELF 32-bit MSB  executable, PowerPC or cisco 4500, version 1
(SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16,
BuildID[sha1]=570302117aa12728043bc5263352ce95f637db35, not stripped
valgrind -d <executable>
--6455:1:debuglog DebugLog system started by Stage 1, level 1 logging
--6455:1:launcher no tool requested, defaulting to 'memcheck'
--6455:1:launcher no platform detected, defaulting platform to 'amd64-linux'
--6455:1:launcher launching <path>/memcheck-amd64-linux
--6455:1:debuglog DebugLog system started by Stage 2 (main), level 1 logging

Looks like valgrind launcher is automatically starts 64bit execution, and
hence throwing the above error.
Is there a way I can run valgrind for my 32-bit image? However valgrind
executable are built to support both 32-bit and 64 bit version.

View this message in context: 
Sent from the Valgrind - Users mailing list archive at Nabble.com.

Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
Valgrind-users mailing list

Reply via email to