1. 程式人生 > >iOS crash追蹤(二)各個地址之間的關係

iOS crash追蹤(二)各個地址之間的關係

先來看一個蘋果的官方crash日誌:

Incident Identifier: 98A2A094-C241-4B57-9657-B08414AD0791
CrashReporter Key:   204677b9cf9adcc44e75f93963265d8edc783151
Hardware Model:      iPhone8,1
Process:             UncaughtExceptionDemo [82376]
Path:                /private/var/containers/Bundle/Application/54882198-3CB7-4BB8-A026-F17C28412E67/UncaughtExceptionDemo.app/UncaughtExceptionDemo
Identifier:          ****
Version:             1 (1.0)
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           **** [11188]


Date/Time:           2018-08-13 18:35:48.9077 +0800
Launch Time:         2018-08-13 18:35:03.5836 +0800
OS Version:          iPhone OS 11.3.1 (15E302)
Baseband Version:    4.56.00
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGKILL)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000058
VM Region Info: 0x58 is not in any region.  Bytes before following region: 4333780904
      REGION TYPE                      START - END             [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                 0000000102504000-0000000102510000 [   48K] r-x/r-x SM=COW  ...ExceptionDemo

Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, process-exit watchdog transgression: **** exhausted real (wall clock) time allowance of 5.00 seconds |  | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: process-exit | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 6.470 (user 6.470, system 0.000), 65% CPU", | "Elapsed application CPU time (seconds): 4.599, 46% CPU" | )
Triggered by Thread:  0

Filtered syslog:
None found

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libobjc.A.dylib               	0x00000001835599bc _mapStrHash+ 22972 (_NXMapTable*, void const*) + 72
1   libobjc.A.dylib               	0x0000000183559278 _NXMapMember+ 21112 (_NXMapTable*, void const*, void**) + 52
2   libobjc.A.dylib               	0x0000000183559360 NXMapGet + 20
3   libobjc.A.dylib               	0x00000001835637b8 getProtocol+ 63416 (char const*) + 28
4   libobjc.A.dylib               	0x0000000183567260 class_conformsToProtocol + 188
5   libobjc.A.dylib               	0x000000018357a904 -[NSObject conformsToProtocol:] + 52
6   UIKit                         	0x000000018e93a740 __UIContextBinderDetachContext + 92
7   UIKit                         	0x000000018df62a14 -[_UIContextBinder detachBindable:] + 276
8   UIKit                         	0x000000018df628e4 -[_UICanvas _windowUpdatedVisibility:] + 96
9   UIKit                         	0x000000018df62704 -[UIWindow _updateLayerOrderingAndSetLayerHidden:] + 532
10  UIKit                         	0x000000018df6eb18 -[UIWindow _setHidden:forced:] + 148
11  UIKit                         	0x000000018ebabbe4 +[_UIAlertControllerShimPresenter _addPresenter:] + 268
12  UIKit                         	0x000000018ebaab50 -[_UIAlertControllerShimPresenter _presentAlertControllerAnimated:completion:] + 100
13  UIKit                         	0x000000018e58d6ac -[UIAlertView _showAnimated:] + 236
14  UncaughtExceptionDemo         	0x000000010250c120 _hidden#42_ + 33056 (__hidden#47_:59)
15  libsystem_platform.dylib      	0x0000000183fc4b48 _sigtramp + 36
16  UIKit                         	0x000000018e0d26c8 -[UIApplication sendAction:to:from:forEvent:] + 96
17  UIKit                         	0x000000018e1f38a4 -[UIControl sendAction:to:forEvent:] + 80
18  UIKit                         	0x000000018e0d877c -[UIControl _sendActionsForEvents:withEvent:] + 440
19  UIKit                         	0x000000018e20e1dc -[UIControl touchesEnded:withEvent:] + 572
20  UIKit                         	0x000000018e155a48 -[UIWindow _sendTouchesForEvent:] + 2428
21  UIKit                         	0x000000018e14a8f8 -[UIWindow sendEvent:] + 3160
22  UIKit                         	0x000000018e149238 -[UIApplication sendEvent:] + 340
23  UIKit                         	0x000000018e92ac0c __dispatchPreprocessedEventFromEventQueue + 2340
24  UIKit                         	0x000000018e92d1b8 __handleEventQueueInternal + 4744
25  UIKit                         	0x000000018e926258 __handleHIDEventFetcherDrain + 152
26  CoreFoundation                	0x000000018434b404 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
27  CoreFoundation                	0x000000018434ac2c __CFRunLoopDoSources0 + 276
28  CoreFoundation                	0x000000018434879c __CFRunLoopRun + 1204
29  CoreFoundation                	0x0000000184268da8 CFRunLoopRunSpecific + 552
30  GraphicsServices              	0x000000018624b020 GSEventRunModal + 100
31  UIKit                         	0x000000018e24978c UIApplicationMain + 236
32  UncaughtExceptionDemo         	0x000000010250bdd4 main + 32212 (__hidden#29_:14)
33  libdyld.dylib                 	0x0000000183cf9fc0 start + 4

Thread 1:
0   libsystem_kernel.dylib        	0x0000000183e29d84 __workq_kernreturn + 8
1   libsystem_pthread.dylib       	0x0000000183fc7eb4 _pthread_wqthread + 928
2   libsystem_pthread.dylib       	0x0000000183fc7b08 start_wqthread + 4

Thread 2 name:  com.apple.uikit.eventfetch-thread
Thread 2:
0   libsystem_kernel.dylib        	0x0000000183e07e08 mach_msg_trap + 8
1   libsystem_kernel.dylib        	0x0000000183e07c80 mach_msg + 72
2   CoreFoundation                	0x000000018434ae40 __CFRunLoopServiceMachPort + 196
3   CoreFoundation                	0x0000000184348908 __CFRunLoopRun + 1568
4   CoreFoundation                	0x0000000184268da8 CFRunLoopRunSpecific + 552
5   Foundation                    	0x0000000184cdd674 -[NSRunLoop+ 34420 (NSRunLoop) runMode:beforeDate:] + 304
6   Foundation                    	0x0000000184cdd51c -[NSRunLoop+ 34076 (NSRunLoop) runUntilDate:] + 148
7   UIKit                         	0x000000018df2e7e4 -[UIEventFetcher threadMain] + 136
8   Foundation                    	0x0000000184dedefc __NSThread__start__ + 1040
9   libsystem_pthread.dylib       	0x0000000183fc9220 _pthread_body + 272
10  libsystem_pthread.dylib       	0x0000000183fc9110 _pthread_body + 0
11  libsystem_pthread.dylib       	0x0000000183fc7b10 thread_start + 4

Thread 3:
0   libsystem_kernel.dylib        	0x0000000183e29d84 __workq_kernreturn + 8
1   libsystem_pthread.dylib       	0x0000000183fc7eb4 _pthread_wqthread + 928
2   libsystem_pthread.dylib       	0x0000000183fc7b08 start_wqthread + 4

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x00000001c40380e0   x1: 0x000000018eef661b   x2: 0x000000016d8f8ce8   x3: 0xffffffffffffffef
    x4: 0x000000000000004e   x5: 0x000000000000005f   x6: 0x0000000000000000   x7: 0x0000000000000d80
    x8: 0x0000000043425867   x9: 0x000000018eef6643  x10: 0x0000000000000000  x11: 0x0000000000000018
   x12: 0x065f3a01065f3ac0  x13: 0x00000000065f3ac0  x14: 0x0000000000000001  x15: 0x065f3b01065f3b80
   x16: 0x0000000000000000  x17: 0x000000018357a670  x18: 0x0000000000000000  x19: 0x000000016d8f8ce8
   x20: 0x000000018eef661b  x21: 0x00000001c40380e0  x22: 0x0000000102560010  x23: 0x00000001afd14a20
   x24: 0x00000001c0078ae8  x25: 0x00000001b4c93f90  x26: 0x000000018ed7f547  x27: 0x000000018ed4d5ac
   x28: 0x0000000154ab2c80   fp: 0x000000016d8f8cd0   lr: 0x0000000183559278
    sp: 0x000000016d8f8c90   pc: 0x00000001835599bc cpsr: 0x80000000

Binary Images:
0x102504000 - 0x10250ffff UncaughtExceptionDemo arm64  <cdfbceccedb538fc8748d191f24539cf> /var/containers/Bundle/Application/54882198-3CB7-4BB8-A026-F17C28412E67/UncaughtExceptionDemo.app/UncaughtExceptionDemo
0x1027c0000 - 0x1027fbfff dyld arm64  <06dc98224ae03573bf72c78810c81a78> /usr/lib/dyld
0x1834d7000 - 0x1834d8fff libSystem.B.dylib arm64  <1cbfa6a1a0fb3fc99264d3d30ca0e543> /usr/lib/libSystem.B.dylib
0x1834d9000 - 0x183531fff libc++.1.dylib arm64  <c7c7e60bd59e3193a63b35cc54e32e79> /usr/lib/libc++.1.dylib
0x183532000 - 0x183553fff libc++abi.dylib arm64  <086faefd537e3954b23565f56653a2cb> /usr/lib/libc++abi.dylib
0x183554000 - 0x183c0ffff libobjc.A.dylib arm64  <bedd6199d0d33b52a5387380f9350b30> /usr/lib/libobjc.A.dylib
0x183c10000 - 0x183c15fff libcache.dylib arm64  <9234c7627b253d1ba2b18cd9aaadbe2e> /usr/lib/system/libcache.dylib
0x183c16000 - 0x183c21fff libcommonCrypto.dylib arm64  <50eeb933dceb3aa28a43dd3a791139ce> /usr/lib/system/libcommonCrypto.dylib
0x183c22000 - 0x183c25fff libcompiler_rt.dylib arm64  <d2ba481dad4f3cb0b5a2ba5abc20196f> /usr/lib/system/libcompiler_rt.dylib
0x183c26000 - 0x183c2efff libcopyfile.dylib arm64  <d97ef07e910c32c385b8d1ee23759cf0> /usr/lib/system/libcopyfile.dylib
0x183c2f000 - 0x183c92fff libcorecrypto.dylib arm64  <e9cc7328986b3319a9475935e62e29cb> /usr/lib/system/libcorecrypto.dylib
0x183c93000 - 0x183cf8fff libdispatch.dylib arm64  <42fe29ae709d39d9bc00f31af92baaf1> /usr/lib/system/libdispatch.dylib
0x183cf9000 - 0x183d13fff libdyld.dylib arm64  <b0123d033ab93dc7a5e2c35556740a26> /usr/lib/system/libdyld.dylib
0x183d14000 - 0x183d14fff liblaunch.dylib arm64  <5d50c01da0fb3538bce8415db84cf1eb> /usr/lib/system/liblaunch.dylib
0x183d15000 - 0x183d1afff libmacho.dylib arm64  <c39a1c9473413310a32c271a3f49fd58> /usr/lib/system/libmacho.dylib
0x183d1b000 - 0x183d1cfff libremovefile.dylib arm64  <b2d52ec838503fc190db54488d05afd3> /usr/lib/system/libremovefile.dylib
0x183d1d000 - 0x183d33fff libsystem_asl.dylib arm64  <5d19da723b2d3036b96bbe9569d99d5b> /usr/lib/system/libsystem_asl.dylib
0x183d34000 - 0x183d34fff libsystem_blocks.dylib arm64  <9a69557f7f5d35e6b2bb4c8cb55b43b6> /usr/lib/system/libsystem_blocks.dylib
0x183d35000 - 0x183db2fff libsystem_c.dylib arm64  <253425c2089e3d4d99cc1d073d72efe5> /usr/lib/system/libsystem_c.dylib
0x183db3000 - 0x183db7fff libsystem_configuration.dylib arm64  <1f70ae27eb2d31ecb98b4b45f5b82ad9> /usr/lib/system/libsystem_configuration.dylib
0x183db8000 - 0x183dbdfff libsystem_containermanager.dylib arm64  <3a312c5c347d3fcab6227fb824849657> /usr/lib/system/libsystem_containermanager.dylib
0x183dbe000 - 0x183dbffff libsystem_coreservices.dylib arm64  <70bb743b7bf53de1afdf6f7afcce1379> /usr/lib/system/libsystem_coreservices.dylib
0x183dc0000 - 0x183dc1fff libsystem_darwin.dylib arm64  <90fe2ed455e4396aa662e5e32fd80b84> /usr/lib/system/libsystem_darwin.dylib
0x183dc2000 - 0x183dc8fff libsystem_dnssd.dylib arm64  <45af7516ceab3b94905cd74b35f4eab6> /usr/lib/system/libsystem_dnssd.dylib
0x183dc9000 - 0x183e06fff libsystem_info.dylib arm64  <515624006f30300186f77a218ef98326> /usr/lib/system/libsystem_info.dylib
0x183e07000 - 0x183e2ffff libsystem_kernel.dylib arm64  <ab53a0ff551a3b63855eb75271fc5909> /usr/lib/system/libsystem_kernel.dylib
0x183e30000 - 0x183e5dfff libsystem_m.dylib arm64  <cba9a1ee1d553c189dbaca4f6e13ca5e> /usr/lib/system/libsystem_m.dylib
0x183e5e000 - 0x183e79fff libsystem_malloc.dylib arm64  <ad49e1b2657639f3a9beea6edc18675c> /usr/lib/system/libsystem_malloc.dylib
0x183e7a000 - 0x183fa5fff libsystem_network.dylib arm64  <6762e60b7af83d2e86468be0ac6b4fa0> /usr/lib/system/libsystem_network.dylib
0x183fa6000 - 0x183fb1fff libsystem_networkextension.dylib arm64  <d86851bd3b4d344588462ae9a88344f9> /usr/lib/system/libsystem_networkextension.dylib
0x183fb2000 - 0x183fbcfff libsystem_notify.dylib arm64  <5bd9385d98c83d0ba9d157e69c429638> /usr/lib/system/libsystem_notify.dylib
0x183fbd000 - 0x183fc6fff libsystem_platform.dylib arm64  <038fc12926e83453a11b59ef3b1096c9> /usr/lib/system/libsystem_platform.dylib
0x183fc7000 - 0x183fd6fff libsystem_pthread.dylib arm64  <01327cdfaac23c388fadf36cf440f0e2> /usr/lib/system/libsystem_pthread.dylib
0x183fd7000 - 0x183fdafff libsystem_sandbox.dylib arm64  <abbe277dbe993c47b59a813ca4797651> /usr/lib/system/libsystem_sandbox.dylib
0x183fdb000 - 0x183fe2fff libsystem_symptoms.dylib arm64  <7fc5e7245e09393aa5d003dceeffa74b> /usr/lib/system/libsystem_symptoms.dylib
0x183fe3000 - 0x183ff6fff libsystem_trace.dylib arm64  <9bfe9e9e10b9385787a827c768ba54bf> /usr/lib/system/libsystem_trace.dylib
0x183ff7000 - 0x183ffcfff libunwind.dylib arm64  <7e526b97e5b039e6a1c78107321592aa> /usr/lib/system/libunwind.dylib
0x183ffd000 - 0x183ffdfff libvminterpose.dylib arm64  <39d037ec6db036179470ab258fc96c13> /usr/lib/system/libvminterpose.dylib
0x183ffe000 - 0x184028fff libxpc.dylib arm64  <9bc6486ebaa83cc580e90415889c978d> /usr/lib/system/libxpc.dylib
0x184029000 - 0x18424afff libicucore.A.dylib arm64  <afad4c33ff30367286e9c60b75a95a5a> /usr/lib/libicucore.A.dylib
0x18424b000 - 0x18425cfff libz.1.dylib arm64  <39dcd0297ee130c891937f50ce23c2df> /usr/lib/libz.1.dylib
0x18425d000 - 0x1845f3fff CoreFoundation arm64  <cf162b3ca2883453b2914300d4f19612> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x1845f4000 - 0x184604fff libbsm.0.dylib arm64  <3f8b35c8ab283b78a319327ea597212e> /usr/lib/libbsm.0.dylib
0x184605000 - 0x184605fff libenergytrace.dylib arm64  <cfbe9a511fd73ee2ba237aa7400137c6> /usr/lib/libenergytrace.dylib
0x184606000 - 0x18468afff IOKit arm64  <56754e706db43267b2e2bc4387e34f2b> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x18468b000 - 0x184772fff libxml2.2.dylib arm64  <21cc9796ecb933e8b3e12f53e04148f7> /usr/lib/libxml2.2.dylib
0x184773000 - 0x184780fff libbz2.1.0.dylib arm64  <63ddef9a83dc335a9df0bef913f437a7> /usr/lib/libbz2.1.0.dylib
0x184781000 - 0x184799fff liblzma.5.dylib arm64  <252187562a8c3e07b7f01473a16c00d7> /usr/lib/liblzma.5.dylib
0x18479a000 - 0x1848fefff libsqlite3.dylib arm64  <caacdb193a86339db7943325571a25af> /usr/lib/libsqlite3.dylib
0x1848ff000 - 0x184925fff libMobileGestalt.dylib arm64  <816e5c2426243ca5a8e6b3b2b9521776> /usr/lib/libMobileGestalt.dylib
0x184926000 - 0x184cd4fff CFNetwork arm64  <4f38683f50453eaa9a09eb6222eae139> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
0x184cd5000 - 0x184fcdfff Foundation arm64  <18908b96750c38988eb0d7028c656a6d> /System/Library/Frameworks/Foundation.framework/Foundation
0x184fce000 - 0x1850cefff Security arm64  <fccc95fb50db3b55ae66518f7f789f70> /System/Library/Frameworks/Security.framework/Security
0x1850cf000 - 0x18513afff SystemConfiguration arm64  <0caa3f1372c637f791d1aae47629aed1> /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration
0x18513b000 - 0x185170fff libCRFSuite.dylib arm64  <7d19be0f618136a1a3bc7e81caba4b6d> /usr/lib/libCRFSuite.dylib
0x185171000 - 0x185171fff libapple_crypto.dylib arm64  <fcf4f720aac03727b5842dd31fd3ef7e> /usr/lib/libapple_crypto.dylib
0x185172000 - 0x185188fff libapple_nghttp2.dylib arm64  <8d5134e490ad3c298330609806547a9e> /usr/lib/libapple_nghttp2.dylib
0x185189000 - 0x1851b2fff libarchive.2.dylib arm64  <93fac4c1f6b73383a9082c6a963da406> /usr/lib/libarchive.2.dylib
0x1851b3000 - 0x185261fff libboringssl.dylib arm64  <8b812051a23e35b8a22e4c272887ecf7> /usr/lib/libboringssl.dylib
0x185262000 - 0x185278fff libcoretls.dylib arm64  <a016bdc075493ee7a0dd4f4c0daa7f32> /usr/lib/libcoretls.dylib
0x185279000 - 0x18527afff libcoretls_cfhelpers.dylib arm64  <f3b0bd7eedbe3df8a5944d8a737536f0> /usr/lib/libcoretls_cfhelpers.dylib
0x18527b000 - 0x18527cfff liblangid.dylib arm64  <d66b69c96718352ba9c4092aa6416627> /usr/lib/liblangid.dylib
0x18527d000 - 0x1853f2fff libnetwork.dylib arm64  <f087d7ee39b53e7c83a4c1ecb36a3477> /usr/lib/libnetwork.dylib
0x1853f3000 - 0x185425fff libpcap.A.dylib arm64  <36ff48f819553b0c9e92c9fb2aa1a4a2> /usr/lib/libpcap.A.dylib
0x185426000 - 0x185482fff libusrtcp.dylib arm64  <b8b2aa241bcd3d1ca213587a9959920d> /usr/lib/libusrtcp.dylib
0x185483000 - 0x18548dfff IOSurface arm64  <a87bce11aabd303c9d9a6cc0009e9f57> /System/Library/Frameworks/IOSurface.framework/IOSurface
0x18548e000 - 0x185533fff libBLAS.dylib arm64  <50b5f5beeab037ffa5810a67e580bdbf> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libBLAS.dylib
0x185534000 - 0x185854fff libLAPACK.dylib arm64  <c8440bf2dc0b39c79ada236a548df940> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libLAPACK.dylib
0x185855000 - 0x185ac4fff vImage arm64  <8f3ffa6be7e43dfdaf027891d655a60e> /System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/vImage
0x185ac5000 - 0x185ad6fff libSparseBLAS.dylib arm64  <d216b492dfb0311a8ccd19e4a930dd04> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libSparseBLAS.dylib
0x185ad7000 - 0x185afbfff libvMisc.dylib arm64  <483df9b3d90331888b43bb65d802485f> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libvMisc.dylib
0x185afc000 - 0x185b23fff libBNNS.dylib arm64  <982f32f4102133d2802ea5f81cdc13a8> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libBNNS.dylib
0x185b24000 - 0x185b38fff libLinearAlgebra.dylib arm64  <a3ec23fe236e303384df33cf2fb24d96> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libLinearAlgebra.dylib
0x185b39000 - 0x185b3dfff libQuadrature.dylib arm64  <5a98c0d39e0d38f89ce20797be797ac8> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libQuadrature.dylib
0x185b3e000 - 0x185badfff libSparse.dylib arm64  <6556be33563434b78e2ef1c80da99eb7> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libSparse.dylib
0x185bae000 - 0x185c39fff libvDSP.dylib arm64  <4de8af8c7371382b9183e4dc14245445> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libvDSP.dylib
0x185c3a000 - 0x185c3afff vecLib arm64  <2d93d3f4573b313d81fc9104810f0f61> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/vecLib
0x185c3b000 - 0x185c3bfff Accelerate arm64  <850c55e76100327ea543af936487944c> /System/Library/Frameworks/Accelerate.framework/Accelerate
0x185c3c000 - 0x185c52fff libcompression.dylib arm64  <9a090a94c6463eefa5413f012a34d3a4> /usr/lib/libcompression.dylib
0x185c53000 - 0x18619afff CoreGraphics arm64  <ac1e1c54697f3378ac6168a46dcccfe7> /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
0x18619b000 - 0x1861a0fff IOAccelerator arm64  <83c3c1fcfd963ec4b3c15ca18ea71efe> /System/Library/PrivateFrameworks/IOAccelerator.framework/IOAccelerator
0x1861a1000 - 0x1861a6fff libCoreFSCache.dylib arm64  <e49f9dc0e85f3df0b0cd284c2477b315> /System/Library/Frameworks/OpenGLES.framework/libCoreFSCache.dylib
0x1861a7000 - 0x18623ffff Metal arm64  <46fc1e5f11c5316991cb5d7a0aa46523> /System/Library/Frameworks/Metal.framework/Metal
0x186240000 - 0x186253fff GraphicsServices arm64  <85072ece665a3a86807f153e85476fed> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x186254000 - 0x1863adfff MobileCoreServices arm64  <cc1d833f73a73822a52d8a9fe16a8dc3> /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices
0x1863ae000 - 0x1863b0fff IOSurfaceAccelerator arm64  <7b5129072b7f3d128f701b1b950bcdf3> /System/Library/PrivateFrameworks/IOSurfaceAccelerator.framework/IOSurfaceAccelerator
0x1863b1000 - 0x1863f2fff AppleJPEG arm64  <c82f8d506055358d9f786fa34f589827> /System/Library/PrivateFrameworks/AppleJPEG.framework/AppleJPEG
0x1863f3000 - 0x1869a3fff ImageIO arm64  <df52144b9f6f3491a1aaca4affcd69cf> /System/Library/Frameworks/ImageIO.framework/ImageIO
0x1869a4000 - 0x186a07fff BaseBoard arm64  <4a9ddf31f3443b6e9a17e272aebe2b8d> /System/Library/PrivateFrameworks/BaseBoard.framework/BaseBoard
0x186a08000 - 0x186a1ffff AssertionServices arm64  <d4bbd03e4bef3c6d83871dfe9360d2ca> /System/Library/PrivateFrameworks/AssertionServices.framework/AssertionServices
0x186a20000 - 0x186a28fff CorePhoneNumbers arm64  <2cacbb2a053f314d9c6b6df55b4cea0c> /System/Library/PrivateFrameworks/CorePhoneNumbers.framework/CorePhoneNumbers
0x186a29000 - 0x186a6dfff AppSupport arm64  <f518c3a1857533658da18b3c9649da9c> /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport
0x186a6e000 - 0x186a86fff CrashReporterSupport arm64  <5599d0094f603297a23dfaf2643c0214> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/CrashReporterSupport
0x186a87000 - 0x186a8cfff AggregateDictionary arm64  <3e27a71f9459361193f3e182dc87d3b0> /System/Library/PrivateFrameworks/AggregateDictionary.framework/AggregateDictionary
0x186a8d000 - 0x186b11fff libTelephonyUtilDynamic.dylib arm64  <f78c5716e31c3ce7a566a179b347a55a> /usr/lib/libTelephonyUtilDynamic.dylib
0x186b12000 - 0x186b31fff ProtocolBuffer arm64  <ec0dcc2ab28c36c59afaf485b79ebeae> /System/Library/PrivateFrameworks/ProtocolBuffer.framework/ProtocolBuffer
0x186b32000 - 0x186b5efff MobileKeyBag arm64  <19ed6cab7991380796131d9815a7e3df> /System/Library/PrivateFrameworks/MobileKeyBag.framework/MobileKeyBag
0x186b5f000 - 0x186b93fff BackBoardServices arm64  <e4567934c6fc3c029a385d0141469c88> /System/Library/PrivateFrameworks/BackBoardServices.framework/BackBoardServices
0x186b94000 - 0x186beffff FrontBoardServices arm64  <1f63db3e11403909903a700f99bbafe5> /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices
0x186bf0000 - 0x186c2cfff SpringBoardServices arm64  <618c22ec2c98329f8bb23caa50a4f53c> /System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices
0x186c2d000 - 0x186c3bfff PowerLog arm64  <85efbdc068743b57a7dc8cf1115869ae> /System/Library/PrivateFrameworks/PowerLog.framework/PowerLog
0x186c3c000 - 0x186c58fff CommonUtilities arm64  <a4dce370f84f3b2c932007b704a3e959> /System/Library/PrivateFrameworks/CommonUtilities.framework/CommonUtilities
0x186c59000 - 0x186c64fff liblockdown.dylib arm64  <6ca17ea36c9b3d8a80b1b4d147ba35f9> /usr/lib/liblockdown.dylib
0x186c65000 - 0x186f69fff CoreData arm64  <c76c9faa57d032dca0adc9c7b82d2791> /System/Library/Frameworks/CoreData.framework/CoreData
0x186f6a000 - 0x186f70fff TCC arm64  <5b6e4c731ff931a499b5c45cfd742c6c> /System/Library/PrivateFrameworks/TCC.framework/TCC
0x186f71000 - 0x186f78fff libcupolicy.dylib arm64  <e91ba833cf5634f1ac5c077f821df376> /usr/lib/libcupolicy.dylib
0x186f79000 - 0x18700afff CoreTelephony arm64  <8eae2d2fbbc83aa88fc94e48a88443d1> /System/Library/Frameworks/CoreTelephony.framework/CoreTelephony
0x18700b000 - 0x187062fff Accounts arm64  <a66a44902f0d333e8334b8561b40e90a> /System/Library/Frameworks/Accounts.framework/Accounts
0x187063000 - 0x18708cfff AppleSauce arm64  <708bf2e767363eaaae3d41e17e0a0e86> /System/Library/PrivateFrameworks/AppleSauce.framework/AppleSauce
0x18708d000 - 0x187095fff DataMigration arm64  <3db16bbf04603c5da1bd70c06c7cb464> /System/Library/PrivateFrameworks/DataMigration.framework/DataMigration
0x187096000 - 0x18709cfff Netrb arm64  <bf6409fc10343ba89e6c06a15df7a915> /System/Library/PrivateFrameworks/Netrb.framework/Netrb
0x18709d000 - 0x1870cffff PersistentConnection arm64  <644d574b0cb33cf0bcaa55f353b636d1> /System/Library/PrivateFrameworks/PersistentConnection.framework/PersistentConnection
0x1870d0000 - 0x1870e1fff libmis.dylib arm64  <750810cf779d3946964aa5ee4a44f063> /usr/lib/libmis.dylib
0x1870e2000 - 0x1871e8fff ManagedConfiguration arm64  <ddb1689e2c493216aa42aefb91f60588> /System/Library/PrivateFrameworks/ManagedConfiguration.framework/ManagedConfiguration
0x1871e9000 - 0x1871eefff libReverseProxyDevice.dylib arm64  <7c2f9a593dd03a90855450c4b3b2208e> /usr/lib/libReverseProxyDevice.dylib
0x1871ef000 - 0x187201fff libamsupport.dylib arm64  <6c1d65704dfc3b9b87980cd65560188e> /usr/lib/libamsupport.dylib
0x187202000 - 0x187207fff libCoreVMClient.dylib arm64  <8cfed6ca663f30748dd58b598a23169d> /System/Library/Frameworks/OpenGLES.framework/libCoreVMClient.dylib
0x187208000 - 0x187209fff libCVMSPluginSupport.dylib arm64  <4bf21a6ca33d3222bd1442c13450464d> /System/Library/Frameworks/OpenGLES.framework/libCVMSPluginSupport.dylib
0x18720a000 - 0x18720dfff libutil.dylib arm64  <2f7e5961d4b734b496f3d85eae03acd1> /usr/lib/libutil.dylib
0x18720e000 - 0x18724efff libGLImage.dylib arm64  <9c2f70ff46913e4f9dc66605475914f9> /System/Library/Frameworks/OpenGLES.framework/libGLImage.dylib
0x18724f000 - 0x1872c5fff APFS arm64  <075ddba3fa093db78988256945f50ff9> /System/Library/PrivateFrameworks/APFS.framework/APFS
0x1872c6000 - 0x1872f7fff MediaKit arm64  <82856e94773c33f5a67a8eb4c1c6148e> /System/Library/PrivateFrameworks/MediaKit.framework/MediaKit
0x1872f8000 - 0x187310fff libSERestoreInfo.dylib arm64  <3cb3e784ed3e389894f58e4b9fc7bb4e> /usr/lib/updaters/libSERestoreInfo.dylib
0x187315000 - 0x187351fff DiskImages arm64  <198c6094f9c237698130c80de266469b> /System/Library/PrivateFrameworks/DiskImages.framework/DiskImages
0x187352000 - 0x18735bfff libGFXShared.dylib arm64  <ed4ebad5d4c33bc28402efe87dbe49a3> /System/Library/Frameworks/OpenGLES.framework/libGFXShared.dylib
0x18735c000 - 0x1873a3fff libauthinstall.dylib arm64  <dd4427dc0adb323fa26a58d1781bf907> /usr/lib/libauthinstall.dylib
0x1873a4000 - 0x1873acfff IOMobileFramebuffer arm64  <f7a97755a31e39119cc617a8d67ca244> /System/Library/PrivateFrameworks/IOMobileFramebuffer.framework/IOMobileFramebuffer
0x1873ad000 - 0x1873b8fff OpenGLES arm64  <fcb36165f660338c97d330e51329838f> /System/Library/Frameworks/OpenGLES.framework/OpenGLES
0x1873b9000 - 0x187440fff ColorSync arm64  <5959a19f99dc3ed1b0553dc055c18347> /System/Library/PrivateFrameworks/ColorSync.framework/ColorSync
0x187441000 - 0x18746afff CoreVideo arm64  <740eb305ad133ba9ad42b2334b4c4ef5> /System/Library/Frameworks/CoreVideo.framework/CoreVideo
0x18746b000 - 0x18746cfff libCTGreenTeaLogger.dylib arm64  <f5dde928f8d1342894184117065f2584> /usr/lib/libCTGreenTeaLogger.dylib
0x18746d000 - 0x1875d9fff CoreAudio arm64  <8c29fcd6f30b3943bf20b01aeb0e04f6> /System/Library/Frameworks/CoreAudio.framework/CoreAudio
0x1875da000 - 0x187608fff CoreAnalytics arm64  <97087dc402a73b5d9d71d9e6e230991c> /System/Library/PrivateFrameworks/CoreAnalytics.framework/CoreAnalytics
0x187609000 - 0x18760cfff UserFS arm64  <26dc70e76d613a75aecc6a3fb815199c> /System/Library/PrivateFrameworks/UserFS.framework/UserFS
0x18760d000 - 0x187789fff CoreMedia arm64  <5b1204613571323abde92fc7e94d5995> /System/Library/Frameworks/CoreMedia.framework/CoreMedia
0x18778a000 - 0x18779cfff libprotobuf-lite.dylib arm64  <1a1686915f8b343ba80bea61f7bfb250> /usr/lib/libprotobuf-lite.dylib
0x18779d000 - 0x187801fff libprotobuf.dylib arm64  <0f2b421fec773e7a8c4dc240454fd2bd> /usr/lib/libprotobuf.dylib
0x187802000 - 0x187ac5fff libAWDSupportFramework.dylib arm64  <1293c8fa59113426a524963ad2960534> /usr/lib/libAWDSupportFramework.dylib
0x187ac6000 - 0x187b0ffff WirelessDiagnostics arm64  <e29e7932ab30323a8123b52cd1220792> /System/Library/PrivateFrameworks/WirelessDiagnostics.framework/WirelessDiagnostics
0x187b10000 - 0x187bc7fff VideoToolbox arm64  <ead73849a5c6389a83f345517cd5ea04> /System/Library/Frameworks/VideoToolbox.framework/VideoToolbox
0x187bc8000 - 0x187cd1fff libFontParser.dylib arm64  <4f1c4137cd9a327f9cfe6befb8772ecc> /System/Library/PrivateFrameworks/FontServices.framework/libFontParser.dylib
0x187cd2000 - 0x187cd3fff FontServices arm64  <f219f06c5d55331980dc38b5b3007a38> /System/Library/PrivateFrameworks/FontServices.framework/FontServices
0x187cd4000 - 0x187e27fff CoreText arm64  <77db300ece0c3f60880c9c37d0328f09> /System/Library/Frameworks/CoreText.framework/CoreText
0x187e38000 - 0x187e40fff RTCReporting arm64  <4a3fab43886f3e6a80eff6d701c81c42> /System/Library/PrivateFrameworks/RTCReporting.framework/RTCReporting
0x187e41000 - 0x187eb1fff CoreBrightness arm64  <09c973cf66153394aafc1d30404b2124> /System/Library/PrivateFrameworks/CoreBrightness.framework/CoreBrightness
0x187eb2000 - 0x187ebcfff libAudioStatistics.dylib arm64  <c94b3206337b37e3a14f244078b7ebe5> /usr/lib/libAudioStatistics.dylib
0x187ebd000 - 0x1883f5fff AudioToolbox arm64  <b16fa0c577e33089afcc27ec669f486f> /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox
0x1883f6000 - 0x188629fff QuartzCore arm64  <3b0f2dc265b03c6badac432a3bd1a26f> /System/Library/Frameworks/QuartzCore.framework/QuartzCore
0x18862a000 - 0x188635fff MediaAccessibility arm64  <3bbdb8fbf36c387fb7ac14d5a0becfd4> /System/Library/Frameworks/MediaAccessibility.framework/MediaAccessibility
0x188745000 - 0x188760fff MPSCore arm64  <fdf474d325fb35dbb581c292a55c2a69> /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSCore.framework/MPSCore
0x188761000 - 0x1887c9fff MPSImage arm64  <bb4eeae3c182348eac0c7afc6cb28ebf> /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSImage.framework/MPSImage
0x1887ca000 - 0x1887ecfff MPSMatrix arm64  <51eed27dc958331185498c57d285488c> /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSMatrix.framework/MPSMatrix
0x188e52000 - 0x188f81fff MPSNeuralNetwork arm64  <88bcea2c366b31a68c58df71a7f334ef> /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSNeuralNetwork.framework/MPSNeuralNetwork
0x188f82000 - 0x188f82fff MetalPerformanceShaders arm64  <19616d7864ed39bd92fa2f834bea5e92> /System/Library/Frameworks/MetalPerformanceShaders.framework/MetalPerformanceShaders
0x188f83000 - 0x1893adfff FaceCore arm64  <5e413f9639833bd582d1626f1324d0bf> /System/Library/PrivateFrameworks/FaceCore.framework/FaceCore
0x1893ae000 - 0x1893bbfff GraphVisualizer arm64  <8717060f6a11307eb90d4c68ab8026ba> /System/Library/PrivateFrameworks/GraphVisualizer.framework/GraphVisualizer
0x1893bc000 - 0x189563fff libFosl_dynamic.dylib arm64  <bb0a03649109390ba3128fc8f005a891> /usr/lib/libFosl_dynamic.dylib
0x189564000 - 0x1897c7fff CoreImage arm64  <f57ebcfb222c3ac29a30aff8f0a9eb68> /System/Library/Frameworks/CoreImage.framework/CoreImage
0x1899f6000 - 0x189a18fff PlugInKit arm64  <650de2e4f728381d9c6bae39eb3e2768> /System/Library/PrivateFrameworks/PlugInKit.framework/PlugInKit
0x189fd4000 - 0x189ff9fff StreamingZip arm64  <a8037e11b0fb362caec892930fda6bfa> /System/Library/PrivateFrameworks/StreamingZip.framework/StreamingZip
0x18a05a000 - 0x18a062fff SymptomDiagnosticReporter arm64  <32a292fd7bac35528f161a9c3d8e24e6> /System/Library/PrivateFrameworks/SymptomDiagnosticReporter.framework/SymptomDiagnosticReporter
0x18a96d000 - 0x18a984fff MobileAsset arm64  <744020a967d23c8682d6e472ad53481f> /System/Library/PrivateFrameworks/MobileAsset.framework/MobileAsset
0x18af04000 - 0x18ba65fff JavaScriptCore arm64  <5037fc680dcb3b3d9819a375cf798f4f> /System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore
0x18ba6c000 - 0x18bae7fff libate.dylib arm64  <9b79be10c08736b397ef06920b5d9a22> /usr/lib/libate.dylib
0x18bae8000 - 0x18bb9cfff TextureIO arm64  <b5852ba51db534d893d1f8b6bf5af3c5> /System/Library/PrivateFrameworks/TextureIO.framework/TextureIO
0x18bb9d000 - 0x18bc67fff CoreUI arm64  <5b1aadadc936328db96ad35b5b301850> /System/Library/PrivateFrameworks/CoreUI.framework/CoreUI
0x18bc68000 - 0x18bc71fff MobileIcons arm64  <1f2e75af8930391396411577077f1680> /System/Library/PrivateFrameworks/MobileIcons.framework/MobileIcons
0x18bc81000 - 0x18bcd9fff TextInput arm64  <3c0b74e0fbe43fe9abbeb20cd9336f2a> /System/Library/PrivateFrameworks/TextInput.framework/TextInput
0x18bd38000 - 0x18bdcbfff FileProvider arm64  <23494a23c54d3372b651e89a5eab8c49> /System/Library/Frameworks/FileProvider.framework/FileProvider
0x18bf96000 - 0x18bfaafff libAccessibility.dylib arm64  <c2ae8d98d410345a97add95c19a1d6d7> /usr/lib/libAccessibility.dylib
0x18bfab000 - 0x18c451fff libwebrtc.dylib arm64  <fc518ee99a7a36b1beba891836b24115> /System/Library/PrivateFrameworks/WebCore.framework/Frameworks/libwebrtc.dylib
0x18c4b5000 - 0x18db7efff WebCore arm64  <c3f1cacffa143b47bdc452cde9213eda> /System/Library/PrivateFrameworks/WebCore.framework/WebCore
0x18db7f000 - 0x18dd02fff WebKitLegacy arm64  <3a71810a4d5e363892f8ac31952fe314> /System/Library/PrivateFrameworks/WebKitLegacy.framework/WebKitLegacy
0x18de23000 - 0x18de4ffff UserNotifications arm64  <af5da8910e8133b7af31685569872ba5> /System/Library/Frameworks/UserNotifications.framework/UserNotifications
0x18ded7000 - 0x18df2bfff DocumentManager arm64  <8263ec0a6c883222a26bc072300c77db> /System/Library/Frameworks/UIKit.framework/Frameworks/DocumentManager.framework/DocumentManager
0x18df2c000 - 0x18efaafff UIKit arm64  <f8ce0f3965e430a483eb07f32b5ea991> /System/Library/Frameworks/UIKit.framework/UIKit
0x18efab000 - 0x18efbdfff DocumentManagerCore arm64  <1b0d69ce2d613b8a867a77e9f1b33989> /System/Library/PrivateFrameworks/DocumentManagerCore.framework/DocumentManagerCore
0x18efbe000 - 0x18efc2fff HangTracer arm64  <03caf892e5c637ae91f8f122ccafcfe3> /System/Library/PrivateFrameworks/HangTracer.framework/HangTracer
0x18efc3000 - 0x18f014fff PhysicsKit arm64  <1cb1907390353c898fffd99cd5610e81> /System/Library/PrivateFrameworks/PhysicsKit.framework/PhysicsKit
0x18f015000 - 0x18f017fff StudyLog arm64  <9b96f921e00c3c28923639f879fbea28> /System/Library/PrivateFrameworks/StudyLog.framework/StudyLog
0x18f018000 - 0x18f0f7fff UIFoundation arm64  <2431175d036e3f2d8cb0e7a6b0d1466f> /System/Library/PrivateFrameworks/UIFoundation.framework/UIFoundation
0x18f218000 - 0x18f334fff Network arm64  <ad0700a8317d378c92c0b3d6b8bd3bd4> /System/Library/PrivateFrameworks/Network.framework/Network
0x1941d7000 - 0x1941dcfff ConstantClasses arm64  <73d3d9dc12313ec89aa75cc4636d65a5> /System/Library/PrivateFrameworks/ConstantClasses.framework/ConstantClasses
0x1a14ac000 - 0x1a14bdfff DeviceIdentity arm64  <4f5d7a89c9a339b4b4fbc101fe35f4e5> /System/Library/PrivateFrameworks/DeviceIdentity.framework/DeviceIdentity
0x1a4a63000 - 0x1a4a77fff libCGInterfaces.dylib arm64  <a35cdaae6a3f3d0d9d0b776f0d2ccb89> /System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Libraries/libCGInterfaces.dylib
0x1a7556000 - 0x1a7567fff libGSFontCache.dylib arm64  <9e56e388c1903b99bcd16d21cc3d1ea3> /System/Library/PrivateFrameworks/FontServices.framework/libGSFontCache.dylib
0x1a7568000 - 0x1a759afff libTrueTypeScaler.dylib arm64  <e584c6d569da381dbda666f0d9ea177b> /System/Library/PrivateFrameworks/FontServices.framework/libTrueTypeScaler.dylib
0x1aca54000 - 0x1aca84fff libclosured.dylib arm64  <23ea8cc8f66931e4a59c47fb92b8baaa> /usr/lib/closure/libclosured.dylib

EOF

第一行是uuid,程式碼裡面獲取如下:

char *current_binary_uuid()
{
    uint32_t image_index = app_image_index();//至於如何獲取index 網上資料一大堆,此處不在贅述
    const struct mach_header* header = _dyld_get_image_header(image_index);
    if(header != NULL) {
        uintptr_t cmdPtr = first_cmd_address(header);
        for(uint32_t iCmd = 0; iCmd < header->ncmds; iCmd++) {
            const struct load_command* loadCmd = (struct load_command*)cmdPtr;
            if (loadCmd->cmd == LC_UUID) {
                static char buffer[50];
                const uint8_t *command = cmdPtr + sizeof(struct load_command);
                int length = sprintf(buffer,"%02X%02X%02X%02X-%02X%02X-%02X%02X-%02X%02X-%02X%02X%02X%02X%02X%02X",command[0], command[1],
                                     command[2], command[3],
                                     command[4], command[5],
                                     command[6], command[7],
                                     command[8], command[9],
                                     command[10], command[11],
                                     command[12], command[13],
                                     command[14], command[15]);
                return buffer;
            }
            
            cmdPtr += loadCmd->cmdsize;
        }
    }
    return "";
}


uintptr_t first_cmd_address(const struct mach_header* const header)
{
    switch(header->magic) {
        case MH_MAGIC:
        case MH_CIGAM:
            return (uintptr_t)(header + 1);
        case MH_MAGIC_64:
        case MH_CIGAM_64:
            return (uintptr_t)(((struct mach_header_64*)header) + 1);
        default:
            return 0;
    }
}

crash log:

0   UncaughtExceptionDemo               0x0000000100d4fc80 UncaughtExceptionDemo + 31872
1   libsystem_platform.dylib            0x0000000181dc0b48 _sigtramp + 36
2   UncaughtExceptionDemo               0x0000000100d4e4b4 UncaughtExceptionDemo + 25780
3   UncaughtExceptionDemo               0x0000000100d50068 UncaughtExceptionDemo + 32872
4   UIKit                               0x000000018bece6c8 <redacted> + 96
5   UIKit                               0x000000018bfef8a4 <redacted> + 80
6   UIKit                               0x000000018bed477c <redacted> + 440
7   UIKit                               0x000000018c00a1dc <redacted> + 572
8   UIKit                               0x000000018bf51a48 <redacted> + 2428
9   UIKit                               0x000000018bf468f8 <redacted> + 3160
10  UIKit                               0x000000018bf45238 <redacted> + 340
11  UIKit                               0x000000018c726c0c <redacted> + 2340
12  UIKit                               0x000000018c7291b8 <redac<…>


image=UncaughtExceptionDemo, load address=0x100d48000 slide address =d48000

符號化第2行:
stack address: 0x0000000100d4e4b4

dsym segment _TEXT address:  0x0000000100000000

image load address :0x100d48000

slide address:   0xd48000


1.1   atos兩個引數
atos -o /Users/hengda/Desktop/UncaughtExceptionDemo\ 2018-08-21\ 19-23-00/UncaughtExceptionDemo.app.dSYM/Contents/Resources/DWARF/UncaughtExceptionDemo -arch arm64 -l 0x100d48000 0x0000000100d4e4b4

1.2 輸出結果:
atos -o /Users/hengda/Desktop/UncaughtExceptionDemo\ 2018-08-21\ 19-23-00/UncaughtExceptionDemo.app.dSYM/Contents/Resources/DWARF/UncaughtExceptionDemo -arch arm64 -l 0x100d48000 0x0000000100d4e4b4
-[B foo1] (in UncaughtExceptionDemo) (B.m:13)



2.1 atos一個引數
slide address = image load address - dsym segment _TEXT address
		    = 0xd48000
計算symbol address = stack address - slide address = 0x1000064B4
			      = stack address - (image load address - dsym segment _TEXT address)
			      =

atos -o /Users/hengda/Desktop/UncaughtExceptionDemo\ 2018-08-21\ 19-23-00/UncaughtExceptionDemo.app.dSYM/Contents/Resources/DWARF/UncaughtExceptionDemo -arch arm64 -l 0x100d48000 0x0000000100d4e4b4

atos -o /Users/hengda/Desktop/UncaughtExceptionDemo\ 2018-08-21\ 19-23-00/UncaughtExceptionDemo.app.dSYM/Contents/Resources/DWARF/UncaughtExceptionDemo -arch arm64 0x1000064B4

2.1輸出結果:
xiaoyudeMacBook-Pro:eif-ios-app hengda$ atos -o /Users/hengda/Desktop/UncaughtExceptionDemo\ 2018-08-21\ 19-23-00/UncaughtExceptionDemo.app.dSYM/Contents/Resources/DWARF/UncaughtExceptionDemo -arch arm64 0x1000064B4

-[B foo1] (in UncaughtExceptionDemo) (B.m:13)