SourceKit crash (on Xcode 14 beta 1)

SourceKit crashes with Xcode 14 beta 1 when trying to inspect the swift interface of the new Charts API. I tested it in two macs, both with the same result: One is running Monterey (Intel) and the other Ventura (Apple Silicon).

I just posted a bug report to Apple (FB10311935), but I am also posting it here, in case someone found a workaround.

To reproduce the problem, start a new project and include:

import SwiftUI
import Charts

Right click on Charts and select “Jump to Definition”. Xcode will fail to display the swift interface file for Charts and produce the following message:

Couldn’t Generate Swift Representation. Error (from SourceKit): “Connection Interrupted”.

NOTE: The problem only occurs with trying to open the swift interface of the Charts API, but not with any other (AFAIK).

An inspection to the system console shows:

default	11:29:45.576756+0200	com.apple.dt.SKAgent	[1:connection-event-handler:22595: 0.0000] Connection interrupt
default	11:29:45.576956+0200	com.apple.dt.SKAgent	[1:updateSemanticEditorDelay:22595: 0.0007] disabling semantic editor for 10 seconds
default	11:29:45.577097+0200	com.apple.dt.SKAgent	[1:pingService:22595: 0.0009] pinging service
default	11:29:45.722995+0200	com.apple.dt.SKAgent	[1:ping-event-handler:24579: 0.1468] service restored
default	11:29:45.792423+0200	ReportCrash	Sending event: com.apple.stability.crash 

The crash report follows:

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               SourceKitService [41944]
Path:                  /Applications/Xcode-14-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/sourcekitd.framework/Versions/A/XPCServices/SourceKitService.xpc/Contents/MacOS/SourceKitService
Identifier:            com.apple.SourceKitService.5.7.0.113.202_default
Version:               1.0 (5.7.0.113.202)
Build Info:            swiftlang-5007000113202~2
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
Responsible:           com.apple.dt.SKAgent [41938]
User ID:               501

Date/Time:             2022-06-17 11:29:45.5767 +0200
OS Version:            macOS 12.4 (21F79)
Report Version:        12
Bridge OS Version:     6.5 (19P5071)
Anonymous UUID:        71B74A30-78D3-DE50-033A-5C66B2B74248

Sleep/Wake UUID:       4669B223-F129-4287-9618-8971336172FF

Time Awake Since Boot: 100000 seconds
Time Since Wake:       77201 seconds

System Integrity Protection: enabled

Crashed Thread:        1  Dispatch queue: request-handling

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes:       0x0000000000000001, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

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

VM Region Info: 0 is not in any region.  Bytes before following region: 4490280960
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                      10ba44000-10ba50000    [   48K] r-x/r-x SM=COW  ...rceKitService

Thread 0:
0   libsystem_kernel.dylib        	    0x7ff8169351d2 __sigsuspend_nocancel + 10
1   libdispatch.dylib             	    0x7ff8167c681b _dispatch_sigsuspend + 36
2   libdispatch.dylib             	    0x7ff8167c67f7 _dispatch_sig_thread + 49

Thread 1 Crashed::  Dispatch queue: request-handling
0   sourcekitdInProc              	       0x10d1daf35 swift::TypeVisitor<(anonymous namespace)::TypePrinter, void>::visit(swift::Type) + 11845
1   sourcekitdInProc              	       0x10d1c1edb swift::Type::print(swift::ASTPrinter&, swift::PrintOptions const&) const + 75
2   sourcekitdInProc              	       0x10d1d3195 (anonymous namespace)::PrintAST::printTypeLocWithOptions(swift::TypeLoc const&, swift::PrintOptions const&) + 149
3   sourcekitdInProc              	       0x10d1d4982 (anonymous namespace)::PrintAST::printParameterList(swift::ParameterList*, llvm::ArrayRef<swift::AnyFunctionType::Param>, bool) + 1378
4   sourcekitdInProc              	       0x10d1d5328 (anonymous namespace)::PrintAST::printFunctionParameters(swift::AbstractFunctionDecl*) + 344
5   sourcekitdInProc              	       0x10d1cac5c swift::ASTVisitor<(anonymous namespace)::PrintAST, void, void, void, void, void, void>::visit(swift::Decl*) + 18476
6   sourcekitdInProc              	       0x10d1c10d1 (anonymous namespace)::PrintAST::visit(swift::Decl*) + 865
7   sourcekitdInProc              	       0x10d1cfdf1 (anonymous namespace)::PrintAST::printMembersOfDecl(swift::Decl*, bool, bool, bool) + 4849
8   sourcekitdInProc              	       0x10d1c928c swift::ASTVisitor<(anonymous namespace)::PrintAST, void, void, void, void, void, void>::visit(swift::Decl*) + 11868
9   sourcekitdInProc              	       0x10d1c10d1 (anonymous namespace)::PrintAST::visit(swift::Decl*) + 865
10  sourcekitdInProc              	       0x10bf47db2 printModuleInterfaceDecl(swift::Decl*, swift::ASTPrinter&, swift::PrintOptions&, bool, llvm::StringRef) + 2546
11  sourcekitdInProc              	       0x10bf43742 swift::ide::printModuleInterface(swift::ModuleDecl*, llvm::ArrayRef<llvm::StringRef>, swift::OptionSet<swift::ide::ModuleTraversal, unsigned int>, swift::ASTPrinter&, swift::PrintOptions const&, bool) + 8946
12  sourcekitdInProc              	       0x10bdd4d31 SourceKit::SwiftInterfaceGenContext::create(llvm::StringRef, bool, llvm::StringRef, llvm::Optional<llvm::StringRef>, swift::CompilerInvocation, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, bool, llvm::Optional<llvm::StringRef>) + 1665
13  sourcekitdInProc              	       0x10bdd6e08 SourceKit::SwiftLangSupport::editorOpenInterface(SourceKit::EditorConsumer&, llvm::StringRef, llvm::StringRef, llvm::Optional<llvm::StringRef>, llvm::ArrayRef<char const*>, bool, llvm::Optional<llvm::StringRef>) + 552
14  sourcekitdInProc              	       0x10be0cd57 handleRequestImpl(void*, void const*, std::__1::function<void (void*)>) + 22135
15  sourcekitdInProc              	       0x10be0767a sourcekitd::handleRequest(void*, void const*, std::__1::function<void (void*)>) + 474
16  SourceKitService              	       0x10ba49812 invocation function for block in sourcekitdServer_peer_event_handler(_xpc_connection_s*, void*) + 210
17  libdispatch.dylib             	    0x7ff8167b40cc _dispatch_call_block_and_release + 12
18  libdispatch.dylib             	    0x7ff8167b5317 _dispatch_client_callout + 8
19  libdispatch.dylib             	    0x7ff8167b7d7c _dispatch_continuation_pop + 453
20  libdispatch.dylib             	    0x7ff8167b743f _dispatch_async_redirect_invoke + 704
21  libdispatch.dylib             	    0x7ff8167c4ac2 _dispatch_root_queue_drain + 343
22  libdispatch.dylib             	    0x7ff8167c525c _dispatch_worker_thread2 + 160
23  libsystem_pthread.dylib       	    0x7ff816968f8a _pthread_wqthread + 256
24  libsystem_pthread.dylib       	    0x7ff816967f57 start_wqthread + 15

Thread 2:
0   libsystem_pthread.dylib       	    0x7ff816967f48 start_wqthread + 0

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

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

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


Thread 1 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x00007000058e5508  rcx: 0x000000010d1dc220  rdx: 0x0000000000000000
  rdi: 0x00007fc50040a24f  rsi: 0x0000000111d89112  rbp: 0x00007000058e3fe0  rsp: 0x00007000058e3c50
   r8: 0x0000000000000004   r9: 0x0000000000000001  r10: 0x0000000112649440  r11: 0x00007fc3ee68113d
  r12: 0x00007fc4af2d5978  r13: 0x00007000058e3ff0  r14: 0x00007fc4af2d5918  r15: 0x00007fc4af2d5e30
  rip: 0x000000010d1daf35  rfl: 0x0000000000010206  cr2: 0x0000000000000000
  
Logical CPU:     10
Error Code:      0x00000004 (no mapping for user data read)
Trap Number:     14

Thread 1 instruction stream:
  40 10 48 8b 70 78 48 83-e6 f8 48 8d bd 10 fe ff  @.H.pxH...H.....
  ff e8 85 1f fb ff 44 0f-b6 bd 10 fe ff ff 41 f6  ......D.......A.
  c7 01 0f 84 e8 02 00 00-4c 8b a5 20 fe ff ff 4c  ........L.. ...L
  8b bd 18 fe ff ff e9 df-02 00 00 49 8b 5d 00 48  ...........I.].H
  89 df e8 54 0d fe ff 48-8b 03 48 8d 35 ec e1 ba  ...T...H..H.5...
  04 ba 05 00 00 00 48 89-df ff 50 10 49 8b 46 48  ......H...P.I.FH
 [48]8b 00 49 8b 5d 00 48-85 c0 0f 84 24 05 00 00  H..I.].H....$...	<==
  49 8b 55 08 48 89 85 10-fe ff ff 48 8d bd 10 fe  I.U.H......H....
  ff ff 48 89 de e8 31 6f-fe ff e9 2e 11 00 00 0d  ..H...1o........
  00 00 00 80 41 89 44 24-10 4c 8b 6d d0 45 8b 77  ....A.D$.L.m.E.w
  08 4d 85 f6 0f 84 ef 00-00 00 49 8b 5c 24 18 49  .M........I.\$.I
  8b 7d 00 48 89 9d 10 fe-ff ff 48 c7 85 18 fe ff  .}.H......H.....

Binary Images:
    0x7ff81692e000 -     0x7ff816965fff libsystem_kernel.dylib (*) <61711d11-e776-3bc3-b9a2-6f9f37cb8499> /usr/lib/system/libsystem_kernel.dylib
    0x7ff8167b2000 -     0x7ff8167f8fff libdispatch.dylib (*) <534511b9-b3b0-33a7-b1ea-402595d28bda> /usr/lib/system/libdispatch.dylib
       0x10bb61000 -        0x112140fff com.apple.sourcekitdInProc (1.0) <0f38023d-bd2a-39e0-bb22-f8c081e9d156> /Applications/Xcode-14-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/sourcekitdInProc.framework/Versions/A/sourcekitdInProc
       0x10ba44000 -        0x10ba4ffff com.apple.SourceKitService.5.7.0.113.202_default (1.0) <3bee6099-f632-3c53-ac08-49b1d2926d21> /Applications/Xcode-14-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/sourcekitd.framework/Versions/A/XPCServices/SourceKitService.xpc/Contents/MacOS/SourceKitService
    0x7ff816966000 -     0x7ff816971fff libsystem_pthread.dylib (*) <bc574849-1aae-31e7-b350-916dda999d97> /usr/lib/system/libsystem_pthread.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: 35
    thread_create: 0
    thread_set_state: 1237

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

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                   256K        1 
Kernel Alloc Once                    8K        1 
MALLOC                           788.0M      252 
MALLOC guard page                   24K        5 
MALLOC_MEDIUM (reserved)           1.2G       12         reserved VM address space (unallocated)
MALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)
ObjC additional data                15K        1 
STACK GUARD                         24K        6 
Stack                             3132K        7 
Stack Guard                       64.0M        2 
VM_ALLOCATE                          8K        2 
VM_ALLOCATE (reserved)            1280K        5         reserved VM address space (unallocated)
__DATA                            17.1M      209 
__DATA_CONST                      8404K      141 
__DATA_DIRTY                       418K       82 
__FONT_DATA                          4K        1 
__LINKEDIT                       664.5M       10 
__TEXT                           252.8M      222 
__UNICODE                          592K        1 
dyld private memory               1024K        1 
mapped file                      400.9M      496 
shared memory                       12K        2 
===========                     =======  ======= 
TOTAL                              3.7G     1460 
TOTAL, minus reserved VM space     2.1G     1460 



-----------
Full Report
-----------

{"app_name":"SourceKitService","timestamp":"2022-06-17 11:29:45.00 +0200","app_version":"1.0","slice_uuid":"3bee6099-f632-3c53-ac08-49b1d2926d21","build_version":"5.7.0.113.202","platform":1,"bundleID":"com.apple.SourceKitService.5.7.0.113.202_default","share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 12.4 (21F79)","incident_id":"9C1EA60C-E1C7-461F-83AD-541101B338C2","name":"SourceKitService"}
{
  "uptime" : 100000,
  "procLaunch" : "2022-06-17 11:29:30.3993 +0200",
  "procRole" : "Unspecified",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "Macmini8,1",
  "procStartAbsTime" : 102007352008629,
  "coalitionID" : 8245,
  "osVersion" : {
    "train" : "macOS 12.4",
    "build" : "21F79",
    "releaseType" : "User"
  },
  "captureTime" : "2022-06-17 11:29:45.5767 +0200",
  "incident" : "9C1EA60C-E1C7-461F-83AD-541101B338C2",
  "bug_type" : "309",
  "pid" : 41944,
  "procExitAbsTime" : 102022529261925,
  "cpuType" : "X86-64",
  "procName" : "SourceKitService",
  "procPath" : "\/Applications\/Xcode-14-beta.app\/Contents\/Developer\/Toolchains\/XcodeDefault.xctoolchain\/usr\/lib\/sourcekitd.framework\/Versions\/A\/XPCServices\/SourceKitService.xpc\/Contents\/MacOS\/SourceKitService",
  "bundleInfo" : {"CFBundleShortVersionString":"1.0","CFBundleVersion":"5.7.0.113.202","CFBundleIdentifier":"com.apple.SourceKitService.5.7.0.113.202_default"},
  "buildInfo" : {"ProjectName":"swiftlang","SourceVersion":"5007000113202","BuildVersion":"2"},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.apple.dt.Xcode",
  "crashReporterKey" : "71B74A30-78D3-DE50-033A-5C66B2B74248",
  "responsiblePid" : 41938,
  "responsibleProc" : "com.apple.dt.SKAgent",
  "wakeTime" : 77201,
  "bridgeVersion" : {"build":"19P5071","train":"6.5"},
  "sleepWakeUUID" : "4669B223-F129-4287-9618-8971336172FF",
  "sip" : "enabled",
  "vmRegionInfo" : "0 is not in any region.  Bytes before following region: 4490280960\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      __TEXT                      10ba44000-10ba50000    [   48K] r-x\/r-x SM=COW  ...rceKitService",
  "isCorpse" : 1,
  "exception" : {"codes":"0x0000000000000001, 0x0000000000000000","rawCodes":[1,0],"type":"EXC_BAD_ACCESS","signal":"SIGSEGV","subtype":"KERN_INVALID_ADDRESS at 0x0000000000000000"},
  "termination" : {"flags":0,"code":11,"namespace":"SIGNAL","indicator":"Segmentation fault: 11","byProc":"exc handler","byPid":41944},
  "vmregioninfo" : "0 is not in any region.  Bytes before following region: 4490280960\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      __TEXT                      10ba44000-10ba50000    [   48K] r-x\/r-x SM=COW  ...rceKitService",
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":1237,"task_for_pid":35},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 1,
  "threads" : [{"id":1003411,"frames":[{"imageOffset":29138,"symbol":"__sigsuspend_nocancel","symbolLocation":10,"imageIndex":0},{"imageOffset":83995,"symbol":"_dispatch_sigsuspend","symbolLocation":36,"imageIndex":1},{"imageOffset":83959,"symbol":"_dispatch_sig_thread","symbolLocation":49,"imageIndex":1}]},{"triggered":true,"id":1003412,"instructionState":{"instructionStream":{"bytes":[64,16,72,139,112,120,72,131,230,248,72,141,189,16,254,255,255,232,133,31,251,255,68,15,182,189,16,254,255,255,65,246,199,1,15,132,232,2,0,0,76,139,165,32,254,255,255,76,139,189,24,254,255,255,233,223,2,0,0,73,139,93,0,72,137,223,232,84,13,254,255,72,139,3,72,141,53,236,225,186,4,186,5,0,0,0,72,137,223,255,80,16,73,139,70,72,72,139,0,73,139,93,0,72,133,192,15,132,36,5,0,0,73,139,85,8,72,137,133,16,254,255,255,72,141,189,16,254,255,255,72,137,222,232,49,111,254,255,233,46,17,0,0,13,0,0,0,128,65,137,68,36,16,76,139,109,208,69,139,119,8,77,133,246,15,132,239,0,0,0,73,139,92,36,24,73,139,125,0,72,137,157,16,254,255,255,72,199,133,24,254,255],"offset":96}},"threadState":{"r13":{"value":123145395519472},"rax":{"value":0},"rflags":{"value":66054},"cpu":{"value":10},"r14":{"value":140482729302296},"rsi":{"value":4594372882,"symbolLocation":1097,"symbol":".str.269"},"r8":{"value":4},"cr2":{"value":0},"rdx":{"value":0},"r10":{"value":4603548736,"symbolLocation":0,"symbol":"swift::AnyRequestVTable const* swift::AnyRequestVTable::get<swift::IsFinalRequest>()::vtable"},"r9":{"value":1},"r15":{"value":140482729303600},"rbx":{"value":123145395524872},"trap":{"value":14,"description":"(no mapping for user data read)"},"err":{"value":4},"r11":{"value":140479495147837},"rip":{"value":4515016501,"matchesCrashFrame":1},"rbp":{"value":123145395519456},"rsp":{"value":123145395518544},"r12":{"value":140482729302392},"rcx":{"value":4515021344,"symbolLocation":16688,"symbol":"swift::TypeVisitor<(anonymous namespace)::TypePrinter, void>::visit(swift::Type)"},"flavor":"x86_THREAD_STATE","rdi":{"value":140484089520719}},"queue":"request-handling","frames":[{"imageOffset":23568181,"symbol":"swift::TypeVisitor<(anonymous namespace)::TypePrinter, void>::visit(swift::Type)","symbolLocation":11845,"imageIndex":2},{"imageOffset":23465691,"symbol":"swift::Type::print(swift::ASTPrinter&, swift::PrintOptions const&) const","symbolLocation":75,"imageIndex":2},{"imageOffset":23536021,"symbol":"(anonymous namespace)::PrintAST::printTypeLocWithOptions(swift::TypeLoc const&, swift::PrintOptions const&)","symbolLocation":149,"imageIndex":2},{"imageOffset":23542146,"symbol":"(anonymous namespace)::PrintAST::printParameterList(swift::ParameterList*, llvm::ArrayRef<swift::AnyFunctionType::Param>, bool)","symbolLocation":1378,"imageIndex":2},{"imageOffset":23544616,"symbol":"(anonymous namespace)::PrintAST::printFunctionParameters(swift::AbstractFunctionDecl*)","symbolLocation":344,"imageIndex":2},{"imageOffset":23501916,"symbol":"swift::ASTVisitor<(anonymous namespace)::PrintAST, void, void, void, void, void, void>::visit(swift::Decl*)","symbolLocation":18476,"imageIndex":2},{"imageOffset":23462097,"symbol":"(anonymous namespace)::PrintAST::visit(swift::Decl*)","symbolLocation":865,"imageIndex":2},{"imageOffset":23522801,"symbol":"(anonymous namespace)::PrintAST::printMembersOfDecl(swift::Decl*, bool, bool, bool)","symbolLocation":4849,"imageIndex":2},{"imageOffset":23495308,"symbol":"swift::ASTVisitor<(anonymous namespace)::PrintAST, void, void, void, void, void, void>::visit(swift::Decl*)","symbolLocation":11868,"imageIndex":2},{"imageOffset":23462097,"symbol":"(anonymous namespace)::PrintAST::visit(swift::Decl*)","symbolLocation":865,"imageIndex":2},{"imageOffset":4091314,"symbol":"printModuleInterfaceDecl(swift::Decl*, swift::ASTPrinter&, swift::PrintOptions&, bool, llvm::StringRef)","symbolLocation":2546,"imageIndex":2},{"imageOffset":4073282,"symbol":"swift::ide::printModuleInterface(swift::ModuleDecl*, llvm::ArrayRef<llvm::StringRef>, swift::OptionSet<swift::ide::ModuleTraversal, unsigned int>, swift::ASTPrinter&, swift::PrintOptions const&, bool)","symbolLocation":8946,"imageIndex":2},{"imageOffset":2571569,"symbol":"SourceKit::SwiftInterfaceGenContext::create(llvm::StringRef, bool, llvm::StringRef, llvm::Optional<llvm::StringRef>, swift::CompilerInvocation, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, bool, llvm::Optional<llvm::StringRef>)","symbolLocation":1665,"imageIndex":2},{"imageOffset":2579976,"symbol":"SourceKit::SwiftLangSupport::editorOpenInterface(SourceKit::EditorConsumer&, llvm::StringRef, llvm::StringRef, llvm::Optional<llvm::StringRef>, llvm::ArrayRef<char const*>, bool, llvm::Optional<llvm::StringRef>)","symbolLocation":552,"imageIndex":2},{"imageOffset":2800983,"symbol":"handleRequestImpl(void*, void const*, std::__1::function<void (void*)>)","symbolLocation":22135,"imageIndex":2},{"imageOffset":2778746,"symbol":"sourcekitd::handleRequest(void*, void const*, std::__1::function<void (void*)>)","symbolLocation":474,"imageIndex":2},{"imageOffset":22546,"symbol":"invocation function for block in sourcekitdServer_peer_event_handler(_xpc_connection_s*, void*)","symbolLocation":210,"imageIndex":3},{"imageOffset":8396,"symbol":"_dispatch_call_block_and_release","symbolLocation":12,"imageIndex":1},{"imageOffset":13079,"symbol":"_dispatch_client_callout","symbolLocation":8,"imageIndex":1},{"imageOffset":23932,"symbol":"_dispatch_continuation_pop","symbolLocation":453,"imageIndex":1},{"imageOffset":21567,"symbol":"_dispatch_async_redirect_invoke","symbolLocation":704,"imageIndex":1},{"imageOffset":76482,"symbol":"_dispatch_root_queue_drain","symbolLocation":343,"imageIndex":1},{"imageOffset":78428,"symbol":"_dispatch_worker_thread2","symbolLocation":160,"imageIndex":1},{"imageOffset":12170,"symbol":"_pthread_wqthread","symbolLocation":256,"imageIndex":4},{"imageOffset":8023,"symbol":"start_wqthread","symbolLocation":15,"imageIndex":4}]},{"id":1003413,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":4}]},{"id":1003414,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":4}]},{"id":1003689,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":4}]},{"id":1003705,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":4}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703507341312,
    "size" : 229376,
    "uuid" : "61711d11-e776-3bc3-b9a2-6f9f37cb8499",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703505784832,
    "size" : 290816,
    "uuid" : "534511b9-b3b0-33a7-b1ea-402595d28bda",
    "path" : "\/usr\/lib\/system\/libdispatch.dylib",
    "name" : "libdispatch.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4491448320,
    "CFBundleShortVersionString" : "1.0",
    "CFBundleIdentifier" : "com.apple.sourcekitdInProc",
    "size" : 106823680,
    "uuid" : "0f38023d-bd2a-39e0-bb22-f8c081e9d156",
    "path" : "\/Applications\/Xcode-14-beta.app\/Contents\/Developer\/Toolchains\/XcodeDefault.xctoolchain\/usr\/lib\/sourcekitdInProc.framework\/Versions\/A\/sourcekitdInProc",
    "name" : "sourcekitdInProc",
    "CFBundleVersion" : "5.7.0.113.202"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4490280960,
    "CFBundleShortVersionString" : "1.0",
    "CFBundleIdentifier" : "com.apple.SourceKitService.5.7.0.113.202_default",
    "size" : 49152,
    "uuid" : "3bee6099-f632-3c53-ac08-49b1d2926d21",
    "path" : "\/Applications\/Xcode-14-beta.app\/Contents\/Developer\/Toolchains\/XcodeDefault.xctoolchain\/usr\/lib\/sourcekitd.framework\/Versions\/A\/XPCServices\/SourceKitService.xpc\/Contents\/MacOS\/SourceKitService",
    "name" : "SourceKitService",
    "CFBundleVersion" : "5.7.0.113.202"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703507570688,
    "size" : 49152,
    "uuid" : "bc574849-1aae-31e7-b350-916dda999d97",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  }
],
  "sharedCache" : {
  "base" : 140703504314368,
  "size" : 15220686848,
  "uuid" : "398acfb4-57f6-31e0-bc82-e9959e5c92ce"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=917.3M resident=0K(0%) swapped_out_or_unallocated=917.3M(100%)\nWritable regions: Total=2.3G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=2.3G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nActivity Tracing                   256K        1 \nKernel Alloc Once                    8K        1 \nMALLOC                           788.0M      252 \nMALLOC guard page                   24K        5 \nMALLOC_MEDIUM (reserved)           1.2G       12         reserved VM address space (unallocated)\nMALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)\nObjC additional data                15K        1 \nSTACK GUARD                         24K        6 \nStack                             3132K        7 \nStack Guard                       64.0M        2 \nVM_ALLOCATE                          8K        2 \nVM_ALLOCATE (reserved)            1280K        5         reserved VM address space (unallocated)\n__DATA                            17.1M      209 \n__DATA_CONST                      8404K      141 \n__DATA_DIRTY                       418K       82 \n__FONT_DATA                          4K        1 \n__LINKEDIT                       664.5M       10 \n__TEXT                           252.8M      222 \n__UNICODE                          592K        1 \ndyld private memory               1024K        1 \nmapped file                      400.9M      496 \nshared memory                       12K        2 \n===========                     =======  ======= \nTOTAL                              3.7G     1460 \nTOTAL, minus reserved VM space     2.1G     1460 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "request-handling"
  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "61301e3a61217b3110231469",
      "factorPackIds" : {
        "SIRI_FIND_MY_CONFIGURATION_FILES" : "6216ae152a40e71046e16225"
      },
      "deploymentId" : 240000016
    },
    {
      "rolloutId" : "5ffde50ce2aacd000d47a95f",
      "factorPackIds" : {

      },
      "deploymentId" : 240000158
    }
  ],
  "experiments" : [

  ]
}
}

Thanks for reporting the issue. I was able to reproduce it with Xcode 14 beta 1 but not with a recent Swift 5.7 development snapshot. Based on the crash log, it appears like the issue was fixed by [5.7] use getConformingProtocols when printing opaque generic types by QuietMisdreavus · Pull Request #59053 · apple/swift · GitHub.

Thanks! I'll try it out!