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

xcode 报错 malloc: *** error for object 0x6c3c5a4: incorrect checksum for freed object - object was probably modified after being freed. *** set a breakpoint in malloc_error_break to debug

时间:2018-04-13 22:33:40      阅读:366      评论:0      收藏:0      [点我收藏+]

标签:nbsp   总结   数组   int   after   odi   bre   for   poi   

大家有时候会遇到这个错误

 malloc: *** error for object 0x******: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug

先看下字面意思

对象0x****** 发生了错误:对一个已经被释放了的对象进行了不正确的校验。  你可能对已经被系统释放过的对象进行了修改。请设置一个 malloc_error_break 类型的断点来调试 这个错误

 

下面总结发生这个错误的常见情况:

1.使用了已释放的内存

2.数组越界

3.发生了资源抢占

具体待续。。。

xcode 报错 malloc: *** error for object 0x6c3c5a4: incorrect checksum for freed object - object was probably modified after being freed. *** set a breakpoint in malloc_error_break to debug

标签:nbsp   总结   数组   int   after   odi   bre   for   poi   

原文地址:https://www.cnblogs.com/isItOk/p/8824116.html

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