|
From: l. <238...@qq...> - 2012-11-16 01:08:36
|
<div><div>hi John:</div><div><br></div><div>thanks for your reply.It out put like this:</div><div><br></div><div># /opt/vg/bin/valgrind --trace-syscalls=yes ./maintest </div><div>==28097== Memcheck, a memory error detector</div><div>==28097== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.</div><div>==28097== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info</div><div>==28097== Command: ./maintest</div><div>==28097== </div><div>==28097== error 22 Invalid argument</div><div>==28097== error VG_(am_shared_mmap_file_float_valgrind) /tmp/vgdb-pipe-shared-mem-vgdb-28097-by-root-on-???</div><div># </div></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> "John Reiser"<jr...@bi...>;</div><div><b>Date: </b> Thu, Nov 15, 2012 11:49 PM</div><div><b>To: </b> "valgrind-users"<val...@li...>; <wbr></div><div></div><div><b>Subject: </b> Re: [Valgrind-users] Fw:valgrind on cortrex-a9 problem</div></div><div><br></div>> ==15447== error 22 Invalid argument<br>> ==15447== error VG_(am_shared_mmap_file_float_valgrind) /tmp/vgdb-pipe-shared-mem-vgdb-15447-by-root-on-???<br><br>Run with "valgrind --trace-syscalls=yes ./maintest" (or use strace)<br>to find the system call which gives the error, and perhaps a hint<br>about what is wrong.<br><br>What is the page size on this system? 4KiB ? 16KiB ?<br><br>-- <br><br><br>------------------------------------------------------------------------------<br>Monitor your physical, virtual and cloud infrastructure from a single<br>web console. Get in-depth insight into apps, servers, databases, vmware,<br>SAP, cloud infrastructure, etc. Download 30-day Free Trial.<br>Pricing starts from $795 for 25 servers or applications!<br>http://p.sf.net/sfu/zoho_dev2dev_nov<br>_______________________________________________<br>Valgrind-users mailing list<br>Val...@li...<br>https://lists.sourceforge.net/lists/listinfo/valgrind-users<br></includetail></div> |
|
From: l. <238...@qq...> - 2012-11-16 01:10:34
|
<div>By using "<span style="font-family: 'lucida Grande', Verdana; line-height: 23px; ">--vgdb=no</span>", it works . </div><div>Thank you.</div><div><includetail><div><br></div><div>Chris</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> "Philippe Waroquiers"<phi...@sk...>;</div><div><b>Date: </b> Fri, Nov 16, 2012 03:48 AM</div><div><b>To: </b> "John Reiser"<jr...@bi...>; <wbr></div><div><b>Cc: </b> "valgrind-users"<val...@li...>; <wbr></div><div><b>Subject: </b> Re: [Valgrind-users] Fw:valgrind on cortrex-a9 problem</div></div><div><br></div>On Thu, 2012-11-15 at 07:49 -0800, John Reiser wrote:<br>> > ==15447== error 22 Invalid argument<br>> > ==15447== error VG_(am_shared_mmap_file_float_valgrind) /tmp/vgdb-pipe-shared-mem-vgdb-15447-by-root-on-???<br><br><br>> <br>> Run with "valgrind --trace-syscalls=yes ./maintest" (or use strace)<br>> to find the system call which gives the error, and perhaps a hint<br>> about what is wrong.<br>> <br>> What is the page size on this system? 4KiB ? 16KiB ?<br><br>A possible cause might be the /tmp file system not allowing<br>files mapped in shared memory.<br><br>If you do not need vgdb (i.e. not using vgdb directly and/or the<br>valgrind gdbserver and/or callgrind_control and similar), you<br>can probably bypass the problem by giving --vgdb=no.<br><br>Would be worth in any case to investigate what is wrong with the<br>very relevant suggestions given by John.<br><br>Philippe<br><br><br><br>------------------------------------------------------------------------------<br>Monitor your physical, virtual and cloud infrastructure from a single<br>web console. Get in-depth insight into apps, servers, databases, vmware,<br>SAP, cloud infrastructure, etc. Download 30-day Free Trial.<br>Pricing starts from $795 for 25 servers or applications!<br>http://p.sf.net/sfu/zoho_dev2dev_nov<br>_______________________________________________<br>Valgrind-users mailing list<br>Val...@li...<br>https://lists.sourceforge.net/lists/listinfo/valgrind-users<br></includetail></div> |
|
From: Philippe W. <phi...@sk...> - 2012-11-16 18:08:07
|
On Fri, 2012-11-16 at 09:09 +0800, lchquan wrote: > By using "--vgdb=no", it works . Good that it bypasses the problem. Still, there is a latent bug in the mmap area which would be nice to understand. I am amazed that the --trace-syscalls=yes did not give any output. (at least on my setup, it gives a lot of output before it reaches the gdbsrv code). Also, strace -f valgrind ./maintest should also be able to tell why the mmap fails. Philippe |