首页 > 其他 > 详细

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:14:24      阅读:2606      评论:0      收藏:0      [点我收藏+]

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

 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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!