Skip to content

Instantly share code, notes, and snippets.

@nicolas17
Created November 23, 2015 01:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicolas17/85f094fd0753cda1e116 to your computer and use it in GitHub Desktop.
Save nicolas17/85f094fd0753cda1e116 to your computer and use it in GitHub Desktop.
ld crash compiling a simple iOS tweak
{"bug_type":"109","os_version":"iPhone OS 8.4 (12H143)","build_version":"","blame":[],"symbolicated":true,"app_name":"ld","name":"ld","is_first_party":true,"app_version":"","share_with_app_devs":true,"slice_uuid":"10e851cd-afcd-30ed-a377-c6d95d76aea8"}
Incident Identifier: FE48D1A6-C34A-4B90-BEBD-5571960FA5E8
CrashReporter Key: 939c15172497609b871a2dadc5a86cf4c5a2a190
Hardware Model: iPod5,1
Process: ld [10606]
Path: /usr/bin/ld
Identifier: ld
Version: ???
Code Type: ARM (Native)
Parent Process: clang [10605]
Date/Time: 2015-11-22 22:25:16.196 -0300
Launch Time: 2015-11-22 22:25:15.940 -0300
OS Version: iOS 8.4 (12H143)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Subtype: EXC_ARM_DA_ALIGN at 0x00524c2b
Triggered by Thread: 2
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x315b6b2c 0x315a2000 + 0x14b2c // __psynch_cvwait + 0x18
1 libsystem_pthread.dylib 0x31636360 0x31634000 + 0x2360 // _pthread_cond_wait + 0x204
2 libsystem_pthread.dylib 0x31637230 0x31634000 + 0x3230 // pthread_cond_wait + 0x24
3 + ld (*) 0x0004d5ee 0x00004000 + 0x495ee // ld::tool::InputFiles::forEachInitialAtom(ld::File::AtomHandler&, ld::Internal&) + 0x86
4 + ld (*) 0x0005439e 0x00004000 + 0x5039e // ld::tool::Resolver::resolve() + 0x1e
5 + ld (*) 0x0001503e 0x00004000 + 0x1103e // main + 0x1f6
6 + ld (*) 0x00008ee4 0x00004000 + 0x4ee4 // start + 0x24
Thread 1:
0 + ld (*) 0x00046c12 0x00004000 + 0x42c12 // mach_o::dylib::File<arm>::File(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, bool, bool, bool, ld::MacVersionMin, ld::IOSVersionMin, bool, bool, bool, char const*, bool) + 0x222
1 + ld (*) 0x0004188e 0x00004000 + 0x3d88e // mach_o::dylib::Parser<arm>::parse(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, Options const&, bool) + 0x102
2 + ld (*) 0x00040cf6 0x00004000 + 0x3ccf6 // mach_o::dylib::parse(unsigned char const*, unsigned long long, char const*, long, Options const&, ld::File::Ordinal, bool, bool) + 0xba
3 + ld (*) 0x0004bb78 0x00004000 + 0x47b78 // ld::tool::InputFiles::makeFile(Options::FileInfo const&, bool) + 0x29c
4 + ld (*) 0x0004d1e0 0x00004000 + 0x491e0 // ld::tool::InputFiles::parseWorkerThread() + 0x1c0
5 libsystem_pthread.dylib 0x31636de8 0x31634000 + 0x2de8 // _pthread_body + 0x88
6 libsystem_pthread.dylib 0x31636d5a 0x31634000 + 0x2d5a // _pthread_start + 0x72
7 libsystem_pthread.dylib 0x31634b04 0x31634000 + 0xb04 // thread_start + 0x4
Thread 2 Crashed:
0 + ld (*) 0x0004387e 0x00004000 + 0x3f87e // Security::SuperBlobCore<Security::SuperBlob<4208856065u, unsigned int>, 4208856065u, unsigned int>::validateBlob(unsigned long) const + 0x12
1 + ld (*) 0x00043858 0x00004000 + 0x3f858 // Security::SuperBlob<4208856065u, unsigned int> const* Security::SuperBlobCore<Security::SuperBlob<4208856256u, unsigned int>, 4208856256u, unsigned int>::find<Security::SuperBlob<4208856065u, unsigned int> >(unsigned int) const + 0x10
2 + ld (*) 0x000471d6 0x00004000 + 0x431d6 // mach_o::dylib::File<arm>::File(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, bool, bool, bool, ld::MacVersionMin, ld::IOSVersionMin, bool, bool, bool, char const*, bool) + 0x7e6
3 + ld (*) 0x0004188e 0x00004000 + 0x3d88e // mach_o::dylib::Parser<arm>::parse(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, Options const&, bool) + 0x102
4 + ld (*) 0x00040cf6 0x00004000 + 0x3ccf6 // mach_o::dylib::parse(unsigned char const*, unsigned long long, char const*, long, Options const&, ld::File::Ordinal, bool, bool) + 0xba
5 + ld (*) 0x0004bb78 0x00004000 + 0x47b78 // ld::tool::InputFiles::makeFile(Options::FileInfo const&, bool) + 0x29c
6 + ld (*) 0x0004d1e0 0x00004000 + 0x491e0 // ld::tool::InputFiles::parseWorkerThread() + 0x1c0
7 libsystem_pthread.dylib 0x31636de8 0x31634000 + 0x2de8 // _pthread_body + 0x88
8 libsystem_pthread.dylib 0x31636d5a 0x31634000 + 0x2d5a // _pthread_start + 0x72
9 libsystem_pthread.dylib 0x31634b04 0x31634000 + 0xb04 // thread_start + 0x4
Thread 2 crashed with ARM Thread State (32-bit):
r0: 0x00524c27 r1: 0x00000000 r2: 0x010cdefa r3: 0x010cdefa
r4: 0x00524c27 r5: 0x00507000 r6: 0x8000001f r7: 0x02801ffc
r8: 0x0000000f r9: 0x00524950 r10: 0x002cb854 r11: 0x80000018
ip: 0x02000000 sp: 0x02801ff4 lr: 0x0004385d pc: 0x0004387e
cpsr: 0x60000030
Binary Images (dpkg):
0x00004000 - 0x000b3fff + ld armv7 <10e851cdafcd30eda377c6d95d76aea8> /usr/bin/ld {"name":"LD64","identifier":"org.coolstar.ld64","version":"224.1-2","install_date":"2015-11-15 01:51:59 -0300"}
Binary Images (App Store):
Binary Images (Other):
0x1fe52000 - 0x1fe75fff dyld armv7 <d149afee36643bb38ce356f9029d8a2d> /usr/lib/dyld
0x304b5000 - 0x304b6fff libSystem.B.dylib armv7 <00d230a2fb133b7eb694933038151289> /usr/lib/libSystem.B.dylib
0x306e4000 - 0x3072efff libc++.1.dylib armv7 <85055cf4732f3667abc23ab1493c3703> /usr/lib/libc++.1.dylib
0x3072f000 - 0x3074afff libc++abi.dylib armv7 <f99212723e363c78aac2d3821fa43245> /usr/lib/libc++abi.dylib
0x30f1c000 - 0x31116fff libobjc.A.dylib armv7 <d8dce7276c203150bdcbd105266b7968> /usr/lib/libobjc.A.dylib
0x31447000 - 0x3144bfff libcache.dylib armv7 <289d2b8e9fd83e149062521f1890a518> /usr/lib/system/libcache.dylib
0x3144c000 - 0x31455fff libcommonCrypto.dylib armv7 <60c89cd76a973a1e9db55411915802f6> /usr/lib/system/libcommonCrypto.dylib
0x31456000 - 0x3145afff libcompiler_rt.dylib armv7 <5136d1a17b22372e969d71ff8f6a5ef2> /usr/lib/system/libcompiler_rt.dylib
0x3145b000 - 0x31461fff libcopyfile.dylib armv7 <05f098cd548e37348bfaaaa5a18ee4da> /usr/lib/system/libcopyfile.dylib
0x31462000 - 0x314b0fff libcorecrypto.dylib armv7 <bc3bcf05d9433b6fb9650e03bf8dc8a0> /usr/lib/system/libcorecrypto.dylib
0x314b1000 - 0x314eefff libdispatch.dylib armv7 <89da9738c8d7335a81c8c1d297533a99> /usr/lib/system/libdispatch.dylib
0x314ef000 - 0x314f0fff libdyld.dylib armv7 <7e260cbfa85e3c91a8953b970c8d6a43> /usr/lib/system/libdyld.dylib
0x314f1000 - 0x314f1fff libkeymgr.dylib armv7 <8cf4f5d2baca35ed8a5f15c4af240d0c> /usr/lib/system/libkeymgr.dylib
0x314f2000 - 0x314f2fff liblaunch.dylib armv7 <470c735e992638d6b53aaba7399d9e5b> /usr/lib/system/liblaunch.dylib
0x314f3000 - 0x314f6fff libmacho.dylib armv7 <21a119e030f23aec84234e445bc8e1ca> /usr/lib/system/libmacho.dylib
0x314f7000 - 0x314f8fff libremovefile.dylib armv7 <b38c744ff50f3a25b8c29ee79624d6ae> /usr/lib/system/libremovefile.dylib
0x314f9000 - 0x3150afff libsystem_asl.dylib armv7 <e2aa00ff982433c784b55217febdcec1> /usr/lib/system/libsystem_asl.dylib
0x3150b000 - 0x3150bfff libsystem_blocks.dylib armv7 <b11c0cd1df5038edaa021f6ee35e60c1> /usr/lib/system/libsystem_blocks.dylib
0x3150c000 - 0x3156efff libsystem_c.dylib armv7 <6c645b6dc7ed34ce9cb9611c21fbb075> /usr/lib/system/libsystem_c.dylib
0x3156f000 - 0x31571fff libsystem_configuration.dylib armv7 <7edc95ee34033dd6b926d84829311496> /usr/lib/system/libsystem_configuration.dylib
0x31572000 - 0x31573fff libsystem_coreservices.dylib armv7 <34e08e7e53ff3b018a9b58482a2fd6ae> /usr/lib/system/libsystem_coreservices.dylib
0x31574000 - 0x31580fff libsystem_coretls.dylib armv7 <237ae1e447eb3fa6adcb0c9c0488d165> /usr/lib/system/libsystem_coretls.dylib
0x31581000 - 0x31587fff libsystem_dnssd.dylib armv7 <9729751e11fe32ab86cf7881fc90c7f0> /usr/lib/system/libsystem_dnssd.dylib
0x31588000 - 0x315a1fff libsystem_info.dylib armv7 <5abcccd4160231e7bc994d6b50f8114a> /usr/lib/system/libsystem_info.dylib
0x315a2000 - 0x315bcfff libsystem_kernel.dylib armv7 <5601ee301b833963a879a10ec8d2cc6f> /usr/lib/system/libsystem_kernel.dylib
0x315bd000 - 0x315ddfff libsystem_m.dylib armv7 <0c21d434aae43ac7947470d3aa855dd8> /usr/lib/system/libsystem_m.dylib
0x315de000 - 0x315f0fff libsystem_malloc.dylib armv7 <d9a24ab278d03403b4e3f7a1a14ecf6b> /usr/lib/system/libsystem_malloc.dylib
0x315f1000 - 0x3161ffff libsystem_network.dylib armv7 <e7b6cee8e696332e8d478e98efdd5a17> /usr/lib/system/libsystem_network.dylib
0x31620000 - 0x31625fff libsystem_networkextension.dylib armv7 <8411ae274ad5386c9b77cf96fc999d37> /usr/lib/system/libsystem_networkextension.dylib
0x31626000 - 0x3162dfff libsystem_notify.dylib armv7 <efe3c04093c6360088c28a19418aeb14> /usr/lib/system/libsystem_notify.dylib
0x3162e000 - 0x31633fff libsystem_platform.dylib armv7 <87e23da2b47437b2a3189d2c55666309> /usr/lib/system/libsystem_platform.dylib
0x31634000 - 0x3163afff libsystem_pthread.dylib armv7 <ac43cdc024e135e0b9408150e7e3b08b> /usr/lib/system/libsystem_pthread.dylib
0x3163b000 - 0x3163dfff libsystem_sandbox.dylib armv7 <6987d1fa8e7535dd94dff2f1f7099682> /usr/lib/system/libsystem_sandbox.dylib
0x3163e000 - 0x31641fff libsystem_stats.dylib armv7 <4632ee54d68d38a0994ee05a47cf708e> /usr/lib/system/libsystem_stats.dylib
0x31642000 - 0x31647fff libsystem_trace.dylib armv7 <66a47b2a88933709b4da7836295d2a8d> /usr/lib/system/libsystem_trace.dylib
0x31648000 - 0x31648fff libunwind.dylib armv7 <e52b05cc2ec13f4d9f9307d7c6393ae7> /usr/lib/system/libunwind.dylib
0x31649000 - 0x31664fff libxpc.dylib armv7 <7ff7172156243dde9615146a4d8b7197> /usr/lib/system/libxpc.dylib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment