来自Critercism的iphone sigsegv崩溃

来自Critercism的iphone sigsegv崩溃,iphone,crash,segmentation-fault,Iphone,Crash,Segmentation Fault,Critercism让我遇到了一些sigsegv崩溃,但我不太确定如何开始调试。我唯一的一行代码是从崩溃线程开始的主调用 从CriterCism复制崩溃线程的堆栈跟踪: 原因: 2012年9月24日 下午2:38:14 SIGSEGV main(main.m:11) 堆栈: 0 0 libobjc.A.dylib 0x356265b0 objc_msgSend + 15 1 1 UIKit 0x3861c313 + 1310 2 2 UIKit 0x386337cf + 2

Critercism让我遇到了一些sigsegv崩溃,但我不太确定如何开始调试。我唯一的一行代码是从崩溃线程开始的主调用

从CriterCism复制崩溃线程的堆栈跟踪:

原因:

2012年9月24日 下午2:38:14 SIGSEGV main(main.m:11)

堆栈:

0 0 libobjc.A.dylib 0x356265b0 objc_msgSend + 15 1 1 UIKit 0x3861c313 + 1310 2 2 UIKit 0x386337cf + 206 3 3 UIKit 0x385ef80b + 258 4 4 QuartzCore 0x34f56d63 + 214 5 5 QuartzCore 0x34f56901 + 460 6 6 QuartzCore 0x34f57835 + 16 7 7 QuartzCore 0x34f5721b + 238 8 8 QuartzCore 0x34f57029 + 316 9 9 UIKit 0x386786e5 + 572 10 10 UIKit 0x386784a3 + 66 11 11 UIKit 0x38677391 + 1464 12 12 UIKit 0x385ed1ef + 2458 13 13 UIKit 0x385ec6d5 + 72 14 14 UIKit 0x385ec123 + 6154 15 15 GraphicsServices 0x3779f5a3 + 590 16 16 CoreFoundation 0x372f0683 + 14 17 17 CoreFoundation 0x372efee9 + 212 18 18 CoreFoundation 0x372eecb7 + 646 19 19 CoreFoundation 0x37261ebd CFRunLoopRunSpecific + 356 20 20 CoreFoundation 0x37261d49 CFRunLoopRunInMode + 104 21 21 GraphicsServices 0x3779e2eb GSEventRunModal + 74 22 22 UIKit 0x38640301 UIApplicationMain + 1120 23 23 MyApp 0x35bf main (main.m:11) 0 0 libobjc.A.dylib 0x356265b0 objc_msgSend+15 1. 1 UIKit 0x3861c313+1310 2. 2 UIKit 0x386337cf+206 3. 3 UIKit 0x385ef80b+258 4. 4夸脱芯0x34f56d63+214 5. 5夸脱芯0x34f56901+460 6. 6夸脱芯0x34f57835+16 7. 7夸脱芯0x34f5721b+238 8. 8夸脱芯0x34f57029+316 9 9 UIKit 0x386786e5+572 10 10 UIKit 0x386784a3+66 11 11 UIKit 0x38677391+1464 12 12 UIKit 0x385ed1ef+2458 13 13 UIKit 0x385ec6d5+72 14 14 UIKit 0x385ec123+6154 15 15图形服务0x3779f5a3+590 16 16芯基础0x372f0683+14 17 17芯基础0x372efee9+212 18 18芯基础0x372eecb7+646 19 19 CoreFoundation 0x37261ebd CFRunLoopRunSpecific+356 20 20 CoreFoundation 0x37261d49 CFRunLoopRunInMode+104 21 21图形服务0x3779e2eb GSEventRunModal+74 22 22 UIKit 0x38640301 UIApplicationMain+1120 23 23 MyApp 0x35bf干管(干管m:11) 首先,您需要“符号化”崩溃日志。有很多网页在那里指导你

由于此堆栈在objc_msgSend结束,最可能的原因是指针悬空


要调试这些,我建议使用NSZombies。如果您在模拟器上进行测试,您可能会尝试“Guard malloc”。

此崩溃是由于调用指向已解除分配的对象的指针上的方法造成的。在UIKit元素上的代码中,这是一个非常常见的引用计数错误。但是,在实践中应该做的是将.DSYM文件上传到critercism。作为自动构建过程的一部分,它可以通过网站手动完成,也可以通过a手动完成。

此外,我还有很多其他奇怪的崩溃。这可能是因为系统在内存不足警告后关闭了应用程序吗?