[Valgrind-users] Fw:valgrind on cortrex-a9 problem

2012-11-15 Thread lchquan
--Original--From: "lchquan"2383242...@qq.com;Date: Thu, Nov 15, 2012 08:55 PMTo: "valgrind-users"valgrind-users@lists.sourceforge.net; Subject: valgrind on cortrex-a9 problemhi :  i'm using valgrind 3.8.1 on my arm board and get a problem # /opt/vg/bin/valgrind ./maintest ==15447== Memcheck, a memory error detector==15447== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.==15447== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info==15447== Command: ./maintest==15447== ==15447== error 22 Invalid argument==15447== error VG_(am_shared_mmap_file_float_valgrind) /tmp/vgdb-pipe-shared-mem-vgdb-15447-by-root-on-??? # cat /proc/cpuinfo Processor: ARMv7 Processor rev 0 (v7l)processor: 0BogoMIPS: 1849.75processor: 1BogoMIPS: 1856.30Features: swp half thumb fastmult vfp edsp vfpv3 vfpv3d16 CPU implementer : 0x41CPU architecture: 7CPU variant   : 0x3CPU part: 0xc09CPU revision  : 0Hardware: godnetRevision: Serial :  chris@ubuntu:~$ cd valgrind-3.8.1/chris@ubuntu:~/valgrind-3.8.1$ cat ./mycf.sh export CC=arm-hisiv100nptl-linux-gccexport AR=arm-hisiv100nptl-linux-arexport LD=arm-hisiv100nptl-linux-ldexport CXX=arm-hisiv100nptl-linux-g++export OBJDUMP=arm-hisiv100nptl-linux-objdumpexport CROSS_COMPILE=arm-hisiv100nptl-linux-CFLAGS="-march=armv7-a -mcpu=cortex-a9 -fPIC" CPPFLAGS="-march=armv7-a -mcpu=cortex-a9 -fPIC" ./configure --host=armv7-unknown-linux --target=armv7-unknown-linux --prefix=/opt/vg  thanks chris--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] Fw:valgrind on cortrex-a9 problem

2012-11-15 Thread John Reiser
 ==15447== error 22 Invalid argument
 ==15447== error VG_(am_shared_mmap_file_float_valgrind) 
 /tmp/vgdb-pipe-shared-mem-vgdb-15447-by-root-on-???

Run with valgrind --trace-syscalls=yes ./maintest (or use strace)
to find the system call which gives the error, and perhaps a hint
about what is wrong.

What is the page size on this system?  4KiB ?  16KiB ?

-- 


--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] Fw:valgrind on cortrex-a9 problem

2012-11-15 Thread Philippe Waroquiers
On Thu, 2012-11-15 at 07:49 -0800, John Reiser wrote:
  ==15447== error 22 Invalid argument
  ==15447== error VG_(am_shared_mmap_file_float_valgrind) 
  /tmp/vgdb-pipe-shared-mem-vgdb-15447-by-root-on-???


 
 Run with valgrind --trace-syscalls=yes ./maintest (or use strace)
 to find the system call which gives the error, and perhaps a hint
 about what is wrong.
 
 What is the page size on this system?  4KiB ?  16KiB ?

A possible cause might be the /tmp file system not allowing
files mapped in shared memory.

If you do not need vgdb (i.e. not using vgdb directly and/or the
valgrind gdbserver and/or callgrind_control and similar), you
can probably bypass the problem by giving --vgdb=no.

Would be worth in any case to investigate what is wrong with the
very relevant suggestions given by John.

Philippe



--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] Fw:valgrind on cortrex-a9 problem

2012-11-15 Thread lchquan
hi John:thanks for your reply.It out put like this:# /opt/vg/bin/valgrind --trace-syscalls=yes ./maintest ==28097== Memcheck, a memory error detector==28097== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.==28097== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info==28097== Command: ./maintest==2809728097== error 22 Invalid argument==28097== error VG_(am_shared_mmap_file_float_valgrind) /tmp/vgdb-pipe-shared-mem-vgdb-28097-by-root-on-???#--Original--From: "John Reiser"jrei...@bitwagon.com;Date: Thu, Nov 15, 2012 11:49 PMTo: "valgrind-users"valgrind-users@lists.sourceforge.net; Subject: Re: [Valgrind-users] Fw:valgrind on cortrex-a9 problem ==15447== error 22 Invalid argument ==15447== error VG_(am_shared_mmap_file_float_valgrind) /tmp/vgdb-pipe-shared-mem-vgdb-15447-by-root-on-???Run with "valgrind --trace-syscalls=yes ./maintest" (or use strace)to find the system call which gives the error, and perhaps a hintabout what is wrong.What is the page size on this system? 4KiB ? 16KiB ?-- --Monitor your physical, virtual and cloud infrastructure from a singleweb console. Get in-depth insight into apps, servers, databases, vmware,SAP, cloud infrastructure, etc. Download 30-day Free Trial.Pricing starts from $795 for 25 servers or applications!http://p.sf.net/sfu/zoho_dev2dev_nov___Valgrind-users mailing listValgrind-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/valgrind-users--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] Fw:valgrind on cortrex-a9 problem

2012-11-15 Thread lchquan
By using "--vgdb=no", it works .Thank you.Chris--Original--From: "Philippe Waroquiers"philippe.waroqui...@skynet.be;Date: Fri, Nov 16, 2012 03:48 AMTo: "John Reiser"jrei...@bitwagon.com; Cc: "valgrind-users"valgrind-users@lists.sourceforge.net; Subject: Re: [Valgrind-users] Fw:valgrind on cortrex-a9 problemOn Thu, 2012-11-15 at 07:49 -0800, John Reiser wrote:  ==15447== error 22 Invalid argument  ==15447== error VG_(am_shared_mmap_file_float_valgrind) /tmp/vgdb-pipe-shared-mem-vgdb-15447-by-root-on-???  Run with "valgrind --trace-syscalls=yes ./maintest" (or use strace) to find the system call which gives the error, and perhaps a hint about what is wrong.  What is the page size on this system? 4KiB ? 16KiB ?A possible cause might be the /tmp file system not allowingfiles mapped in shared memory.If you do not need vgdb (i.e. not using vgdb directly and/or thevalgrind gdbserver and/or callgrind_control and similar), youcan probably bypass the problem by giving --vgdb=no.Would be worth in any case to investigate what is wrong with thevery relevant suggestions given by John.Philippe--Monitor your physical, virtual and cloud infrastructure from a singleweb console. Get in-depth insight into apps, servers, databases, vmware,SAP, cloud infrastructure, etc. Download 30-day Free Trial.Pricing starts from $795 for 25 servers or applications!http://p.sf.net/sfu/zoho_dev2dev_nov___Valgrind-users mailing listValgrind-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/valgrind-users--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users