Crash while reading data from keychain

Hi, I have observed this crash, can anyone pls help finding its root cause -

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000008
VM Region Info: 0x8 is not in any region.  Bytes before following region: 4374659064
      REGION TYPE                 START - END      [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                   104c00000-104c04000 [   16K] r-x/r-x SM=COW  ... for Endpoint

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

Thread 0 name:  Dispatch queue: com.example
Thread 0:
0   libsystem_kernel.dylib        	0x00000001b25d22d0 0x1b25ce000 + 17104
1   libsystem_kernel.dylib        	0x00000001b25d1660 0x1b25ce000 + 13920
2   libdispatch.dylib             	0x00000001849c7888 0x1849ab000 + 116872
3   libdispatch.dylib             	0x00000001849c7c24 0x1849ab000 + 117796
4   libxpc.dylib                  	0x00000001cfb52e68 0x1cfb45000 + 56936
5   Security                      	0x000000018c319090 0x18c2f9000 + 131216
6   Security                      	0x000000018c319b38 0x18c2f9000 + 133944
7   Security                      	0x000000018c3a4c0c 0x18c2f9000 + 703500
8   Security                      	0x000000018c3a4fd0 0x18c2f9000 + 704464
9   Security                      	0x000000018c3a385c 0x18c2f9000 + 698460
10  Security                      	0x000000018c3a26c8 0x18c2f9000 + 693960
11  Security                      	0x000000018c3a2ff4 0x18c2f9000 + 696308
12  Security                      	0x000000018c3a4ed8 0x18c2f9000 + 704216
13  Security                      	0x000000018c3a0a1c 0x18c2f9000 + 686620
14  Security                      	0x000000018c3a40a0 0x18c2f9000 + 700576
15  common                        	0x000000010836df2c -[KeyChainClient queryValueAsDataWithKey:withStatus:withAccessGroup:thisDeviceOnly:] (in common) (KeyChainClient.mm:53)
16  common                        	0x000000010836e274 -[KeyChainClient getValueAsDataWithKey:withAccessGroup:thisDeviceOnly:] (in common) (KeyChainClient.mm:110)
17  common                        	0x000000010836e298 -[KeyChainClient getValueAsDataWithKey:withAccessGroup:] (in common) (KeyChainClient.mm:115)

You’ve misunderstood what that crash report is telling you. Consider this:

Triggered by Thread:  1

Thread 0 name:  Dispatch queue: com.example
Thread 0:

The first line is telling you that the crash happened on thread 1 but you’re looking at the backtrace for thread 0. Try looking at thread 1’s instead.

Also, if you want more eyes on this, please post the full crash report. Use the instructions in Posting a Crash Report.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Crash while reading data from keychain
 
 
Q