-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 24/11/10 17:47, Christopher Samuel wrote:

> I can get the free(fullmask); to not fail if I comment out
> the memset() and migrate_pages() calls.  If I just comment
> out the migrate_pages() then it still fails so there's
> something wrong in that calculation from the look of it.

Turns out that is correlated with a Valgrind error:

==6259== Invalid write of size 4
==6259==    at 0xFFBA650: memset (mc_replace_strmem.c:626)
==6259==    by 0x10016867: hwloc_linux_set_thisthread_membind
(topology-linux.c:1001)
==6259==    by 0x1000DBCB: hwloc_set_membind_nodeset (bind.c:243)
==6259==    by 0x1000DC7B: hwloc_set_membind (bind.c:259)
==6259==    by 0x10002E2F: testmem (hwloc_bind.c:79)
==6259==    by 0x1000361B: testmem2 (hwloc_bind.c:113)
==6259==    by 0x10003723: testmem3 (hwloc_bind.c:128)
==6259==    by 0x100039CF: main (hwloc_bind.c:187)
==6259==  Address 0x69fd354 is 0 bytes after a block of size 4 alloc'd
==6259==    at 0xFFB86C8: malloc (vg_replace_malloc.c:236)
==6259==    by 0x10016837: hwloc_linux_set_thisthread_membind
(topology-linux.c:999)
==6259==    by 0x1000DBCB: hwloc_set_membind_nodeset (bind.c:243)
==6259==    by 0x1000DC7B: hwloc_set_membind (bind.c:259)
==6259==    by 0x10002E2F: testmem (hwloc_bind.c:79)
==6259==    by 0x1000361B: testmem2 (hwloc_bind.c:113)
==6259==    by 0x10003723: testmem3 (hwloc_bind.c:128)
==6259==    by 0x100039CF: main (hwloc_bind.c:187)

- -- 
 Christopher Samuel - Senior Systems Administrator
 VLSCI - Victorian Life Sciences Computational Initiative
 Email: sam...@unimelb.edu.au Phone: +61 (0)3 903 55545
         http://www.vlsci.unimelb.edu.au/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzsteAACgkQO2KABBYQAh9z6gCfUrJ0IM/WZRNr58Qtlgt9YhBO
Kv0AnAyaAGfH6Y2HRqaZ8E8CHrEMMtYS
=p1lq
-----END PGP SIGNATURE-----

Reply via email to