我試圖通過使用已經由用戶發送崩潰日誌進行調試。問題是我不能重現崩潰,這意味着我不能使用Xcode來調試與NSZombieEnabled
或調試器的崩潰。的Mac OS X系統崩潰日誌調試目標C
日誌給我什麼樣的崩潰的原因是(發行東西太早?)的想法,但我不知道它的發生。
我已經試過了atos
工具,但無論六角我進入(0x94e10ed7
例如),它只是返回我進入相同的十六進制,沒有別的(在蘋果的教程這裏不像:http://developer.apple.com/tools/xcode/symbolizingcrashdumps.html)
我怎麼能找出這個問題發生在哪裏?
這裏的系統崩潰日誌:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000000004d555478
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Application Specific Information:
objc_msgSend() selector name: respondsToSelector:
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x94e10ed7 objc_msgSend + 23
1 com.apple.CoreFoundation 0x975ee5f2 _CFStringAppendFormatAndArgumentsAux + 3138
2 com.apple.CoreFoundation 0x975ed979 _CFStringCreateWithFormatAndArgumentsAux + 105
3 com.apple.Foundation 0x95b51d23 -[NSPlaceholderString initWithFormat:locale:arguments:] + 163
4 com.apple.Foundation 0x95b51bd6 +[NSString stringWithFormat:] + 88
5 com.myapp.test 0x0006f7c0 -[File5 firefoxCookies] + 539
6 com.myapp.test 0x0006f25b -[File5 numberOfCookies] + 34
7 ...yapp.test 0x00003754 0x1000 + 10068
8 com.apple.CoreFoundation 0x9762e9b4 -[NSSet makeObjectsPerformSelector:] + 196
9 com.apple.AppKit 0x9314521c -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 1566
10 com.apple.AppKit 0x931431f4 loadNib + 257
11 com.apple.AppKit 0x931425ed +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 228
12 com.apple.AppKit 0x931424fe +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] + 158
13 com.apple.AppKit 0x93142449 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 383
14 com.apple.AppKit 0x9313f24d NSApplicationMain + 434
15 ...yapp.test 0x00002d48 0x1000 + 7496
16 ...yapp.test 0x00002cfe 0x1000 + 7422
大部分的日誌已經被符號化。從類File5的firefoxCookies實例方法調用'[NSString stringWithFormat:]''後發生崩潰。 – ughoavgfhw 2011-03-18 22:04:33
謝謝 - 請張貼這個作爲答案,所以我可以標記爲這樣! :) – Pripyat 2011-03-18 23:27:51