Application #39;#39; exited abnormally with signal 11: Segmentation fault: 11(应用程序 异常退出,信号 11:分段错误:11)
问题描述
应用程序 '' 异常退出,信号 11:分段错误:11
Application '' exited abnormally with signal 11: Segmentation fault: 11
导致这种情况的问题可能是什么?
What might the problem that causes this be?
推荐答案
当你的程序试图访问一个不再存在的对象的内存位置时,会发生这些错误,该对象在应用程序生命周期的某个早期阶段已经拥有它的内存被释放回堆中.
These errors occur when your program tries to access the memory location of an object that no longer exists, an object which at some earlier point in the application's lifetime has had its memory released back into the heap.
如果您可以通过使用明智的注释或更好的调试器来跟踪崩溃时正在访问哪个变量,那么您可能更容易修复错误.
If you can track down which variable is being accessed at the time of the crash, through the use of judicious comments or, better still, a debugger, then you will have a potentially easier time fixing the bugs.
同时,重新阅读苹果优秀的内存管理指南,它对内存管理问题进行了更详细的讨论,超出了此评论字段的范围.
In the meantime, re-read Apple's excellent Memory Management guide, which goes into memory management issues in greater detail than can fit into this comment field.
这篇关于应用程序 '' 异常退出,信号 11:分段错误:11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:应用程序 '' 异常退出,信号 11:分段错误
基础教程推荐
- Android:STATE_SELECTED不工作 2022-01-01
- 在 appComponent dagger 2 中动态添加测试模块? 2022-01-01
- 在 iOS8 中无法获得正确的键盘高度值 2022-01-01
- 突出显示朗读文本(在 iPhone 的故事书类型应用程序中) 2022-01-01
- - (CGRect)convertRect:(CGRect)rect toView:(UIView *)view 如何工作 2022-01-01
- 可可/目标C(OSX不是iOS)从子对象访问父对象 2022-01-01
- 在 Android 模拟器中激活网络位置提供程序? 2022-01-01
- 我的 UIImageView 的任务 2022-01-01
- 如何将多个组件添加到 PickerView? 2022-01-01
- 新的@SystemApi 注解是什么意思,和@hide 有什么区别 2022-01-01
