Le 24/11/2010 07:47, Christopher Samuel a écrit :
> 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);
Another dumb memset failure: swap the 2nd and 3rd arguments, it works
better here. Grrrrrrrrr
Brice