Shiva wrote: > 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 > requested > --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 > requested > > 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. > Thanks, > Shivakumar >
Hi Shiva Which version of Valgrind are you using? And which OS and platform? Did you install it with your package manager or build it from source? Regards Paul ------------------------------------------------------------------------------ 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 Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users