> 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