Crash (segmentation fault) on _swift_release_dealloc

This crash report for one of my apps was downloaded by Xcode. Apparently the app crashed while releasing an object of type Scan.File, which is a Swift class held in an array in the Scan.Directory class. I'm not doing any manual reference counting or low-level stuff with that object.

What could cause such a crash?

Process:               MyApp [61558]
Path:                  /Applications/MyApp.app/Contents/MacOS/MyApp
Identifier:            com.example.myApp
Version:               4.12.3 (164)
App Item ID:           590386474
App External ID:       867640135
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
User ID:               502

Date/Time:             2024-10-10 16:23:55.1694 +0200
OS Version:            macOS 14.6.1 (23G93)
Report Version:        12
Anonymous UUID:        3808A18F-D75E-C282-4D53-533A0CEC5914

Sleep/Wake UUID:       907C3017-8E11-44DF-BFAC-8BDE24EA4E1E

Time Awake Since Boot: 330000 seconds
Time Since Wake:       11 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0xfffffffffffffff0
Exception Codes:       0x0000000000000001, 0xfffffffffffffff0

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process:   exc handler [61558]

VM Region Info: 0xfffffffffffffff0 is not in any region.  Bytes after previous region: 18446603336221855729  
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      shared memory            7ffffff5e000-7ffffff5f000 [    4K] r-x/r-x SM=SHM  
--->  
      UNUSED SPACE AT END


Thread 0 Crashed:
0   libswiftCore.dylib            	0x00007ff82443222d _swift_release_dealloc + 13 (HeapObject.cpp:832)
1   libswiftCore.dylib            	0x00007ff824432bdb bool swift::RefCounts>::doDecrementSlow<(swift::PerformDeinit)1>(swift::RefCountBitsT<(swift::RefCountInlinedness)1>, unsigned int) + 123 (RefCount.h:0)
2   MyApp                         	0x000000010b56777c Scan.File.deinit + 28 (:0)
3   MyApp                         	0x000000010b567839 Scan.File.__deallocating_deinit + 9 (Scan.swift:0)
4   libswiftCore.dylib            	0x00007ff824432230 _swift_release_dealloc + 16 (HeapObject.cpp:832)
5   libswiftCore.dylib            	0x00007ff824432bdb bool swift::RefCounts>::doDecrementSlow<(swift::PerformDeinit)1>(swift::RefCountBitsT<(swift::RefCountInlinedness)1>, unsigned int) + 123 (RefCount.h:0)
6   libswiftCore.dylib            	0x00007ff82441fb5a swift_arrayDestroy + 138 (Array.cpp:223)
7   libswiftCore.dylib            	0x00007ff8241a3ada _ContiguousArrayStorage.__deallocating_deinit + 42 (ContiguousArrayBuffer.swift:81)
8   libswiftCore.dylib            	0x00007ff824432230 _swift_release_dealloc + 16 (HeapObject.cpp:832)
9   libswiftCore.dylib            	0x00007ff824432bdb bool swift::RefCounts>::doDecrementSlow<(swift::PerformDeinit)1>(swift::RefCountBitsT<(swift::RefCountInlinedness)1>, unsigned int) + 123 (RefCount.h:0)
10  MyApp                      	0x000000010b5678aa Scan.Directory.__deallocating_deinit + 26 (:0)
11  libswiftCore.dylib            	0x00007ff824432230 _swift_release_dealloc + 16 (HeapObject.cpp:832)
12  libswiftCore.dylib            	0x00007ff824432bdb bool swift::RefCounts>::doDecrementSlow<(swift::PerformDeinit)1>(swift::RefCountBitsT<(swift::RefCountInlinedness)1>, unsigned int) + 123 (RefCount.h:0)
13  libswiftCore.dylib            	0x00007ff82441fb5a swift_arrayDestroy + 138 (Array.cpp:223)
14  libswiftCore.dylib            	0x00007ff8241a3ada _ContiguousArrayStorage.__deallocating_deinit + 42 (ContiguousArrayBuffer.swift:81)
15  libswiftCore.dylib            	0x00007ff824432230 _swift_release_dealloc + 16 (HeapObject.cpp:832)
16  libswiftCore.dylib            	0x00007ff824432bdb bool swift::RefCounts>::doDecrementSlow<(swift::PerformDeinit)1>(swift::RefCountBitsT<(swift::RefCountInlinedness)1>, unsigned int) + 123 (RefCount.h:0)
17  libswiftCore.dylib            	0x00007ff82441fb5a swift_arrayDestroy + 138 (Array.cpp:223)
18  libswiftCore.dylib            	0x00007ff8241cdf00 _DictionaryStorage.deinit + 432 (DictionaryStorage.swift:252)
19  libswiftCore.dylib            	0x00007ff8241cdf79 _DictionaryStorage.__deallocating_deinit + 9 (DictionaryStorage.swift:0)
20  libswiftCore.dylib            	0x00007ff824432230 _swift_release_dealloc + 16 (HeapObject.cpp:832)
21  libswiftCore.dylib            	0x00007ff824432bdb bool swift::RefCounts>::doDecrementSlow<(swift::PerformDeinit)1>(swift::RefCountBitsT<(swift::RefCountInlinedness)1>, unsigned int) + 123 (RefCount.h:0)
22  MyApp                         	0x000000010b5679af Scan.deinit + 95 (:0)
23  MyApp                         	0x000000010b5679d9 Scan.__deallocating_deinit + 9 (Scan.swift:0)
24  libswiftCore.dylib            	0x00007ff824432230 _swift_release_dealloc + 16 (HeapObject.cpp:832)
25  libswiftCore.dylib            	0x00007ff824432bdb bool swift::RefCounts>::doDecrementSlow<(swift::PerformDeinit)1>(swift::RefCountBitsT<(swift::RefCountInlinedness)1>, unsigned int) + 123 (RefCount.h:0)
26  MyApp                         	0x000000010b667753 ScanInfo.Base.deinit + 67 (:0)
27  MyApp                         	0x000000010b667799 ScanInfo.Base.__deallocating_deinit + 9 (ScanInfo.swift:0)
28  libswiftCore.dylib            	0x00007ff824432230 _swift_release_dealloc + 16 (HeapObject.cpp:832)
29  libswiftCore.dylib            	0x00007ff824432bdb bool swift::RefCounts>::doDecrementSlow<(swift::PerformDeinit)1>(swift::RefCountBitsT<(swift::RefCountInlinedness)1>, unsigned int) + 123 (RefCount.h:0)
30  libswiftCore.dylib            	0x00007ff82441fb5a swift_arrayDestroy + 138 (Array.cpp:223)
31  libswiftCore.dylib            	0x00007ff8241a3ada _ContiguousArrayStorage.__deallocating_deinit + 42 (ContiguousArrayBuffer.swift:81)
32  libswiftCore.dylib            	0x00007ff824432230 _swift_release_dealloc + 16 (HeapObject.cpp:832)
33  libswiftCore.dylib            	0x00007ff824432bdb bool swift::RefCounts>::doDecrementSlow<(swift::PerformDeinit)1>(swift::RefCountBitsT<(swift::RefCountInlinedness)1>, unsigned int) + 123 (RefCount.h:0)
34  MyApp                         	0x000000010b66e9eb @objc ScanInfo.__ivar_destroyer + 171 (ScanInfo.swift:0)
35  libobjc.A.dylib               	0x00007ff8136b9065 object_cxxDestructFromClass(objc_object*, objc_class*) + 83 (objc-class.mm:457)
36  libobjc.A.dylib               	0x00007ff8136b255d objc_destructInstance + 96 (objc-runtime-new.mm:9186)
37  libobjc.A.dylib               	0x00007ff8136b24f1 _objc_rootDealloc + 62 (NSObject.mm:2136)
38  MyApp                         	0x000000010b6afe6d MyController.someFunc(_:_:) + 3213 (MyController.swift:817)
...
41  MyApp                         	0x000000010b641ede closure #1 in closure #1 in MyOperationQueue.startNextOperation() + 270 (MyOperationQueue.swift:50)
42  MyApp                         	0x000000010b6de1d9 thunk for @escaping @callee_guaranteed () -> () + 25 (:0)
43  libdispatch.dylib             	0x00007ff8138dbac6 _dispatch_call_block_and_release + 12 (init.c:1530)
44  libdispatch.dylib             	0x00007ff8138dcdbc _dispatch_client_callout + 8 (object.m:576)
45  libdispatch.dylib             	0x00007ff8138e91df _dispatch_main_queue_drain + 984 (queue.c:7898)
46  libdispatch.dylib             	0x00007ff8138e8df9 _dispatch_main_queue_callback_4CF + 31 (queue.c:8058)
47  CoreFoundation                	0x00007ff813b9ae46 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9 (CFRunLoop.c:1780)
48  CoreFoundation                	0x00007ff813b5a075 __CFRunLoopRun + 2459 (CFRunLoop.c:3149)
49  CoreFoundation                	0x00007ff813b59112 CFRunLoopRunSpecific + 557 (CFRunLoop.c:3420)
50  HIToolbox                     	0x00007ff81e578a09 RunCurrentEventLoopInMode + 292 (EventLoop.c:455)
51  HIToolbox                     	0x00007ff81e578816 ReceiveNextEventCommon + 665 (EventBlocking.c:384)
52  HIToolbox                     	0x00007ff81e578561 _BlockUntilNextEventMatchingListInModeWithFilter + 66 (EventBlocking.c:171)
53  AppKit                        	0x00007ff8171c9171 _DPSNextEvent + 880 (CGDPSReplacement.m:810)
54  AppKit                        	0x00007ff817addaf0 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1273 (appEventRouting.m:413)
55  AppKit                        	0x00007ff8171ba585 -[NSApplication run] + 603 (NSApplication.m:3513)
56  AppKit                        	0x00007ff81718e4f3 NSApplicationMain + 816 (NSApplication.m:10143)
57  MyApp                         	0x000000010b562d61 main + 129 (main.swift:12)
58  dyld                          	0x00007ff8136f2345 start + 1909 (dyldMain.cpp:1298)

Thread 1:
0   libsystem_kernel.dylib        	0x00007ff813a3e08e mach_msg2_trap + 10
1   libsystem_kernel.dylib        	0x00007ff813a4c878 mach_msg2_internal + 84 (mach_msg.c:201)
2   libsystem_kernel.dylib        	0x00007ff813a45178 mach_msg_overwrite + 653 (mach_msg.c:0)
3   libsystem_kernel.dylib        	0x00007ff813a3e37d mach_msg + 19 (mach_msg.c:323)
4   CoreFoundation                	0x00007ff813b5b1c5 __CFRunLoopServiceMachPort + 143 (CFRunLoop.c:2624)
5   CoreFoundation                	0x00007ff813b59c35 __CFRunLoopRun + 1371 (CFRunLoop.c:3007)
6   CoreFoundation                	0x00007ff813b59112 CFRunLoopRunSpecific + 557 (CFRunLoop.c:3420)
7   AppKit                        	0x00007ff81732729c _NSEventThread + 122 (NSEvent.m:5569)
8   libsystem_pthread.dylib       	0x00007ff813a7e18b _pthread_start + 99 (pthread.c:931)
9   libsystem_pthread.dylib       	0x00007ff813a79ae3 thread_start + 15 (:-1)

Thread 2:
0   libobjc.A.dylib               	0x00007ff8136b265a bool objc::DenseMapBase, objc::DenseMap, objc::DenseMapInfo,... + 184 (llvm-DenseMap.h:695)
1   libobjc.A.dylib               	0x00007ff8136d4c7d _object_remove_associations + 75 (objc-references.mm:234)
2   libobjc.A.dylib               	0x00007ff8136b2570 objc_destructInstance + 115 (objc-runtime-new.mm:9187)
3   libsystem_blocks.dylib        	0x00007ff81377e55e _Block_release + 241 (runtime.cpp:1007)
4   MyApp                         	0x000000010b6423cc ProgressCounter.addCompletedUnit(_:) + 444 (:0)
...
11  MyApp                         	0x000000010b72aad0 partial apply for closure #1 in ScanOperation.main() + 16 (:0)
12  MyApp                         	0x000000010b715d59 thunk for @escaping @callee_guaranteed @Sendable () -> () + 25 (:0)
13  Foundation                    	0x00007ff814aecc1a __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 7 (NSOperation.m:1545)
14  Foundation                    	0x00007ff814aecb18 -[NSBlockOperation main] + 94 (NSOperation.m:1564)
15  Foundation                    	0x00007ff814aecaab __NSOPERATION_IS_INVOKING_MAIN__ + 17 (NSOperation.m:2189)
16  Foundation                    	0x00007ff814aebd4c -[NSOperation start] + 730 (NSOperation.m:1406)
17  Foundation                    	0x00007ff814aeba6d __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 17 (NSOperation.m:2220)
18  Foundation                    	0x00007ff814aeb93e __NSOQSchedule_f + 182 (NSOperation.m:2231)
19  libdispatch.dylib             	0x00007ff8138e98f7 _dispatch_block_async_invoke2 + 85 (queue.c:570)
20  libdispatch.dylib             	0x00007ff8138dcdbc _dispatch_client_callout + 8 (object.m:576)
21  libdispatch.dylib             	0x00007ff8138df91c _dispatch_continuation_pop + 511 (queue.c:321)
22  libdispatch.dylib             	0x00007ff8138defb5 _dispatch_async_redirect_invoke + 702 (queue.c:845)
23  libdispatch.dylib             	0x00007ff8138ec0ab _dispatch_root_queue_drain + 328 (queue.c:7136)
24  libdispatch.dylib             	0x00007ff8138ec84f _dispatch_worker_thread2 + 152 (queue.c:7204)
25  libsystem_pthread.dylib       	0x00007ff813a7ab43 _pthread_wqthread + 262 (pthread.c:2709)
26  libsystem_pthread.dylib       	0x00007ff813a79acf start_wqthread + 15 (:-1)

Thread 3:
0   libsystem_malloc.dylib        	0x00007ff81389b30d nanov2_malloc + 351 (nanov2_malloc.c:1091)
1   libswiftCore.dylib            	0x00007ff8244304c9 swift_slowAlloc + 25 (Heap.cpp:93)
2   libswiftCore.dylib            	0x00007ff824430757 swift_allocObject + 39 (HeapObject.cpp:299)
3   MyApp                         	0x000000010b6ea54a specialized _ContiguousArrayBuffer.init(_uninitializedCount:minimumCapacity:) + 58
4   MyApp                         	0x000000010b6e979b specialized _ArrayBuffer._consumeAndCreateNew(bufferIsUnique:minimumCapacity:growForAppend:) + 187
5   MyApp                         	0x000000010b6e80a6 specialized _ArrayBuffer._consumeAndCreateNew(bufferIsUnique:minimumCapacity:growForAppend:) + 38
6   MyApp                         	0x000000010b71dadb specialized Array._makeUniqueAndReserveCapacityIfNotUnique() + 91
...
15  MyApp                         	0x000000010b72aad0 partial apply for closure #1 in ScanOperation.main() + 16 (:0)
16  MyApp                         	0x000000010b715d59 thunk for @escaping @callee_guaranteed @Sendable () -> () + 25 (:0)
17  Foundation                    	0x00007ff814aecc1a __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 7 (NSOperation.m:1545)
18  Foundation                    	0x00007ff814aecb18 -[NSBlockOperation main] + 94 (NSOperation.m:1564)
19  Foundation                    	0x00007ff814aecaab __NSOPERATION_IS_INVOKING_MAIN__ + 17 (NSOperation.m:2189)
20  Foundation                    	0x00007ff814aebd4c -[NSOperation start] + 730 (NSOperation.m:1406)
21  Foundation                    	0x00007ff814aeba6d __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 17 (NSOperation.m:2220)
22  Foundation                    	0x00007ff814aeb93e __NSOQSchedule_f + 182 (NSOperation.m:2231)
23  libdispatch.dylib             	0x00007ff8138e98f7 _dispatch_block_async_invoke2 + 85 (queue.c:570)
24  libdispatch.dylib             	0x00007ff8138dcdbc _dispatch_client_callout + 8 (object.m:576)
25  libdispatch.dylib             	0x00007ff8138df91c _dispatch_continuation_pop + 511 (queue.c:321)
26  libdispatch.dylib             	0x00007ff8138defb5 _dispatch_async_redirect_invoke + 702 (queue.c:845)
27  libdispatch.dylib             	0x00007ff8138ec0ab _dispatch_root_queue_drain + 328 (queue.c:7136)
28  libdispatch.dylib             	0x00007ff8138ec84f _dispatch_worker_thread2 + 152 (queue.c:7204)
29  libsystem_pthread.dylib       	0x00007ff813a7ab43 _pthread_wqthread + 262 (pthread.c:2709)
30  libsystem_pthread.dylib       	0x00007ff813a79acf start_wqthread + 15 (:-1)

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

Thread 5:
0   libsystem_kernel.dylib        	0x00007ff813a40c3a __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007ff813a7e6f3 _pthread_cond_wait + 1211 (pthread_cond.c:862)
2   Foundation                    	0x00007ff814afbc98 -[NSOperation waitUntilFinished] + 706 (NSOperation.m:1379)
3   Foundation                    	0x00007ff81522b9c7 __NSOPERATIONQUEUE_IS_WAITING_ON_AN_OPERATION__ + 17 (NSOperation.m:2615)
4   Foundation                    	0x00007ff814b8ab20 -[NSOperationQueue waitUntilAllOperationsAreFinished] + 223 (NSOperation.m:2826)
5   MyApp                         	0x000000010b718c3d ScanOperation.main() + 2445 (ScanOperation.swift:79)
6   MyApp                         	0x000000010b641c53 closure #1 in MyOperationQueue.startNextOperation() + 115 (MyOperationQueue.swift:46)
7   MyApp                         	0x000000010b715d59 thunk for @escaping @callee_guaranteed @Sendable () -> () + 25 (:0)
8   libdispatch.dylib             	0x00007ff8138dbac6 _dispatch_call_block_and_release + 12 (init.c:1530)
9   libdispatch.dylib             	0x00007ff8138dcdbc _dispatch_client_callout + 8 (object.m:576)
10  libdispatch.dylib             	0x00007ff8138e2eff _dispatch_lane_serial_drain + 800 (queue.c:3900)
11  libdispatch.dylib             	0x00007ff8138e3997 _dispatch_lane_invoke + 377 (queue.c:3991)
12  libdispatch.dylib             	0x00007ff8138ed414 _dispatch_root_queue_drain_deferred_wlh + 271 (queue.c:6998)
13  libdispatch.dylib             	0x00007ff8138ecd2a _dispatch_workloop_worker_thread + 451 (queue.c:6592)
14  libsystem_pthread.dylib       	0x00007ff813a7ab84 _pthread_wqthread + 327 (pthread.c:2696)
15  libsystem_pthread.dylib       	0x00007ff813a79acf start_wqthread + 15 (:-1)

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

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

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x00007ff8568d7200  rcx: 0x0000000100000000 rdx: 0x0000000000000001
  rdi: 0x00007fad310ea2a0  rsi: 0x0000000000000000  rbp: 0x00007ff7b499c990 rsp: 0x00007ff7b499c980
   r8: 0x0000000000000001   r9: 0x80000000ffffffff  r10: 0x0000000100000000 r11: 0x0000000200000000
  r12: 0x0000000000000008  r13: 0x00007fad310ea2a0  r14: 0x0000000000000027 r15: 0x00007fad310ed270
  rip: 0x00007ff82443222d  rfl: 0x0000000000010217

Binary Images:
        0x10b561000 -         0x10b797fff MyApp (x86_64)  <3333FBD5-509A-332C-8E5D-F1A5F8C73D64> /Applications/MyApp.app/Contents/MacOS/MyApp
        0x10bdb3000 -         0x10bdbffff libobjc-trampolines.dylib (x86_64h)  <E554B85A-6614-3883-83D8-8EB3BD70A202> /usr/lib/libobjc-trampolines.dylib
     0x7ff8136aa000 -      0x7ff8136ebfc3 libobjc.A.dylib (x86_64h)  <A9FD3F0E-8E64-3038-9CC9-569D89224C07> /usr/lib/libobjc.A.dylib
     0x7ff8136ec000 -      0x7ff81377c81f dyld (x86_64)  <18F658DD-20F3-324D-B7AC-8A9C60B574B3> /usr/lib/dyld
     0x7ff81377d000 -      0x7ff813780ff8 libsystem_blocks.dylib (x86_64)  <E304A496-89FE-3656-8E95-7CB4CE44B418> /usr/lib/system/libsystem_blocks.dylib
     0x7ff81389a000 -      0x7ff8138d9fff libsystem_malloc.dylib (x86_64)  <0D1B7CAD-F0B1-35F5-A5A1-71FCCC4A8C75> /usr/lib/system/libsystem_malloc.dylib
     0x7ff8138da000 -      0x7ff813920ff1 libdispatch.dylib (x86_64)  <FFB968B0-807C-38BF-AE61-50A96C8D310C> /usr/lib/system/libdispatch.dylib
     0x7ff813a3d000 -      0x7ff813a77ff7 libsystem_kernel.dylib (x86_64)  <54B50613-CC4B-3ACE-A9EC-919EA83D5E5F> /usr/lib/system/libsystem_kernel.dylib
     0x7ff813a78000 -      0x7ff813a83ff7 libsystem_pthread.dylib (x86_64)  <D70DE43A-2804-340A-804C-5D316C1E013B> /usr/lib/system/libsystem_pthread.dylib
     0x7ff813adf000 -      0x7ff813f79ffc CoreFoundation (x86_64h)  <C5E5ACB6-9E44-3AA3-BD21-0A5B4A2EEE5E> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
     0x7ff814aae000 -      0x7ff8156e4ffb Foundation (x86_64)  <2F87A303-430F-3EA5-9492-3033F4FEE64B> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
     0x7ff81718a000 -      0x7ff8185baff7 AppKit (x86_64)  <D0E19A37-F677-32B5-B3D2-005E60B90F7F> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
     0x7ff81e54a000 -      0x7ff81e7e4ff3 HIToolbox (x86_64)  <2AA738BF-9F72-3227-8BBA-7EAE7B9F080B> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
     0x7ff824127000 -      0x7ff8245d8fff libswiftCore.dylib (x86_64)  <9177B18C-CA86-342B-8642-5E62922BA86A> /usr/lib/swift/libswiftCore.dylib


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=885.7M resident=0K(0%) swapped_out_or_unallocated=885.7M(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               128K        1 
Activity Tracing                   256K        1 
CG image                           712K       45 
CG raster data                      80K       10 
ColorSync                          244K       29 
CoreAnimation                     5892K      136 
CoreGraphics                        12K        2 
CoreImage                           56K        4 
CoreUI image data                 4804K       39 
Foundation                          16K        1 
Kernel Alloc Once                  268K        2 
MALLOC                             1.9G       69 
MALLOC guard page                   48K       12 
STACK GUARD                       56.0M        8 
Stack                             11.6M        8 
VM_ALLOCATE                        308K       11 
__CTF                               824        1 
__DATA                            36.4M      592 
__DATA_CONST                      42.7M      388 
__DATA_DIRTY                      1840K      214 
__FONT_DATA                        2352        1 
__INFO_FILTER                         8        1 
__LINKEDIT                       180.3M        4 
__OBJC_RO                         71.9M        1 
__OBJC_RW                         2201K        2 
__TEXT                           705.3M      615 
mapped file                      192.1M       52 
shared memory                     1456K       21 
===========                     =======  ======= 
TOTAL                              3.2G     2270 


EOF

Thank you for sharing this post. It is an intriguing crash. Could you kindly provide a concise and focused project that effectively illustrates the issue at hand? Additionally, I appreciate your efforts in providing the crash file in the appropriate format, which will facilitate its easier analysis within the forums.

A focused Xcode project that builds and demonstrates the issue. Ideally this will be a new Xcode project created specifically to demonstrate this issue, and which includes only the minimal code and API necessary to reproduce the issue. This focuses on the important code paths and may require you to perform additional debugging to extract the relevant code. Please do not include any 3rd-party code or frameworks unless they are absolutely required for this targeted test project to run.

We also recommend adding appropriate logging to your focused project. See Technical Note TN2347 - Basic debugging with the NSLog function and the DEBUG preprocessor macro:

https://developer.apple.com/library/content/technotes/tn2347/_index.html

Explicit steps to reproduce the issue. These steps should be everything we need to do to see the issue.

You can provide a link to download the project, or archive into a .zip file and attach as a response to this email.

Related post:

https://developer.apple.com/forums/thread/113742

Albert Pascual
  Worldwide Developer Relations.

Unfortunately, like mentioned previously, this is a crash report downloaded by Xcode, and I have no idea how I could reproduce it.

Thanks so much, have you look at this great guide from Eskimo? Let me know if the guide will help you getting to the bottom of the issue:

https://developer.apple.com/forums/thread/92102

Albert Pascual
  Worldwide Developer Relations.

That guide is only useful if you can actually reproduce the issue, but like I said, I cannot reproduce it and the crash was downloaded by Xcode (it happened on another user's Mac).

Crash (segmentation fault) on _swift_release_dealloc
 
 
Q