Red Hat Bugzilla – Bug 294761
valgrind.i386 doesn't exist for x86_64
Last modified: 2014-03-16 23:08:29 EDT
Description of problem:
Previously, in Fedora Core 6, both valgrind.i386 and valgrind.x86_64 were
available, in Fedora 7, only valgrind.x86_64 is available.
Version-Release number of selected component (if applicable): 3.2.3-5.fc7
Steps to Reproduce:
1. yum install valgrind (note only x86_64 version offered)
2. valgrind <32-bit program>
valgrind complains about a missing tool (memcheck)
valgrind runs as normal
I took the valgrind.i386 from the Fedora 7 i386 updates repo and installed it
with "rpm -Uvh" and everything works now. This is a step backwards from Fedora
Core 6 though: in that release I had a working 32 bit valgrind without having to
do anything at all.
That's an Fedora release engineering issue, the packages are built correctly.
valgrind for x86_64 does not work in i386?
No. The /usr/bin/valgrind program is just a tiny wrapper which can dispatch
to the right valgrind backend (32-bit or 64-bit), but if you want to trace
both kinds of programs, you need both kinds of backends installed. Which means
both valgrind.x86_64 and valgrind.i386 should be installed on x86_64,
on ppc with 64-bit kernel if you want to trace both, you also need both
valgrind.ppc and valgrind.ppc64, etc.
Whee, so valgrind is in a completely different category from gdb, strace, etc.,
in that you need both.
Added in mash-0.2.5.