码迷,mamicode.com
首页 > 其他好文 > 详细

malloc.c:3096: sYSMALLOc: Assertion 错误

时间:2015-05-21 10:57:00      阅读:516      评论:0      收藏:0      [点我收藏+]

标签:

 

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!