阅读背景:

malloc申请内存的时候出现如下错误,是什么原因造成的呢?

来源:互联网 
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. malloc.c:3096: sYSMALLOc: Assertion `(old_top =



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: