且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

C Sysmalloc断言失败

更新时间:2023-01-01 15:33:41

此断言表达式看起来很合理,可以检查分配内部数据结构是否仍然完整.

This assertion expression looks like a sanity check to see if the allocation internal data structures are still intact.

此内部数据通常放置在分配的块之前和/或之后.如果出现问题,则意味着在malloc()之前执行的代码已在先前分配的块的边界之外写入.

This internal data is often placed before and/or after the allocated blocks. If something is wrong, it means that your code that executed before this malloc() has been writing outside the bounds of an earlier allocated block.

在Google中搜索Assertion (old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) -直接将我带到了.你不做谷歌搜索吗?

Doing a google search for Assertion (old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - directly led me to this. Didn't you do a google search?