Bugzilla – Bug 105169
valgrind: wrong ELF executable class (e.g. 32-bit instead of 64-bit)
Last modified: 2005-11-10 10:16:43 UTC
When trying to trace a 32-bit program on a 2.8GHz Xeon machine, valgrind complains about valgrind: wrong ELF executable class (e.g. 32-bit instead of 64-bit) valgrind: do_exec(program_name) failed: Exec format error program_name is a "ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked..." The programs runs fine without valgrind however.
with any program? Can you attach it?
Not with any program: "valgrind /bin/bash" (ELF 64-bit executable, AMD x86-64, ...) seems to work. Maybe for any non-SuSE program? ;-) OK, I had to search a while for a non-64 bit program from SuSE, but I found one: /sbin/activate from the lilo-22.7-2 package produces the same error message.
valgrind doesn't have biarch support, so install the 32 bit version for tracing 32 bit apps.
I have installed all versions of valgrind that were on the DVD. So it's you fault, no my fault.
use the valgrind2 package. there is currently no biarch support in valgrind, so its not something that we can solve as part of the packaging process. it might get fixed for valgrind 3.1, but thats a bit too far in the future for SL10.
post 10.0
might not even get fixed in valgrind 3.1.
ok..
updated supplementary / 10.1 with valgrind 3.1 which fixes cross-execution.