The infinite connection callback observed for some Bluetooth devices

Hi guys,

I observed the infinite connection callback(inSelector) for some Bluetooth devices (such as an iPhone SE or Mac Mini) even when I powered off them. However, the issue is not reproducible easily.

  • (IOBluetoothUserNotification *)registerForConnectNotifications:(id)observer selector:(SEL)inSelector
    2448 Thread_72739   DispatchQueue_1: com.apple.main-thread  (serial)
        + 2448 start  (in dyld) + 1903  [0x7ff818abf41f]
        +   2448 main  (in Symantec Endpoint Protection) + 1708  [0x10550ba9c]  main.mm:298
        +     2448 NSApplicationMain  (in AppKit) + 817  [0x7ff81bf4aed2]
        +       2448 -[NSApplication run]  (in AppKit) + 586  [0x7ff81bf76cb8]
        +         2448 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]  (in AppKit) + 1214  [0x7ff81bf8464a]
        +           2448 _DPSNextEvent  (in AppKit) + 858  [0x7ff81bf857a0]
        +             2448 _BlockUntilNextEventMatchingListInModeWithFilter  (in HIToolbox) + 64  [0x7ff82295bb38]
        +               2447 ReceiveNextEventCommon  (in HIToolbox) + 657  [0x7ff82295bdde]
        +               ! 2447 RunCurrentEventLoopInMode  (in HIToolbox) + 292  [0x7ff82295bfcd]
        +               !   2447 CFRunLoopRunSpecific  (in CoreFoundation) + 560  [0x7ff818ef3071]
        +               !     2426 __CFRunLoopRun  (in CoreFoundation) + 1365  [0x7ff818ef3c30]
        +               !     : 2426 __CFRunLoopServiceMachPort  (in CoreFoundation) + 145  [0x7ff818ef51af]
        +               !     :   2426 mach_msg  (in libsystem_kernel.dylib) + 19  [0x7ff818dda89a]
        +               !     :     2426 mach_msg_overwrite  (in libsystem_kernel.dylib) + 692  [0x7ff818de15e4]
        +               !     :       2426 mach_msg2_internal  (in libsystem_kernel.dylib) + 78  [0x7ff818de872d]
        +               !     :         2426 mach_msg2_trap  (in libsystem_kernel.dylib) + 10  [0x7ff818dda5b2]
        +               !     20 __CFRunLoopRun  (in CoreFoundation) + 2452  [0x7ff818ef406f]
        +               !     : 20 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__  (in CoreFoundation) + 9  [0x7ff818f34235]
        +               !     :   20 _dispatch_main_queue_callback_4CF  (in libdispatch.dylib) + 31  [0x7ff818c84c07]
        +               !     :     20 _dispatch_main_queue_drain  (in libdispatch.dylib) + 954  [0x7ff818c84fcf]
        +               !     :       20 _dispatch_client_callout  (in libdispatch.dylib) + 8  [0x7ff818c78033]
        +               !     :         20 _dispatch_call_block_and_release  (in libdispatch.dylib) + 12  [0x7ff818c76d91]
        +               !     :           20 __59-[IOBluetoothConcreteUserNotification peerConnected:error:]_block_invoke  (in IOBluetooth) + 146  [0x7ff82a0a5769]
        +               !     :             17 -[BluetoothConnection deviceIsConnected:fromDevice:]  (in Symantec Endpoint Protection) + 843  [0x10550ae7b]  main.mm:90
        +               !     :             | 17 NSLog  (in Foundation) + 132  [0x7ff819d6c7e5]
        +               !     :             |   17 _NSLogv  (in Foundation) + 97  [0x7ff819e36af8]
        +               !     :             |     15 _CFLogvEx3  (in CoreFoundation) + 185  [0x7ff818f0701c]
        +               !     :             |     + 15 _os_log_with_args_impl  (in libsystem_trace.dylib) + 439  [0x7ff818b9f70e]
        +               !     :             |     +   15 _os_log_impl_flatten_and_send  (in libsystem_trace.dylib) + 2211  [0x7ff818b9c0ca]
        +               !     :             |     +     15 _os_log_fmt_flatten_object  (in libsystem_trace.dylib) + 205  [0x7ff818b9eb1b]
        +               !     :             |     +       15 _os_log_fmt_flatten_NSCF  (in libsystem_trace.dylib) + 42  [0x7ff818b9f245]
        +               !     :             |     +         15 _NS_os_log_callback  (in Foundation) + 387  [0x7ff819d40f97]
        +               !     :             |     +           15 -[NSString(NSStringOtherEncodings) getBytes:maxLength:usedLength:encoding:options:range:remainingRange:]  (in Foundation) + 216  [0x7ff819d26b47]
        +               !     :             |     +             15 __CFStringEncodeByteStream  (in CoreFoundation) + 188  [0x7ff818ea10fb]
        +               !     :             |     +               15 __CFToUTF8  (in CoreFoundation) + 0  [0x7ff818ea2b78]
        +               !     :             |     1 _CFLogvEx3  (in CoreFoundation) + 207  [0x7ff818f07032]
        +               !     :             |     + 1 also_do_stderr  (in CoreFoundation) + 247  [0x7ff818f0718a]
        +               !     :             |     +   1 fstat$INODE64  (in libsystem_kernel.dylib) + 10  [0x7ff818ddad6e]
        +               !     :             |     1 _CFLogvEx3  (in CoreFoundation) + 264  [0x7ff818f0706b]
        +               !     :             |       1 _CFLogvEx2Predicate  (in CoreFoundation) + 143  [0x7ff818f07297]
        +               !     :             |         1 _CFStringCreateWithFormatAndArgumentsAux2  (in CoreFoundation) + 28  [0x7ff818ea575c]
        +               !     :             |           1 _CFStringCreateWithFormatAndArgumentsReturningMetadata  (in CoreFoundation) + 68  [0x7ff818fd8536]
        +               !     :             |             1 CFStringCreateMutable  (in CoreFoundation) + 69  [0x7ff818e8b53b]
        +               !     :             |               1 _CFRuntimeCreateInstance  (in CoreFoundation) + 395  [0x7ff818e7c251]
        +               !     :             |                 1 nanov2_calloc  (in libsystem_malloc.dylib) + 392  [0x7ff818c4aff0]
        +               !     :             1 -[BluetoothConnection deviceIsConnected:fromDevice:]  (in Symantec Endpoint Protection) + 1341  [0x10550b06d]  main.mm:104
        +               !     :             | 1 NSLog  (in Foundation) + 132  [0x7ff819d6c7e5]
        +               !     :             |   1 _NSLogv  (in Foundation) + 97  [0x7ff819e36af8]
        +               !     :             |     1 _CFLogvEx3  (in CoreFoundation) + 185  [0x7ff818f0701c]
        +               !     :             |       1 _os_log_with_args_impl  (in libsystem_trace.dylib) + 439  [0x7ff818b9f70e]
        +               !     :             |         1 _os_log_impl_flatten_and_send  (in libsystem_trace.dylib) + 2370  [0x7ff818b9c169]
        +               !     :             |           1 dyld4::APIs::_dyld_is_memory_immutable(void const*, unsigned long)  (in dyld) + 198  [0x7ff818af1884]
        +               !     :             |             1 dyld4::RuntimeState::inPermanentRange(unsigned long, unsigned long, unsigned char*, dyld4::Loader const**)  (in dyld) + 48  [0x7ff818ac76e2]
        +               !     :             1 -[BluetoothConnection deviceIsConnected:fromDevice:]  (in Symantec Endpoint Protection) + 1538  [0x10550b132]  main.mm:110
        +               !     :             | 1 -[IOBluetoothDevice closeConnection]  (in IOBluetooth) + 292  [0x7ff82a094266]
        +               !     :             |   1 -[CBCentralManager cancelPeripheralConnection:]  (in CoreBluetooth) + 149  [0x7ff82cf5a675]
        +               !     :             |     1 -[CBCentralManager cancelPeripheralConnection:options:]  (in CoreBluetooth) + 217  [0x7ff82cf5a4e9]
        +               !     :             |       1 -[CBManager sendMsg:args:]  (in CoreBluetooth) + 363  [0x7ff82cfa9e4b]
        +               !     :             |         1 -[CBXpcConnection sendMsg:args:]  (in CoreBluetooth) + 130  [0x7ff82cf4b802]
        +               !     :             |           1 xpc_connection_send_message  (in libxpc.dylib) + 89  [0x7ff818b6207f]
        +               !     :             |             1 _xpc_connection_enqueue  (in libxpc.dylib) + 197  [0x7ff818b62188]
        +               !     :             |               1 dispatch_mach_send_with_result  (in libdispatch.dylib) + 49  [0x7ff818c90bf5]
        +               !     :             |                 1 _dispatch_mach_send_msg  (in libdispatch.dylib) + 320  [0x7ff818c90b33]
        +               !     :             |                   1 _dispatch_mach_send_drain  (in libdispatch.dylib) + 349  [0x7ff818c94186]
        +               !     :             |                     1 _dispatch_mach_msg_send  (in libdispatch.dylib) + 1020  [0x7ff818c949f3]
        +               !     :             |                       1 mach_msg2_internal  (in libsystem_kernel.dylib) + 78  [0x7ff818de872d]
        +               !     :             |                         1 mach_msg2_trap  (in libsystem_kernel.dylib) + 10  [0x7ff818dda5b2]
        +               !     :             1 -[BluetoothConnection deviceIsConnected:fromDevice:]  (in Symantec Endpoint Protection) + 739  [0x10550ae13]  main.mm:88
        +               !     :               1 -[IOBluetoothDevice registerForDisconnectNotification:selector:]  (in IOBluetooth) + 99  [0x7ff82a09213e]
        +               !     :                 1 +[IOBluetoothNSObjCUserNotification withObserver:selector:name:object:]  (in IOBluetooth) + 99  [0x7ff82a0a75b7]
        +               !     :                   1 -[IOBluetoothNSObjCUserNotification initWithObserver:selector:name:object:]  (in IOBluetooth) + 192  [0x7ff82a0a76a9]
        +               !     :                     1 _os_log_impl  (in libsystem_trace.dylib) + 21  [0x7ff818b9b767]
        +               !     :                       1 _os_log  (in libsystem_trace.dylib) + 128  [0x7ff818b9b7fc]
        +               !     :                         1 _os_log_impl_flatten_and_send  (in libsystem_trace.dylib) + 2211  [0x7ff818b9c0ca]
        +               !     :                           1 _os_log_fmt_flatten_object  (in libsystem_trace.dylib) + 534  [0x7ff818b9ec64]
        +               !     :                             1 objc_msgSend  (in libobjc.A.dylib) + 33  [0x7ff818a844a1]
        +               !     1 __CFRunLoopRun  (in CoreFoundation) + 1148  [0x7ff818ef3b57]
        +               !       1 __CFRunLoopDoObservers  (in CoreFoundation) + 482  [0x7ff818ef44ab]
        +               !         1 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__  (in CoreFoundation) + 23  [0x7ff818ef4584]
        +               !           1 _NSGestureRecognizerUpdate  (in AppKit) + 1630  [0x7ff81c0eab88]
        +               !             1 _NSGestureRecognizerRemoveObjectsFromArrayAndApplyBlocks  (in AppKit) + 160  [0x7ff81c0eb171]
        +               !               1 -[__NSArrayM getObjects:range:]  (in CoreFoundation) + 0  [0x7ff818ea3439]
        +               1 ReceiveNextEventCommon  (in HIToolbox) + 675  [0x7ff82295bdf0]
        +                 1 checkForSlug  (in HIToolbox) + 0  [0x7ff822aa923f]
    
    2448 Thread_1868034   DispatchQueue_33: com.apple.bluetooth.iobluetooth.coordinatorQueue  (serial)
        + 2448 start_wqthread  (in libsystem_pthread.dylib) + 15  [0x7ff818e14bbf]
        +   2448 _pthread_wqthread  (in libsystem_pthread.dylib) + 327  [0x7ff818e15c55]
        +     2448 _dispatch_workloop_worker_thread  (in libdispatch.dylib) + 765  [0x7ff818c893fc]
        +       2448 _dispatch_lane_invoke  (in libdispatch.dylib) + 417  [0x7ff818c7ed6c]
        +         2448 _dispatch_lane_serial_drain  (in libdispatch.dylib) + 393  [0x7ff818c7e088]
        +           2448 _dispatch_lane_invoke  (in libdispatch.dylib) + 417  [0x7ff818c7ed6c]
        +             2098 _dispatch_lane_serial_drain  (in libdispatch.dylib) + 769  [0x7ff818c7e200]
        +             ! 2098 _dispatch_client_callout  (in libdispatch.dylib) + 8  [0x7ff818c78033]
        +             !   2097 _dispatch_call_block_and_release  (in libdispatch.dylib) + 12  [0x7ff818c76d91]
        +             !   : 2097 __30-[CBXpcConnection _handleMsg:]_block_invoke  (in CoreBluetooth) + 66  [0x7ff82cf4c892]
        +             !   :   2097 -[CBManager xpcConnectionDidReceiveMsg:args:]  (in CoreBluetooth) + 177  [0x7ff82cf4c981]
        +             !   :     2097 -[CBClassicManager handleMsg:args:]  (in CoreBluetooth) + 695  [0x7ff82cf8bcb7]
        +             !   :       2096 -[CBClassicManager handlePeerConnectionStateUpdated:]  (in CoreBluetooth) + 317  [0x7ff82cf8c12d]
        +             !   :       | 2096 __43-[IOBluetoothCoreBluetoothCoordinator init]_block_invoke  (in IOBluetooth) + 973  [0x7ff82a0e0734]
        +             !   :       |   2096 _CF_forwarding_prep_0  (in CoreFoundation) + 120  [0x7ff818ed72d8]
        +             !   :       |     2096 ___forwarding___  (in CoreFoundation) + 756  [0x7ff818ed765b]
        +             !   :       |       1605 -[IOBluetoothCoreBluetoothCoordinator forwardInvocation:]  (in IOBluetooth) + 333  [0x7ff82a0e2944]
        +             !   :       |       + 1427 -[NSConcreteHashTable countByEnumeratingWithState:objects:count:]  (in Foundation) + 116  [0x7ff819d54896]
        +             !   :       |       + ! 1229 objc_loadWeak  (in libobjc.A.dylib) + 15  [0x7ff818a89dd6]
        +             !   :       |       + ! : 1229 objc_loadWeakRetained  (in libobjc.A.dylib) + 163,400,...  [0x7ff818a89e88,0x7ff818a89f75,...]
        +             !   :       |       + ! 52 readARCWeakAtWithSentinel  (in Foundation) + 0,29,...  [0x7ff819d26140,0x7ff819d2615d,...]
        +             !   :       |       + ! 47 objc_autorelease  (in libobjc.A.dylib) + 6,0,...  [0x7ff818a89336,0x7ff818a89330,...]
        +             !   :       |       + ! 44 objc_object::rootAutorelease2()  (in libobjc.A.dylib) + 61,84,...  [0x7ff818a89637,0x7ff818a8964e,...]
        +             !   :       |       + ! 41 objc_object::rootAutorelease2()  (in libobjc.A.dylib) + 66  [0x7ff818a8963c]
        +             !   :       |       + ! : 41 AutoreleasePoolPage::add(objc_object*)  (in libobjc.A.dylib) + 10,175,...  [0x7ff818aa430c,0x7ff818aa43b1,...]
        +             !   :       |       + ! 7 objc_object::rootAutorelease2()  (in libobjc.A.dylib) + 76  [0x7ff818a89646]
        +             !   :       |       + ! : 7 AutoreleasePoolPage::autoreleaseFullPage(objc_object*, AutoreleasePoolPage*)  (in libobjc.A.dylib) + 80  [0x7ff818a8fdd2]
        +             !   :       |       + ! :   7 _malloc_zone_memalign  (in libsystem_malloc.dylib) + 275  [0x7ff818c65fc9]
        +             !   :       |       + ! :     4 small_memalign  (in libsystem_malloc.dylib) + 60  [0x7ff818c4fba2]
        +             !   :       |       + ! :     | 4 small_malloc_should_clear  (in libsystem_malloc.dylib) + 241  [0x7ff818c4a21b]
        +             !   :       |       + ! :     |   2 small_malloc_from_free_list  (in libsystem_malloc.dylib) + 394  [0x7ff818c4aa0b]
        +             !   :       |       + ! :     |   + 2 small_free_list_add_ptr  (in libsystem_malloc.dylib) + 245  [0x7ff818c4edbe]
        +             !   :       |       + ! :     |   2 small_malloc_from_free_list  (in libsystem_malloc.dylib) + 157,335  [0x7ff818c4a91e,0x7ff818c4a9d0]
        +             !   :       |       + ! :     2 small_memalign  (in libsystem_malloc.dylib) + 811  [0x7ff818c4fe91]
        +             !   :       |       + ! :     | 1 free_small  (in libsystem_malloc.dylib) + 912  [0x7ff818c4ccba]
        +             !   :       |       + ! :     | + 1 small_free_list_add_ptr  (in libsystem_malloc.dylib) + 245  [0x7ff818c4edbe]
        +             !   :       |       + ! :     | 1 free_small  (in libsystem_malloc.dylib) + 688  [0x7ff818c4cbda]
        +             !   :       |       + ! :     1 default_zone_memalign  (in libsystem_malloc.dylib) + 22  [0x7ff818c4f9e4]
        +             !   :       |       + ! 4 objc_loadWeak  (in libobjc.A.dylib) + 0,8  [0x7ff818a89dc7,0x7ff818a89dcf]
        +             !   :       |       + ! 3 DYLD-STUB$$objc_loadWeak  (in Foundation) + 0  [0x7ff81a3ca122]
        +             !   :       |       + 120 objc_msgSend  (in libobjc.A.dylib) + 46,41,...  [0x7ff818a844ae,0x7ff818a844a9,...]
        +             !   :       |       + 38 -[NSConcreteHashTable countByEnumeratingWithState:objects:count:]  (in Foundation) + 102,87,...  [0x7ff819d54888,0x7ff819d54879,...]
        +             !   :       |       + 20 readARCWeakAtWithSentinel  (in Foundation) + 30  [0x7ff819d2615e]
        +             !   :       |       391 -[IOBluetoothCoreBluetoothCoordinator forwardInvocation:]  (in IOBluetooth) + 246  [0x7ff82a0e28ed]
        +             !   :       |       + 346 -[NSInvocation selector]  (in CoreFoundation) + 55  [0x7ff818ed7aef]
        +             !   :       |       + ! 104 -[NSInvocation getArgument:atIndex:]  (in CoreFoundation) + 138  [0x7ff818ed7b9d]
        +             !   :       |       + ! : 65 __NSI1  (in CoreFoundation) + 240,8,...  [0x7ff818ed7dfc,0x7ff818ed7d14,...]
        +             !   :       |       + ! : 22 __NSI0  (in CoreFoundation) + 7,20,...  [0x7ff818ed7e91,0x7ff818ed7e9e,...]
        +             !   :       |       + ! : 17 __NSI1  (in CoreFoundation) + 245  [0x7ff818ed7e01]
        +             !   :       |       + ! :   12 _platform_bzero$VARIANT$Haswell  (in libsystem_platform.dylib) + 10,115,...  [0x7ff818e43e6a,0x7ff818e43ed3,...]
        +             !   :       |       + ! :   5 DYLD-STUB$$__bzero  (in libsystem_platform.dylib) + 0  [0x7ff818e4a526]
        +             !   :       |       + ! 101 -[NSInvocation getArgument:atIndex:]  (in CoreFoundation) + 101  [0x7ff818ed7b78]
        +             !   :       |       + ! : 41 -[NSMethodSignature _argInfo:]  (in CoreFoundation) + 14  [0x7ff818ed6bb5]
        +             !   :       |       + ! : | 38 _getFrameDescriptor  (in CoreFoundation) + 61,0,...  [0x7ff8190002ff,0x7ff8190002c2,...]
        +             !   :       |       + ! : | 3 _getFrameDescriptor  (in CoreFoundation) + 80  [0x7ff819000312]
        +             !   :       |       + ! : |   3 __CFGetSignatureROMEntryAtIndex  (in CoreFoundation) + 13  [0x7ff818f9ca6d]
        +             !   :       |       + ! : 32 -[NSMethodSignature _argInfo:]  (in CoreFoundation) + 50,0,...  [0x7ff818ed6bd9,0x7ff818ed6ba7,...]
        +             !   :       |       + ! : 28 objc_msgSend  (in libobjc.A.dylib) + 172,0,...  [0x7ff818a8452c,0x7ff818a84480,...]
        +             !   :       |       + ! 85 -[NSInvocation getArgument:atIndex:]  (in CoreFoundation) + 59  [0x7ff818ed7b4e]
        +             !   :       |       + ! : 35 objc_msgSend  (in libobjc.A.dylib) + 172,0,...  [0x7ff818a8452c,0x7ff818a84480,...]
        +             !   :       |       + ! : 32 -[NSMethodSignature numberOfArguments]  (in CoreFoundation) + 9  [0x7ff818ed6bf6]
        +             !   :       |       + ! : | 26 _getFrameDescriptor  (in CoreFoundation) + 0,23,...  [0x7ff8190002c2,0x7ff8190002d9,...]
        +             !   :       |       + ! : | 6 _getFrameDescriptor  (in CoreFoundation) + 80  [0x7ff819000312]
        +             !   :       |       + ! : |   6 __CFGetSignatureROMEntryAtIndex  (in CoreFoundation) + 9  [0x7ff818f9ca69]
        +             !   :       |       + ! : 18 -[NSMethodSignature numberOfArguments]  (in CoreFoundation) + 9,0  [0x7ff818ed6bf6,0x7ff818ed6bed]
        +             !   :       |       + ! 45 -[NSInvocation getArgument:atIndex:]  (in CoreFoundation) + 1,27,...  [0x7ff818ed7b14,0x7ff818ed7b2e,...]
        +             !   :       |       + ! 11 objc_msgSend  (in libobjc.A.dylib) + 6,56,...  [0x7ff818a84486,0x7ff818a844b8,...]
        +             !   :       |       + 32 -[NSInvocation selector]  (in CoreFoundation) + 27,4,...  [0x7ff818ed7ad3,0x7ff818ed7abc,...]
        +             !   :       |       + 13 objc_msgSend  (in libobjc.A.dylib) + 33,60,...  [0x7ff818a844a1,0x7ff818a844bc,...]
        +             !   :       |       86 -[IOBluetoothCoreBluetoothCoordinator forwardInvocation:]  (in IOBluetooth) + 257  [0x7ff82a0e28f8]
        +             !   :       |       + 67 class_respondsToSelector_inst  (in libobjc.A.dylib) + 26  [0x7ff818a8a214]
        +             !   :       |       + ! 43 lookUpImpOrNilTryCache  (in libobjc.A.dylib) + 87,42,...  [0x7ff818aa04c6,0x7ff818aa0499,...]
        +             !   :       |       + ! 24 lookUpImpOrNilTryCache  (in libobjc.A.dylib) + 82  [0x7ff818aa04c1]
        +             !   :       |       + !   24 cache_getImp  (in libobjc.A.dylib) + 37,41,...  [0x7ff818a84415,0x7ff818a84419,...]
        +             !   :       |       + 13 objc_opt_respondsToSelector  (in libobjc.A.dylib) + 0,32,...  [0x7ff818aa4ebf,0x7ff818aa4edf,...]
        +             !   :       |       + 6 class_respondsToSelector_inst  (in libobjc.A.dylib) + 7,2,...  [0x7ff818a8a201,0x7ff818a8a1fc,...]
        +             !   :       |       14 -[IOBluetoothCoreBluetoothCoordinator forwardInvocation:]  (in IOBluetooth) + 168,285,...  [0x7ff82a0e289f,0x7ff82a0e2914,...]
        +             !   :       1 -[CBClassicManager handlePeerConnectionStateUpdated:]  (in CoreBluetooth) + 127  [0x7ff82cf8c06f]
        +             !   :         1 -[CBClassicPeer handlePeerUpdated:]  (in CoreBluetooth) + 3775  [0x7ff82cf4e5af]
        +             !   :           1 -[__NSDictionaryI objectForKeyedSubscript:]  (in CoreFoundation) + 263  [0x7ff818eddd0c]
        +             !   1 _Block_release  (in libsystem_blocks.dylib) + 233  [0x7ff818b5357e]
        +             !     1 _call_dispose_helpers_excp  (in libsystem_blocks.dylib) + 37  [0x7ff818b53752]
        +             !       1 __destroy_helper_block_e8_32s40s48s  (in CoreBluetooth) + 24  [0x7ff82cf56f98]
        +             !         1 -[OS_xpc_object dealloc]  (in libxpc.dylib) + 17  [0x7ff818b5a70a]
        +             !           1 _xpc_dictionary_dispose  (in libxpc.dylib) + 111  [0x7ff818b5ab6c]
        +             !             1 -[OS_xpc_payload dealloc]  (in libxpc.dylib) + 17  [0x7ff818b5d63d]
        +             !               1 _dispatch_dispose  (in libdispatch.dylib) + 115  [0x7ff818c773e3]
        +             !                 1 _szone_free  (in libsystem_malloc.dylib) + 73  [0x7ff818c5d6b4]
        +             350 _dispatch_lane_serial_drain  (in libdispatch.dylib) + 806  [0x7ff818c7e225]
        +               347 objc_autoreleasePoolPop  (in libobjc.A.dylib) + 227  [0x7ff818a87979]
        +               : 316 AutoreleasePoolPage::releaseUntil(objc_object**)  (in libobjc.A.dylib) + 168  [0x7ff818a8a61c]
        +               : | 315 objc_release  (in libobjc.A.dylib) + 36,98,...  [0x7ff818a86cb4,0x7ff818a86cf2,...]
        +               : | 1 -[NSInvocation dealloc]  (in CoreFoundation) + 101  [0x7ff818ed8e63]
        +               : 31 AutoreleasePoolPage::releaseUntil(objc_object**)  (in libobjc.A.dylib) + 70,139,...  [0x7ff818a8a5ba,0x7ff818a8a5ff,...]
        +               2 AutoreleasePoolPage::kill()  (in libobjc.A.dylib) + 27  [0x7ff818a8dfc3]
        +               1 AutoreleasePoolPage::kill()  (in libobjc.A.dylib) + 118  [0x7ff818a8e01e]
        +                 1 free_small  (in libsystem_malloc.dylib) + 600  [0x7ff818c4cb82]
        +                   1 small_free_list_find_by_ptr  (in libsystem_malloc.dylib) + 147  [0x7ff818c4f29e]

Looks like there are many -[CBManager xpcConnectionDidReceiveMsg:args:] calls when the issue occurs based on the sample, so it might be caused by the XPC connection with bluetoothd?

Has anyone else experienced this issue, or any workaround for it? such as should I restart the bluetoothd?

Btw, The issue can be stopped after restarting the bluetoothd since the XPC connection has been reset.

The infinite connection callback observed for some Bluetooth devices
 
 
Q