我怎么能理解这个崩溃日志?

时间:2010-10-11 17:47:04

标签: iphone objective-c cocoa-touch debugging nsurlconnection

看起来它与NSURLConnection相关,但不确定我如何诊断?

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x1ab98c00
    Crashed Thread:  0

    Thread 0 Crashed:
    0   libobjc.A.dylib                 0x000027da objc_msgSend + 18
    1   CFNetwork                       0x00010fcc ClientContextHolder<CFURLConnectionClient_V4>::forget() + 60
    2   CFNetwork                       0x00010f86 URLConnectionClient::releaseClientLocked() + 34
    3   CFNetwork                       0x00004a2e URLConnectionClient::processEvents() + 170
    4   CFNetwork                       0x00004976 URLConnection::multiplexerClientPerform(RunLoopMultiplexer*) + 30
    5   CFNetwork                       0x000048f4 MultiplexerSource::perform() + 120
    6   CFNetwork                       0x00004872 MultiplexerSource::_perform(void*) + 2
    7   CoreFoundation                  0x00055f1e __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 6
    8   CoreFoundation                  0x00027ba0 __CFRunLoopDoSources0 + 376
    9   CoreFoundation                  0x00027444 __CFRunLoopRun + 224
    10  CoreFoundation                  0x00027270 CFRunLoopRunSpecific + 224
    11  CoreFoundation                  0x00027178 CFRunLoopRunInMode + 52
    12  GraphicsServices                0x000045ec GSEventRunModal + 108
    13  GraphicsServices                0x00004698 GSEventRun + 56
    14  UIKit                           0x0000411c -[UIApplication _run] + 396
    15  UIKit                           0x00002128 UIApplicationMain + 664
    16  StockTwits                      0x00002f48 0x1000 + 8008
    17  StockTwits                      0x00002f18 0x1000 + 7960

2 个答案:

答案 0 :(得分:0)

内存释放问题。我修好了它。 nszombies已经启用。

答案 1 :(得分:0)

对于遇到此问题的其他人,我通过此提交修复了我的问题:

https://github.com/steipete/CrashReporterDemo/commit/145d6b93cf3ce090dadd58f68e21b8b789965806

简而言之,NSURLConnection有一个代表,但是已经自动释放了,显然已经崩溃了。保留课程并在dealloc中释放它。