ios - AppStore build crashes on launch on iPhone 3g and iPod Touch -


after looking @ stackoverflow , many other forums, decided ask question. closest came discussing exact problem have this answer

i have app in appstore thats been built on stable codebase , has been in use past 2 years. now, after submitting recent update app, crashing on iphone 3g (version 4.2.1). doesn't crash on device when run debug build

here points have verified based on other posts:

  1. all build configurations (debug/distribution/appstore), have been set minimum version @ 3.0, base sdk latest
  2. valid architectures value set armv6 armv7
  3. i not getting "ate badfood" exception (exception code: 0x8badf00d)
  4. it works on newer ios devices test on
  5. build active architecture not checked
  6. the app crashes within 5 seconds of launch, not watchdog messing launch
  7. binary built using xcode 3.2.6
  8. symbolicated crashlogs dont have info in them able understand

here's crash log

date/time:       2011-07-01 11:16:06.728 -0400 os version:      iphone os 4.2.1 (8c148) report version:  104  exception type:  exc_bad_access (sigbus) exception codes: kern_protection_failure @ 0x0048af00 crashed thread:  0  thread 0 crashed: 0   ???                             0x0048af00 0 + 4763392  thread 1: 0   libsystem.b.dylib               0x35d8f974 kevent + 24 1   libsystem.b.dylib               0x35e5e2fc _dispatch_mgr_invoke + 88 2   libsystem.b.dylib               0x35e5dd68 _dispatch_queue_invoke + 96 3   libsystem.b.dylib               0x35e5d788 _dispatch_worker_thread2 + 120 4   libsystem.b.dylib               0x35de6970 _pthread_wqthread + 392 5   libsystem.b.dylib               0x35ddd2fc start_wqthread + 0  thread 2: 0   libsystem.b.dylib               0x35de454c __semwait_signal + 24 1   libsystem.b.dylib               0x35d90f70 _pthread_cond_wait + 1140 2   libsystem.b.dylib               0x35d90910 pthread_cond_wait + 48 3   foundation                      0x3517ed5e -[nscondition wait] + 170 4   foundation                      0x35169106 -[nsobject(nsthreadperformadditions) performselector:onthread:withobject:waituntildone:modes:] + 764 5   foundation                      0x35168d5e -[nsobject(nsthreadperformadditions) performselectoronmainthread:withobject:waituntildone:] + 98 6   mycrashingapp                           0x00014ab0 -[urldownload connectiondidfinishloading:] (urldownload.m:79) 7   foundation                      0x35184232 -[nsurlconnection(nsurlconnectionreallyinternal) senddidfinishloading] + 62 8   foundation                      0x351841b4 _nsurlconnectiondidfinishloading + 72 9   cfnetwork                       0x302957e0 urlconnectionclient::_clientdidfinishloading(urlconnectionclient::clientconnectioneventqueue*) + 212 10  cfnetwork                       0x30284b00 urlconnectionclient::clientconnectioneventqueue::processalleventsandconsumepayload(xconnectioneventinfo<xclientevent, xclienteventparams>*, long) + 132 11  cfnetwork                       0x30284d7c urlconnectionclient::clientconnectioneventqueue::processalleventsandconsumepayload(xconnectioneventinfo<xclientevent, xclienteventparams>*, long) + 768 12  cfnetwork                       0x3028497c urlconnectionclient::processevents() + 92 13  cfnetwork                       0x30284844 multiplexersource::perform() + 184 14  cfnetwork                       0x30284780 multiplexersource::_perform(void*) + 4 15  corefoundation                  0x375518ca __cfrunloop_is_calling_out_to_a_source0_perform_function__ + 8 16  corefoundation                  0x37521ec6 __cfrunloopdosources0 + 378 17  corefoundation                  0x375216f2 __cfrunlooprun + 258 18  corefoundation                  0x37521504 cfrunlooprunspecific + 220 19  corefoundation                  0x37521412 cfrunloopruninmode + 54 20  foundation                      0x35156238 -[nsrunloop(nsrunloop) runmode:beforedate:] + 200 21  foundation                      0x351d52ea -[nsrunloop(nsrunloop) rununtildate:] + 62 22  mycrashingapp                           0x000148a4 -[urldownload startdownload:] (urldownload.m:57) 23  corefoundation                  0x375466fc __invoking___ + 60 24  corefoundation                  0x375465d6 -[nsinvocation invoke] + 110 25  foundation                      0x351cd8fe -[nsinvocationoperation main] + 78 26  foundation                      0x3516054a -[__nsoperationinternal start] + 658 27  foundation                      0x351602a8 -[nsoperation start] + 16 28  foundation                      0x35174b8c ____startoperations_block_invoke_2 + 40 29  libsystem.b.dylib               0x35e5d268 _dispatch_call_block_and_release + 12 30  libsystem.b.dylib               0x35e5d788 _dispatch_worker_thread2 + 120 31  libsystem.b.dylib               0x35de6970 _pthread_wqthread + 392 32  libsystem.b.dylib               0x35ddd2fc start_wqthread + 0  thread 3: 0   libsystem.b.dylib               0x35d5b40c semaphore_wait_signal_trap + 8 1   libsystem.b.dylib               0x35d91448 semaphore_wait_signal + 4 2   libsystem.b.dylib               0x35d5d4ec pthread_mutex_lock + 376 3   webcore                         0x330777c4 _webtrythreadlock(bool) + 44 4   webcore                         0x33077e5c webrunlooplock(__cfrunloopobserver*, unsigned long, void*) + 28 5   corefoundation                  0x3752a808 __cfrunloop_is_calling_out_to_an_observer_callback_function__ + 12 6   corefoundation                  0x3752a636 __cfrunloopdoobservers + 494 7   corefoundation                  0x375219a2 __cfrunlooprun + 946 8   corefoundation                  0x37521504 cfrunlooprunspecific + 220 9   corefoundation                  0x37521412 cfrunloopruninmode + 54 10  webcore                         0x3318bd14 runwebthread(void*) + 524 11  libsystem.b.dylib               0x35de5b44 _pthread_start + 364 12  libsystem.b.dylib               0x35dd77a4 thread_start + 0  thread 4: 0   libsystem.b.dylib               0x35de72fc __workq_kernreturn + 8 1   libsystem.b.dylib               0x35de6b50 _pthread_wqthread + 872 2   libsystem.b.dylib               0x35ddd2fc start_wqthread + 0  thread 5: 0   libsystem.b.dylib               0x35d5b3b0 mach_msg_trap + 20 1   libsystem.b.dylib               0x35d5d894 mach_msg + 60 2   corefoundation                  0x37521f7c __cfrunloopservicemachport + 88 3   corefoundation                  0x37521780 __cfrunlooprun + 400 4   corefoundation                  0x37521504 cfrunlooprunspecific + 220 5   corefoundation                  0x37521412 cfrunloopruninmode + 54 6   foundation                      0x3517ec4e +[nsurlconnection(nsurlconnectionreallyinternal) _resourceloadloop:] + 210 7   foundation                      0x3515cb8a -[nsthread main] + 42 8   foundation                      0x35155b90 __nsthread__main__ + 908 9   libsystem.b.dylib               0x35de5b44 _pthread_start + 364 10  libsystem.b.dylib               0x35dd77a4 thread_start + 0  thread 6: 0   libsystem.b.dylib               0x35d848d8 select$darwin_extsn + 20 1   corefoundation                  0x3755aa34 __cfsocketmanager + 356 2   libsystem.b.dylib               0x35de5b44 _pthread_start + 364 3   libsystem.b.dylib               0x35dd77a4 thread_start + 0  thread 0 crashed arm thread state:     r0: 0x00000000    r1: 0x00000000      r2: 0x3e73eb48      r3: 0x00000000     r4: 0x0048aba0    r5: 0x00000000      r6: 0x3e73eaa8      r7: 0x0048aba0     r8: 0x0048af00    r9: 0x3e25d978     r10: 0x35ce9029     r11: 0x0048af00     ip: 0x3e6a4c58    sp: 0x2fdfe298      lr: 0x3596ed90      pc: 0x0048af00   cpsr: 0x40070010 

any answers, if point me in right direction appreciated.

so here's helped solve problem. hope helps others too.

the appstore build created using xcode 3.2.6

apparently there's problem xcode's linker of last year. i stumbled in this when trying mess around -all_load flag errors.

now, when create same build (no code change, no settings changes) using xcode4, adhoc version doesn't crash.

for updating appstore version build. if reading answer thinks knows technical reasoning behind behavior of xcode, please post answer. it'll save many hours of headbangingagainstthewall!

using following keywords googling helped:
"-all_load" crashes
rnbrunlooplaunchinferior (this showed in console when app crashed , printed rnbrunlooplaunchinferior dnbprocesslaunch() returned error: 'drht')

hope helps!


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -