我的 iOS 应用程序崩溃报告中的 SIGSEGV 异常

Mic*_*ael 5 crash objective-c crash-reports ios

我不断收到此崩溃报告,但我无法弄清楚问题出在哪里。我知道 SIGSEGV 异常类型通常是由于内存管理问题。

根据第 9 行,cxx_destruct在 SoundsViewController 内部调用函数时会发生崩溃,对吗?我在我的代码中看到这个控制器中的第 182 行是- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath函数的结尾。

这是否意味着有一些变量没有正确释放?我如何找到它们?我启用了 Zombie,它帮助我修复了另一个崩溃,但没有解决这个问题。

我将不胜感激任何帮助。谢谢!

Exception Type:  SIGSEGV
Exception Codes: SEGV_ACCERR at 0xe15e7790
Crashed Thread:  0

Thread 0 Crashed:
0   libobjc.A.dylib                     0x38656b26 +[Protocol load] + 1289
1   Foundation                          0x2ec6803b -[NSThread description] + 1710
2   CoreFoundation                      0x2e25018b -[__NSCFLocale initWithLocaleIdentifier:] + 20334
3   CoreFoundation                      0x2e24f65b -[__NSCFLocale initWithLocaleIdentifier:] + 17470
4   CoreFoundation                      0x2e24de4f -[__NSCFLocale initWithLocaleIdentifier:] + 11314
5   CoreFoundation                      0x2e1b8ce7 0x2e1b1000 + 31975
6   CoreFoundation                      0x2e1b8acb 0x2e1b1000 + 31435
7   GraphicsServices                    0x32ed9283 -[_UIFontExtraData dealloc] + 25990
8   UIKit                               0x30a5aa41 -[UIScrollView _addContentSubview:atBack:] + 1492
9   MyApp1.2.0                          0x0004325f -[SoundsViewController .cxx_destruct] + 182
Run Code Online (Sandbox Code Playgroud)

Sne*_*ade 1

您可以参考此链接 http://kevincupp.com/2011/05/12/symbolicating-ios-crash-logs.html 这个问题是由于SoundsViewController的释放造成的。检查 SoundsViewController 的保留值。