应用程序''与信号11异常退出:分段故障:11 [英] Application '' exited abnormally with signal 11: Segmentation fault: 11

查看:132
本文介绍了应用程序''与信号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.

在与此同时,重读Apple的优秀内存管理指南,更详细地讨论了内存管理问题他的评论领域。

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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