iPad应用程序异常退出,信号11:分段错误:11。

10

我的应用程序因信号11异常退出。我不知道这是什么意思。没有崩溃日志,调试器也没有显示错误。应用程序就消失了。

我得到了以下日志。

Apr 27 21:31:31 unknown Apollo[1408] <Warning>: bring tab <VUIWebController: 0x2dcf30> to front
Apr 27 21:31:31 unknown configd[29] <Notice>: jetsam: kernel termination snapshot being created
Apr 27 21:31:32 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.apple.mobilemail[0x81d8]) Exited: Killed: 9
Apr 27 21:31:32 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.ihanghai.apollo[0x4f16]) Bug: launchd_core_logic.c:3795 (24506):0
Apr 27 21:31:32 unknown SpringBoard[33] <Warning>: Application 'Mail' exited abnormally with signal 9: Killed: 9
Apr 27 21:31:32 unknown com.apple.debugserver-50[1407] <Warning>: 1 [057f/1503]: error: ::read ( 4, 0x2ffc29f0, 1024 ) => -1 err = Bad file descriptor (0x00000009)
Apr 27 21:31:32 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.ihanghai.apollo[0x4f16]) Bug: launchd_core_logic.c:3794 (24506):3
Apr 27 21:31:32 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.ihanghai.apollo[0x4f16]) Bug: launchd_core_logic.c:3202 (24506):10
Apr 27 21:31:32 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.ihanghai.apollo[0x4f16]) Working around 5020256. Assuming the job crashed.
Apr 27 21:31:32 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.ihanghai.apollo[0x4f16]) Job appears to have crashed: Segmentation fault: 11
Apr 27 21:31:32 unknown SpringBoard[33] <Warning>: Application 'Apollo' exited abnormally with signal 11: Segmentation fault: 11
Apr 27 21:31:33 unknown ReportCrash[1413] <Error>: libMobileGestalt loadBasebandMobileEquipmentInfo: CommCenter error: 1:45
Apr 27 21:31:33 unknown ReportCrash[1413] <Error>: libMobileGestalt copyInternationalMobileEquipmentIdentity: Could not get mobile equipment info dictionary
Apr 27 21:31:33 unknown ReportCrash[1413] <Error>: Saved crashreport to /Library/Logs/CrashReporter/LowMemory-2011-04-27-213133.plist using uid: 0 gid: 0, synthetic_euid: 0 egid: 0
Apr 27 21:31:33 unknown kernel[0] <Debug>: crunchd[1414] Builtin profile: MobileMail (sandbox)

有人知道如何调试这种问题吗?

1个回答

5
我建议你也可以看一下这篇文章:iPhone app crashes when launched from Xcode, but not from iPhone 前一篇文章中提到了解决此问题需要设置NSZombieEnabled。根据你的描述,可能是因为已经启用了该环境变量导致低内存问题。你提到没有崩溃日志,这正是我在使用NSZombieEnabled运行时遇到的情况——当我关闭它时,这些神秘的崩溃就停止了。

1
谢谢!实际上我的错误是因为我将NSString的属性设置为assign而不是retain,但zombieenabled变量防止了应用程序崩溃。然而,在手机上它会崩溃并显示分段错误。 - htafoya

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接