-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 22/11/10 07:48, Christopher Samuel wrote:
> *** glibc detected *** /tmp/hwloc/hwloc-1.1rc2/tests/.libs/hwloc_bind:
> free(): invalid next size (fast): 0x1001c240 ***
Went and had a look at the code that was failing. This is
the fragement that fails:
#ifdef HWLOC_HAVE_MIGRATE_PAGES
unsigned long *fullmask = malloc(max_os_index/HWLOC_BITS_PER_LONG *
sizeof(long));
if (fullmask) {
memset(fullmask, max_os_index/HWLOC_BITS_PER_LONG * sizeof(long),
0xf);
err = migrate_pages(0, max_os_index+1, fullmask, linuxmask);
free(fullmask);
} else
err = -1;
if (err < 0 && (flags & HWLOC_MEMBIND_STRICT))
goto out_with_mask;
#else
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.
Unfortunately I'm not much of a programmer! :-(
cheers,
Chris
- --
Christopher Samuel - Senior Systems Administrator
VLSCI - Victorian Life Sciences Computational Initiative
Email: [email protected] 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/
iEYEARECAAYFAkzstQ8ACgkQO2KABBYQAh91EgCggYFI1ncG1Z7Mhu3FZhzMk8q6
X8UAn38Uk2ifq1fAcc5qL2syIm/alqFU
=TQVw
-----END PGP SIGNATURE-----