On 01/08/2012 12:44 AM, Hershkovitz, Koby (Koby) wrote: > 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
That mmap2 is OK because the MAP_FIXED address 0x62290000 is a multiple of 0x4000 (16KB). [snip] > 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) That mmap2 is bad because the MAP_FIXED address 0x401d000 is not a multiple of 0x4000 (the remainder is 0x1000.) The file descriptor "3" in the bad mmap2() is the result of the open() on "/tmp/vgdb-pipe-shared-mem-vgdb-1793-by-root-on-???". This proves that vgdb is at fault for not aligning the address appropriately. I have entered a bug report (https://bugs.kde.org/show_bug.cgi?id=290974 "vgdb must align pages to VKI_SHMLBA (16KB) on ARM") for this case. -- ------------------------------------------------------------------------------ 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