|
From: l. <238...@qq...> - 2012-11-15 12:59:39
|
<div><br></div><div><includetail><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From: </b> "lchquan"<238...@qq...>;</div><div><b>Date: </b> Thu, Nov 15, 2012 08:55 PM</div><div><b>To: </b> "valgrind-users"<val...@li...>; <wbr></div><div></div><div><b>Subject: </b> valgrind on cortrex-a9 problem</div></div><div><br></div><div>hi :</div><div> i'm using valgrind 3.8.1 on my arm board and get a problem</div><div><br></div><div> # /opt/vg/bin/valgrind ./maintest </div><div>==15447== Memcheck, a memory error detector</div><div>==15447== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.</div><div>==15447== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info</div><div>==15447== Command: ./maintest</div><div>==15447== </div><div>==15447== error 22 Invalid argument</div><div>==15447== error VG_(am_shared_mmap_file_float_valgrind) /tmp/vgdb-pipe-shared-mem-vgdb-15447-by-root-on-???</div><div><br></div><div> # cat /proc/cpuinfo </div><div>Processor : ARMv7 Processor rev 0 (v7l)</div><div>processor : 0</div><div>BogoMIPS : 1849.75</div><div><br></div><div>processor : 1</div><div>BogoMIPS : 1856.30</div><div><br></div><div>Features : swp half thumb fastmult vfp edsp vfpv3 vfpv3d16 </div><div>CPU implementer : 0x41</div><div>CPU architecture: 7</div><div>CPU variant : 0x3</div><div>CPU part : 0xc09</div><div>CPU revision : 0</div><div><br></div><div>Hardware : godnet</div><div>Revision : 0000</div><div>Serial : 0000000000000000</div><div><br></div><div> chris@ubuntu:~$ cd valgrind-3.8.1/</div><div>chris@ubuntu:~/valgrind-3.8.1$ cat ./mycf.sh </div><div>export CC=arm-hisiv100nptl-linux-gcc</div><div>export AR=arm-hisiv100nptl-linux-ar</div><div>export LD=arm-hisiv100nptl-linux-ld</div><div>export CXX=arm-hisiv100nptl-linux-g++</div><div>export OBJDUMP=arm-hisiv100nptl-linux-objdump</div><div>export CROSS_COMPILE=arm-hisiv100nptl-linux-</div><div>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 </div><div><br></div><div> thanks </div><div><br></div><div> chris</div><div><br></div></includetail></div> |
|
From: John R. <jr...@bi...> - 2012-11-15 15:49:13
|
> ==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 ? -- |
|
From: Philippe W. <phi...@sk...> - 2012-11-15 19:48:45
|
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 |