Error trying to use malloc at Ubuntu

Hello guys im trying to run a code that runs fine at windows, but when I try to run it at Ubuntu I get the following message at console:

malloc.c:3096: 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.
Aborted

This error happens when I try to use malloc
You've obviously corrupted the heap.
are they both 32-bit systems or both 64-bit systems?

if not, bit-manipulation may cause problems (that's a nasty assert() to interpret - have you tried running it in gdb and looking at where you crap out?)
Thats amazing... :)
Topic archived. No new replies allowed.