Application crash issue in iPhone 4s - iphone

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

Related

App crash after click on notification

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

App crashes on iPhone 5 with iOS 6

The resolution center rejected my app because, as they say, it crashes on iPhone 5 with iOS 6.1.2.
I have an iPhone 4 with iOS 6.1.2 and it doesnt crash. I can't solve that problem!
They also wrote that the app crash when:
Launch the app
Login with Facebook.
App crashes when the device returns to the app.
Here the simbolicated crash log:
Last Exception Backtrace:
0 CoreFoundation 0x344ec3e2 0x3442a000 + 795618
1 libobjc.A.dylib 0x3c1dd95e 0x3c1d5000 + 35166
2 CoreFoundation 0x344eff2c 0x3442a000 + 810796
3 CoreFoundation 0x344ee648 0x3442a000 + 804424
4 CoreFoundation 0x34446204 0x3442a000 + 115204
5 Kick - Serie A 0x0007252c -[LetturaScrittura writeStringToFile:] (LetturaScrittura.m:26)
6 Kick - Serie A 0x0006e9da __25-[Profilo carica_profilo]_block_invoke (Profilo.m:314)
7 Kick - Serie A 0x0007e14a -[FBRequestConnection completeWithResults:orError:] (FBRequestConnection.m:1200)
8 Kick - Serie A 0x0007d56c -[FBRequestConnection completeWithResponse:data:orError:] (FBRequestConnection.m:983)
9 Kick - Serie A 0x0007b6aa __68-[FBRequestConnection startWithCacheIdentity:skipRoundtripIfCached:]_block_invoke_0 (FBRequestConnection.m:499)
10 Kick - Serie A 0x0007f38e -[FBURLConnection invokeHandler:error:response:responseData:] (FBURLConnection.m:163)
11 Kick - Serie A 0x0007f8f4 -[FBURLConnection connectionDidFinishLoading:] (FBURLConnection.m:233)
12 Foundation 0x34e28910 0x34d53000 + 874768
13 Foundation 0x34d68764 0x34d53000 + 87908
14 Foundation 0x34d68680 0x34d53000 + 87680
15 CFNetwork 0x341c964a 0x34141000 + 558666
16 CFNetwork 0x341c8d2e 0x34141000 + 556334
17 CFNetwork 0x341f100e 0x34141000 + 720910
18 CoreFoundation 0x34432ac8 0x3442a000 + 35528
19 CFNetwork 0x341f146e 0x34141000 + 722030
20 CFNetwork 0x3415545c 0x34141000 + 83036
21 CoreFoundation 0x344c18f2 0x3442a000 + 620786
22 CoreFoundation 0x344c1158 0x3442a000 + 618840
23 CoreFoundation 0x344bff2a 0x3442a000 + 614186
24 CoreFoundation 0x34433238 0x3442a000 + 37432
25 CoreFoundation 0x344330c4 0x3442a000 + 37060
26 GraphicsServices 0x38011336 0x3800c000 + 21302
27 UIKit 0x3634f2b4 0x362f8000 + 357044
28 Kick - Serie A 0x0006ac92 main (main.m:16)
29 libdyld.dylib 0x3c60ab1c 0x3c609000 + 6940
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3c6d1350 __pthread_kill + 8
1 libsystem_c.dylib 0x3c647fb2 pthread_kill + 54
2 libsystem_c.dylib 0x3c684366 abort + 90
3 libc++abi.dylib 0x3bc2cdda abort_message + 70
4 libc++abi.dylib 0x3bc2a094 default_terminate() + 20
5 libobjc.A.dylib 0x3c1dda58 _objc_terminate() + 144
6 libc++abi.dylib 0x3bc2a118 safe_handler_caller(void (*)()) + 76
7 libc++abi.dylib 0x3bc2a1b0 std::terminate() + 16
8 libc++abi.dylib 0x3bc2b626 __cxa_rethrow + 90
9 libobjc.A.dylib 0x3c1dd9b0 objc_exception_rethrow + 8
10 CoreFoundation 0x3443329c CFRunLoopRunSpecific + 452
11 CoreFoundation 0x344330c4 CFRunLoopRunInMode + 100
12 GraphicsServices 0x38011336 GSEventRunModal + 70
13 UIKit 0x3634f2b4 UIApplicationMain + 1116
14 Kick - Serie A 0x0006ac92 main (main.m:16)
15 libdyld.dylib 0x3c60ab1c start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x3c6c15d0 kevent64 + 24
1 libdispatch.dylib 0x3c5fcd22 _dispatch_mgr_invoke + 806
2 libdispatch.dylib 0x3c5f8374 _dispatch_mgr_thread + 32
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x3c6c0e30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3c6c0fd0 mach_msg + 48
2 CoreFoundation 0x344c12b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x344c002c __CFRunLoopRun + 900
4 CoreFoundation 0x34433238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x344330c4 CFRunLoopRunInMode + 100
6 WebCore 0x3a432390 RunWebThread(void*) + 440
7 libsystem_c.dylib 0x3c62a0de _pthread_start + 306
8 libsystem_c.dylib 0x3c629fa4 thread_start + 4
Thread 3 name: com.apple.NSURLConnectionLoader
Thread 3:
0 libsystem_kernel.dylib 0x3c6c0e30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3c6c0fd0 mach_msg + 48
2 CoreFoundation 0x344c12b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x344c002c __CFRunLoopRun + 900
4 CoreFoundation 0x34433238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x344330c4 CFRunLoopRunInMode + 100
6 Foundation 0x34d80888 +[NSURLConnection(Loader) _resourceLoadLoop:] + 304
7 Foundation 0x34e0422c __NSThread__main__ + 968
8 libsystem_c.dylib 0x3c62a0de _pthread_start + 306
9 libsystem_c.dylib 0x3c629fa4 thread_start + 4
Thread 4 name: com.apple.CFSocket.private
Thread 4:
0 libsystem_kernel.dylib 0x3c6d1594 __select + 20
1 CoreFoundation 0x344c5474 __CFSocketManager + 676
2 libsystem_c.dylib 0x3c62a0de _pthread_start + 306
3 libsystem_c.dylib 0x3c629fa4 thread_start + 4
Thread 5:
0 libsystem_kernel.dylib 0x3c6d1d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3c61fad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3c61f7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3c61f680 start_wqthread + 4
Thread 6:
0 libsystem_kernel.dylib 0x3c6d1d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3c61fad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3c61f7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3c61f680 start_wqthread + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x3e191524
r4: 0x00000006 r5: 0x3e191b78 r6: 0x1dd85ca4 r7: 0x2fd979f4
r8: 0x1dd85c80 r9: 0x00000300 r10: 0x00000000 r11: 0x3455b022
ip: 0x00000148 sp: 0x2fd979e8 lr: 0x3c647fb7 pc: 0x3c6d1350
cpsr: 0x00000010
Here's the LetturaScrittore method that makes the app crash (I use it to write on a .txt the email of the facebook user):
- (void)writeStringToFile:(NSString*)aString {
// Build the path, and create if needed.
NSString* filePath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
NSString* fileName = #"myTextFile.txt";
NSString* fileAtPath = [filePath stringByAppendingPathComponent:fileName];
if (![[NSFileManager defaultManager] fileExistsAtPath:fileAtPath]) {
[[NSFileManager defaultManager] createFileAtPath:fileAtPath contents:nil attributes:nil];
}
// The main act.
[[aString dataUsingEncoding:NSUTF8StringEncoding] writeToFile:fileAtPath atomically:YES];
}
The reason for the crash is that you don't actually pass a NSString object to writeStringToFile.
My mistake was on the facebook auth login: without the permission of the email, facebook return nothing, and the app crashes when trying to write the .txt file.

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.

How can i find memory location from apple crash report? from where my app is crash.?

my app is rejected from ap store and the reason is.
2.1: Apps that crash will be rejected
We found that your app crashed on iPhone 4 running iOS 4.3.5
and i have also tested this app in iPhone 4 (ios 4.3.5) and my app not crash.
but my app rejected from app store due to crash.
and i also found many solution from stack overflow but i am not getting memory location from where my app going to be crash.
please help me t find that. i am not getting how to do that.
my crash report is:
Incident Identifier: 47BDC9E2-6189-4A87-80CE-ED62D167C9BE
CrashReporter Key: 41f8ec19572cb609293b644a709bc43a95f4665b
Hardware Model: iPhone3,1
Process: incognito [901]
Path: /var/mobile/Applications/9B344675-F3FF-4C26-B76D-53F94F653323/incognito.app/incognito
Identifier: incognito
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2011-08-10 11:37:27.599 -0700
OS Version: iPhone OS 4.3.5 (8L1)
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 0x33f46a1c 0x33f35000 + 72220
1 libsystem_c.dylib 0x33f803b4 0x33f4d000 + 209844
2 libsystem_c.dylib 0x33f78bf8 0x33f4d000 + 179192
3 libstdc++.6.dylib 0x33039a64 0x32ff5000 + 281188
4 libobjc.A.dylib 0x334f906c 0x334f3000 + 24684
5 libstdc++.6.dylib 0x33037e36 0x32ff5000 + 273974
6 libstdc++.6.dylib 0x33037e8a 0x32ff5000 + 274058
7 libstdc++.6.dylib 0x33037f5a 0x32ff5000 + 274266
8 libobjc.A.dylib 0x334f7c84 0x334f3000 + 19588
9 CoreFoundation 0x362a21b8 0x36200000 + 663992
10 CoreFoundation 0x362a1642 0x36200000 + 661058
11 CoreFoundation 0x36218178 0x36200000 + 98680
12 APPNAME 0x0000f5da 0x1000 + 58842
13 Foundation 0x3465a2ee 0x34648000 + 74478
14 Foundation 0x3465a270 0x34648000 + 74352
15 CFNetwork 0x3586240a 0x35853000 + 62474
16 CFNetwork 0x35856f3e 0x35853000 + 16190
17 CFNetwork 0x35856e30 0x35853000 + 15920
18 CFNetwork 0x35856de2 0x35853000 + 15842
19 CFNetwork 0x35856d54 0x35853000 + 15700
20 CFNetwork 0x35856cd2 0x35853000 + 15570
21 CoreFoundation 0x36275a72 0x36200000 + 481906
22 CoreFoundation 0x36277758 0x36200000 + 489304
23 CoreFoundation 0x362784e4 0x36200000 + 492772
24 CoreFoundation 0x36208ebc 0x36200000 + 36540
25 CoreFoundation 0x36208dc4 0x36200000 + 36292
26 GraphicsServices 0x359c2418 0x359be000 + 17432
27 GraphicsServices 0x359c24c4 0x359be000 + 17604
28 UIKit 0x350b2d62 0x35084000 + 191842
29 UIKit 0x350b0800 0x35084000 + 182272
30 APPNAME 0x000028ba 0x1000 + 6330
31 APPNAME 0x00002884 0x1000 + 6276
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x33f47fbc 0x33f35000 + 77756
1 libdispatch.dylib 0x33118032 0x33112000 + 24626
2 libdispatch.dylib 0x3311903a 0x33112000 + 28730
3 libdispatch.dylib 0x331185ea 0x33112000 + 26090
4 libsystem_c.dylib 0x33f8158a 0x33f4d000 + 214410
5 libsystem_c.dylib 0x33f81bbc 0x33f4d000 + 215996
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x33f44c00 0x33f35000 + 64512
1 libsystem_kernel.dylib 0x33f44758 0x33f35000 + 63320
2 CoreFoundation 0x362762b8 0x36200000 + 484024
3 CoreFoundation 0x36278562 0x36200000 + 492898
4 CoreFoundation 0x36208ebc 0x36200000 + 36540
5 CoreFoundation 0x36208dc4 0x36200000 + 36292
6 WebCore 0x359d127e 0x359cb000 + 25214
7 libsystem_c.dylib 0x33f8030a 0x33f4d000 + 209674
8 libsystem_c.dylib 0x33f81bb4 0x33f4d000 + 215988
Thread 3:
0 libsystem_kernel.dylib 0x33f48ed0 0x33f35000 + 81616
1 CFNetwork 0x35866182 0x35853000 + 78210
2 CFNetwork 0x358d8488 0x35853000 + 545928
3 CFNetwork 0x358b248c 0x35853000 + 390284
4 CFNetwork 0x358b2508 0x35853000 + 390408
5 Security 0x33910790 0x3390a000 + 26512
6 Security 0x339101fe 0x3390a000 + 25086
7 Security 0x339104f6 0x3390a000 + 25846
8 CFNetwork 0x358b2912 0x35853000 + 391442
9 CFNetwork 0x35865fba 0x35853000 + 77754
10 CFNetwork 0x35865e26 0x35853000 + 77350
11 CFNetwork 0x35865e04 0x35853000 + 77316
12 CoreFoundation 0x3621cb6c 0x36200000 + 117612
13 CFNetwork 0x35865a88 0x35853000 + 76424
14 CFNetwork 0x3585e5e0 0x35853000 + 46560
15 CFNetwork 0x3586561a 0x35853000 + 75290
16 CFNetwork 0x358654ec 0x35853000 + 74988
17 CoreFoundation 0x3621da1a 0x36200000 + 121370
18 CoreFoundation 0x3621d9b6 0x36200000 + 121270
19 CoreFoundation 0x3621d8aa 0x36200000 + 121002
20 CoreFoundation 0x36223ca4 0x36200000 + 146596
21 CFNetwork 0x358d7c34 0x35853000 + 543796
22 CFNetwork 0x358653f4 0x35853000 + 74740
23 CFNetwork 0x35865376 0x35853000 + 74614
24 CoreFoundation 0x3627a3d2 0x36200000 + 500690
25 CoreFoundation 0x3627b4a2 0x36200000 + 504994
26 CoreFoundation 0x36275a72 0x36200000 + 481906
27 CoreFoundation 0x3627769c 0x36200000 + 489116
28 CoreFoundation 0x362784e4 0x36200000 + 492772
29 CoreFoundation 0x36208ebc 0x36200000 + 36540
30 CoreFoundation 0x36208dc4 0x36200000 + 36292
31 Foundation 0x346727f6 0x34648000 + 174070
32 Foundation 0x34665382 0x34648000 + 119682
33 Foundation 0x346d75c6 0x34648000 + 587206
34 libsystem_c.dylib 0x33f8030a 0x33f4d000 + 209674
35 libsystem_c.dylib 0x33f81bb4 0x33f4d000 + 215988
Thread 4 name: com.apple.CFSocket.private
Thread 4:
0 libsystem_kernel.dylib 0x33f46c60 0x33f35000 + 72800
1 CoreFoundation 0x3627b8f2 0x36200000 + 506098
2 libsystem_c.dylib 0x33f8030a 0x33f4d000 + 209674
3 libsystem_c.dylib 0x33f81bb4 0x33f4d000 + 215988
Thread 5:
0 libsystem_kernel.dylib 0x33f44c00 0x33f35000 + 64512
1 libsystem_kernel.dylib 0x33f44758 0x33f35000 + 63320
2 CoreFoundation 0x362762b8 0x36200000 + 484024
3 CoreFoundation 0x36278562 0x36200000 + 492898
4 CoreFoundation 0x36208ebc 0x36200000 + 36540
5 CoreFoundation 0x3624b6d2 0x36200000 + 308946
6 incognito 0x0002b350 0x1000 + 172880
7 Foundation 0x34665382 0x34648000 + 119682
8 Foundation 0x346d75c6 0x34648000 + 587206
9 libsystem_c.dylib 0x33f8030a 0x33f4d000 + 209674
10 libsystem_c.dylib 0x33f81bb4 0x33f4d000 + 215988
Thread 6:
0 libsystem_kernel.dylib 0x33f473ec 0x33f35000 + 74732
1 libsystem_c.dylib 0x33f816d8 0x33f4d000 + 214744
2 libsystem_c.dylib 0x33f81bbc 0x33f4d000 + 215996
Thread 7:
0 libsystem_kernel.dylib 0x33f473ec 0x33f35000 + 74732
1 libsystem_c.dylib 0x33f816d8 0x33f4d000 + 214744
2 libsystem_c.dylib 0x33f81bbc 0x33f4d000 + 215996
Thread 8:
0 libsystem_kernel.dylib 0x33f473ec 0x33f35000 + 74732
1 libsystem_c.dylib 0x33f816d8 0x33f4d000 + 214744
2 libsystem_c.dylib 0x33f81bbc 0x33f4d000 + 215996
Thread 9:
0 libsystem_kernel.dylib 0x33f473ec 0x33f35000 + 74732
1 libsystem_c.dylib 0x33f816d8 0x33f4d000 + 214744
2 libsystem_c.dylib 0x33f81bbc 0x33f4d000 + 215996
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x3e7c248c r5: 0x00000006 r6: 0x001a197c r7: 0x2fdfe714
r8: 0x3537e778 r9: 0x00000065 r10: 0x3eeb9b98 r11: 0x00000000
ip: 0x00000148 sp: 0x2fdfe708 lr: 0x33f803bb pc: 0x33f46a1c
cpsr: 0x00000010
Ooh yeah. You need to "Symbolicate" the crash logs to make sense out of it. Check these links.
http://kevincupp.com/2011/05/12/symbolicating-ios-crash-logs.html
http://www.buildingiphoneapps.com/2011/03/processing-users-crash-logs-when.html
http://www.eigo.co.uk/Deciphering-iPhone-Crash-Logs.aspx
You can go to Product>Profile in your Xcode and then check allocations,zombies, memory leaks, etc to see where exactly the crash happens. The reason for the crash might be memory over-allocation. The profiler will tell you if that is the case.