NFS mount was a problem for not being able to run valgrind. The following line 
in the /etc/fstab of the phone fixed the mount problem:



      47.135.159.188:/exports /exports nfs 
intr,rsize=1024,wsize=1024,noauto,nolock 0 0



However, valgrind can not find a library. I ran this on the phone:



      47.134.206.85 # /exports/Valgrind/bin/valgrind 
--log-file-exactly=/tmp/vg.log ls -l



      valgrind: failed to start tool 'memcheck' for platform 'arm-linux': No 
such file

      or directory



I checked the libraries on the NFS server and don't see anything wrong. Do you 
know why valgrind can not find the memcheck library?



[root@bcml9188 valgrind]# pwd

/exports/Valgrind/lib/valgrind

[root@bcml9188 valgrind]# ll

total 82224

-rwxrwxrwx 1 root root 6655866 Jul 19 15:26 cachegrind-arm-linux

-rwxrwxrwx 1 root root 6937576 Jul 19 15:26 callgrind-arm-linux

-rwxrwxrwx 1 root root   30959 Jul 19 15:25 default.supp

-rwxrwxrwx 1 root root 6917951 Jul 19 15:26 drd-arm-linux

-rwxrwxrwx 1 root root 6557176 Jul 19 15:26 exp-bbv-arm-linux

-rwxrwxrwx 1 root root 6579995 Jul 19 15:26 exp-dhat-arm-linux

-rwxrwxrwx 1 root root 6773373 Jul 19 15:26 exp-ptrcheck-arm-linux

-rwxrwxrwx 1 root root 6897703 Jul 19 15:26 helgrind-arm-linux

-rwxrwxrwx 1 root root 6567010 Jul 19 15:26 lackey-arm-linux

-rwxrwxrwx 1 root root 3640290 Jul 19 15:25 libcoregrind-arm-linux.a

-rwxrwxrwx 1 root root   45320 Jul 19 15:25 
libreplacemalloc_toolpreload-arm-linux.a

-rwxrwxrwx 1 root root 5400368 Jul 19 15:25 libvex-arm-linux.a

-rwxrwxrwx 1 root root 6619843 Jul 19 15:26 massif-arm-linux

-rwxrwxrwx 1 root root 7149402 Jul 19 15:26 memcheck-arm-linux

-rwxrwxrwx 1 root root 6545436 Jul 19 15:26 none-arm-linux

-rwxrwxrwx 1 root root    7066 Jul 19 15:25 vgpreload_core-arm-linux.so

-rwxrwxrwx 1 root root  214938 Jul 19 15:26 vgpreload_drd-arm-linux.so

-rwxrwxrwx 1 root root   40516 Jul 19 15:26 vgpreload_exp-dhat-arm-linux.so

-rwxrwxrwx 1 root root   59998 Jul 19 15:26 vgpreload_exp-ptrcheck-arm-linux.so

-rwxrwxrwx 1 root root  122009 Jul 19 15:26 vgpreload_helgrind-arm-linux.so

-rwxrwxrwx 1 root root   40516 Jul 19 15:26 vgpreload_massif-arm-linux.so

-rwxrwxrwx 1 root root   96511 Jul 19 15:26 vgpreload_memcheck-arm-linux.so

[root@bcml9188 valgrind]#





-----Original Message-----
From: John Reiser [mailto:jrei...@bitwagon.com]
Sent: Wednesday, July 20, 2011 4:21 PM
To: valgrind-users@lists.sourceforge.net
Subject: Re: [Valgrind-users] Valgrind for ARM 1176 for linux



> Does it mean that valgrind can not run with NFS mount?



valgrind will run if the pieces are there, and if the pathnames are correct.

Take a look at valgrind on i686 or x86_64.  You must replicate that layout,

from the viewpoint of the target.



The output from

      strace  -e  trace=file  the/path/to/valgrind  ls  -l



will tell you what filenames valgrind is expecting.

You can even run that on i686 or x86_64 and compare the pathnames

with the ones that the target is expecting.



Probably you must adjust

      ./configure --prefix=/where/you/want/it/installed

to specify the proper directory.  (This is part of getting the

cross-linking correct, which I mentioned was easy to mistake.)



--



------------------------------------------------------------------------------

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
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to