malloc:***错误:释放对象的校验和不正确 - 对象可能在释放后修改 [英] malloc: *** error: incorrect checksum for freed object - object was probably modified after being freed
问题描述
我有一个很大的问题,我的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:
- 在UIApplicationMain中的symbol stub for处启动: - [_ UIHostedTextServiceSession dismissTextServiceAnimated:]
在<$ c $ C> com.apple.main-thread 。
Xcode调试器(连接设备)上的错误:
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
我在malloc_error_break中设置了断点与libsystem_c.dylib没有调试器的任何反馈。我不知道如何解决这个问题。
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.
推荐答案
要找到问题的根源,编辑方案,并在诊断选项卡下启用所有Malloc设置和Guard 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.
这样,再次运行你的应用程序,Xcode将停在导致问题的行。
With that, run your application again, and Xcode will stop at the line causing the problem.
这篇关于malloc:***错误:释放对象的校验和不正确 - 对象可能在释放后修改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!