11
I've updated to Xcode 4.5 today and I can't produce a functional release build of my app any longer. I had no trouble producing a release with the previous version of Xcode.
I noticed that it doesn't crash when I run it directly on my phone in debug (-O0), but when I produce a release (-Os) it crashes consistently a few seconds after startup.
I can also produce a working release if I set pjsua_app.c to -O0 while leaving the rest of the project at the release default of -Os.
Below is a crash log using the setting "Fast [-O, O1]":
Incident Identifier: DB1C14AD-5C2A-4F2C-8B03-E483A7D31760
CrashReporter Key: 435140979595045aaa5a1c90fee1a20f6faf280a
Hardware Model: iPhone4,1
Process: myAppName [14144]
Path: /var/mobile/Applications/CD2A07F5-3E72-444D-9BD9-910E4634C4EC/myAppName.app/myAppName
Identifier: myAppName
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-09-19 23:41:39.098 -0600
OS Version: iPhone OS 5.1.1 (9B206)
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 0x361f532c __pthread_kill + 8
1 libsystem_c.dylib 0x32d41208 pthread_kill + 48
2 libsystem_c.dylib 0x32d3a316 __abort + 86
3 libsystem_c.dylib 0x32d2c3c4 __stack_chk_fail + 164
4 myAppName 0x000ce0dc pjsip_init (pjsua_app.c:4391)
5 myAppName 0x0008e9d2 general_callsystem_init (general_call.m:149)
6 myAppName 0x00084b4c -[MainsipphoneAppDelegate initPjsip] (MainsipphoneAppDelegate.m:578)
7 myAppName 0x0009f3ec -[LoginViewController ProvisionServerGotResult:provision_array:] (LoginViewController.m:1530)
8 myAppName 0x000ab88e -[Pro