的malloc:***错误:不正确校验和释放对象 - 对象被释放后,可能被修改 [英] malloc: *** error: incorrect checksum for freed object - object was probably modified after being freed

查看:2378
本文介绍了的malloc:***错误:不正确校验和释放对象 - 对象被释放后,可能被修改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个很大的问题,我的iOS应用:它有时会崩溃没有详细的调试错误。
堆栈跟踪是空的。这些都是在堆栈跟踪的只有两行:

I have a big problem with my iOS App: it crashes sometimes without detailed debug error. The stack trace is empty. These are the only two lines in the stack trace:


  1. 崩溃开始在UIApplicationMain在符号存根: - [_ UIHostedTextServiceSession dismissTextServiceAnimated:]。

  2. 和报告libsystem_c.dylib`malloc_error_break。

com.apple.main线程

这是X code调试误差(与连接的设备):

The error on Xcode debugger (with connected device):

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

我已经设置与libsystem_c.dylib malloc_error_break断点而不调试任何反馈。我不知道来解决这个问题。

I have set a breakpoint in malloc_error_break with libsystem_c.dylib without any feedback from debugger. I have no idea to solve this issue.

推荐答案

要找到问题的根源,在X code转到产品>方案>编辑计划,并根据诊断选项卡启用所有的malloc设置和卫队的malloc。

To find the source of the problem, in Xcode go to Product > Scheme > Edit Scheme, and under Diagnostics tab enable all the Malloc settings and Guard Malloc.

就这样,再次运行应用程序,以及X code将在该行停止导致了问题。

With that, run your application again, and Xcode will stop at the line causing the problem.

这篇关于的malloc:***错误:不正确校验和释放对象 - 对象被释放后,可能被修改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆