I just got a new iPod Touch 32GB to test out my app on the faster hardware and so I thought I would also try following apple's recommendation on making a universal (fat) binary Arm7/Arm6 that would make optimal use of this new device.
BUT it crashes on launch and the crash reports are miserably stark, so I'm not sure what code is causing the issue.
Here's my crash log:
Incident Identifier: 6E7FC75F-4873-404E-9060-DF7CE246C376
CrashReporter Key: 53f7f87167274fee44916f13e45c4c21fcf4f36e
Process: MY-TEST-APP [2529]
Path: /var/mobile/Applications/2975EFA1-E496-4B50-8E48-7006D2D2EAF8/MY-TEST-APP.app/MY-TEST-APP
Identifier: MY-TEST-APP
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2010-03-23 23:29:35.600 +0700
OS Version: iPhone OS 3.1.3 (7E18)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000
Crashed Thread: 0
Thread 0 Crashed:
0 libSystem.B.dylib 0000000000 0 + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x3fffffff r3: 0x41efffff
r4: 0x000f07b8 r5: 0x00002f5d r6: 0x000f07a8 r7: 0x2fe263c0
r8: 0x000012e4 r9: 0x337d263f r10: 0x00000004 r11: 0x000c2508
ip: 0x00000000 sp: 0x2fffef0c lr: 0x00002f71 pc: 0x00000000
cpsr: 0x80000010
Binary Images:
0x1000 - 0xc1fff +MY-TEST-APP armv7 <f7e8d5a8323f421d236dd84520319850> /var/mobile/Applications/2975EFA1-E496-4B50-8E48-7006D2D2EAF8/MY-TEST-APP.app/MY-TEST-APP
0x2fe00000 - 0x2fe24fff dyld armv7 <f5805b649fffebb1d5cc3ebd3e372e9e> /usr/lib/dyld
0x3006f000 - 0x3011bfff libxml2.2.dylib armv7 <2d571157b54c1af12c18886ad396f6fa> /usr/lib/libxml2.2.dylib
0x3012c000 - 0x3012ffff ActorKit armv7 <d9c521ed719b069092621730c5a60121> /System/Library/PrivateFrameworks/ActorKit.framework/ActorKit
0x30245000 - 0x3024efff GraphicsServices armv7 <3dcf5e9c018e3bbbf8397266499edb8f> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x30250000 - 0x30258fff CoreVideo armv7 <82f279c2279d25d8e82082a0946963c4> /System/Library/PrivateFrameworks/CoreVideo.framework/CoreVideo
0x30259000 - 0x3025efff MBX2D armv7 <49fc83057be899981d7c9f9864e82ea6> /System/Library/PrivateFrameworks/MBX2D.framework/MBX2D
0x30262000 - 0x30277fff OpenGLES armv7 <1a6cb4443f03d91a802b3c239b32efe6> /System/Library/Frameworks/OpenGLES.framework/OpenGLES
0x30279000 - 0x30284fff PersistentConnection armv7 <ba6cfa432866c608de20d28dc01f2880> /System/Library/PrivateFrameworks/PersistentConnection.framework/PersistentConnection
0x3028a000 - 0x302b1fff ContentIndex armv7 <d956589fcbe98fe4b848b79aecd90665> /System/Library/PrivateFrameworks/ContentIndex.framework/ContentIndex
0x302c9000 - 0x302cffff AVFoundation armv7 <098c9cbcdc0478ecb46f6d05fcee37ad> /System/Library/Frameworks/AVFoundation.framework/AVFoundation
0x302e3000 - 0x303a3fff MediaToolbox armv7 <6a3ee1d2a51edb56fac4167d4f8bbe8b> /System/Library/PrivateFrameworks/MediaToolbox.framework/MediaToolbox
0x303b5000 - 0x303f2fff CoreAudio armv7 <c97ecd1d8e3fc5fe44b3901f40b0a242> /System/Library/Frameworks/CoreAudio.framework/CoreAudio
0x303f3000 - 0x303f4fff CoreSurface armv7 <d742a42786ba3f12a4692488a0c8e147> /System/Library/PrivateFrameworks/CoreSurface.framework/CoreSurface
0x30412000 - 0x30449fff IOKit armv7 <c0052ee56835a3b0de4b02a9820e4d0f> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x3046d000 - 0x304a8fff CoreTelephony armv7 <5135c7a28aa6dc1b13f018a1a7966f22> /System/Library/PrivateFrameworks/CoreTelephony.framework/CoreTelephony
0x304b8000 - 0x304e4fff DAVKit armv7 <80cf41b34d377d21d406fcb6835fbf77> /System/Library/PrivateFrameworks/DAVKit.framework/DAVKit
0x304e5000 - 0x30567fff WebKit armv7 <f7a1add49b45cf701e2615fcb51818ba> /System/Library/PrivateFrameworks/WebKit.framework/WebKit
0x30568000 - 0x30573fff libz.1.dylib armv7 <6f8170196937943a08f9171186a7eec6> /usr/lib/libz.1.dylib
0x30654000 - 0x30686fff MessageUI armv7 <0aec032694070d433676e4cd5419612a> /System/Library/Frameworks/MessageUI.framework/MessageUI
0x3081b000 - 0x3081efff IOSurface armv7 <f2bb94cd715b02a0aad2292a99987c5b> /System/Library/PrivateFrameworks/IOSurface.framework/IOSurface
0x30830000 - 0x3090dfff CoreData armv7 <0786aa3a6ed91492dc04e3d5d628f13d> /System/Library/Frameworks/CoreData.framework/CoreData
0x3090e000 - 0x30917fff SpringBoardServices armv7 <665c6760f6b9e5957f17484e2d254288> /System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices
0x30918000 - 0x309b5fff libobjc.A.dylib armv7 <5fb18319578026b6e8c95092776c25a7> /usr/lib/libobjc.A.dylib
0x30a6d000 - 0x30a79fff DataAccessExpress armv7 <9d2e88f11f24c2dae1f9ee170ac26958> /System/Library/PrivateFrameworks/DataAccessExpress.framework/DataAccessExpress
0x30a7a000 - 0x30a7cfff CrashReporterSupport armv7 <cccda790eec3d67f2b64c6815846d372> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/CrashReporterSupport
0x30a88000 - 0x30b7dfff Foundation armv7 <c510f1650dc9d038da248e908d0524ab> /System/Library/Frameworks/Foundation.framework/Foundation
0x30c48000 - 0x30c4efff libgcc_s.1.dylib armv7 <263b2691cd12171b31fa600716104e4a> /usr/lib/libgcc_s.1.dylib
0x30c61000 - 0x30ce1fff QuartzCore armv7 <03c90b72facff4e0712f7843991fb05a> /System/Library/Frameworks/QuartzCore.framework/QuartzCore
0x30cef000 - 0x30cf0fff IOMobileFramebuffer armv7 <4fbfdb1de2d4f87f83c7e410f062a4c4> /System/Library/PrivateFrameworks/IOMobileFramebuffer.framework/IOMobileFramebuffer
0x30cf2000 - 0x30d32fff libsqlite3.dylib armv7 <0be4895e13aa0d7c97b92912ac6753ea> /usr/lib/libsqlite3.dylib
0x30d73000 - 0x30e74fff libicucore.A.dylib armv7 <ba297abf15d94dfa5297258ab22ac07f> /usr/lib/libicucore.A.dylib
0x30ebd000 - 0x31012fff CoreGraphics armv7 <8c5bc5d0f3bcb35a1aed58db602d73a6> /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
0x31057000 - 0x31084fff VideoToolbox armv7 <ad44a1329612d5cf4bec6f4b0e556b16> /System/Library/PrivateFrameworks/VideoToolbox.framework/VideoToolbox
0x310af000 - 0x310b9fff MobileBluetooth armv7 <c31fedb56f8a574a45e837bf60925542> /System/Library/PrivateFrameworks/MobileBluetooth.framework/MobileBluetooth
0x310be000 - 0x310befff vecLib armv7 <4eb91bf56603dc0db6784d8d3240bfa8> /System/Library/PrivateFrameworks/Accelerate.framework/Frameworks/vecLib.framework/vecLib
0x310bf000 - 0x3112efff CFNetwork armv7 <83514ce72b472ef83868d9b696b17e7f> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
0x31131000 - 0x31607fff WebCore armv7 <25ddfbaf5a37cba4c0812bcd261bbec4> /System/Library/PrivateFrameworks/WebCore.framework/WebCore
0x31608000 - 0x3161dfff libresolv.9.dylib armv7 <94ef5491ea3d1ffb1ccaacc89b7b833d> /usr/lib/libresolv.9.dylib
0x31638000 - 0x3172ffff libSystem.B.dylib armv7 <91805110f330075d26d5931540187bbd> /usr/lib/libSystem.B.dylib
0x31881000 - 0x31935fff JavaScriptCore armv7 <e0609b660c22df7c1370f3b1afa1344c> /System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore
0x3196d000 - 0x3199ffff iCalendar armv7 <2fea4e63147611749e478be3f4775138> /System/Library/PrivateFrameworks/iCalendar.framework/iCalendar
0x319a0000 - 0x319c1fff MobileQuickLook armv7 <132b4501869adf57a34dee06fd7e07ae> /System/Library/PrivateFrameworks/MobileQuickLook.framework/MobileQuickLook
0x319c3000 - 0x31a49fff ImageIO armv7 <700262f0a3b830163f37b4d5d4208cea> /System/Library/PrivateFrameworks/ImageIO.framework/ImageIO
0x31e1f000 - 0x31e30fff OpenAL armv7 <41b9d6946a45e44f633fa8a23119a0cd> /System/Library/Frameworks/OpenAL.framework/OpenAL
0x31e53000 - 0x31e78fff AppSupport armv7 <2099e55c4459788925ba49cf26d573e2> /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport
0x31ecb000 - 0x31eeffff SystemConfiguration armv7 <de5b031a7614b3c49be46695248d1194> /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration
0x31ef0000 - 0x31faafff Message armv7 <91bc81877beb4a276c82707ba0142407> /System/Library/PrivateFrameworks/Message.framework/Message
0x31fab000 - 0x3201dfff LDAP armv7 <9a8b3da21e3ed6daafa2cb2676e34b0f> /System/Library/PrivateFrameworks/LDAP.framework/LDAP
0x3203d000 - 0x3205bfff MobileSync armv7 <8cf994b2656d2ad2e1b4a5e455628ddf> /System/Library/PrivateFrameworks/MobileSync.framework/MobileSync
0x320d6000 - 0x320dcfff libkxld.dylib armv7 <004c2e7fcc80bdd27bac810965474672> /usr/lib/system/libkxld.dylib
0x321dc000 - 0x321e4fff AccountSettings armv7 <8cebda5b7356418d16fdfc9f46e601db> /System/Library/PrivateFrameworks/AccountSettings.framework/AccountSettings
0x321e5000 - 0x321f1fff MobileDeviceLink armv7 <a3d205f3d1f2954afa3e4b6fcdefa7b0> /System/Library/PrivateFrameworks/MobileDeviceLink.framework/MobileDeviceLink
0x321f2000 - 0x321f7fff liblockdown.dylib armv7 <d563c7db5fcd6b07e576b6aa8d5190c0> /usr/lib/liblockdown.dylib
0x321f8000 - 0x32225fff Calendar armv7 <cae6e51dc1d47bc48946edf0ed6554e6> /System/Library/PrivateFrameworks/Calendar.framework/Calendar
0x32261000 - 0x3226bfff MobileCoreServices armv7 <af593a3639978e1f3f78d5e842f8d8ec> /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices
0x32461000 - 0x32489fff libvDSP.dylib armv7 <d846b621ce13b16241ac2d32ddd28615> /System/Library/PrivateFrameworks/Accelerate.framework/Frameworks/vecLib.framework/libvDSP.dylib
0x3248a000 - 0x324b4fff CoreText armv7 <19ca8db95f97f8eda4594e7c7578b3e9> /System/Library/PrivateFrameworks/CoreText.framework/CoreText
0x324fb000 - 0x32526fff MIME armv7 <3918bf286d49371ab253076412e675e6> /System/Library/PrivateFrameworks/MIME.framework/MIME
0x32595000 - 0x32f59fff UIKit armv7 <050a8c4faefeed532f4de1c003599e57> /System/Library/Frameworks/UIKit.framework/UIKit
0x32f5a000 - 0x32f99fff Celestial armv7 <3eaf6ca8e264b2d7e026a1a745f5eb74> /System/Library/PrivateFrameworks/Celestial.framework/Celestial
0x32fab000 - 0x32fb6fff libbsm.0.dylib armv7 <fd2915fe0f1570ec47c0e7ae0cbf1002> /usr/lib/libbsm.0.dylib
0x32fd0000 - 0x32fd2fff Notes armv7 <c0fb6b3ed93d0af49583bd756ee1c36b> /System/Library/PrivateFrameworks/Notes.framework/Notes
0x32fd7000 - 0x33008fff CoreMedia armv7 <e9d7281cbf4160e570ca5ae2d091696f> /System/Library/PrivateFrameworks/CoreMedia.framework/CoreMedia
0x330a6000 - 0x33154fff DataAccess armv7 <82f92536a600516e4f28fa8594e244cb> /System/Library/PrivateFrameworks/DataAccess.framework/DataAccess
0x332af000 - 0x332affff Accelerate armv7 <939f94df6c7e6e7a090ddee1ec09c844> /System/Library/PrivateFrameworks/Accelerate.framework/Accelerate
0x332b0000 - 0x332f9fff libstdc++.6.dylib armv7 <08659aaceb089e4cec9c5f8a9cc1dd31> /usr/lib/libstdc++.6.dylib
0x332fa000 - 0x3335afff AddressBookUI armv7 <73bf4c671c3d9ba30811655c80e3f1ca> /System/Library/Frameworks/AddressBookUI.framework/AddressBookUI
0x33448000 - 0x3346cfff Security armv7 <90cc670a7fe9db4f7fd41229eb89939f> /System/Library/Frameworks/Security.framework/Security
0x3347b000 - 0x33491fff AddressBook armv7 <e4af2bf4833b2672c340e5051d1793ba> /System/Library/Frameworks/AddressBook.framework/AddressBook
0x33498000 - 0x3349cfff ITSync armv7 <03ccc442ac513eb121310651b648baaa> /System/Library/PrivateFrameworks/ITSync.framework/ITSync
0x3350a000 - 0x335b4fff CoreFoundation armv7 <65b28d1794f60d0e332fe0cdc49fca1b> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x335b5000 - 0x335bcfff libbz2.1.0.dylib armv7 <cee5a8d5fda692f3562c770a2ec9c28b> /usr/lib/libbz2.1.0.dylib
0x335c0000 - 0x336a9fff AudioToolbox armv7 <b37840acca788ad1008671c47e2607dc> /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox
Some notes on what I've tried:
- Setting back to build for Arm6 resolves the issue and the app runs normally.
- The memory address of the problem appears to be at 0000000000 0 + 0 (WTF?)
- symbolification of the crash log isn't working, though with an address of 0 I don't think it would do any good
- This makes me think it's not actually getting to run any code? maybe it just starts loading the code into memory and it fails?
- Toggling Thumb support makes no difference
- I have the following static libs linked to my app:
- cocos2d
- CocosDenshion
- Box2D
- TouchJSON
Tomorrow I'll start going through my app line by line and piece by piece to figure this out :(
Let me know if anyone's encountered anything like this before.
Thanks.