_dispatch_client_callout crash

I received the attached crash report. The problem is that the crash report does not contain the abort reason - it appears to be thrown in the GCD library with no additional information.

Is it a possible deadlock?

Process:               Seashore [99667]
Path:                  /Applications/Seashore.app/Contents/MacOS/Seashore
Identifier:            app.seashore
Version:               3.21 (2023012901)
App Item ID:           1448648921
App External ID:       854746635
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2023-02-15 02:40:23.0077 +0100
OS Version:            macOS 12.6 (21G115)
Report Version:        12
Bridge OS Version:     6.6 (19P6067)
Anonymous UUID:        CC51D019-2854-508B-CBC9-167EB427C752

Sleep/Wake UUID:       C5FE9B0C-AB82-48A3-A201-230F4D383BD0

Time Awake Since Boot: 530000 seconds
Time Since Wake:       2901 seconds

System Integrity Protection: enabled

Crashed Thread:        15

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Thread 0 Crashed:
0   CoreAutoLayout                	0x00007ff81b81cf4e -[NSISEngine valueRestrictionForEngineVarIndex:] + 0 (NSISEngine.m:1641)
1   CoreAutoLayout                	0x00007ff81b814832 AddVarToSortedPriorityVectorList + 20 (NSISObjectiveLinearExpression.m:156)
2   CoreAutoLayout                	0x00007ff81b81493e -[NSISObjectiveLinearExpression addVar:priority:times:processVarNewToReceiver:processVarDroppedFromReceiver:] + 215 (NSISObjectiveLinearExpression.m:214)
3   CoreAutoLayout                	0x00007ff81b81944d _objectiveRow_addColWithPriorityTimes + 244 (NSISEngine_Row.h:393)
4   CoreAutoLayout                	0x00007ff81b833586 -[NSLayoutConstraint _addLoweredExpression:toEngine:lastLoweredConstantWasRounded:mutuallyExclusiveConstraints:] + 221 (NSLayoutConstraint.m:1606)
5   CoreAutoLayout                	0x00007ff81b836b49 -[NSLayoutConstraint _addToEngine:mutuallyExclusiveConstraints:] + 137 (NSLayoutConstraint.m:1656)
6   AppKit                        	0x00007ff816c0e01c __52-[NSView(NSConstraintBasedLayout) _setLayoutEngine:]_block_invoke_2 + 430 (NSView_Layout.m:1323)
7   CoreAutoLayout                	0x00007ff81b81dcf3 -[NSISEngine withBehaviors:performModifications:] + 84 (NSISEngine.m:1988)
8   AppKit                        	0x00007ff816baf82b -[NSView(NSConstraintBasedLayout) _withAutomaticEngineOptimizationDisabled:] + 59 (NSView_Layout.m:1634)
9   AppKit                        	0x00007ff816c0de47 __52-[NSView(NSConstraintBasedLayout) _setLayoutEngine:]_block_invoke + 403 (NSView_Layout.m:1312)
10  AppKit                        	0x00007ff816bb9b7a -[NSView(NSConstraintBasedLayout) _setLayoutEngine:] + 628 (NSView_Layout.m:1296)
11  AppKit                        	0x00007ff816bb8ad9 -[NSView _setSuperview:] + 1188 (NSView.m:3756)
12  AppKit                        	0x00007ff816bb83f9 -[NSView addSubview:] + 145 (NSView.m:2342)
13  AppKit                        	0x00007ff816c01033 -[NSView replaceSubview:with:] + 154 (NSView.m:3520)
14  Seashore                      	0x00000001090d1d61 -[OptionsUtility update] + 243 (OptionsUtility.m:58)
15  Seashore                      	0x00000001090c9f9d -[ToolboxUtility update:] + 152 (ToolboxUtility.m:199)
16  Seashore                      	0x00000001090ca517 -[ToolboxUtility changeToolTo:] + 733 (ToolboxUtility.m:275)
17  Seashore                      	0x00000001090b5234 -[SeaView paste:] + 228 (SeaView.m:870)
18  AppKit                        	0x00007ff816d9c0ce -[NSApplication(NSResponder) sendAction:to:from:] + 288 (appEventRouting.m:1833)
19  AppKit                        	0x00007ff816e90c50 -[NSMenuItem _corePerformAction] + 413 (NSMenuItem.m:1754)
20  AppKit                        	0x00007ff816e90972 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 95 (NSCarbonMenuImpl.m:441)
21  AppKit                        	0x00007ff8171bbb17 -[NSMenu _performActionForItem:atIndex:fromEvent:] + 197 (AppKit_Internal.h:738)
22  AppKit                        	0x00007ff816e8fcba -[NSMenu performKeyEquivalent:] + 418 (NSMenu.m:1277)
23  AppKit                        	0x00007ff8172ee58d routeKeyEquivalent + 656 (appEventRouting.m:817)
24  AppKit                        	0x00007ff816d07830 -[NSApplication(NSEvent) sendEvent:] + 1132 (appEventRouting.m:862)
25  AppKit                        	0x00007ff816fc018b -[NSApplication _handleEvent:] + 65 (NSApplication.m:3301)
26  AppKit                        	0x00007ff816b88d3e -[NSApplication run] + 623 (NSApplication.m:3389)
27  AppKit                        	0x00007ff816b5cc97 NSApplicationMain + 817 (NSApplication.m:9223)
28  dyld                          	0x000000010e5c252e start + 462 (dyldMain.cpp:879)

Thread 1 Crashed:
0   libsystem_kernel.dylib        	0x00007ff81405e0ea __ulock_wait + 10
1   libdispatch.dylib             	0x00007ff813ee2b06 _dlock_wait + 45 (lock.c:326)
2   libdispatch.dylib             	0x00007ff813ee2d95 _dispatch_group_wait_slow + 43 (semaphore.c:214)
3   Seashore                      	0x000000010911528a 0x1090a5000 + 459402 (SeaWhiteboard.m:773)
4   Seashore                      	0x0000000109114fa3 -[SeaWhiteboard renderLoop] + 77 (SeaWhiteboard.m:732)
5   libdispatch.dylib             	0x00007ff813ee10cc _dispatch_call_block_and_release + 12 (init.c:1517)
6   libdispatch.dylib             	0x00007ff813ee2317 _dispatch_client_callout + 8 (object.m:560)
7   libdispatch.dylib             	0x00007ff813ef1c0c _dispatch_root_queue_drain + 673 (inline_internal.h:2622)
8   libdispatch.dylib             	0x00007ff813ef225c _dispatch_worker_thread2 + 160 (queue.c:6935)
9   libsystem_pthread.dylib       	0x00007ff814095f8a _pthread_wqthread + 256 (pthread.c:2612)
10  libsystem_pthread.dylib       	0x00007ff814094f57 start_wqthread + 15 (:-1)

Thread 2:
0   libsystem_kernel.dylib        	0x00007ff81405c97a mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007ff81405cce8 mach_msg + 56 (mach_msg.c:119)
2   CoreFoundation                	0x00007ff81416036d __CFRunLoopServiceMachPort + 319 (CFRunLoop.c:2646)
3   CoreFoundation                	0x00007ff81415e9f8 __CFRunLoopRun + 1276 (CFRunLoop.c:3000)
4   CoreFoundation                	0x00007ff81415de3c CFRunLoopRunSpecific + 562 (CFRunLoop.c:3268)
5   AppKit                        	0x00007ff816d059ce _NSEventThread + 132 (NSEvent.m:5237)
6   libsystem_pthread.dylib       	0x00007ff8140994e1 _pthread_start + 125 (pthread.c:891)
7   libsystem_pthread.dylib       	0x00007ff814094f6b thread_start + 15 (:-1)

Thread 3:
0   libsystem_pthread.dylib       	0x00007ff814094f48 start_wqthread + 0

Thread 4:
0   libsystem_pthread.dylib       	0x00007ff814094f48 start_wqthread + 0

Thread 5:
0   libsystem_pthread.dylib       	0x00007ff814094f48 start_wqthread + 0

Thread 6:
0   libsystem_pthread.dylib       	0x00007ff814094f48 start_wqthread + 0

Thread 7:
0   libsystem_pthread.dylib       	0x00007ff814094f48 start_wqthread + 0

Thread 8:
0   libsystem_pthread.dylib       	0x00007ff814094f48 start_wqthread + 0

Thread 9:
0   libsystem_pthread.dylib       	0x00007ff814094f48 start_wqthread + 0

Thread 10:
0   libsystem_pthread.dylib       	0x00007ff814094f48 start_wqthread + 0

Thread 11:
0   libsystem_pthread.dylib       	0x00007ff814094f48 start_wqthread + 0

Thread 12:
0   libsystem_pthread.dylib       	0x00007ff814094f48 start_wqthread + 0

Thread 13:
0   libsystem_pthread.dylib       	0x00007ff814094f48 start_wqthread + 0

Thread 14:
0   libsystem_pthread.dylib       	0x00007ff814094f48 start_wqthread + 0

Thread 15 Crashed:
0   libsystem_kernel.dylib        	0x00007ff81406300e __pthread_kill + 10
1   libsystem_pthread.dylib       	0x00007ff8140991ff pthread_kill + 263 (pthread.c:1668)
2   libsystem_c.dylib             	0x00007ff813fe4d24 abort + 123 (abort.c:118)
3   libc++abi.dylib               	0x00007ff814055082 abort_message + 241 (abort_message.cpp:78)
4   libc++abi.dylib               	0x00007ff8140461bd demangling_terminate_handler() + 266 (cxa_default_handlers.cpp:71)
5   libobjc.A.dylib               	0x00007ff813f42e11 _objc_terminate() + 96 (objc-exception.mm:701)
6   libc++abi.dylib               	0x00007ff8140544a7 std::__terminate(void (*)()) + 8 (cxa_handlers.cpp:59)
7   libc++abi.dylib               	0x00007ff814054458 std::terminate() + 56 (cxa_handlers.cpp:88)
8   libdispatch.dylib             	0x00007ff813ee232b _dispatch_client_callout + 28 (object.m:563)
9   libdispatch.dylib             	0x00007ff813ef1d40 _dispatch_root_queue_drain + 981 (inline_internal.h:2608)
10  libdispatch.dylib             	0x00007ff813ef225c _dispatch_worker_thread2 + 160 (queue.c:6935)
11  libsystem_pthread.dylib       	0x00007ff814095f8a _pthread_wqthread + 256 (pthread.c:2612)
12  libsystem_pthread.dylib       	0x00007ff814094f57 start_wqthread + 15 (:-1)

Thread 16:
0   libsystem_pthread.dylib       	0x00007ff814094f48 start_wqthread + 0

Thread 17:
0   libsystem_pthread.dylib       	0x00007ff814094f48 start_wqthread + 0

Thread 18:
0   libsystem_pthread.dylib       	0x00007ff814094f48 start_wqthread + 0

Thread 19:
0   libsystem_pthread.dylib       	0x00007ff814094f48 start_wqthread + 0


Thread 15 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x000070000af37000  rcx: 0x000070000af368d8 rdx: 0x0000000000000000
  rdi: 0x000000000001a00b  rsi: 0x0000000000000006  rbp: 0x000070000af36900 rsp: 0x000070000af368d8
   r8: 0x000070000af367a0   r9: 0x00007ff814057fa1  r10: 0x0000000000000000 r11: 0x0000000000000246
  r12: 0x000000000001a00b  r13: 0x0000003000000008  r14: 0x0000000000000006 r15: 0x0000000000000016
  rip: 0x00007ff81406300e  rfl: 0x0000000000000246

Binary Images:
       0x1090a5000 -        0x109138fff Seashore (x86_64)  <9134236F-26B1-3109-AD21-EE2BDAA4E199> /Applications/Seashore.app/Contents/MacOS/Seashore
       0x10e5bd000 -        0x10e628fff dyld (x86_64)  <71FEBCCD-D9DC-3599-9971-2B3407C588A8> /usr/lib/dyld
    0x7ff813edf000 -     0x7ff813f25fff libdispatch.dylib (x86_64)  <1A04B380-76E4-3E4B-B0FC-9837533D021D> /usr/lib/system/libdispatch.dylib
    0x7ff813f26000 -     0x7ff813f5ffff libobjc.A.dylib (x86_64h)  <4D9B0DCA-7151-3875-B98E-B255DB8267A8> /usr/lib/libobjc.A.dylib
    0x7ff813f63000 -     0x7ff813febfff libsystem_c.dylib (x86_64)  <E42E9D7A-03B4-340B-B61E-DCD45FD4ACC0> /usr/lib/system/libsystem_c.dylib
    0x7ff814045000 -     0x7ff81405afff libc++abi.dylib (x86_64)  <7B800BB6-32E7-3597-B292-2C4DA4C377B1> /usr/lib/libc++abi.dylib
    0x7ff81405b000 -     0x7ff814092fff libsystem_kernel.dylib (x86_64)  <8CC28466-FD2F-3C80-9834-9525B7BEAC19> /usr/lib/system/libsystem_kernel.dylib
    0x7ff814093000 -     0x7ff81409efff libsystem_pthread.dylib (x86_64)  <B5454E27-E8C7-3FDB-B77F-714F1E82E70B> /usr/lib/system/libsystem_pthread.dylib
    0x7ff8140e0000 -     0x7ff8145e2fff CoreFoundation (x86_64h)  <93C48919-68AF-367E-9A67-DB4159BC962C> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7ff816b59000 -     0x7ff8179e8fff AppKit (x86_64)  <06015263-62AC-3B08-A298-DC835C18452A> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x7ff81b80e000 -     0x7ff81b855fff CoreAutoLayout (x86_64)  <FBAA477F-EDFA-3A70-A669-0AB3AF3F1BB9> /System/Library/PrivateFrameworks/CoreAutoLayout.framework/Versions/A/CoreAutoLayout


External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=1.1G resident=0K(0%) swapped_out_or_unallocated=1.1G(100%)
Writable regions: Total=1.9G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.9G(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework              1632K       16 
Activity Tracing                   256K        1 
CG backing stores                 2688K        4 
CG image                          2540K       28 
ColorSync                          248K       32 
CoreAnimation                     49.2M      187 
CoreGraphics                        12K        2 
CoreUI image data                 5424K       41 
Foundation                          52K        2 
Image IO                           140K       34 
Kernel Alloc Once                    8K        1 
MALLOC                           415.3M       95 
MALLOC guard page                   48K        9 
MALLOC_MEDIUM (reserved)           1.1G        9         reserved VM address space (unallocated)
MALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)
ObjC additional data                15K        1 
STACK GUARD                       56.1M       20 
Stack                             17.6M       20 
VM_ALLOCATE                         80K       18 
__CTF                               756        1 
__DATA                            30.5M      567 
__DATA_CONST                      29.3M      320 
__DATA_DIRTY                      1536K      195 
__FONT_DATA                          4K        1 
__LINKEDIT                       648.0M       84 
__TEXT                           496.2M      586 
__UNICODE                          592K        1 
dyld private memory               1024K        1 
mapped file                      168.4M      101 
shared memory                      776K       17 
===========                     =======  ======= 
TOTAL                              3.3G     2395 
TOTAL, minus reserved VM space     1.9G     2395 


EOF

Any ideas?

Do you have a third-party crash reporter in play here?

The reason I ask is that your crash report is inconsistent. See this:

Crashed Thread:        15

and this:

Thread 0 Crashed:

and this:

Thread 15 Crashed:

The Apple crash reporter is generally pretty good about avoiding problems like this.


Anyway, assuming that thread 15 is the one that crashed, its backtrace looks like this:

Thread 15 Crashed:
0   libsystem_kernel.dylib  … __pthread_kill + 10
1   libsystem_pthread.dylib … pthread_kill + 263 (pthread.c:1668)
2   libsystem_c.dylib       … abort + 123 (abort.c:118)
3   libc++abi.dylib         … abort_message + 241 (abort_message.cpp:78)
4   libc++abi.dylib         … demangling_terminate_handler() + 266 (cxa_default_handlers.cpp:71)
5   libobjc.A.dylib         … _objc_terminate() + 96 (objc-exception.mm:701)
6   libc++abi.dylib         … std::__terminate(void (*)()) + 8 (cxa_handlers.cpp:59)
7   libc++abi.dylib         … std::terminate() + 56 (cxa_handlers.cpp:88)
8   libdispatch.dylib       … _dispatch_client_callout + 28 (object.m:563)

Frame 7 through 0 are what you see when some code throws an unhandled language exception. Frame 8 indicates that Dispatch is calling a block on queue. There’s no Last Exception Backtrace section, so it’s likely that this was a C++ exception.

Share and Enjoy

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

Did you figure things out?

I am see a very similar stack trace during a TestFlight test - and I am not quite sure how to track it down

0 libsystem_kernel.. _pthread_kill
1 libsystem_pthre…. pthread_kill
2 libsystem_c.dylib abort
3 libc++abi.dylib abort_message
4 libc++abi.dylib demangling_terminate_handler()
5 libobjc.A.dylib _objc_terminate()|
6 libc++abi.dylib std::_ terminate (void (*)())
7 libc++abi.dylib std::terminate()
8 libdispatch.dylib _dispatch_client_callout  <---
9 libdispatch.dylib _dispatch_root_queue_drain
10 libdispatch.dylib _dispatch_worker_thread2
11 libsystem_pthre. _pthread_wathread
12 libsystem_pthre.. start_wathread

Please start a new thread for this, making sure to include your full crash report per the advice in Posting a Crash Report. Tag it with Debugging so that I see it. Also, if you want to post a link here that points to your new thread, that’d be fab.

Share and Enjoy

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

_dispatch_client_callout crash
 
 
Q