EXC_BAD_ACCESS(SIGSEGV)iOS应用程序

时间:2019-05-10 12:31:50

标签: ios

我试图从Crashlytics报告的以下崩溃中了解

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x000001a20c7fbf81
VM Region Info: 0x1a20c7fbf81 is not in any region.  Bytes after previous region: 1784231739266  
      REGION TYPE                      START - END             [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      MALLOC_NANO            0000000280000000-00000002a0000000 [512.0M] rw-/rwx SM=PRV  
--->  
      UNUSED SPACE AT END

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [10401]
Triggered by Thread:  0

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libswiftCore.dylib              0x0000000104293578 0x103fe4000 + 2815352
1   MyApp                           0x00000001014770f4 objectdestroy.150Tm + 40
2   MyApp                           0x00000001014770f4 objectdestroy.150Tm + 40
3   libswiftCore.dylib              0x0000000104293584 0x103fe4000 + 2815364
4   libsystem_blocks.dylib          0x00000001d3993a44 _Block_release + 152
5   libdispatch.dylib               0x00000001d3937484 _dispatch_client_callout + 16
6   libdispatch.dylib               0x00000001d38e39ec _dispatch_main_queue_callback_4CF$VARIANT$mp + 1068
7   CoreFoundation                  0x00000001d3e8d1bc __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
8   CoreFoundation                  0x00000001d3e88084 __CFRunLoopRun + 1964
9   CoreFoundation                  0x00000001d3e875b8 CFRunLoopRunSpecific + 436
10  GraphicsServices                0x00000001d60fb584 GSEventRunModal + 100
11  UIKitCore                       0x00000002000e3558 UIApplicationMain + 212
12  MyApp                           0x0000000100d31160 main + 37216 (AppDelegate.swift:16)
13  libdyld.dylib                   0x00000001d3947b94 start + 4

升级到Xcode 10后,我们开始看到此崩溃,不确定它是否与SDK相关。 我尝试使用atos来符号化符号,但这在任何地方都没有。唯一可笑的方面是,我们可以按照以下步骤在release构建中复制崩溃

  1. 启动应用并登录
  2. 关闭wifi(设备上没有互联网连接)
  3. 退出

应用程序每3-5次尝试就会崩溃1次

看着崩溃,看来该应用正在尝试访问无效的内存地址(很可能是在释放对象之后尝试访问一个对象),但是无法缩小范围

是否知道如何使用以下几行中显示的地址偏移量,我可以将整数偏移量转换为十六进制并将其添加到0x103fe4000吗?

 0   libswiftCore.dylib             0x0000000104293578 0x103fe4000 + 2815352
 3   libswiftCore.dylib             0x0000000104293584 0x103fe4000 + 2815364

非常感谢您的帮助。

0 个答案:

没有答案