crash smartcard extension macOS 10.15 beta

Our smartcard extension has been working well on the current macOS 10.15. However, when testing on macOS 10.15 beta (19A512f), it crash with the following report, as given below.


Someone experianced this before? It crashes on SecKeyRunAlgorithmAndCopyResult


Process: ctkahp [1381]
Path: /System/Library/Frameworks/CryptoTokenKit.framework/ctkahp.bundle/Contents/MacOS/ctkahp
Identifier: ctkahp
Version: 1.0 (1)
Build Info: CryptoTokenKit-406000000000000~71
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: ctkahp [1381]
User ID: 501


Date/Time: 2019-07-22 09:54:29.257 +0200
OS Version: Mac OS X 10.15 (19A512f)
Report Version: 12
Anonymous UUID: C8914F0B-FF6F-FF9D-EAF6-ECEF627B6A44



Time Awake Since Boot: 9600 seconds


System Integrity Protection: enabled


Crashed Thread: 1 Dispatch queue: com.apple.root.default-qos.overcommit


Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:KERN_INVALID_ADDRESS at 0x0000000000000010
Exception Note: EXC_CORPSE_NOTIFY


Termination Signal:Segmentation fault: 11
Termination Reason:Namespace SIGNAL, Code 0xb

Terminating Process: exc handler [1381]


VM Regions Near 0x10:

-->

__TEXT 000000010a662000-000000010a67f000 [ 116K] r-x/r-x SM=COW /System/Library/Frameworks/CryptoTokenKit.framework/ctkahp.bundle/Contents/MacOS/ctkahp


Application Specific Information:

dyld3 mode


Thread 0:: Dispatch queue: com.apple.main-thread

0 libsystem_kernel.dylib0x00007fff6a1ca396 mach_msg_trap + 10
1 libsystem_kernel.dylib0x00007fff6a1ca8fc mach_msg + 60
2 com.apple.CoreFoundation0x00007fff32ba4d49 __CFRunLoopServiceMachPort + 322
3 com.apple.CoreFoundation0x00007fff32ba42e5 __CFRunLoopRun + 1695
4 com.apple.CoreFoundation0x00007fff32ba39c1 CFRunLoopRunSpecific + 499
5 com.apple.Foundation 0x00007fff3528d0ad -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
6 com.apple.Foundation 0x00007fff3528cfc6 -[NSRunLoop(NSRunLoop) run] + 76
7 com.apple.ctkahp 0x000000010a6643d4 0x10a662000 + 9172
8 libdyld.dylib 0x00007fff6a081c35 start + 1


Thread 1 Crashed:: Dispatch queue: com.apple.root.default-qos.overcommit

0 com.apple.security 0x00007fff3f5ba0d9 SecKeyRunAlgorithmAndCopyResult + 166
1 com.apple.security 0x00007fff3f5bbce8 SecKeyIsAlgorithmSupported + 100
2 com.apple.ctkahp 0x000000010a66da1c 0x10a662000 + 47644
3 com.apple.ctkahp 0x000000010a66caa8 0x10a662000 + 43688
4 com.apple.ctkahp 0x000000010a66d5e7 0x10a662000 + 46567
5 com.apple.ctkahp 0x000000010a66c47b 0x10a662000 + 42107
6 com.apple.ctkahp 0x000000010a669b82 0x10a662000 + 31618
7 com.apple.ctkahp 0x000000010a6692e6 0x10a662000 + 29414
8 com.apple.ctkahp 0x000000010a66fdfb 0x10a662000 + 56827
9 com.apple.ctkahp 0x000000010a668238 0x10a662000 + 25144
10 libxpc.dylib 0x00007fff6a2cc228 _xpc_connection_call_event_handler + 56
11 libxpc.dylib 0x00007fff6a2ca41c _xpc_connection_mach_event + 927
12 libdispatch.dylib 0x00007fff6a03167e _dispatch_client_callout4 + 9
13 libdispatch.dylib 0x00007fff6a046b4b _dispatch_mach_msg_invoke + 435
14 libdispatch.dylib 0x00007fff6a036a50 _dispatch_lane_serial_drain + 263
15 libdispatch.dylib 0x00007fff6a04769e _dispatch_mach_invoke + 481
16 libdispatch.dylib 0x00007fff6a040b91 _dispatch_workloop_worker_thread + 582
17 libsystem_pthread.dylib0x00007fff6a2906d3 _pthread_wqthread.cold.1 + 125
18 libsystem_pthread.dylib0x00007fff6a28a856 _pthread_wqthread + 203
19 libsystem_pthread.dylib0x00007fff6a28a717 start_wqthread + 15