标签:
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
昨天调试程序一起来就报一个这样的错误, gdb一调试发现是一个new的地方,不知所措,网上也没有好的说法,源文件既有.c又有.cpp,最后修改Makefile解决,但还是不知为什么,记下来,以后再遇到找到根本原因再续写完。
malloc.c:3096: sYSMALLOc: Assertion 错误
标签:
原文地址:http://blog.csdn.net/xxm524/article/details/45874807