Network Extension Crash - establishIPCWithCompletionHandlerr

I am facing weird crash on network extension on iOS 13.3.1, not able to determine the line or cause of the crash. Since the build is uploaded to test-flight, i was able to download the crash logs from Xcode.


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


Thread 0 name:
Thread 0 Crashed:
0   libobjc.A.dylib                0x00000001b9df8020 objc_retain + 16 (objc-object.h:174)
1   NetworkExtension              0x00000001cc374ff8 -[NEExtensionProviderContext _principalObject] + 76 (NEExtensionProviderContext.m:108)
2   NetworkExtension              0x00000001cc378530 __70-[NEExtensionTunnelProviderContext establishIPCWithCompletionHandler:]_block_invoke + 112 (NEExtensionTunnelProviderContext.m:160)
3   NetworkExtension              0x00000001cc42f1e8 -[NEIPC handleMessage:withHandler:] + 440 (NEIPC.m:42)
4   NetworkExtension              0x00000001cc42f480 __39-[NEIPC setupMessageHandlingWithQueue:]_block_invoke + 144 (NEIPC.m:67)
5   libxpc.dylib                  0x00000001b9c833d0 _xpc_connection_call_event_handler + 68 (connection.c:0)
6   libxpc.dylib                  0x00000001b9c83748 _xpc_connection_mach_event + 876 (connection.c:1208)
7   libdispatch.dylib              0x00000001b9d83244 _dispatch_client_callout4 + 16 (object.m:535)
8   libdispatch.dylib              0x00000001b9d587f8 _dispatch_mach_msg_invoke$VARIANT$armv81 + 372 (mach.c:2442)
9   libdispatch.dylib              0x00000001b9d605e0 _dispatch_lane_serial_drain$VARIANT$armv81 + 260 (inline_internal.h:2525)
10  libdispatch.dylib              0x00000001b9d593b8 _dispatch_mach_invoke$VARIANT$armv81 + 464 (mach.c:2764)
11  libdispatch.dylib              0x00000001b9d6623c _dispatch_main_queue_callback_4CF$VARIANT$armv81 + 724 (inline_internal.h:2525)
12  CoreFoundation                0x00000001ba0345e4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12 (CFRunLoop.c:1749)
13  CoreFoundation                0x00000001ba02f5d8 __CFRunLoopRun + 2004 (CFRunLoop.c:3069)
14  CoreFoundation                0x00000001ba02eadc CFRunLoopRunSpecific + 464 (CFRunLoop.c:3192)
15  Foundation                    0x00000001ba36e784 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 228 (NSRunLoop.m:374)
16  Foundation                    0x00000001ba3a8198 -[NSRunLoop(NSRunLoop) run] + 88 (NSRunLoop.m:399)
17  libxpc.dylib                  0x00000001b9c8b178 _xpc_objc_main + 304 (main.m:197)
18  libxpc.dylib                  0x00000001b9c8dacc xpc_main + 148 (init.c:1572)
19  Foundation                    0x00000001ba3aa2c8 -[NSXPCListener resume] + 172 (NSXPCListener.m:276)
20  PlugInKit                      0x00000001c7352bb0 -[PKService run] + 396 (PKService.m:165)
21  PlugInKit                      0x00000001c73528bc +[PKService main] + 572 (PKService.m:102)
22  PlugInKit                      0x00000001c7352fc0 +[PKService _defaultRun:arguments:] + 20 (PKService.m:212)
23  Foundation                    0x00000001ba585004 NSExtensionMain + 64 (NSExtensionMain.m:27)
24  libdyld.dylib                  0x00000001b9eb8360 start + 4


Thread 1:
0   libsystem_pthread.dylib        0x00000001b9dd5758 start_wqthread + 0 (pthread_dependency.c:69)


Thread 2:
0   libsystem_pthread.dylib        0x00000001b9dd5758 start_wqthread + 0 (pthread_dependency.c:69)


Thread 3:
0   libsystem_pthread.dylib        0x00000001b9dd5758 start_wqthread + 0 (pthread_dependency.c:69)


Thread 4:
0   libsystem_pthread.dylib        0x00000001b9dd5758 start_wqthread + 0 (pthread_dependency.c:69)


Thread 5 name:
Thread 5:
0   libsystem_kernel.dylib        0x00000001b9e8c634 mach_msg_trap + 8
1   libsystem_kernel.dylib        0x00000001b9e8baa0 mach_msg + 72 (mach_msg.c:103)
2   CoreFoundation                0x00000001ba034288 __CFRunLoopServiceMachPort + 216 (CFRunLoop.c:2575)
3   CoreFoundation                0x00000001ba02f3a8 __CFRunLoopRun + 1444 (CFRunLoop.c:2931)
4   CoreFoundation                0x00000001ba02eadc CFRunLoopRunSpecific + 464 (CFRunLoop.c:3192)
5   Foundation                    0x00000001ba36e784 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 228 (NSRunLoop.m:374)
6   Foundation                    0x00000001ba3a8198 -[NSRunLoop(NSRunLoop) run] + 88 (NSRunLoop.m:399)
7   LKOAFNetworking                0x0000000104884210 +[LKOAFURLConnectionOperation networkRequestThreadEntryPoint:] + 216 (LKOAFURLConnectionOperation.m:163)
8   Foundation                    0x00000001ba49f09c __NSThread__start__ + 848 (NSThread.m:724)
9   libsystem_pthread.dylib        0x00000001b9dd1d8c _pthread_start + 156 (pthread.c:896)
10  libsystem_pthread.dylib        0x00000001b9dd576c thread_start + 8


Thread 6:
0   libsystem_pthread.dylib        0x00000001b9dd5758 start_wqthread + 0 (pthread_dependency.c:69)


Thread 7:
0   libsystem_pthread.dylib        0x00000001b9dd5758 start_wqthread + 0 (pthread_dependency.c:69)


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x000000010fe13220   x1: 0x00000001f23b90cb   x2: 0x0000000000000000   x3: 0x00000001080dc000
    x4: 0x000000016b68a5e8   x5: 0x0000000000000010   x6: 0x0000000000000000   x7: 0x0000000000000000
    x8: 0x0000000010fe0008   x9: 0x0000000000000000  x10: 0x000000010fe143d0  x11: 0x000300010fe143d0
   x12: 0x000000010fe14400  x13: 0x0000000000000000  x14: 0x0000000000000001  x15: 0x0000000000000003
   x16: 0x00000001b9df9854  x17: 0x00000001ba406184  x18: 0x0000000000000000  x19: 0x00000001080dc000
   x20: 0x000000016b68a5e8  x21: 0x000000010fe09350  x22: 0x0000000000000000  x23: 0x00000001080dc000
   x24: 0x0000000000000001  x25: 0x0000000104b918e0  x26: 0x000000016b68a7f0  x27: 0x000000010fe14fa0
   x28: 0x0000000202a5cf80   fp: 0x000000016b68a5a0   lr: 0x00000001cc374ff8
    sp: 0x000000016b68a590   pc: 0x00000001b9df8020 cpsr: 0x60000000
   esr: 0x92000006 (Data Abort) byte read Translation fault


Any hint on this would be highly appreciated.

Network Extension Crash - establishIPCWithCompletionHandlerr
 
 
Q