Xcode 7 possible bug - SourceKitService

Hello everyone,


I'm getting the old SourceKit errors I used to get every now and then with the Xcode 6/iOS8 beta, but now on iOS 9/Xcode 7.


In the Console.app I can see that the SourceKitService closes with SEGMENTATION FAULT CODE 11.


Any fix you guys found? Suggestions?


+1 This fault happens ~80% of the time.


Process:               SourceKitService [88642]
Path:                  /Xcode//Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/sourcekitd.framework/Versions/A/XPCServices/SourceKitService.xpc/Contents/MacOS/SourceKitService
Identifier:            SourceKitService
Version:               1.0 (700.0.42.3)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Xcode [88591]
User ID:               502


Date/Time:             2015-07-01 06:56:16.746 +0200
OS Version:            Mac OS X 10.10.3 (14D136)
Report Version:        11
Anonymous UUID:        85DF8F01-C036-BABB-C01A-14EB25054544


Sleep/Wake UUID:       CB5F0B17-CF88-4E3D-B766-71B43FBA1AE9


Time Awake Since Boot: 130000 seconds


Crashed Thread:        13


Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000080


VM Regions Near 0x80:
-->
    __TEXT                 000000010022e000-000000010239e000 [ 33.4M] r-x/rwx SM=COW  /Xcode//Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/sourcekitd.framework/Versions/A/XPCServices/SourceKitService.xpc/Contents/MacOS/SourceKitService


Thread 0:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib         0x00007fff8687e232 kevent64 + 10
1   libdispatch.dylib             0x00007fff8aee4a6a _dispatch_mgr_thread + 52


Thread 1:: Dispatch queue: com.apple.root.default-qos.overcommit
0   libsystem_kernel.dylib         0x00007fff8687d742 __sigsuspend_nocancel + 10
1   libdispatch.dylib             0x00007fff8aef23ad _dispatch_sig_thread + 45


Thread 2:
0   libsystem_kernel.dylib         0x00007fff8687d94a __workq_kernreturn + 10
1   libsystem_pthread.dylib       0x00007fff85f0340d start_wqthread + 13


Thread 3:
0   libsystem_kernel.dylib         0x00007fff8687d94a __workq_kernreturn + 10
1   libsystem_pthread.dylib       0x00007fff85f0340d start_wqthread + 13


Thread 4:: Dispatch queue: sourcekit.request.semantic
0   libsystem_kernel.dylib         0x00007fff8687d48a __semwait_signal + 10
1   com.apple.SourceKitService     0x0000000100309a4a llvm::llvm_execute_on_thread(void (*)(void*), void*, unsigned int) + 90
2   libdispatch.dylib             0x00007fff8aee1c13 _dispatch_client_callout + 8
3   libdispatch.dylib             0x00007fff8aee899e _dispatch_async_redirect_invoke + 650
4   libdispatch.dylib             0x00007fff8aee1c13 _dispatch_client_callout + 8
5   libdispatch.dylib             0x00007fff8aee488f _dispatch_root_queue_drain + 935
6   libdispatch.dylib             0x00007fff8aef2fe4 _dispatch_worker_thread3 + 91
7   libsystem_pthread.dylib       0x00007fff85f05637 _pthread_wqthread + 729
8   libsystem_pthread.dylib       0x00007fff85f0340d start_wqthread + 13


Thread 5:: Dispatch queue: sourcekit.request.semantic
0   libsystem_kernel.dylib         0x00007fff8687d48a __semwait_signal + 10
1   com.apple.SourceKitService     0x0000000100309a4a llvm::llvm_execute_on_thread(void (*)(void*), void*, unsigned int) + 90
2   libdispatch.dylib             0x00007fff8aee1c13 _dispatch_client_callout + 8
3   libdispatch.dylib             0x00007fff8aee899e _dispatch_async_redirect_invoke + 650
4   libdispatch.dylib             0x00007fff8aee1c13 _dispatch_client_callout + 8
5   libdispatch.dylib             0x00007fff8aee488f _dispatch_root_queue_drain + 935
6   libdispatch.dylib             0x00007fff8aef2fe4 _dispatch_worker_thread3 + 91
7   libsystem_pthread.dylib       0x00007fff85f05637 _pthread_wqthread + 729
8   libsystem_pthread.dylib       0x00007fff85f0340d start_wqthread + 13


Thread 6:: Dispatch queue: sourcekit.request.semantic
0   libsystem_kernel.dylib         0x00007fff8687d48a __semwait_signal + 10
1   com.apple.SourceKitService     0x0000000100309a4a llvm::llvm_execute_on_thread(void (*)(void*), void*, unsigned int) + 90
2   libdispatch.dylib             0x00007fff8aee1c13 _dispatch_client_callout + 8
3   libdispatch.dylib             0x00007fff8aee899e _dispatch_async_redirect_invoke + 650
4   libdispatch.dylib             0x00007fff8aee1c13 _dispatch_client_callout + 8
5   libdispatch.dylib             0x00007fff8aee488f _dispatch_root_queue_drain + 935
6   libdispatch.dylib             0x00007fff8aef2fe4 _dispatch_worker_thread3 + 91
7   libsystem_pthread.dylib       0x00007fff85f05637 _pthread_wqthread + 729
8   libsystem_pthread.dylib       0x00007fff85f0340d start_wqthread + 13


Thread 7:: Dispatch queue: sourcekit.request.semantic
0   libsystem_kernel.dylib         0x00007fff8687d48a __semwait_signal + 10
1   com.apple.SourceKitService     0x0000000100309a4a llvm::llvm_execute_on_thread(void (*)(void*), void*, unsigned int) + 90
2   libdispatch.dylib             0x00007fff8aee1c13 _dispatch_client_callout + 8
3   libdispatch.dylib             0x00007fff8aee899e _dispatch_async_redirect_invoke + 650
4   libdispatch.dylib             0x00007fff8aee1c13 _dispatch_client_callout + 8
5   libdispatch.dylib             0x00007fff8aee488f _dispatch_root_queue_drain + 935
6   libdispatch.dylib             0x00007fff8aef2fe4 _dispatch_worker_thread3 + 91
7   libsystem_pthread.dylib       0x00007fff85f05637 _pthread_wqthread + 729
8   libsystem_pthread.dylib       0x00007fff85f0340d start_wqthread + 13


Thread 8:
0   libsystem_kernel.dylib         0x00007fff8687d94a __workq_kernreturn + 10
1   libsystem_pthread.dylib       0x00007fff85f0340d start_wqthread + 13


Thread 9:
0   libsystem_kernel.dylib         0x00007fff8687d94a __workq_kernreturn + 10
1   libsystem_pthread.dylib       0x00007fff85f0340d start_wqthread + 13


Thread 10:
0   libsystem_kernel.dylib         0x00007fff8687d48a __semwait_signal + 10
1   com.apple.SourceKitService     0x0000000100309a4a llvm::llvm_execute_on_thread(void (*)(void*), void*, unsigned int) + 90
2   com.apple.SourceKitService     0x00000001002b2c81 llvm::CrashRecoveryContext::RunSafelyOnThread(llvm::function_ref<void ()>, unsigned int) + 81
3   com.apple.SourceKitService     0x0000000100a56b51 clang::CompilerInstance::loadModule(clang::SourceLocation, llvm::ArrayRef<std::__1::pair<clang::IdentifierInfo*, clang::SourceLocation> >, clang::Module::NameVisibilityKind, bool) + 14481
4   com.apple.SourceKitService     0x000000010031aca9 swift::ClangImporter::loadModule(swift::SourceLoc, llvm::ArrayRef<std::__1::pair<swift::Identifier, swift::SourceLoc> >) + 633
5   com.apple.SourceKitService     0x00000001003b49b4 swift::ASTContext::getModule(llvm::ArrayRef<std::__1::pair<swift::Identifier, swift::SourceLoc> >) + 148
6   com.apple.SourceKitService     0x00000001008379b1 swift::performNameBinding(swift::SourceFile&, unsigned int) + 1937
7   com.apple.SourceKitService     0x0000000100313639 swift::CompilerInstance::performSema() + 3721
8   com.apple.SourceKitService     0x0000000100269763 SourceKit::SwiftLangSupport::indexSource(llvm::StringRef, SourceKit::IndexingConsumer&, llvm::ArrayRef<char const*>, llvm::StringRef) + 4019
9   com.apple.SourceKitService     0x0000000100281af3 void SourceKit::WorkQueue::DispatchData::callAndDelete<handleRequestImpl(void*, std::__1::function<void (void*)>)::$_1>(void*) + 2355
10  libdispatch.dylib             0x00007fff8aef112e _dispatch_block_invoke + 457
11  com.apple.SourceKitService     0x000000010200ebef executeBlock(void*) + 15
12  com.apple.SourceKitService     0x0000000100309a6d ExecuteOnThread_Dispatch(void*) + 13
13  libsystem_pthread.dylib       0x00007fff85f05268 _pthread_body + 131
14  libsystem_pthread.dylib       0x00007fff85f051e5 _pthread_start + 176
15  libsystem_pthread.dylib       0x00007fff85f0341d thread_start + 13


Thread 11:
0   com.apple.SourceKitService     0x000000010035328c swift::ClangImporter::Implementation::importMethodType(clang::ObjCMethodDecl const*, clang::QualType, llvm::ArrayRef<clang::ParmVarDecl const*>, bool, bool, bool, llvm::SmallVectorImpl<swift::Pattern*>&, swift::DeclName&, llvm::Optional<swift::ForeignErrorConvention>&, swift::SpecialMethodKind) + 4444
1   com.apple.SourceKitService     0x000000010033a4b2 (anonymous namespace)::SwiftDeclConverter::importConstructor(clang::ObjCMethodDecl const*, swift::DeclContext*, bool, llvm::Optional<swift::CtorInitializerKind>, bool, swift::ObjCSelector, swift::DeclName, llvm::ArrayRef<clang::ParmVarDecl const*>, bool, bool&) + 994
2   com.apple.SourceKitService     0x00000001003390c6 (anonymous namespace)::SwiftDeclConverter::importConstructor(clang::ObjCMethodDecl const*, swift::DeclContext*, bool, llvm::Optional<swift::CtorInitializerKind>, bool) + 1046
3   com.apple.SourceKitService     0x0000000100333268 (anonymous namespace)::SwiftDeclConverter::VisitObjCMethodDecl(clang::ObjCMethodDecl const*, swift::DeclContext*, bool) + 120
4   com.apple.SourceKitService     0x000000010032ff74 swift::ClangImporter::Implementation::importDeclImpl(clang::NamedDecl const*, bool&, bool&) + 308
5   com.apple.SourceKitService     0x0000000100332d65 swift::ClangImporter::Implementation::importDeclAndCacheImpl(clang::NamedDecl const*, bool) + 213
6   com.apple.SourceKitService     0x0000000100336510 swift::ClangImporter::Implementation::loadAllMembers(swift::Decl*, unsigned long long, bool*) + 1904
7   com.apple.SourceKitService     0x000000010044a418 swift::IterableDeclContext::loadAllMembers() const + 104
8   com.apple.SourceKitService     0x0000000100439d35 swift::ExtensionDecl::getMembers(bool) const + 21
9   com.apple.SourceKitService     0x000000010047730d swift::NominalTypeDecl::lookupDirect(swift::DeclName, bool) + 61
10  com.apple.SourceKitService     0x0000000100475ce9 swift::DeclContext::lookupQualified(swift::Type, swift::DeclName, unsigned int, swift::LazyResolver*, llvm::SmallVectorImpl<swift::ValueDecl*>&) const + 3577
11  com.apple.SourceKitService     0x00000001008a01e5 swift::TypeChecker::lookupMember(swift::DeclContext*, swift::Type, swift::DeclName, swift::OptionSet<swift::NameLookupFlags, unsigned int>) + 709
12  com.apple.SourceKitService     0x00000001007cb678 swift::constraints::ConstraintSystem::lookupMember(swift::Type, swift::DeclName) + 296
13  com.apple.SourceKitService     0x0000000100822464 swift::constraints::ConstraintSystem::simplifyMemberConstraint(swift::constraints::Constraint const&) + 2068
14  com.apple.SourceKitService     0x00000001008257eb swift::constraints::ConstraintSystem::simplifyConstraint(swift::constraints::Constraint const&) + 75
15  com.apple.SourceKitService     0x00000001007cc21c swift::constraints::ConstraintSystem::addConstraint(swift::constraints::Constraint*, bool, bool) + 28
16  com.apple.SourceKitService     0x0000000100808a04 swift::ASTVisitor<(anonymous namespace)::ConstraintGenerator, swift::Type, void, void, void, void, void>::visit(swift::Expr*) + 4708
17  com.apple.SourceKitService     0x000000010080c62b (anonymous namespace)::ConstraintWalker::walkToExprPost(swift::Expr*) + 75
18  com.apple.SourceKitService     0x00000001003f27d3 (anonymous namespace)::Traversal::visit(swift::Expr*) + 5763
19  com.apple.SourceKitService     0x00000001003f11ce (anonymous namespace)::Traversal::visit(swift::Expr*) + 126
20  com.apple.SourceKitService     0x00000001003f11ce (anonymous namespace)::Traversal::visit(swift::Expr*) + 126
21  com.apple.SourceKitService     0x00000001003f2f02 (anonymous namespace)::Traversal::visitApplyExpr(swift::ApplyExpr*) + 50
22  com.apple.SourceKitService     0x00000001003f1225 (anonymous namespace)::Traversal::visit(swift::Expr*) + 213
23  com.apple.SourceKitService     0x00000001003f27bb (anonymous namespace)::Traversal::visit(swift::Expr*) + 5739
24  com.apple.SourceKitService     0x00000001003f06a5 swift::Expr::walk(swift::ASTWalker&) + 53
25  com.apple.SourceKitService     0x00000001008072b9 swift::constraints::ConstraintSystem::generateConstraints(swift::Expr*) + 201
26  com.apple.SourceKitService     0x000000010085d42b swift::TypeChecker::solveForExpression(swift::Expr*&, swift::DeclContext*, swift::Type, swift::Type, bool, swift::FreeTypeVariableBinding, swift::ExprTypeCheckListener*, swift::constraints::ConstraintSystem&, llvm::SmallVectorImpl<swift::constraints::Solution>&) + 203
27  com.apple.SourceKitService     0x0000000100862d63 swift::TypeChecker::typeCheckExpression(swift::Expr*&, swift::DeclContext*, swift::Type, swift::Type, bool, swift::FreeTypeVariableBinding, swift::ExprTypeCheckListener*) + 243
28  com.apple.SourceKitService     0x000000010086385b swift::TypeChecker::typeCheckBinding(swift::Pattern*&, swift::Expr*&, swift::DeclContext*) + 107
29  com.apple.SourceKitService     0x00000001008639f4 swift::TypeChecker::typeCheckPatternBinding(swift::PatternBindingDecl*, unsigned int) + 244
30  com.apple.SourceKitService     0x000000010087eac5 validatePatternBindingDecl(swift::TypeChecker&, swift::PatternBindingDecl*, unsigned int) + 869
31  com.apple.SourceKitService     0x000000010087b4ce (anonymous namespace)::DeclChecker::visit(swift::Decl*) + 462
32  com.apple.SourceKitService     0x000000010087b2e8 swift::TypeChecker::typeCheckDecl(swift::Decl*, bool) + 152
33  com.apple.SourceKitService     0x00000001008c43b4 swift::ASTVisitor<(anonymous namespace)::StmtChecker, void, swift::Stmt*, void, void, void, void>::visit(swift::Stmt*) + 420
34  com.apple.SourceKitService     0x00000001008c3719 (anonymous namespace)::StmtChecker::typeCheckBody(swift::BraceStmt*&) + 25
35  com.apple.SourceKitService     0x00000001008c27df swift::TypeChecker::typeCheckFunctionBodyUntil(swift::FuncDecl*, swift::SourceLoc) + 415
36  com.apple.SourceKitService     0x00000001008c25f1 swift::TypeChecker::typeCheckAbstractFunctionBodyUntil(swift::AbstractFunctionDecl*, swift::SourceLoc) + 49
37  com.apple.SourceKitService     0x00000001008c331a swift::TypeChecker::typeCheckAbstractFunctionBody(swift::AbstractFunctionDecl*) + 138
38  com.apple.SourceKitService     0x000000010084a6a8 typeCheckFunctionsAndExternalDecls(swift::TypeChecker&) + 200
39  com.apple.SourceKitService     0x000000010084b393 swift::performTypeChecking(swift::SourceFile&, swift::TopLevelContext&, swift::OptionSet<swift::TypeCheckingFlags, unsigned int>, unsigned int) + 1715
40  com.apple.SourceKitService     0x00000001003138a5 swift::CompilerInstance::performSema() + 4341
41  com.apple.SourceKitService     0x0000000100269763 SourceKit::SwiftLangSupport::indexSource(llvm::StringRef, SourceKit::IndexingConsumer&, llvm::ArrayRef<char const*>, llvm::StringRef) + 4019
42  com.apple.SourceKitService     0x0000000100281af3 void SourceKit::WorkQueue::DispatchData::callAndDelete<handleRequestImpl(void*, std::__1::function<void (void*)>)::$_1>(void*) + 2355
43  libdispatch.dylib             0x00007fff8aef112e _dispatch_block_invoke + 457
44  com.apple.SourceKitService     0x000000010200ebef executeBlock(void*) + 15
45  com.apple.SourceKitService     0x0000000100309a6d ExecuteOnThread_Dispatch(void*) + 13
46  libsystem_pthread.dylib       0x00007fff85f05268 _pthread_body + 131
47  libsystem_pthread.dylib       0x00007fff85f051e5 _pthread_start + 176
48  libsystem_pthread.dylib       0x00007fff85f0341d thread_start + 13


Thread 12:
0   libsystem_kernel.dylib         0x00007fff8687d48a __semwait_signal + 10
1   com.apple.SourceKitService     0x00000001002c689b llvm::LockFileManager::waitForUnlock() + 123
2   com.apple.SourceKitService     0x0000000100a559bc clang::CompilerInstance::loadModule(clang::SourceLocation, llvm::ArrayRef<std::__1::pair<clang::IdentifierInfo*, clang::SourceLocation> >, clang::Module::NameVisibilityKind, bool) + 9980
3   com.apple.SourceKitService     0x00000001012b139f clang::Preprocessor::HandleIncludeDirective(clang::SourceLocation, clang::Token&, clang::DirectoryLookup const*, clang::FileEntry const*, bool) + 7327
4   com.apple.SourceKitService     0x00000001012addbc clang::Preprocessor::HandleDirective(clang::Token&) + 1356
5   com.apple.SourceKitService     0x000000010128c334 clang::Lexer::LexTokenInternal(clang::Token&, bool) + 10212
6   com.apple.SourceKitService     0x00000001012d6f14 clang::Preprocessor::Lex(clang::Token&) + 68
7   com.apple.SourceKitService     0x00000001012a9a44 clang::Preprocessor::PeekAhead(unsigned int) + 260
8   com.apple.SourceKitService     0x0000000100319d21 swift::ClangImporter::Implementation::importHeader(swift::ModuleDecl*, llvm::StringRef, swift::SourceLoc, bool, std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer> >) + 641
9   com.apple.SourceKitService     0x000000010031a374 swift::ClangImporter::importBridgingHeader(llvm::StringRef, swift::ModuleDecl*, swift::SourceLoc, bool) + 724
10  com.apple.SourceKitService     0x0000000100312a66 swift::CompilerInstance::performSema() + 694
11  com.apple.SourceKitService     0x0000000100269763 SourceKit::SwiftLangSupport::indexSource(llvm::StringRef, SourceKit::IndexingConsumer&, llvm::ArrayRef<char const*>, llvm::StringRef) + 4019
12  com.apple.SourceKitService     0x0000000100281af3 void SourceKit::WorkQueue::DispatchData::callAndDelete<handleRequestImpl(void*, std::__1::function<void (void*)>)::$_1>(void*) + 2355
13  libdispatch.dylib             0x00007fff8aef112e _dispatch_block_invoke + 457
14  com.apple.SourceKitService     0x000000010200ebef executeBlock(void*) + 15
15  com.apple.SourceKitService     0x0000000100309a6d ExecuteOnThread_Dispatch(void*) + 13
16  libsystem_pthread.dylib       0x00007fff85f05268 _pthread_body + 131
17  libsystem_pthread.dylib       0x00007fff85f051e5 _pthread_start + 176
18  libsystem_pthread.dylib       0x00007fff85f0341d thread_start + 13


Thread 13 Crashed:
0   com.apple.SourceKitService     0x00000001003b74bd swift::ASTContext::verifyAllLoadedModules() const + 93
1   com.apple.SourceKitService     0x000000010084b40f swift::performTypeChecking(swift::SourceFile&, swift::TopLevelContext&, swift::OptionSet<swift::TypeCheckingFlags, unsigned int>, unsigned int) + 1839
2   com.apple.SourceKitService     0x00000001003138a5 swift::CompilerInstance::performSema() + 4341
3   com.apple.SourceKitService     0x0000000100269763 SourceKit::SwiftLangSupport::indexSource(llvm::StringRef, SourceKit::IndexingConsumer&, llvm::ArrayRef<char const*>, llvm::StringRef) + 4019
4   com.apple.SourceKitService     0x0000000100281af3 void SourceKit::WorkQueue::DispatchData::callAndDelete<handleRequestImpl(void*, std::__1::function<void (void*)>)::$_1>(void*) + 2355
5   libdispatch.dylib             0x00007fff8aef112e _dispatch_block_invoke + 457
6   com.apple.SourceKitService     0x000000010200ebef executeBlock(void*) + 15
7   com.apple.SourceKitService     0x0000000100309a6d ExecuteOnThread_Dispatch(void*) + 13
8   libsystem_pthread.dylib       0x00007fff85f05268 _pthread_body + 131
9   libsystem_pthread.dylib       0x00007fff85f051e5 _pthread_start + 176
10  libsystem_pthread.dylib       0x00007fff85f0341d thread_start + 13


Thread 14:
0   libsystem_kernel.dylib         0x00007fff8687842a _kernelrpc_mach_vm_map_trap + 10
1   libsystem_kernel.dylib         0x00007fff8687c278 mach_vm_map + 85
2   libsystem_malloc.dylib         0x00007fff85e1f01d allocate_pages + 328
3   libsystem_malloc.dylib         0x00007fff85e2201f large_malloc + 1042
4   libsystem_malloc.dylib         0x00007fff85e203a5 szone_malloc_should_clear + 1426
5   libsystem_malloc.dylib         0x00007fff85e21acb malloc_zone_calloc + 78
6   libsystem_malloc.dylib         0x00007fff85e27231 calloc + 49
7   com.apple.SourceKitService     0x00000001002d4fa0 llvm::StringMapImpl::RehashTable(unsigned int) + 96
8   com.apple.SourceKitService     0x00000001014bcbb7 llvm::StringMap<clang::DirectoryEntry*, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul> >::insert(std::__1::pair<llvm::StringRef, clang::DirectoryEntry*>) + 151
9   com.apple.SourceKitService     0x00000001014baca1 clang::FileManager::getDirectory(llvm::StringRef, bool) + 177
10  com.apple.SourceKitService     0x000000010127ea65 clang::HeaderSearch::hasModuleMap(llvm::StringRef, clang::DirectoryEntry const*, bool) + 325
11  com.apple.SourceKitService     0x000000010127aded getFileAndSuggestModule(clang::HeaderSearch&, llvm::StringRef, clang::DirectoryEntry const*, bool, clang::ModuleMap::KnownHeader*) + 45
12  com.apple.SourceKitService     0x000000010127ad8d clang::DirectoryLookup::LookupFile(llvm::StringRef&, clang::HeaderSearch&, llvm::SmallVectorImpl<char>*, llvm::SmallVectorImpl<char>*, clang::ModuleMap::KnownHeader*, bool&, bool&, llvm::SmallVectorImpl<char>&) const + 2141
13  com.apple.SourceKitService     0x000000010127c7ff clang::HeaderSearch::LookupFile(llvm::StringRef, clang::SourceLocation, bool, clang::DirectoryLookup const*, clang::DirectoryLookup const*&, llvm::ArrayRef<std::__1::pair<clang::FileEntry const*, clang::DirectoryEntry const*> >, llvm::SmallVectorImpl<char>*, llvm::SmallVectorImpl<char>*, clang::ModuleMap::KnownHeader*, bool) + 2463
14  com.apple.SourceKitService     0x00000001012ad474 clang::Preprocessor::LookupFile(clang::SourceLocation, llvm::StringRef, bool, clang::DirectoryLookup const*, clang::FileEntry const*, clang::DirectoryLookup const*&, llvm::SmallVectorImpl<char>*, llvm::SmallVectorImpl<char>*, clang::ModuleMap::KnownHeader*, bool) + 1460
15  com.apple.SourceKitService     0x00000001012b01e7 clang::Preprocessor::HandleIncludeDirective(clang::SourceLocation, clang::Token&, clang::DirectoryLookup const*, clang::FileEntry const*, bool) + 2791
16  com.apple.SourceKitService     0x00000001012add4f clang::Preprocessor::HandleDirective(clang::Token&) + 1247
17  com.apple.SourceKitService     0x000000010128c334 clang::Lexer::LexTokenInternal(clang::Token&, bool) + 10212
18  com.apple.SourceKitService     0x00000001012d6f14 clang::Preprocessor::Lex(clang::Token&) + 68
19  com.apple.SourceKitService     0x0000000100da4b42 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 210
20  com.apple.SourceKitService     0x0000000100d2a1a6 clang::ParseAST(clang::Sema&, bool, bool) + 390
21  com.apple.SourceKitService     0x0000000100a7a80e clang::FrontendAction::Execute() + 62
22  com.apple.SourceKitService     0x0000000100a52253 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 883
23  com.apple.SourceKitService     0x00000001002b2b89 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) + 201
24  com.apple.SourceKitService     0x00000001002b2cd0 RunSafelyOnThread_Dispatch(void*) + 48
25  com.apple.SourceKitService     0x0000000100309a6d ExecuteOnThread_Dispatch(void*) + 13
26  libsystem_pthread.dylib       0x00007fff85f05268 _pthread_body + 131
27  libsystem_pthread.dylib       0x00007fff85f051e5 _pthread_start + 176
28  libsystem_pthread.dylib       0x00007fff85f0341d thread_start + 13


Thread 13 crashed with X86 Thread State (64-bit):
  rax: 0x00007fd0f637a390  rbx: 0x00007fd0f79076b0  rcx: 0x00007fd0f637a430  rdx: 0x0000000000000000
  rdi: 0x0000000000000000  rsi: 0x00007fd0f91c99b8  rbp: 0x00000001058edbe0  rsp: 0x00000001058edbc0
   r8: 0x00007fd0f9591e00   r9: 0x0000000000000a00  r10: 0x0000000047f4190c  r11: 0x00000000a197852a
  r12: 0x0000000000000000  r13: 0x0000000000000000  r14: 0x00007fd0f4025400  r15: 0x00007fd0f40043c0
  rip: 0x00000001003b74bd  rfl: 0x0000000000010287  cr2: 0x0000000000000080

Logical CPU:     0
Error Code:      0x00000004
Trap Number:     14




Binary Images:
       0x10022e000 -        0x10239dfff  com.apple.SourceKitService (1.0 - 700.0.42.3) <3658393D-866B-33BD-84EF-80A546E88EE4> /Xcode//Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/sourcekitd.framework/Versions/A/XPCServices/SourceKitService.xpc/Contents/MacOS/SourceKitService
    0x7fff695e2000 -     0x7fff69618837  dyld (353.2.1) <65DCCB06-339C-3E25-9702-600A28291D0E> /usr/lib/dyld
    0x7fff83fbd000 -     0x7fff83fbfff7  libsystem_coreservices.dylib (9) <41B7C578-5A53-31C8-A96F-C73E030B0938> /usr/lib/system/libsystem_coreservices.dylib
    0x7fff84b0b000 -     0x7fff84b81fe7  libcorecrypto.dylib (233.1.2) <E1789801-3985-3949-B736-6B3378873301> /usr/lib/system/libcorecrypto.dylib
    0x7fff84e6b000 -     0x7fff84e7cff7  libz.1.dylib (55) <88C7C7DE-04B8-316F-8B74-ACD9F3DE1AA1> /usr/lib/libz.1.dylib
    0x7fff84ee5000 -     0x7fff84ee6ff7  libsystem_blocks.dylib (65) <9615D10A-FCA7-3BE4-AA1A-1B195DACE1A1> /usr/lib/system/libsystem_blocks.dylib
    0x7fff84f02000 -     0x7fff84f0afff  libsystem_platform.dylib (63) <64E34079-D712-3D66-9CE2-418624A5C040> /usr/lib/system/libsystem_platform.dylib
    0x7fff8536b000 -     0x7fff8539bff7  libncurses.5.4.dylib (44) <F09809A4-53B9-3E91-A8FA-D3F584C03AA3> /usr/lib/libncurses.5.4.dylib
    0x7fff85e1d000 -     0x7fff85e39ff7  libsystem_malloc.dylib (53.1.1) <19BCC257-5717-3502-A71F-95D65AFA861B> /usr/lib/system/libsystem_malloc.dylib
    0x7fff85f02000 -     0x7fff85f0bfff  libsystem_pthread.dylib (105.10.1) <3103AA7F-3BAE-3673-9649-47FFD7E15C97> /usr/lib/system/libsystem_pthread.dylib
    0x7fff86397000 -     0x7fff86398fff  libsystem_secinit.dylib (18) <581DAD0F-6B63-3A48-B63B-917AF799ABAA> /usr/lib/system/libsystem_secinit.dylib
    0x7fff86399000 -     0x7fff863c1fff  libxpc.dylib (559.20.9) <D35D0DB2-D7BD-3BE4-8378-062BFE545E1D> /usr/lib/system/libxpc.dylib
    0x7fff86590000 -     0x7fff86596ff7  libsystem_networkextension.dylib (167.1.10) <29AB225B-D7FB-30ED-9600-65D44B9A9442> /usr/lib/system/libsystem_networkextension.dylib
    0x7fff86867000 -     0x7fff86884fff  libsystem_kernel.dylib (2782.20.48) <EAFD7BD0-0C30-3E7D-9528-F9916BA0167C> /usr/lib/system/libsystem_kernel.dylib
    0x7fff868c7000 -     0x7fff868c7ff7  libkeymgr.dylib (28) <77845842-DE70-3CC5-BD01-C3D14227CED5> /usr/lib/system/libkeymgr.dylib
    0x7fff873ce000 -     0x7fff873d4fff  libsystem_trace.dylib (72.20.1) <840F5301-B55A-3078-90B9-FEFFD6CD741A> /usr/lib/system/libsystem_trace.dylib
    0x7fff8745a000 -     0x7fff8745bffb  libremovefile.dylib (35) <3485B5F4-6CE8-3C62-8DFD-8736ED6E8531> /usr/lib/system/libremovefile.dylib
    0x7fff87759000 -     0x7fff8775bfff  libsystem_sandbox.dylib (358.20.5) <4CF77128-6BE0-3958-B646-707FA9CE61B2> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff8775d000 -     0x7fff87762fff  libsystem_stats.dylib (163.20.16) <FBC3F80F-A0FB-3BD6-9A7E-800DE45F092E> /usr/lib/system/libsystem_stats.dylib
    0x7fff87763000 -     0x7fff8778bfff  libsystem_info.dylib (459.20.1) <AEB3FE62-4763-3050-8352-D6F9AF961AE6> /usr/lib/system/libsystem_info.dylib
    0x7fff88674000 -     0x7fff886baff7  libauto.dylib (186) <A260789B-D4D8-316A-9490-254767B8A5F1> /usr/lib/libauto.dylib
    0x7fff89afa000 -     0x7fff89b10ff7  libsystem_asl.dylib (267) <F153AC5B-0542-356E-88C8-20A62CA704E2> /usr/lib/system/libsystem_asl.dylib
    0x7fff89c17000 -     0x7fff89c6bfff  libc++.1.dylib (120) <1B9530FD-989B-3174-BB1C-BDC159501710> /usr/lib/libc++.1.dylib
    0x7fff8a351000 -     0x7fff8a352ff3  libSystem.B.dylib (1213) <CCEC13A5-D0D9-31C5-B0B0-1C564B4A20A6> /usr/lib/libSystem.B.dylib
    0x7fff8a353000 -     0x7fff8a355fff  libsystem_configuration.dylib (699.1.5) <20F3B077-179D-3CB0-A3C1-C8602D53B4DB> /usr/lib/system/libsystem_configuration.dylib
    0x7fff8a613000 -     0x7fff8a618ff7  libmacho.dylib (862) <126CA2ED-DE91-308F-8881-B9DAEC3C63B6> /usr/lib/system/libmacho.dylib
    0x7fff8a61a000 -     0x7fff8a61aff7  liblaunch.dylib (559.20.9) <FA89A113-696E-3271-8FE1-A0D7324E8481> /usr/lib/system/liblaunch.dylib
    0x7fff8a97a000 -     0x7fff8a982ffb  libcopyfile.dylib (118.1.2) <0C68D3A6-ACDD-3EF3-991A-CC82C32AB836> /usr/lib/system/libcopyfile.dylib
    0x7fff8ac96000 -     0x7fff8aca1fff  libcommonCrypto.dylib (60061) <D381EBC6-69D8-31D3-8084-5A80A32CB748> /usr/lib/system/libcommonCrypto.dylib
    0x7fff8aee0000 -     0x7fff8af0aff7  libdispatch.dylib (442.1.4) <502CF32B-669B-3709-8862-08188225E4F0> /usr/lib/system/libdispatch.dylib
    0x7fff8b84d000 -     0x7fff8b854ff7  libcompiler_rt.dylib (35) <BF8FC133-EE10-3DA6-9B90-92039E28678F> /usr/lib/system/libcompiler_rt.dylib
    0x7fff8b8fd000 -     0x7fff8b90efff  libsystem_coretls.dylib (35.20.2) <6084A531-2523-39F8-B030-811FA1A32FB5> /usr/lib/system/libsystem_coretls.dylib
    0x7fff8be2b000 -     0x7fff8be56fff  libc++abi.dylib (125) <88A22A0F-87C6-3002-BFBA-AC0F2808B8B9> /usr/lib/libc++abi.dylib
    0x7fff8c674000 -     0x7fff8c676fff  libquarantine.dylib (76.20.1) <7AF90041-2768-378A-925A-D83161863642> /usr/lib/system/libquarantine.dylib
    0x7fff8d154000 -     0x7fff8d158fff  libcache.dylib (69) <45E9A2E7-99C4-36B2-BEE3-0C4E11614AD1> /usr/lib/system/libcache.dylib
    0x7fff8f77b000 -     0x7fff8f7b3fff  libsystem_network.dylib (412.20.3) <589A5F67-BE2A-3245-A181-0ECC9B53EB00> /usr/lib/system/libsystem_network.dylib
    0x7fff8faf9000 -     0x7fff8fafafff  libDiagnosticMessagesClient.dylib (100) <2EE8E436-5CDC-34C5-9959-5BA218D507FB> /usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff900d9000 -     0x7fff900deff7  libunwind.dylib (35.3) <BE7E51A0-B6EA-3A54-9CCA-9D88F683A6D6> /usr/lib/system/libunwind.dylib
    0x7fff91184000 -     0x7fff91187ff7  libdyld.dylib (353.2.1) <9EACCA38-291D-38CC-811F-7E9D1451E2D3> /usr/lib/system/libdyld.dylib
    0x7fff91726000 -     0x7fff9172efff  libsystem_dnssd.dylib (561.1.1) <62B70ECA-E40D-3C63-896E-7F00EC386DDB> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff92cdd000 -     0x7fff92ce6ff7  libsystem_notify.dylib (133.1.1) <61147800-F320-3DAA-850C-BADF33855F29> /usr/lib/system/libsystem_notify.dylib
    0x7fff92ce7000 -     0x7fff92d17fff  libsystem_m.dylib (3086.1) <1E12AB45-6D96-36D0-A226-F24D9FB0D9D6> /usr/lib/system/libsystem_m.dylib
    0x7fff930f1000 -     0x7fff932eb46f  libobjc.A.dylib (647) <759E155D-BC42-3D4E-869B-6F57D477177C> /usr/lib/libobjc.A.dylib
    0x7fff93377000 -     0x7fff93377ff7  libunc.dylib (29) <5676F7EA-C1DF-329F-B006-D2C3022B7D70> /usr/lib/system/libunc.dylib
    0x7fff93388000 -     0x7fff93414ff7  libsystem_c.dylib (1044.10.1) <86FBED7A-F2C8-3591-AD6F-486DD57E6B6A> /usr/lib/system/libsystem_c.dylib


External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 1
    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: 17573730
    thread_create: 0
    thread_set_state: 399


VM Region Summary:
ReadOnly portion of Libraries: Total=116.8M resident=41.7M(36%) swapped_out_or_unallocated=75.1M(64%)
Writable regions: Total=269.7M written=182.2M(68%) resident=186.1M(69%) swapped_out=0K(0%) unallocated=83.6M(31%)

REGION TYPE                      VIRTUAL
===========                      =======
Dispatch continuations             8192K
Kernel Alloc Once                     4K
MALLOC                            207.8M
MALLOC (admin)                       16K
MALLOC_LARGE (reserved)             772K        reserved VM address space (unallocated)
STACK GUARD                          60K
Stack                             108.7M
VM_ALLOCATE                         248K
__DATA                             2524K
__LINKEDIT                         77.3M
__TEXT                             39.5M
mapped file                       104.2M
shared memory                         4K
===========                      =======
TOTAL                             548.9M
TOTAL, minus reserved VM space    548.2M



Model: iMac14,2, BootROM IM142.0118.B09, 4 processors, Intel Core i5, 3.4 GHz, 32 GB, SMC 2.15f7
Graphics: NVIDIA GeForce GTX 780M, NVIDIA GeForce GTX 780M, PCIe, 4096 MB
Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533641465238412D50422020
Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533641465238412D50422020
Memory Module: BANK 0/DIMM1, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533641465238412D50422020
Memory Module: BANK 1/DIMM1, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533641465238412D50422020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x111), Broadcom BCM43xx 1.0 (7.15.166.24.3)
Bluetooth: Version 4.3.4f4 15601, 3 services, 27 devices, 1 incoming serial ports
Network Service: Display Ethernet, Ethernet, en11
Network Service: Wi-Fi, AirPort, en1
PCI Card: Apple 57761-B0, Ethernet Controller, Thunderbolt@191,0,0
PCI Card: pci11c1,5901, IEEE 1394 Open HCI, Thunderbolt@190,0,0
PCI Card: pci12d8,400e, USB Open Host Controller, Thunderbolt@196,0,0
PCI Card: pci12d8,400e, USB Open Host Controller, Thunderbolt@196,0,1
PCI Card: pci12d8,400f, USB Enhanced Host Controller, Thunderbolt@196,0,2
Serial ATA Device: APPLE SSD SM1024F, 1 TB
USB Device: Hub
USB Device: FaceTime HD Camera (Display)
USB Device: Display Audio
USB Device: Apple Thunderbolt Display
USB Device: USB3.0 Hub
USB Device: USB3.0 Hub
USB Device: USB3.0 Hub
USB Device: USB3.0 Hub
USB Device: FaceTime HD Camera (Built-in)
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
USB Device: USB2.0 Hub
USB Device: iPad
USB Device: USB2.0 Hub
USB Device: USB2.0 Hub
USB Device: Nexus 7
USB Device: SAMSUNG_Android
USB Device: USB2.0 Hub
USB Device: iPhone
USB Device: iPad
USB Device: SB Omni Surround 5.1
USB Device: Keyboard Hub
USB Device: Razer DeathAdder
USB Device: Apple Keyboard
Thunderbolt Bus: iMac, Apple Inc., 23.10
Thunderbolt Device: Thunderbolt Display, Apple Inc., 1, 26.2
Xcode 7 possible bug - SourceKitService
 
 
Q