2010-10-13 97 views
4

我遇到了一個iPad應用程序崩潰(至少對我來說)非特定的。這是一個例外類型:EXC_BREAKPOINT。我正在考慮釋放雙倍內存或嘗試訪問已發佈的變量,但我希望有人能夠在我通過代碼搜索時釋放更多的光線。完整的崩潰日誌是:如何在iPad iPhone應用程序中診斷EXC_BREAKPOINT(SIGTRAP)崩潰?

Exception Type: EXC_BREAKPOINT (SIGTRAP) 
Exception Codes: 0x00000102, 0x31ccebd0 
Crashed Thread: 0 

Thread 0 Crashed: 
0 CoreFoundation     0x0000ab96 CFRelease + 90 
1 CoreFoundation     0x0005209e __CFRunLoopTimerDeallocate + 18 
2 CoreFoundation     0x0000ac68 _CFRelease + 160 
3 CoreFoundation     0x0000ab8e CFRelease + 82 
4 CoreFoundation     0x00019130 __CFTypeCollectionRelease + 8 
5 CoreFoundation     0x00019962 __CFArrayReleaseValues + 302 
6 CoreFoundation     0x0001982c __CFArrayDeallocate + 8 
7 CoreFoundation     0x0000ac68 _CFRelease + 160 
8 CoreFoundation     0x0000ab8e CFRelease + 82 
9 CoreFoundation     0x000279c4 __CFRunLoopRun + 1092 
10 CoreFoundation     0x0002748c CFRunLoopRunSpecific + 224 
11 CoreFoundation     0x00027394 CFRunLoopRunInMode + 52 
12 GraphicsServices    0x000044a4 GSEventRunModal + 108 
13 GraphicsServices    0x00004550 GSEventRun + 56 
14 UIKit       0x000374ce -[UIApplication _run] + 406 
15 UIKit       0x00035148 UIApplicationMain + 664 
16 MultipleDetailViews   0x00002ccc main (main.m:55) 
17 MultipleDetailViews   0x00002c80 start + 32 

Thread 1: 
0 libSystem.B.dylib    0x0002d974 kevent + 24 
1 libSystem.B.dylib    0x000d7704 _dispatch_mgr_invoke + 88 
2 libSystem.B.dylib    0x000d7174 _dispatch_queue_invoke + 96 
3 libSystem.B.dylib    0x000d6b98 _dispatch_worker_thread2 + 120 
4 libSystem.B.dylib    0x0007b24a _pthread_wqthread + 258 
5 libSystem.B.dylib    0x00073970 start_wqthread + 0 

Thread 2: 
0 libSystem.B.dylib    0x00001268 mach_msg_trap + 20 
1 libSystem.B.dylib    0x00003354 mach_msg + 44 
2 CoreFoundation     0x00027e54 __CFRunLoopServiceMachPort + 88 
3 CoreFoundation     0x000276de __CFRunLoopRun + 350 
4 CoreFoundation     0x0002748c CFRunLoopRunSpecific + 224 
5 CoreFoundation     0x00027394 CFRunLoopRunInMode + 52 
6 WebCore      0x000060c8 RunWebThread(void*) + 332 
7 libSystem.B.dylib    0x0007a886 _pthread_start + 242 
8 libSystem.B.dylib    0x0006fa88 thread_start + 0 

Thread 3: 
0 libSystem.B.dylib    0x00001268 mach_msg_trap + 20 
1 libSystem.B.dylib    0x00003354 mach_msg + 44 
2 CoreFoundation     0x00027e54 __CFRunLoopServiceMachPort + 88 
3 CoreFoundation     0x000276de __CFRunLoopRun + 350 
4 CoreFoundation     0x0002748c CFRunLoopRunSpecific + 224 
5 CoreFoundation     0x00027394 CFRunLoopRunInMode + 52 
6 Foundation      0x0002d5f6 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 206 
7 Foundation      0x0000b192 -[NSThread main] + 38 
8 Foundation      0x00004242 __NSThread__main__ + 966 
9 libSystem.B.dylib    0x0007a886 _pthread_start + 242 
10 libSystem.B.dylib    0x0006fa88 thread_start + 0 

Thread 4: 
0 libSystem.B.dylib    0x0002568c select$DARWIN_EXTSN + 20 
1 CoreFoundation     0x0005ee72 __CFSocketManager + 582 
2 libSystem.B.dylib    0x0007a886 _pthread_start + 242 
3 libSystem.B.dylib    0x0006fa88 thread_start + 0 

Thread 0 crashed with ARM Thread State: 
    r0: 0x00000000 r1: 0x2fdff994  r2: 0x3e56e898  r3: 0x00000118 
    r4: 0x00000000 r5: 0x001eb094  r6: 0x0000002c  r7: 0x2fdfec04 
    r8: 0x001eb090 r9: 0x001fc098  r10: 0x00000000  r11: 0x00000000 
    ip: 0x3e58f038 sp: 0x2fdfebfc  lr: 0x31d160a5  pc: 0x31cceb96 
    cpsr: 0x600f0030 
+0

您是否嘗試過「全部清理」並從頭開始重建?我發現很多這些神祕的崩潰是因爲構建系統不應該在應該重建時發生的。你可能還想刪除你的編譯目錄並重新編譯,以確保。 – Nimrod 2010-10-13 13:52:52

+0

你有NSZombeEnabled設置爲YES嗎?啓用該功能,運行一個靜態分析器並使用斷點來逐步執行代碼。這當然應該更多地瞭解情況。做到這一點,並在這裏發佈更新。有了這些信息,我們可以解決這個問題.... – Sid 2010-10-13 17:05:50

回答

0

我也收到了這個錯誤,並修復了它。此人最有可能運行OS3,並且您正在使用來自OS4的代碼塊,因此您需要在庫上設置一個弱鏈接,以便它可以正確加載。在LLVM的構建設置中-weak_library /usr/lib/libSystem.B.dylib