On 13/01/10 05:18, tom fogal wrote:
> Zvi Vered<[email protected]> writes:
>> When I ran 'valgrind ln -l' I got:
>> valgrind: failed to start tool 'memcheck' for platform 'x86-linux': no
>> such file or directory
>>
>> What can be the reason for such an error ?
>
> AFAIK, "valgrind" is only a thin wrapper whose job it is to effectively
> or exactly LD_PRELOAD a library which intercepts relevant symbols. My
> guess is that, for whatever reason, your install is lacking the shared
> object which is supposed to be preloaded.
The LD_PRELOAD is a fairly minor thing these days - it's main job is to
detect what the architecture of the program being loaded is, and what
tool has been requested, and exec the right valgrind tool binary.
> I would first start looking in ${PREFIX}/lib/valgrind. Among
> other things, I have both a "memcheck-amd64-linux" and a
> "vgpreload_memcheck-amd64-linux.so". Do you have a corresponding
> program and s.o. for x86?
Indeed, it should be execing memcheck-x86-linux in this case.
The problem is almost certainly that either that program has not been
copied over or it has been placed at a different location in the
filesystem so valgrind can't find it. If valgrind is run with -d it
should report something like:
--11640:1:launcher no tool requested, defaulting to 'memcheck'
--11640:1:launcher selected platform 'amd64-linux'
--11640:1:launcher launching /usr/lib64/valgrind/memcheck-amd64-linux
which shows the path of the program it is trying to launch.
Tom
--
Tom Hughes ([email protected])
http://www.compton.nu/
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users