App crash after click on notification - iphone

I got crash if application is not in background state and then click on notification. There is no memory leak and set architectures standard (armv6,armv7,armv7s).also referred link
Springboard crash when app is restored from push notification from GameCenter
Any suggestion to find out solution.Thanks in Advance.
Device Log as below:
OS Version: iOS 6.1.3 (10B329)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000024
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libdispatch.dylib 0x3936b332 0x3936a000 + 4914
1 CropAndGuess 0x000a92c0 0xa1000 + 33472
2 CropAndGuess 0x000a6252 0xa1000 + 21074
3 CropAndGuess 0x000a551a 0xa1000 + 17690
4 UIKit 0x3313ead4 0x330db000 + 408276
5 UIKit 0x3313e65e 0x330db000 + 407134
6 UIKit 0x33136846 0x330db000 + 374854
7 UIKit 0x330dec34 0x330db000 + 15412
8 UIKit 0x330de6c8 0x330db000 + 14024
9 UIKit 0x330de116 0x330db000 + 12566
10 GraphicsServices 0x34dd05a0 0x34dca000 + 26016
11 CoreFoundation 0x312ab680 0x31214000 + 620160
12 CoreFoundation 0x312aaee4 0x31214000 + 618212
13 CoreFoundation 0x312a9cb2 0x31214000 + 613554
14 CoreFoundation 0x3121ceb8 0x31214000 + 36536
15 CoreFoundation 0x3121cd44 0x31214000 + 36164
16 UIKit 0x33135480 0x330db000 + 369792
17 UIKit 0x331322fc 0x330db000 + 357116
18 CropAndGuess 0x000a3bbc 0xa1000 + 11196
19 CropAndGuess 0x000a3b54 0xa1000 + 11092
Thread 1:
0 libsystem_kernel.dylib 0x39452d98 0x39441000 + 73112
1 libsystem_c.dylib 0x393a0cf6 0x3939a000 + 27894
2 libsystem_c.dylib 0x393a0a12 0x3939a000 + 27154
3 libsystem_c.dylib 0x393a08a0 0x3939a000 + 26784
Thread 2 name: Dispatch queue: com.apple.libdispatch-manager
Thread 2:
0 libsystem_kernel.dylib 0x39442648 0x39441000 + 5704
1 libdispatch.dylib 0x3937b4ec 0x3936a000 + 70892
2 libdispatch.dylib 0x3936ddf4 0x3936a000 + 15860
Thread 3:
0 libsystem_kernel.dylib 0x39452d98 0x39441000 + 73112
1 libsystem_c.dylib 0x393a0cf6 0x3939a000 + 27894
2 libsystem_c.dylib 0x393a0a12 0x3939a000 + 27154
3 libsystem_c.dylib 0x393a08a0 0x3939a000 + 26784
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x39441eb4 0x39441000 + 3764
1 libsystem_kernel.dylib 0x39442048 0x39441000 + 4168
2 CoreFoundation 0x312ab040 0x31214000 + 618560
3 CoreFoundation 0x312a9d9e 0x31214000 + 613790
4 CoreFoundation 0x3121ceb8 0x31214000 + 36536
5 CoreFoundation 0x3121cd44 0x31214000 + 36164
6 WebCore 0x3720a500 0x37200000 + 42240
7 libsystem_c.dylib 0x393ab30e 0x3939a000 + 70414
8 libsystem_c.dylib 0x393ab1d4 0x3939a000 + 70100
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x1fdaab50 r2: 0x3936c115 r3: 0x1fdaab50
r4: 0x3aefd06c r5: 0x0015a854 r6: 0x00153828 r7: 0x2fd5e4e8
r8: 0x00000001 r9: 0x0000007f r10: 0x38f4f5a1 r11: 0x001538d4
ip: 0x3aefe7f4 sp: 0x2fd5e4b4 lr: 0x000a92c5 pc: 0x3936b332
cpsr: 0x20000030

Related

Application crash issue in iPhone 4s

I'm using web services and location service in my application. My app is working fine on other devices but crashing on iPhone 4s. This problem has occurred after updating my XCode to XCode5. The Crash logs are as follows:
Date/Time: 2013-10-13 00:34:29.988 +1000
OS Version: iOS 7.0.2 (11A501)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
(0x2d849f4e 0x37c226aa 0x2d849c64 0x2ea11b24 0x6344a 0x2ffbf5fe 0x3006a8fc 0x3006a812 0x30069dee 0x30069b18 0x30069888 0x30069820 0x2ffbb01e 0x2fc44246 0x2fc3fa56 0x2fc3f8e8 0x2fc3f2fa 0x2fc3f10a 0x2ffb333e 0x2d8151d0 0x2d812b74 0x2d812eb6 0x2d77dce2 0x2d77dac6 0x3249e27e 0x3001fa3c 0x5eb0e 0x3812aab2)
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x381e11fc 0x381ce000 + 78332
1 libsystem_pthread.dylib 0x3824aa2e 0x38247000 + 14894
2 libsystem_c.dylib 0x38191ff8 0x38148000 + 303096
3 libc++abi.dylib 0x374c0cd2 0x374c0000 + 3282
4 libc++abi.dylib 0x374d96e0 0x374c0000 + 104160
5 libobjc.A.dylib 0x37c2291e 0x37c1a000 + 35102
6 libc++abi.dylib 0x374d71c4 0x374c0000 + 94660
7 libc++abi.dylib 0x374d6d28 0x374c0000 + 93480
8 libobjc.A.dylib 0x37c227f2 0x37c1a000 + 34802
9 CoreFoundation 0x2d77dd58 0x2d776000 + 32088
10 CoreFoundation 0x2d77dac6 0x2d776000 + 31430
11 GraphicsServices 0x3249e27e 0x32496000 + 33406
12 UIKit 0x3001fa3c 0x2ffb0000 + 457276
13 CashBackApp 0x0005eb0e 0x59000 + 23310
14 libdyld.dylib 0x3812aab4 0x38129000 + 6836
Thread 1:
0 libsystem_kernel.dylib 0x381ce83c 0x381ce000 + 2108
1 libdispatch.dylib 0x3810f220 0x38104000 + 45600
2 libdispatch.dylib 0x3810efa6 0x38104000 + 44966
Thread 2:
0 libsystem_kernel.dylib 0x381ceaf4 0x381ce000 + 2804
1 libdispatch.dylib 0x3810d428 0x38104000 + 37928
2 CoreLocation 0x2dd00c88 0x2dcfe000 + 11400
3 CoreLocation 0x2dd0564a 0x2dcfe000 + 30282
4 CoreLocation 0x2dd31ba8 0x2dcfe000 + 211880
5 libxpc.dylib 0x382573aa 0x38253000 + 17322
6 libxpc.dylib 0x3825593e 0x38253000 + 10558
7 libdispatch.dylib 0x3810fd42 0x38104000 + 48450
8 libdispatch.dylib 0x3810c256 0x38104000 + 33366
9 libdispatch.dylib 0x3810ff8c 0x38104000 + 49036
10 libdispatch.dylib 0x3810c256 0x38104000 + 33366
11 libdispatch.dylib 0x3810c096 0x38104000 + 32918
12 libdispatch.dylib 0x3810c256 0x38104000 + 33366
13 libdispatch.dylib 0x3810c096 0x38104000 + 32918
14 libdispatch.dylib 0x3810cd12 0x38104000 + 36114
15 libdispatch.dylib 0x3810cf88 0x38104000 + 36744
16 libsystem_pthread.dylib 0x38247dbc 0x38247000 + 3516
17 libsystem_pthread.dylib 0x38247c80 0x38247000 + 3200
Thread 3:
0 libsystem_kernel.dylib 0x381e1c7c 0x381ce000 + 81020
1 libsystem_pthread.dylib 0x38247dc6 0x38247000 + 3526
2 libsystem_pthread.dylib 0x38247c80 0x38247000 + 3200
Thread 4 name: com.apple.NSURLConnectionLoader
Thread 4:
0 libsystem_kernel.dylib 0x381cea8c 0x381ce000 + 2700
1 libsystem_kernel.dylib 0x381ce888 0x381ce000 + 2184
2 CoreFoundation 0x2d8147c6 0x2d776000 + 649158
3 CoreFoundation 0x2d812eec 0x2d776000 + 642796
4 CoreFoundation 0x2d77dce2 0x2d776000 + 31970
5 CoreFoundation 0x2d77dac6 0x2d776000 + 31430
6 Foundation 0x2e1b7492 0x2e15f000 + 361618
7 Foundation 0x2e22ce22 0x2e15f000 + 843298
8 libsystem_pthread.dylib 0x38249c1a 0x38247000 + 11290
9 libsystem_pthread.dylib 0x38249b8a 0x38247000 + 11146
10 libsystem_pthread.dylib 0x38247c8c 0x38247000 + 3212
Thread 5:
0 libsystem_kernel.dylib 0x381e1c7c 0x381ce000 + 81020
1 libsystem_pthread.dylib 0x38247dc6 0x38247000 + 3526
2 libsystem_pthread.dylib 0x38247c80 0x38247000 + 3200
Thread 6:
0 libsystem_kernel.dylib 0x381e1c7c 0x381ce000 + 81020
1 libsystem_pthread.dylib 0x38247dc6 0x38247000 + 3526
2 libsystem_pthread.dylib 0x38247c80 0x38247000 + 3200
Thread 7 name: com.apple.CFSocket.private
Thread 7:
0 libsystem_kernel.dylib 0x381e1440 0x381ce000 + 78912
1 CoreFoundation 0x2d818688 0x2d776000 + 665224
2 libsystem_pthread.dylib 0x38249c1a 0x38247000 + 11290
3 libsystem_pthread.dylib 0x38249b8a 0x38247000 + 11146
4 libsystem_pthread.dylib 0x38247c8c 0x38247000 + 3212
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x00002060
r4: 0x00000006 r5: 0x3a05918c r6: 0x00000000 r7: 0x27daa594
r8: 0x16d0df20 r9: 0x00000001 r10: 0x40340000 r11: 0x00000001
ip: 0x00000148 sp: 0x27daa588 lr: 0x3824aa33 pc: 0x381e11fc
cpsr: 0x00000010

Mysterious crash happening many times with strange stacktrace

I got this app live on the app store, for which in 10 days I got more than 6000 crashes! The stacktrace I can see on HockeyApp is quite cryptic, and I also get 2 different stacktraces depending on iOS version (5 or 6), but I'm pretty sure they are both the same crash.
What do you think about this? Where should I hunt the bug? Needless to say I can't reproduce it.
iOS 6
Thread 0 Crashed:
0 libobjc.A.dylib 0x3ae395d0 _objc_msgSend + 16
1 Foundation 0x338bc4a1 __NSThreadPerformPerform + 461
2 CoreFoundation 0x32f798f7 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
3 CoreFoundation 0x32f791f3 __CFRunLoopDoSources0 + 363
4 CoreFoundation 0x32f77f2f __CFRunLoopRun + 647
5 CoreFoundation 0x32eeb23d _CFRunLoopRunSpecific + 357
6 CoreFoundation 0x32eeb0c9 _CFRunLoopRunInMode + 105
7 GraphicsServices 0x36aa633b _GSEventRunModal + 75
8 UIKit 0x34e072b9 _UIApplicationMain + 1121
9 <REDACTED> 0x00055943 main (main.m:16)
Exception Type: SIGSEGV
Exception Codes: SEGV_ACCERR at 0x736f7477
Crashed Thread: 0
iOS 5:
Thread 0 Crashed:
0 libobjc.A.dylib 0x338c8f78 _objc_msgSend + 16
1 CoreFoundation 0x35c091fb -[NSObject performSelector:withObject:] + 43
2 Foundation 0x350d9747 ___NSThreadPerformPerform + 351
3 CoreFoundation 0x35c7ead3 ___CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
4 CoreFoundation 0x35c7e335 ___CFRunLoopDoSources0 + 365
5 CoreFoundation 0x35c7d045 ___CFRunLoopRun + 653
6 CoreFoundation 0x35c004a5 _CFRunLoopRunSpecific + 301
7 CoreFoundation 0x35c0036d _CFRunLoopRunInMode + 105
8 GraphicsServices 0x3399b439 _GSEventRunModal + 137
9 UIKit 0x333d8cd5 _UIApplicationMain + 1081
10 <REDACTED> 0x0003f32b main (main.m:16)
Exception Type: SIGSEGV
Exception Codes: SEGV_ACCERR at 0xf10d9e21
Crashed Thread: 0
I have checked every call to performSelector:withObject: and I can't see any unrecognized selector being called. Where can the bug lie?
UPDATE ** Included stack traces from background threads as well
Thread 1:
0 libsystem_kernel.dylib 0x3568a3a8 _kevent + 24
1 libdispatch.dylib 0x339bdbc9 __dispatch_mgr_wakeup + 1
Thread 2:
0 libsystem_kernel.dylib 0x3569acd4 ___workq_kernreturn + 8
Thread 3:
0 libsystem_kernel.dylib 0x3569acd4 ___workq_kernreturn + 8
Thread 4:
0 libsystem_kernel.dylib 0x3569a0d8 ___psynch_mutexwait + 24
1 WebCore 0x3721d4ef __ZL17_WebTryThreadLockb + 215
2 WebCore 0x3721d7f3 __ZL14WebRunLoopLockP19__CFRunLoopObservermPv + 31
3 CoreFoundation 0x355f8b1b ___CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 19
4 CoreFoundation 0x355f6d57 ___CFRunLoopDoObservers + 259
5 CoreFoundation 0x355f701f ___CFRunLoopRun + 615
6 CoreFoundation 0x3557a4a5 _CFRunLoopRunSpecific + 301
7 CoreFoundation 0x3557a36d _CFRunLoopRunInMode + 105
8 WebCore 0x372c0ca3 __ZL12RunWebThreadPv + 403
9 libsystem_c.dylib 0x34843735 __pthread_start + 321
Thread 5:
0 libsystem_kernel.dylib 0x3569acd4 ___workq_kernreturn + 8
Thread 6:
0 libsystem_kernel.dylib 0x3569acd4 ___workq_kernreturn + 8
Thread 7:
0 libsystem_kernel.dylib 0x3568a004 _mach_msg_trap + 20
1 CoreFoundation 0x355f83f3 ___CFRunLoopServiceMachPort + 127
2 CoreFoundation 0x355f712b ___CFRunLoopRun + 883
3 CoreFoundation 0x3557a4a5 _CFRunLoopRunSpecific + 301
4 CoreFoundation 0x3557a36d _CFRunLoopRunInMode + 105
5 Foundation 0x349bfbb9 +[NSURLConnection(Loader) _resourceLoadLoop:] + 309
6 Foundation 0x349bfa81 -[NSThread main] + 73
7 Foundation 0x34a53591 ___NSThread__main__ + 1049
8 libsystem_c.dylib 0x34843735 __pthread_start + 321
Thread 8:
0 libsystem_kernel.dylib 0x3569acd4 ___workq_kernreturn + 8
Thread 9:
0 libsystem_kernel.dylib 0x3569a570 ___select + 20
1 libsystem_c.dylib 0x34843735 __pthread_start + 321
Thread 10:
0 libsystem_kernel.dylib 0x3569acd4 ___workq_kernreturn + 8
Thread 11:
0 libsystem_kernel.dylib 0x3569acd4 ___workq_kernreturn + 8
Thread 12:
0 libsystem_kernel.dylib 0x3569acd4 ___workq_kernreturn + 8
Thread 13:
0 libsystem_kernel.dylib 0x3569acd4 ___workq_kernreturn + 8
Thread 14:
0 libsystem_kernel.dylib 0x3569acd4 ___workq_kernreturn + 8
Thread 15:
0 libsystem_kernel.dylib 0x3569acd4 ___workq_kernreturn + 8
Thread 16:
0 libsystem_kernel.dylib 0x3569acd4 ___workq_kernreturn + 8
Thread 17:
0 libsystem_kernel.dylib 0x3569acd4 ___workq_kernreturn + 8
Thread 0 crashed with ARM Thread State:
r0: 0x10910cc0 r1: 0x322194f6 r2: 0x00482a7a r3: 0x00000000
r4: 0xf10a6823 r5: 0x00481a7a r6: 0x33102823 r7: 0x2fef2e54
r8: 0x00482a7a r9: 0x0c88653d r10: 0x3efac9b4 r11: 0x00000000
ip: 0x004a710c sp: 0x2fef2e38 lr: 0x00315cf3 pc: 0x33242f78
cpsr: 0x20080030
Thanks
EDITED: I finally solved it thanks to DDPerformDebugger.m
The crash was caused by a third party framework provided by the customer.
Thanks everybody
It seems you have a memory and threading issue in your app. The app is trying to send a message (method) to an object that is already deallocated.
Both stack traces hint at the usage of threads. It looks like you are doing some work in a background thread and then sending a message to an object (on the main thread?) which does not exist any more. So it might be helpful to check the stack traces of your background threads and see what they are doing.

application crashes only when run on device with warning "Application 'xxxxxxx' exited abnormally with signal 11: Segmentation fault: 11."

My iphone application crashes when run on the device with warning ...
Application 'xxxxxx' exited abnormally with signal 11: Segmentation fault: 11.
However it does not crash in the simulator and also on the device when i have enabled breakpoints and debug mode(in both simultor and when debugging on device i have enabled nszombies and mallocstacklogging nocompact variables).How to debug this issue??
attaching the crash log
Date/Time: 2012-02-27 18:04:36.176 +0530
OS Version: iPhone OS 5.0.1 (9A405)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0xf6496811
Crashed Thread: 5
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libicucore.A.dylib 0x355625a8 icu::Locale::getRoot() + 28
1 libicucore.A.dylib 0x3554846c ures_getStringByKeyWithFallback + 36
2 libicucore.A.dylib 0x355f8442 icu::NumberingSystem::createInstance(icu::Locale const&, UErrorCode&) + 110
3 libicucore.A.dylib 0x35548c52 icu::DecimalFormatSymbols::initialize(icu::Locale const&, UErrorCode&, signed char) + 130
4 libicucore.A.dylib 0x355f7452 icu::NumberFormat::makeInstance(icu::Locale const&, UNumberFormatStyle, UErrorCode&) + 162
5 libicucore.A.dylib 0x35548738 unum_open + 504
6 CoreFoundation 0x33fa3228 0x33f5e000 + 283176
7 Foundation 0x32f49db0 0x32f1a000 + 196016
8 Myapp 0x00159bea +[UtilityFunctions convertStringToCurrency:] (UtilityFunctions.m:71)
9 Myapp 0x00159f08 +[UtilityFunctions convertStringToCurrencyWithZeroFloat:] (UtilityFunctions.m:123)
10 Myapp 0x000b8f7a -[MainScreenViewController getValueForTextFieldWithName:] (MainScreenViewController.m:768)
11 Myapp 0x000b78f4 -[MainScreenViewController tableView:cellForRowAtIndexPath:] (MainScreenViewController.m:497)
12 UIKit 0x371f59c4 0x37192000 + 408004
13 UIKit 0x371f4aa2 0x37192000 + 404130
14 UIKit 0x371f422c 0x37192000 + 401964
15 UIKit 0x37198d44 0x37192000 + 27972
16 CoreFoundation 0x33f76224 0x33f5e000 + 98852
17 QuartzCore 0x32c8037a 0x32c7a000 + 25466
18 QuartzCore 0x32c7ff92 0x32c7a000 + 24466
19 QuartzCore 0x32c84114 0x32c7a000 + 41236
20 QuartzCore 0x32c83e50 0x32c7a000 + 40528
21 QuartzCore 0x32c7bd7e 0x32c7a000 + 7550
22 CoreFoundation 0x33febb44 0x33f5e000 + 580420
23 CoreFoundation 0x33fe9d80 0x33f5e000 + 572800
24 CoreFoundation 0x33fea0da 0x33f5e000 + 573658
25 CoreFoundation 0x33f6d4d6 0x33f5e000 + 62678
26 CoreFoundation 0x33f6d39e 0x33f5e000 + 62366
27 GraphicsServices 0x323c2fc6 0x323bf000 + 16326
28 UIKit 0x371c373c 0x37192000 + 202556
29 Myapp 0x000b1412 main (main.m:14)
30 Myapp 0x000b13d0 start + 32
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x376323b4 0x37631000 + 5044
1 libdispatch.dylib 0x36894e78 0x36888000 + 52856
2 libdispatch.dylib 0x36894b96 0x36888000 + 52118
Thread 2:
0 libsystem_kernel.dylib 0x37642cd4 0x37631000 + 72916
1 libsystem_c.dylib 0x3651630a 0x3650c000 + 41738
2 libsystem_c.dylib 0x3651609c 0x3650c000 + 41116
Thread 3:
0 libsystem_kernel.dylib 0x37642cd4 0x37631000 + 72916
1 libsystem_c.dylib 0x3651630a 0x3650c000 + 41738
2 libsystem_c.dylib 0x3651609c 0x3650c000 + 41116
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x376420d8 0x37631000 + 69848
1 libsystem_c.dylib 0x3650ec44 0x3650c000 + 11332
2 WebCore 0x3499a36c 0x34994000 + 25452
3 WebCore 0x3499a670 0x34994000 + 26224
4 CoreFoundation 0x33febb44 0x33f5e000 + 580420
5 CoreFoundation 0x33fe9d80 0x33f5e000 + 572800
6 CoreFoundation 0x33fea19a 0x33f5e000 + 573850
7 CoreFoundation 0x33f6d4d6 0x33f5e000 + 62678
8 CoreFoundation 0x33f6d39e 0x33f5e000 + 62366
9 WebCore 0x34a3c128 0x34994000 + 688424
10 libsystem_c.dylib 0x3651bc16 0x3650c000 + 64534
11 libsystem_c.dylib 0x3651bad0 0x3650c000 + 64208
Thread 5 Crashed:
0 libobjc.A.dylib 0x32033fbc 0x32030000 + 16316
1 Myapp 0x00158684 -[SellingCostsVC dealloc] (SellingCostsVC.m:1639)
2 libobjc.A.dylib 0x320350be 0x32030000 + 20670
3 libobjc.A.dylib 0x32036db0 0x32030000 + 28080
4 libobjc.A.dylib 0x32035e06 0x32030000 + 24070
5 libobjc.A.dylib 0x32035d22 0x32030000 + 23842
6 CoreFoundation 0x33f67e88 0x33f5e000 + 40584
7 Foundation 0x32f1dc58 0x32f1a000 + 15448
8 Myapp 0x000bb6f8 -[MainScreenViewController calculateValues] (MainScreenViewController.m:1204)
9 Foundation 0x32f2aa8a 0x32f1a000 + 68234
10 Foundation 0x32fbe59a 0x32f1a000 + 673178
11 libsystem_c.dylib 0x3651bc16 0x3650c000 + 64534
12 libsystem_c.dylib 0x3651bad0 0x3650c000 + 64208
Thread 5 crashed with ARM Thread State:
r0: 0x000f0000 r1: 0x3846b09c r2: 0x00000001 r3: 0x00000000
r4: 0xf6496809 r5: 0x02b04048 r6: 0x02b04048 r7: 0x02b0360c
r8: 0x0d270028 r9: 0x0e11ac27 r10: 0x0d270028 r11: 0xa3a3a3a3
ip: 0x3f576454 sp: 0x02b0359c lr: 0x0015868b pc: 0x32033fbc
cpsr: 0x20000030
The crash log gives you line numbers for about where it went bad; you can use NSLog for "printf debugging" to narrow it down. This blogger explains how to make NSLog useful when running on hardware:
http://objcolumnist.com/2009/12/19/redirecting-nslog-to-a-log-file/
Edit: actually, with the tip I linked you could also do printf debugging with actual printf.

How to explain the crash report?

My app was rejected, but I don't know what's the problem.
Rejected reason is:
We found that your app crashed on iPhone 4 running iOS 5.0.1, which is not in compliance with the App Store Review Guidelines.
Your app crashed on both Wi-Fi and cellular networks
when we:
1) Launch the app connected to a Wi-Fi or cellular network
2) The app crashes.
But, I test the my app withe iphone 4 running ios 5.0.1 which didn't come out crash like that, so I'm confused, plz help me, thanks a million.
Incident Identifier: AAA90ABE-B2F1-483A-97B8-2990DF83698C
CrashReporter Key: 52a7dd4ac386930f5f86a0b0e9b2de47158609a3
Hardware Model: iPhone3,1
Process: *****
Path: *******
Identifier: *****
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-01-26 17:51:05.914 -0800
OS Version: iPhone OS 5.0.1 (9A405)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x35fd832c 0x35fc7000 + 70444
1 libsystem_c.dylib 0x32ea1f54 0x32e54000 + 319316
2 libsystem_c.dylib 0x32e9afe4 0x32e54000 + 290788
3 libc++abi.dylib 0x334e4f64 0x334de000 + 28516
4 libc++abi.dylib 0x334e23ea 0x334de000 + 17386
5 libc++abi.dylib 0x334e244a 0x334de000 + 17482
6 libc++abi.dylib 0x334e381e 0x334de000 + 22558
7 libobjc.A.dylib 0x3430d22e 0x34304000 + 37422
8 CoreFoundation 0x3401353e 0x34004000 + 62782
9 CoreFoundation 0x3401339e 0x34004000 + 62366
10 GraphicsServices 0x30897fc6 0x30894000 + 16326
11 UIKit 0x3749473c 0x37463000 + 202556
12 *******(app's name) 0x00003e74 0x1000 + 11892
13 ******* 0x00003e2c 0x1000 + 11820
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x35fc83b4 0x35fc7000 + 5044
1 libdispatch.dylib 0x36cf2e78 0x36ce6000 + 52856
2 libdispatch.dylib 0x36cf2b96 0x36ce6000 + 52118
Thread 2 name: Dispatch queue: com.apple.root.default-priority
Thread 2:
0 DataDetectorsCore 0x37a54828 0x37a4e000 + 26664
1 DataDetectorsCore 0x37a5456c 0x37a4e000 + 25964
2 DataDetectorsCore 0x37a51b90 0x37a4e000 + 15248
3 DataDetectorsCore 0x37a520b8 0x37a4e000 + 16568
4 DataDetectorsCore 0x37a50da8 0x37a4e000 + 11688
5 DataDetectorsUI 0x34613db6 0x3460e000 + 23990
6 Foundation 0x35a2e39c 0x35a03000 + 177052
7 Foundation 0x35a9779c 0x35a03000 + 608156
8 libdispatch.dylib 0x36ce6d4e 0x36ce6000 + 3406
9 libdispatch.dylib 0x36cf279c 0x36ce6000 + 51100
10 libsystem_c.dylib 0x32e5e1c8 0x32e54000 + 41416
11 libsystem_c.dylib 0x32e5e09c 0x32e54000 + 41116
Thread 3 name: WebThread
Thread 3:
0 libsystem_kernel.dylib 0x35fc8010 0x35fc7000 + 4112
1 libsystem_kernel.dylib 0x35fc8206 0x35fc7000 + 4614
2 CoreFoundation 0x3409141c 0x34004000 + 578588
3 CoreFoundation 0x34090154 0x34004000 + 573780
4 CoreFoundation 0x340134d6 0x34004000 + 62678
5 CoreFoundation 0x3401339e 0x34004000 + 62366
6 WebCore 0x364e7128 0x3643f000 + 688424
7 libsystem_c.dylib 0x32e63c16 0x32e54000 + 64534
8 libsystem_c.dylib 0x32e63ad0 0x32e54000 + 64208
Thread 4:
0 libsystem_kernel.dylib 0x35fd8cd4 0x35fc7000 + 72916
1 libsystem_c.dylib 0x32e5e30a 0x32e54000 + 41738
2 libsystem_c.dylib 0x32e5e09c 0x32e54000 + 41116
Thread 5 name: com.apple.NSURLConnectionLoader
Thread 5:
0 libsystem_kernel.dylib 0x35fc8010 0x35fc7000 + 4112
1 libsystem_kernel.dylib 0x35fc8206 0x35fc7000 + 4614
2 CoreFoundation 0x3409141c 0x34004000 + 578588
3 CoreFoundation 0x34090154 0x34004000 + 573780
4 CoreFoundation 0x340134d6 0x34004000 + 62678
5 CoreFoundation 0x3401339e 0x34004000 + 62366
6 Foundation 0x35a13bc2 0x35a03000 + 68546
7 Foundation 0x35a13a8a 0x35a03000 + 68234
8 Foundation 0x35aa759a 0x35a03000 + 673178
9 libsystem_c.dylib 0x32e63c16 0x32e54000 + 64534
10 libsystem_c.dylib 0x32e63ad0 0x32e54000 + 64208
Thread 6:
0 libsystem_kernel.dylib 0x35fd8cd4 0x35fc7000 + 72916
1 libsystem_c.dylib 0x32e5e30a 0x32e54000 + 41738
2 libsystem_c.dylib 0x32e5e09c 0x32e54000 + 41116
Thread 7:
0 libsystem_kernel.dylib 0x35fd8cd4 0x35fc7000 + 72916
1 libsystem_c.dylib 0x32e5e30a 0x32e54000 + 41738
2 libsystem_c.dylib 0x32e5e09c 0x32e54000 + 41116
Thread 8 name: com.apple.CFSocket.private
Thread 8:
0 libsystem_kernel.dylib 0x35fd8570 0x35fc7000 + 71024
1 CoreFoundation 0x3409566a 0x34004000 + 595562
2 libsystem_c.dylib 0x32e63c16 0x32e54000 + 64534
3 libsystem_c.dylib 0x32e63ad0 0x32e54000 + 64208
Thread 9:
0 libsystem_kernel.dylib 0x35fd8cd4 0x35fc7000 + 72916
1 libsystem_c.dylib 0x32e5e30a 0x32e54000 + 41738
2 libsystem_c.dylib 0x32e5e09c 0x32e54000 + 41116
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x00000006 r5: 0x3e78bce8 r6: 0x00000002 r7: 0x2fdffb1c
r8: 0x3f448d6c r9: 0x334e5a32 r10: 0x00000000 r11: 0x3f448d6c
ip: 0x00000148 sp: 0x2fdffb10 lr: 0x32ea1f5b pc: 0x35fd832c
cpsr: 0x00070010
1) If you are not using ARC, convert your project to ARC. That will make crashes like this much less likley.
2) To see where in your code you crashed, you need to desymbolicate the crash log so it will show you where in your code the call that crashed came from. Try following these instructions:
Symbolicating iPhone App Crash Reports
According to EveryMac, iPhone3,1 is the GSM model of the iPhone 4.
Did you test with a GSM model, or a CDMA model? This crash may only happen with the GSM model.

What caused this iPhone crash log?

Im somewhat stuck, and need to have this resolved because one of my apps is exhibiting random crashes which cannot always be reproduced. This is one of the crash logs:
Incident Identifier: 59865612-9F00-44EA-9474-2BF607AD662E
CrashReporter Key: bea17b7f4237e78a13ce60449d694621d0f16a44
Hardware Model: iPhone2,1
Process: APPNAME [82]
Path: /var/mobile/Applications/ACE9A1A2-F1BE-43E0-9775-1291723D4C4A/APPNAME.app/APPNAME
Identifier: APPNAME
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2011-05-21 19:10:27.893 +0100
OS Version: iPhone OS 4.3.3 (8J2)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000009
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x33b24c98 objc_msgSend + 16
1 Foundation 0x344507b4 __NSFireTimer + 112
2 CoreFoundation 0x3039ca40 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 8
3 CoreFoundation 0x3039eec4 __CFRunLoopDoTimer + 844
4 CoreFoundation 0x3039f83e __CFRunLoopRun + 1082
5 CoreFoundation 0x3032febc CFRunLoopRunSpecific + 224
6 CoreFoundation 0x3032fdc4 CFRunLoopRunInMode + 52
7 GraphicsServices 0x3448e418 0x3448a000 + 17432
8 GraphicsServices 0x3448e4c4 0x3448a000 + 17604
9 UIKit 0x33f3cd62 -[UIApplication _run] + 398
10 UIKit 0x33f3a800 UIApplicationMain + 664
11 APPNAME 0x00002d88 0x1000 + 7560
12 APPNAME 0x00002d3c 0x1000 + 7484
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x36100fbc kevent + 24
1 libdispatch.dylib 0x33d0b032 _dispatch_mgr_invoke + 706
2 libdispatch.dylib 0x33d0c03a _dispatch_queue_invoke + 86
3 libdispatch.dylib 0x33d0b5ea _dispatch_worker_thread2 + 186
4 libsystem_c.dylib 0x33e0a58a _pthread_wqthread + 258
5 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x360fdc00 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x360fd758 mach_msg + 44
2 CoreFoundation 0x3039d2b8 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x3039f562 __CFRunLoopRun + 350
4 CoreFoundation 0x3032febc CFRunLoopRunSpecific + 224
5 CoreFoundation 0x3032fdc4 CFRunLoopRunInMode + 52
6 WebCore 0x34c2627e RunWebThread(void*) + 382
7 libsystem_c.dylib 0x33e0930a _pthread_start + 242
8 libsystem_c.dylib 0x33e0abb4 thread_start + 0
Thread 3:
0 libsystem_kernel.dylib 0x360fdc00 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x360fd758 mach_msg + 44
2 CoreFoundation 0x3039d2b8 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x3039f562 __CFRunLoopRun + 350
4 CoreFoundation 0x3032febc CFRunLoopRunSpecific + 224
5 CoreFoundation 0x3032fdc4 CFRunLoopRunInMode + 52
6 Foundation 0x343ea7f6 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 206
7 Foundation 0x343dd382 -[NSThread main] + 38
8 Foundation 0x3444f5c6 __NSThread__main__ + 966
9 libsystem_c.dylib 0x33e0930a _pthread_start + 242
10 libsystem_c.dylib 0x33e0abb4 thread_start + 0
Thread 4 name: com.apple.CFSocket.private
Thread 4:
0 libsystem_kernel.dylib 0x360ffc60 __select + 20
1 CoreFoundation 0x303a28f2 __CFSocketManager + 582
2 libsystem_c.dylib 0x33e0930a _pthread_start + 242
3 libsystem_c.dylib 0x33e0abb4 thread_start + 0
Thread 5:
0 libsystem_kernel.dylib 0x361003ec __workq_kernreturn + 8
1 libsystem_c.dylib 0x33e0a6d8 _pthread_wqthread + 592
2 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 6:
0 libsystem_kernel.dylib 0x361003ec __workq_kernreturn + 8
1 libsystem_c.dylib 0x33e0a6d8 _pthread_wqthread + 592
2 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 7:
0 libsystem_kernel.dylib 0x361003ec __workq_kernreturn + 8
1 libsystem_c.dylib 0x33e0a6d8 _pthread_wqthread + 592
2 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 8:
0 libsystem_kernel.dylib 0x361003ec __workq_kernreturn + 8
1 libsystem_c.dylib 0x33e0a6d8 _pthread_wqthread + 592
2 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 0 crashed with ARM Thread State:
r0: 0x04246810 r1: 0x33738814 r2: 0x042b3704 r3: 0x00000000
r4: 0x00000001 r5: 0x00000001 r6: 0x00259330 r7: 0x2fdfeb30
r8: 0x002593d0 r9: 0x00000000 r10: 0x04241720 r11: 0x00000000
ip: 0x3fa3f4e8 sp: 0x2fdfea60 lr: 0x349077bb pc: 0x33dfcc98
cpsr: 0x280f0030
Can someone offer a suggestion as to what might be the cause ?
Thanks!
It looks like you have a timer firing and trying to send a message to an object that has been dealloc'ed.
Keyline here is: Exception Type: EXC_BAD_ACCESS (SIGBUS)
It occurs, when you are trying to access an object that has been released earlier. Since, you are trying to access an object in a timer's callback, what is possibly happening is that while the timer responds for an object, the object in question has been released.
You can track the object by enabling the NSZombie environment variable.
When you create a NSTimer it is critical that you hold on to the ref and then invalidate it if the object to be called goes away. Like so:
[self.bugZapTimer invalidate];
self.bugZapTimer = [NSTimer timerWithTimeInterval: 0.1
target: self
selector: #selector(bugZapTimer:)
userInfo: NULL
repeats: FALSE];
[[NSRunLoop currentRunLoop] addTimer:self.bugZapTimer forMode: NSDefaultRunLoopMode];
Then, in your dealloc method you must do:
[self.bugZapTimer invalidate];
self.bugZapTimer = nil;