Bug in malloc or mine?
- by Martin
Is this my bug or a bug/assertion fail in malloc itself?
alloc.c:2451: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *)
&((av)-bins[((1) - 1) * 2])) - __builtin_offsetof (struct
malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size)
= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t)))
- 1))) && ((old_top)-size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.
libstdc++6:amd64 4.7.2-2ubuntu1
gcc 4.7.2
ubuntu 12.10/64bit