I am getting this error with a c++ program
malloc.c:4636: _int_malloc: Assertion `victim->fd_nextsize->bk_nextsize == victim' failed.
I cannot post the code. so i am only going to ask for pointers not for detailed help.
Is it something related to realloc? or free?
It most likely means your program is writing outside the space that it was allocated, and you trampled on some of the control information
malloc()keeps. Assume the problem is in your code, and your library is simply telling you, rather than crashing.