Indeed I have check this patch is correctly in place.
The relevant strace output is:
mmap2(0x62290000, 1064960, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = 0x62290000
mprotect(0x62290000, 8192, PROT_NONE)   = 0
mprotect(0x62392000, 8192, PROT_NONE)   = 0
gettid()                                = 1793
read(1017, "A", 1)                      = 1
gettid()                                = 1793
getpid()                                = 1793
getpid()                                = 1793
unlink("/tmp/vgdb-pipe-from-vgdb-to-1793-by-root-on-???") = -1 ENOENT
(No such file or directory)
unlink("/tmp/vgdb-pipe-to-vgdb-from-1793-by-root-on-???") = -1 ENOENT
(No such file or directory)
unlink("/tmp/vgdb-pipe-shared-mem-vgdb-1793-by-root-on-???") = -1 ENOENT
(No such file or directory)
mknod("/tmp/vgdb-pipe-from-vgdb-to-1793-by-root-on-???", S_IFIFO|0666) =
0
mknod("/tmp/vgdb-pipe-to-vgdb-from-1793-by-root-on-???", S_IFIFO|0666) =
0
open("/tmp/vgdb-pipe-shared-mem-vgdb-1793-by-root-on-???",
O_RDWR|O_CREAT, 0666) = 3
write(3,
"\0\0\0\0\0\0\0\0\0\0\0\0\360\240\0068\0\210\2468\240\26\0\0\4\0\0\0\350
\24\0\0", 32) = 32
mmap2(0x401d000, 32, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_FIXED, 3, 0) =
-1 EINVAL (Invalid argument)
getpid()                                = 1793
write(1016, "==1793== error 22 Invalid argume"..., 35==1793== error 22
Invalid argument
) = 35
getpid()                                = 1793
write(1016, "==1793== error VG_(am_shared_mma"..., 106==1793== error
VG_(am_shared_mmap_file_float_valgrind)
/tmp/vgdb-pipe-shared-mem-vgdb-1793-by-root-on-???

Moreover valgrind only started to work with "--vgdb=no" only after I put
the armv5 patch (although I have an arm v6l)
But still the same error when trying to run it with the embedded
gdbserver.

Thanks,
Koby
 
 

Koby Hershkovitz | Software Development Engineer| Avaya | Atidim
Technology Park | Building 3 | Tel Aviv, Israel 61131 | Voice +972 3 645
7555/Fax +972 3 645 7555| khers...@avaya.com
P Please consider your environmental responsibility. Before printing
this e-mail please ask yourself: "Do I really need a hard copy?"

         

-----Original Message-----
From: John Reiser [mailto:jrei...@bitwagon.com] 
Sent: Friday, December 30, 2011 17:24
To: valgrind-users@lists.sourceforge.net
Subject: Re: [Valgrind-users] failure to run on armv6 following the
armv6legacy patches suggested by bug 276897

> I've managed to build valgrind after patching with
64365,64147,64366,64946 AND using the following configure:
  [[snip]]
> 
> ==2776== error 22 Invalid argument
> 
> ==2776== error VG_(am_shared_mmap_file_float_valgrind)
/tmp/vgdb-pipe-shared-mem-vgdb-2776-by-root-on-???

This hints that it might be a good idea to double-check that the actual
code
does contain the part of patch 64147 that provides 16KB alignment for
mmap:

   Index: coregrind/m_syswrap/syswrap-generic.c
   ===================================================================
   --- coregrind/m_syswrap/syswrap-generic.c    (revision 12084)
   +++ coregrind/m_syswrap/syswrap-generic.c    (working copy)
   @@ -2025,8 +2025,19 @@
          mreq.rkind = MAny;
    }

   +   /* handle alignment to 4 pages we need for MAP_FIXED to succeed
on ARM */
  [[snip]]

Also, run with valgrind command-line parameter "--trace-syscalls=yes"
and check the parameter values for mmap():
   valgrind  --trace-syscalls=yes  ./my_app  ...
Another way to do this is to run valgrind under strace:
   strace  valgrind  ./my_app  ...

-- 



------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to