1.       I did "make clean" and this time it found the library. However, it 
crashed. Any idea why?

47.134.206.85 # ./strace -e trace=file -o log.txt -f ./valgrind --log-file-exact
ly=/tmp/vg.log ls -l
syscall: unknown syscall trap 0x381e11f0

lot.txt:
---------
787   execve("/exports/Valgrind/lib/valgrind/memcheck-arm-linux", 
["./valgrind", "--log-file-exactly=/tmp/vg.log", "ls", "-l"], [/* 22 vars */]) 
= 0

47.134.206.85 # ./strace -e trace=file -o log.txt -f ./valgrind -h
syscall: unknown syscall trap 0x381e11f0


2.       In the attached log, valgrind is trying to go to /AvayaDir/lib. How 
did valgrind larn about /AvayaDir and how can I change it to look to /lib 
instead?
787   open("/AvayaDir/lib/tls/v6l/fast-mult/libc.so.6", O_RDONLY) = -1 ENOENT 
(No such file or directory)

How can I disable to use: /lib/tls,/lib/v6l and /lib/fast-mult, and 
/lib/fast-mult/half?


3.       I did a basic valgrind test (either with "data" or "ls") and memory 
check failed. The output is the same. How to fix this?

47.134.206.85 #  /exports/Valgrind/bin/valgrind date

==1000== Memcheck, a memory error detector
==1000== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==1000== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==1000== Command: date
==1000==

valgrind:  Fatal error at startup: a function redirection
valgrind:  which is mandatory for this platform-tool combination
valgrind:  cannot be set up.  Details of the redirection are:
valgrind:
valgrind:  A must-be-redirected function
valgrind:  whose name matches the pattern:      memcpy
valgrind:  in an object with soname matching:   ld-linux.so.3
valgrind:  was not found whilst processing
valgrind:  symbols from the object with soname: ld-linux.so.3
valgrind:
valgrind:  Possible fixes: (1, short term): install glibc's debuginfo
valgrind:  package on this machine.  (2, longer term): ask the packagers
valgrind:  for your Linux distribution to please in future ship a non-
valgrind:  stripped ld.so (or whatever the dynamic linker .so is called)
valgrind:  that exports the above-named function using the standard
valgrind:  calling conventions for this platform.  The package you need
valgrind:  to install for fix (1) is called
valgrind:
valgrind:    On Debian, Ubuntu:                 libc6-dbg
valgrind:    On SuSE, openSuSE, Fedora, RHEL:   glibc-debuginfo
valgrind:
valgrind:  Cannot continue -- exiting now.  Sorry.


From: Wan Mohd Fairuz Wan Ismail [mailto:wanmohdfai...@mckk9903.com]
Sent: Thursday, July 21, 2011 3:02 PM
To: Mudric, Dusan (Dusan)
Cc: Dan Kegel; John Reiser; valgrind-users@lists.sourceforge.net
Subject: Re: [Valgrind-users] Valgrind for ARM 1176 for linux

I think you can cross compile strace. Make sure to compile with -static flag. I 
have strace binary but it's at work, can give you tomorrow if you still need it.

reference: http://sourceforge.net/projects/strace/
On Thu, Jul 21, 2011 at 7:40 PM, Mudric, Dusan (Dusan) 
<dmud...@avaya.com<mailto:dmud...@avaya.com>> wrote:
Linux on my phone does not have strace tool. Is there strace binary that can be 
loaded on ARM1176 so I can check what valgrind is trying to use?

-----Original Message-----
From: daniel.r.ke...@gmail.com<mailto:daniel.r.ke...@gmail.com> 
[mailto:daniel.r.ke...@gmail.com<mailto:daniel.r.ke...@gmail.com>] On Behalf Of 
Dan Kegel
Sent: Thursday, July 21, 2011 12:35 PM
To: Mudric, Dusan (Dusan)
Cc: John Reiser; 
valgrind-users@lists.sourceforge.net<mailto:valgrind-users@lists.sourceforge.net>
Subject: Re: [Valgrind-users] Valgrind for ARM 1176 for linux
On Thu, Jul 21, 2011 at 7:37 AM, Mudric, Dusan (Dusan)
<dmud...@avaya.com<mailto:dmud...@avaya.com>> wrote:
> However, valgrind can not find a library.
> valgrind: failed to start tool 'memcheck' for platform 'arm-linux': No such 
> file or directory

strace might be able to tell you where it was looking for the library.

$ strace -e trace=file -o log -f valgrind /bin/ls
$ grep memcheck log

17724 execve("/usr/lib/valgrind/memcheck-x86-linux",
["/usr/bin/valgrind.bin", "/bin/ls"], [/* 46 vars */]) = 0
17724 access("/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so", R_OK) = 0
17724 stat64("/usr/lib/valgrind/memcheck-x86-linux",
{st_mode=S_IFREG|0755, st_size=6070610, ...}) = 0
17724 open("/usr/lib/valgrind/memcheck-x86-linux", O_RDONLY|O_LARGEFILE) = 3
17724 stat64("/usr/lib/valgrind/memcheck-x86-linux",
{st_mode=S_IFREG|0755, st_size=6070610, ...}) = 0
17724 open("/usr/lib/valgrind/memcheck-x86-linux", O_RDONLY|O_LARGEFILE) = 3
17724 open("/usr/lib/valgrind/memcheck-x86-linux", O_RDONLY) = 3
17724 readlink("/proc/self/fd/3",
"/usr/lib/valgrind/memcheck-x86-linux", 4096) = 36
17724 open("/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so", O_RDONLY) = 3
17724 readlink("/proc/self/fd/3",
"/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so", 4096) = 49
17724 stat64("/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so",
{st_mode=S_IFREG|0644, st_size=99339, ...}) = 0
17724 open("/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so",
O_RDONLY|O_LARGEFILE) = 4
17724 readlink("/proc/self/fd/3",
"/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so", 4096) = 49
17724 stat64("/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so",
{st_mode=S_IFREG|0644, st_size=99339, ...}) = 0
17724 open("/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so",
O_RDONLY|O_LARGEFILE) = 4
17724 open("/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so", O_RDONLY) = 4
17724 readlink("/proc/self/fd/4",
"/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so", 4096) = 49

------------------------------------------------------------------------------
5 Ways to Improve & Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net<mailto:Valgrind-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/valgrind-users



--
Wan Mohd Fairuz WAN ISMAIL
OMAP System Multimedia Integration Team
Texas Instrument France
+33 (0)4 93 22 20 16
+33 (0)6 43 46 13 39

787   execve("./valgrind", ["./valgrind", "--log-file-exactly=/tmp/vg.log", 
"ls", "-l"], [/* 21 vars */]) = 0
787   access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
787   open("/AvayaDir/lib/tls/v6l/fast-mult/half/libc.so.6", O_RDONLY) = -1 
ENOENT (No such file or directory)
787   stat64("/AvayaDir/lib/tls/v6l/fast-mult/half", 0xbeb99290) = -1 ENOENT 
(No such file or directory)
787   open("/AvayaDir/lib/tls/v6l/fast-mult/libc.so.6", O_RDONLY) = -1 ENOENT 
(No such file or directory)
787   stat64("/AvayaDir/lib/tls/v6l/fast-mult", 0xbeb99290) = -1 ENOENT (No 
such file or directory)
787   open("/AvayaDir/lib/tls/v6l/half/libc.so.6", O_RDONLY) = -1 ENOENT (No 
such file or directory)
787   stat64("/AvayaDir/lib/tls/v6l/half", 0xbeb99290) = -1 ENOENT (No such 
file or directory)
787   open("/AvayaDir/lib/tls/v6l/libc.so.6", O_RDONLY) = -1 ENOENT (No such 
file or directory)
787   stat64("/AvayaDir/lib/tls/v6l", 0xbeb99290) = -1 ENOENT (No such file or 
directory)
787   open("/AvayaDir/lib/tls/fast-mult/half/libc.so.6", O_RDONLY) = -1 ENOENT 
(No such file or directory)
787   stat64("/AvayaDir/lib/tls/fast-mult/half", 0xbeb99290) = -1 ENOENT (No 
such file or directory)
787   open("/AvayaDir/lib/tls/fast-mult/libc.so.6", O_RDONLY) = -1 ENOENT (No 
such file or directory)
787   stat64("/AvayaDir/lib/tls/fast-mult", 0xbeb99290) = -1 ENOENT (No such 
file or directory)
787   open("/AvayaDir/lib/tls/half/libc.so.6", O_RDONLY) = -1 ENOENT (No such 
file or directory)
787   stat64("/AvayaDir/lib/tls/half", 0xbeb99290) = -1 ENOENT (No such file or 
directory)
787   open("/AvayaDir/lib/tls/libc.so.6", O_RDONLY) = -1 ENOENT (No such file 
or directory)
787   stat64("/AvayaDir/lib/tls", 0xbeb99290) = -1 ENOENT (No such file or 
directory)
787   open("/AvayaDir/lib/v6l/fast-mult/half/libc.so.6", O_RDONLY) = -1 ENOENT 
(No such file or directory)
787   stat64("/AvayaDir/lib/v6l/fast-mult/half", 0xbeb99290) = -1 ENOENT (No 
such file or directory)
787   open("/AvayaDir/lib/v6l/fast-mult/libc.so.6", O_RDONLY) = -1 ENOENT (No 
such file or directory)
787   stat64("/AvayaDir/lib/v6l/fast-mult", 0xbeb99290) = -1 ENOENT (No such 
file or directory)
787   open("/AvayaDir/lib/v6l/half/libc.so.6", O_RDONLY) = -1 ENOENT (No such 
file or directory)
787   stat64("/AvayaDir/lib/v6l/half", 0xbeb99290) = -1 ENOENT (No such file or 
directory)
787   open("/AvayaDir/lib/v6l/libc.so.6", O_RDONLY) = -1 ENOENT (No such file 
or directory)
787   stat64("/AvayaDir/lib/v6l", 0xbeb99290) = -1 ENOENT (No such file or 
directory)
787   open("/AvayaDir/lib/fast-mult/half/libc.so.6", O_RDONLY) = -1 ENOENT (No 
such file or directory)
787   stat64("/AvayaDir/lib/fast-mult/half", 0xbeb99290) = -1 ENOENT (No such 
file or directory)
787   open("/AvayaDir/lib/fast-mult/libc.so.6", O_RDONLY) = -1 ENOENT (No such 
file or directory)
787   stat64("/AvayaDir/lib/fast-mult", 0xbeb99290) = -1 ENOENT (No such file 
or directory)
787   open("/AvayaDir/lib/half/libc.so.6", O_RDONLY) = -1 ENOENT (No such file 
or directory)
787   stat64("/AvayaDir/lib/half", 0xbeb99290) = -1 ENOENT (No such file or 
directory)
787   open("/AvayaDir/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or 
directory)
787   stat64("/AvayaDir/lib", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
787   open("/etc/ld.so.cache", O_RDONLY) = -1 ENOENT (No such file or directory)
787   open("/lib/tls/v6l/fast-mult/half/libc.so.6", O_RDONLY) = -1 ENOENT (No 
such file or directory)
787   stat64("/lib/tls/v6l/fast-mult/half", 0xbeb99290) = -1 ENOENT (No such 
file or directory)
787   open("/lib/tls/v6l/fast-mult/libc.so.6", O_RDONLY) = -1 ENOENT (No such 
file or directory)
787   stat64("/lib/tls/v6l/fast-mult", 0xbeb99290) = -1 ENOENT (No such file or 
directory)
787   open("/lib/tls/v6l/half/libc.so.6", O_RDONLY) = -1 ENOENT (No such file 
or directory)
787   stat64("/lib/tls/v6l/half", 0xbeb99290) = -1 ENOENT (No such file or 
directory)
787   open("/lib/tls/v6l/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or 
directory)
787   stat64("/lib/tls/v6l", 0xbeb99290) = -1 ENOENT (No such file or directory)
787   open("/lib/tls/fast-mult/half/libc.so.6", O_RDONLY) = -1 ENOENT (No such 
file or directory)
787   stat64("/lib/tls/fast-mult/half", 0xbeb99290) = -1 ENOENT (No such file 
or directory)
787   open("/lib/tls/fast-mult/libc.so.6", O_RDONLY) = -1 ENOENT (No such file 
or directory)
787   stat64("/lib/tls/fast-mult", 0xbeb99290) = -1 ENOENT (No such file or 
directory)
787   open("/lib/tls/half/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or 
directory)
787   stat64("/lib/tls/half", 0xbeb99290) = -1 ENOENT (No such file or 
directory)
787   open("/lib/tls/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or 
directory)
787   stat64("/lib/tls", 0xbeb99290)    = -1 ENOENT (No such file or directory)
787   open("/lib/v6l/fast-mult/half/libc.so.6", O_RDONLY) = -1 ENOENT (No such 
file or directory)
787   stat64("/lib/v6l/fast-mult/half", 0xbeb99290) = -1 ENOENT (No such file 
or directory)
787   open("/lib/v6l/fast-mult/libc.so.6", O_RDONLY) = -1 ENOENT (No such file 
or directory)
787   stat64("/lib/v6l/fast-mult", 0xbeb99290) = -1 ENOENT (No such file or 
directory)
787   open("/lib/v6l/half/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or 
directory)
787   stat64("/lib/v6l/half", 0xbeb99290) = -1 ENOENT (No such file or 
directory)
787   open("/lib/v6l/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or 
directory)
787   stat64("/lib/v6l", 0xbeb99290)    = -1 ENOENT (No such file or directory)
787   open("/lib/fast-mult/half/libc.so.6", O_RDONLY) = -1 ENOENT (No such file 
or directory)
787   stat64("/lib/fast-mult/half", 0xbeb99290) = -1 ENOENT (No such file or 
directory)
787   open("/lib/fast-mult/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or 
directory)
787   stat64("/lib/fast-mult", 0xbeb99290) = -1 ENOENT (No such file or 
directory)
787   open("/lib/half/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or 
directory)
787   stat64("/lib/half", 0xbeb99290)   = -1 ENOENT (No such file or directory)
787   open("/lib/libc.so.6", O_RDONLY)  = 3
787   fstat64(3, {st_mode=S_IFREG|0755, st_size=1176496, ...}) = 0
787   syscall_983045(0x40001130, 0x40001800, 0x496bd674, 0x40001808, 
0x496bd048, 0x496bd000, 0, 0xf0005, 0x48, 0x6474e552, 0xffff5170, 0xbeb999d4, 
0, 0xbeb99860, 0x496a946c, 0x49699f68, 0x20000010, 0x40001130, 0, 0, 0, 0xeb48, 
0xcdb18, 0xcdaf0, 0, 0, 0, 0, 0, 0, 0, 0) = 0
787   access("/sbin/ls", R_OK|X_OK)     = -1 ENOENT (No such file or directory)
787   access("/usr/sbin/ls", R_OK|X_OK) = -1 ENOENT (No such file or directory)
787   access("/bin/ls", R_OK|X_OK)      = 0
787   open("/bin/ls", O_RDONLY)         = 3
787   readlink("/proc/self/exe", "/exports/Valgrind/bin/valgrind", 4096) = 30
787   execve("/exports/Valgrind/lib/valgrind/memcheck-arm-linux", 
["./valgrind", "--log-file-exactly=/tmp/vg.log", "ls", "-l"], [/* 22 vars */]) 
= 0
------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to