swiftlang/swift

[SR-13797] Segfault in swift::PartialApplyInst::create

Open

#56,194 opened on Oct 30, 2020

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Swift (10,719 forks)batch import
bugcompilergood first issuetype checker

Repository metrics

Stars
 (69,989 stars)
PR merge metrics
 (Avg merge 8d 17h) (510 merged PRs in 30d)

Description

Previous ID SR-13797
Radar rdar://problem/70892081
Original Reporter hughbe (JIRA User)
Type Bug

macOS Catalina 10.15.7 (19H2)

Xcode Version 12.0.1 (12A7300)

Votes 0
Component/s Compiler
Labels Bug, StarterBug, TypeChecker
Assignee None
Priority Medium

md5: 2ec8b445c93ac5fadb92557f27dbf8d7

Issue Description:

Steps to reproduce:

Expected:

Although the file is obviously disgustingly long, it should not crash the compiler

Actual:**

Segmentation fault: 11

CompileSwift normal x86_64 /Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/FullDumpTests.swift (in target 'PstReaderTests' from project 'PstReader')
    cd /Users/hugh/Documents/GitHub/PstReader
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/AutoGeneratedTests.swift /Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/DumpPstFileTests.swift -primary-file /Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/FullDumpTests.swift /Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/Helpers.swift /Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/PerformanceTests.swift /Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/PstFileTests.swift /Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/URL+ForResource.swift /Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/XCTestManifests.swift -emit-module-path /Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Intermediates.noindex/PstReader.build/Debug/PstReaderTests.build/Objects-normal/x86_64/FullDumpTests\~partial.swiftmodule -emit-module-doc-path /Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Intermediates.noindex/PstReader.build/Debug/PstReaderTests.build/Objects-normal/x86_64/FullDumpTests\~partial.swiftdoc -emit-module-source-info-path /Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Intermediates.noindex/PstReader.build/Debug/PstReaderTests.build/Objects-normal/x86_64/FullDumpTests\~partial.swiftsourceinfo -serialize-diagnostics-path /Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Intermediates.noindex/PstReader.build/Debug/PstReaderTests.build/Objects-normal/x86_64/FullDumpTests.dia -emit-dependencies-path /Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Intermediates.noindex/PstReader.build/Debug/PstReaderTests.build/Objects-normal/x86_64/FullDumpTests.d -emit-reference-dependencies-path /Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Intermediates.noindex/PstReader.build/Debug/PstReaderTests.build/Objects-normal/x86_64/FullDumpTests.swiftdeps -target x86_64-apple-macos10.15 -enable-objc-interop -stack-check -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I /Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Products/Debug -I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Products/Debug -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -enable-testing -g -module-cache-path /Users/hugh/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -swift-version 5 -enforce-exclusivity\=checked -Onone -D SWIFT_PACKAGE -D DEBUG -D Xcode -serialize-debugging-options -serialize-debugging-options -Xcc -working-directory -Xcc /Users/hugh/Documents/GitHub/PstReader -enable-anonymous-context-mangled-names -Xcc -I/Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Products/Debug/include -Xcc -I/Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Intermediates.noindex/PstReader.build/Debug/PstReaderTests.build/DerivedSources-normal/x86_64 -Xcc -I/Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Intermediates.noindex/PstReader.build/Debug/PstReaderTests.build/DerivedSources/x86_64 -Xcc -I/Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Intermediates.noindex/PstReader.build/Debug/PstReaderTests.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -target-sdk-version 10.15.6 -module-name PstReaderTests -o /Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Intermediates.noindex/PstReader.build/Debug/PstReaderTests.build/Objects-normal/x86_64/FullDumpTests.o -index-store-path /Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Index/DataStore -index-system-modules


/Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/FullDumpTests.swift:60706:173: warning: conditional downcast from 'FolderEntryID?' to 'FolderEntryID' does nothing
XCTAssertEqual(0x00000000, ((messageDetails.extendedRuleMessageActions!.ruleActionsBuffer.actionBlocks[0].actionData as? ActionBlock.MoveCopyActionDataExtended)!.folderEID as? FolderEntryID)!.flags)
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
                                                                                                                                                                           
/Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/FullDumpTests.swift:60707:219: warning: conditional downcast from 'FolderEntryID?' to 'FolderEntryID' does nothing
XCTAssertEqual(UUID(uuidString: "CBB89467-E606-4248-A820-9CC1E3B9A128"), ((messageDetails.extendedRuleMessageActions!.ruleActionsBuffer.actionBlocks[0].actionData as? ActionBlock.MoveCopyActionDataExtended)!.folderEID as? FolderEntryID)!.providerUid)
                                                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
                                                                                                                                                                                                                         
/Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/FullDumpTests.swift:60708:177: warning: conditional downcast from 'FolderEntryID?' to 'FolderEntryID' does nothing
XCTAssertEqual(.privateFolder, ((messageDetails.extendedRuleMessageActions!.ruleActionsBuffer.actionBlocks[0].actionData as? ActionBlock.MoveCopyActionDataExtended)!.folderEID as? FolderEntryID)!.folderType)
                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
                                                                                                                                                                               
/Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/FullDumpTests.swift:60709:219: warning: conditional downcast from 'FolderEntryID?' to 'FolderEntryID' does nothing
XCTAssertEqual(UUID(uuidString: "F711B14A-92C8-4094-9843-750BE6086BC4"), ((messageDetails.extendedRuleMessageActions!.ruleActionsBuffer.actionBlocks[0].actionData as? ActionBlock.MoveCopyActionDataExtended)!.folderEID as? FolderEntryID)!.databaseGuid)
                                                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
                                                                                                                                                                                                                         
/Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/FullDumpTests.swift:60710:179: warning: conditional downcast from 'FolderEntryID?' to 'FolderEntryID' does nothing
XCTAssertEqual(8163873836236800, ((messageDetails.extendedRuleMessageActions!.ruleActionsBuffer.actionBlocks[0].actionData as? ActionBlock.MoveCopyActionDataExtended)!.folderEID as? FolderEntryID)!.globalCounter)
                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
                                                                                                                                                                                 
/Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/FullDumpTests.swift:60711:169: warning: conditional downcast from 'FolderEntryID?' to 'FolderEntryID' does nothing
XCTAssertEqual(0x0000, ((messageDetails.extendedRuleMessageActions!.ruleActionsBuffer.actionBlocks[0].actionData as? ActionBlock.MoveCopyActionDataExtended)!.folderEID as? FolderEntryID)!.pad)
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
                                                                                                                                                                       
/Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/FullDumpTests.swift:62136:173: warning: conditional downcast from 'FolderEntryID?' to 'FolderEntryID' does nothing
XCTAssertEqual(0x00000000, ((messageDetails.extendedRuleMessageActions!.ruleActionsBuffer.actionBlocks[0].actionData as? ActionBlock.MoveCopyActionDataExtended)!.folderEID as? FolderEntryID)!.flags)
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
                                                                                                                                                                           
/Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/FullDumpTests.swift:62137:219: warning: conditional downcast from 'FolderEntryID?' to 'FolderEntryID' does nothing
XCTAssertEqual(UUID(uuidString: "CBB89467-E606-4248-A820-9CC1E3B9A128"), ((messageDetails.extendedRuleMessageActions!.ruleActionsBuffer.actionBlocks[0].actionData as? ActionBlock.MoveCopyActionDataExtended)!.folderEID as? FolderEntryID)!.providerUid)
                                                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
                                                                                                                                                                                                                         
/Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/FullDumpTests.swift:62138:177: warning: conditional downcast from 'FolderEntryID?' to 'FolderEntryID' does nothing
XCTAssertEqual(.privateFolder, ((messageDetails.extendedRuleMessageActions!.ruleActionsBuffer.actionBlocks[0].actionData as? ActionBlock.MoveCopyActionDataExtended)!.folderEID as? FolderEntryID)!.folderType)
                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
                                                                                                                                                                               
/Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/FullDumpTests.swift:62139:219: warning: conditional downcast from 'FolderEntryID?' to 'FolderEntryID' does nothing
XCTAssertEqual(UUID(uuidString: "F711B14A-92C8-4094-9843-750BE6086BC4"), ((messageDetails.extendedRuleMessageActions!.ruleActionsBuffer.actionBlocks[0].actionData as? ActionBlock.MoveCopyActionDataExtended)!.folderEID as? FolderEntryID)!.databaseGuid)
                                                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
                                                                                                                                                                                                                         
/Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/FullDumpTests.swift:62140:180: warning: conditional downcast from 'FolderEntryID?' to 'FolderEntryID' does nothing
XCTAssertEqual(22519097648480256, ((messageDetails.extendedRuleMessageActions!.ruleActionsBuffer.actionBlocks[0].actionData as? ActionBlock.MoveCopyActionDataExtended)!.folderEID as? FolderEntryID)!.globalCounter)
                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
                                                                                                                                                                                  
/Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/FullDumpTests.swift:62141:169: warning: conditional downcast from 'FolderEntryID?' to 'FolderEntryID' does nothing
XCTAssertEqual(0x0000, ((messageDetails.extendedRuleMessageActions!.ruleActionsBuffer.actionBlocks[0].actionData as? ActionBlock.MoveCopyActionDataExtended)!.folderEID as? FolderEntryID)!.pad)
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
                                                                                                                                                                       
Stack dump:
0.  Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/AutoGeneratedTests.swift /Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/DumpPstFileTests.swift -primary-file /Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/FullDumpTests.swift -primary-file /Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/Helpers.swift /Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/PerformanceTests.swift /Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/PstFileTests.swift /Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/URL+ForResource.swift /Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/XCTestManifests.swift -emit-module-path /Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Intermediates.noindex/PstReader.build/Debug/PstReaderTests.build/Objects-normal/x86_64/FullDumpTests~partial.swiftmodule -emit-module-path /Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Intermediates.noindex/PstReader.build/Debug/PstReaderTests.build/Objects-normal/x86_64/Helpers~partial.swiftmodule -emit-module-doc-path /Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Intermediates.noindex/PstReader.build/Debug/PstReaderTests.build/Objects-normal/x86_64/FullDumpTests~partial.swiftdoc -emit-module-doc-path /Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Intermediates.noindex/PstReader.build/Debug/PstReaderTests.build/Objects-normal/x86_64/Helpers~partial.swiftdoc -emit-module-source-info-path /Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Intermediates.noindex/PstReader.build/Debug/PstReaderTests.build/Objects-normal/x86_64/FullDumpTests~partial.swiftsourceinfo -emit-module-source-info-path /Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Intermediates.noindex/PstReader.build/Debug/PstReaderTests.build/Objects-normal/x86_64/Helpers~partial.swiftsourceinfo -serialize-diagnostics-path /Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Intermediates.noindex/PstReader.build/Debug/PstReaderTests.build/Objects-normal/x86_64/FullDumpTests.dia -serialize-diagnostics-path /Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Intermediates.noindex/PstReader.build/Debug/PstReaderTests.build/Objects-normal/x86_64/Helpers.dia -emit-dependencies-path /Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Intermediates.noindex/PstReader.build/Debug/PstReaderTests.build/Objects-normal/x86_64/FullDumpTests.d -emit-dependencies-path /Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Intermediates.noindex/PstReader.build/Debug/PstReaderTests.build/Objects-normal/x86_64/Helpers.d -emit-reference-dependencies-path /Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Intermediates.noindex/PstReader.build/Debug/PstReaderTests.build/Objects-normal/x86_64/FullDumpTests.swiftdeps -emit-reference-dependencies-path /Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Intermediates.noindex/PstReader.build/Debug/PstReaderTests.build/Objects-normal/x86_64/Helpers.swiftdeps -target x86_64-apple-macos10.15 -enable-objc-interop -stack-check -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I /Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Products/Debug -I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Products/Debug -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -enable-testing -g -module-cache-path /Users/hugh/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -swift-version 5 -enforce-exclusivity=checked -Onone -D SWIFT_PACKAGE -D DEBUG -D Xcode -serialize-debugging-options -serialize-debugging-options -Xcc -working-directory -Xcc /Users/hugh/Documents/GitHub/PstReader -enable-anonymous-context-mangled-names -Xcc -I/Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Products/Debug/include -Xcc -I/Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Intermediates.noindex/PstReader.build/Debug/PstReaderTests.build/DerivedSources-normal/x86_64 -Xcc -I/Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Intermediates.noindex/PstReader.build/Debug/PstReaderTests.build/DerivedSources/x86_64 -Xcc -I/Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Intermediates.noindex/PstReader.build/Debug/PstReaderTests.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG=1 -target-sdk-version 10.15.6 -module-name PstReaderTests -o /Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Intermediates.noindex/PstReader.build/Debug/PstReaderTests.build/Objects-normal/x86_64/FullDumpTests.o -o /Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Build/Intermediates.noindex/PstReader.build/Debug/PstReaderTests.build/Objects-normal/x86_64/Helpers.o -index-store-path /Users/hugh/Library/Developer/Xcode/DerivedData/PstReader-dsrnpdhvjnpkcbapjyjjnqimamce/Index/DataStore -index-system-modules 
1.  Apple Swift version 5.3 (swiftlang-1200.0.29.2 clang-1200.0.30.1)
2.  While evaluating request SILGenSourceFileRequest(SIL Generation for file "/Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/FullDumpTests.swift")
3.  While emitting SIL for 'testOst()' (at /Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/FullDumpTests.swift:14:5)
4.  While silgen emitFunction SIL function "@$s14PstReaderTests08FullDumpC0C7testOstyyKF".
 for 'testOst()' (at /Users/hugh/Documents/GitHub/PstReader/Tests/PstReaderTests/FullDumpTests.swift:14:5)
0  swift                    0x0000000112316865 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1  swift                    0x0000000112315865 llvm::sys::RunSignalHandlers() + 85
2  swift                    0x0000000112316e1f SignalHandler(int) + 111
3  libsystem_platform.dylib 0x00007fff6b1a35fd _sigtramp + 29
4  libsystem_platform.dylib 000000000000000000 _sigtramp + 18446603338719283744
5  swift                    0x000000010ea20eeb swift::PartialApplyInst::create(swift::SILDebugLocation, swift::SILValue, llvm::ArrayRef<swift::SILValue>, swift::SubstitutionMap, swift::ParameterConvention, swift::SILFunction&, swift::SILOpenedArchetypesState&, swift::GenericSpecializationInformation const*, swift::PartialApplyInst::OnStackKind) + 347
6  swift                    0x000000010e3afcfc swift::Lowering::SILGenFunction::emitClosureValue(swift::SILLocation, swift::SILDeclRef, swift::CanType, swift::SubstitutionMap) + 2060
7  swift                    0x000000010e3a4213 (anonymous namespace)::RValueEmitter::visitAbstractClosureExpr(swift::AbstractClosureExpr*, swift::Lowering::SGFContext) + 435
8  swift                    0x000000010e38f359 swift::ASTVisitor<(anonymous namespace)::RValueEmitter, swift::Lowering::RValue, void, void, void, void, void, swift::Lowering::SGFContext>::visit(swift::Expr*, swift::Lowering::SGFContext) + 121
9  swift                    0x000000010e2f0000 swift::Lowering::ArgumentSource::getAsSingleValue(swift::Lowering::SILGenFunction&, swift::Lowering::SGFContext) && + 928
10 swift                    0x000000010e366fcc swift::Lowering::SILGenFunction::emitConvertedRValue(swift::SILLocation, swift::Lowering::Conversion const&, swift::Lowering::SGFContext, llvm::function_ref<swift::Lowering::ManagedValue (swift::Lowering::SILGenFunction&, swift::SILLocation, swift::Lowering::SGFContext)>) + 492
11 swift                    0x000000010e32fe7c (anonymous namespace)::ArgEmitter::emit(swift::Lowering::ArgumentSource&&, swift::Lowering::AbstractionPattern) + 4124
12 swift                    0x000000010e3175b5 (anonymous namespace)::ArgEmitter::emitSingleArg(swift::Lowering::ArgumentSource&&, swift::Lowering::AbstractionPattern) + 181
13 swift                    0x000000010e32ec8e (anonymous namespace)::ArgEmitter::emitPreparedArgs(swift::Lowering::PreparedArguments&&, swift::Lowering::AbstractionPattern) + 238
14 swift                    0x000000010e337e35 (anonymous namespace)::CallEmission::emitArgumentsForNormalApply(swift::Lowering::AbstractionPattern, swift::CanTypeWrapper<swift::SILFunctionType>, llvm::Optional<swift::ForeignErrorConvention> const&, swift::ImportAsMemberStatus, llvm::SmallVectorImpl<swift::Lowering::ManagedValue>&, llvm::Optional<swift::SILLocation>&) + 949
15 swift                    0x000000010e31db8f (anonymous namespace)::CallEmission::apply(swift::Lowering::SGFContext) + 3935
16 swift                    0x000000010e31ad4c swift::Lowering::SILGenFunction::emitApplyExpr(swift::ApplyExpr*, swift::Lowering::SGFContext) + 2652
17 swift                    0x000000010e38f329 swift::ASTVisitor<(anonymous namespace)::RValueEmitter, swift::Lowering::RValue, void, void, void, void, void, swift::Lowering::SGFContext>::visit(swift::Expr*, swift::Lowering::SGFContext) + 73
18 swift                    0x000000010e382a27 swift::Lowering::SILGenFunction::emitIgnoredExpr(swift::Expr*) + 871
19 swift                    0x000000010e407b3f swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) + 447
20 swift                    0x000000010e409571 swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) + 7153
21 swift                    0x000000010e407b07 swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) + 391
22 swift                    0x000000010e409571 swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) + 7153
23 swift                    0x000000010e407b07 swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) + 391
24 swift                    0x000000010e409571 swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) + 7153
25 swift                    0x000000010e407b07 swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) + 391
26 swift                    0x000000010e3b0144 swift::Lowering::SILGenFunction::emitFunction(swift::FuncDecl*) + 548
27 swift                    0x000000010e303ebc swift::Lowering::SILGenModule::emitFunction(swift::FuncDecl*) + 1388
28 swift                    0x000000010e419e8e swift::ASTVisitor<(anonymous namespace)::SILGenType, void, void, void, void, void, void>::visit(swift::Decl*) + 270
29 swift                    0x000000010e41524b (anonymous namespace)::SILGenType::emitType() + 203
30 swift                    0x000000010e30e8b2 swift::ASTVisitor<swift::Lowering::SILGenModule, void, void, void, void, void, void>::visit(swift::Decl*) + 82
31 swift                    0x000000010e30cbd9 (anonymous namespace)::SILGenModuleRAII::emitSourceFile(swift::SourceFile*) + 1417
32 swift                    0x000000010e30c599 swift::SILGenSourceFileRequest::evaluate(swift::Evaluator&, swift::SILGenDescriptor) const + 137
33 swift                    0x000000010e407461 swift::SimpleRequest<swift::SILGenSourceFileRequest, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule> > (swift::SILGenDescriptor), (swift::RequestFlags)9>::evaluateRequest(swift::SILGenSourceFileRequest const&, swift::Evaluator&) + 33
34 swift                    0x000000010e3133cc llvm::Expected<swift::SILGenSourceFileRequest::OutputType> swift::Evaluator::getResultUncached<swift::SILGenSourceFileRequest>(swift::SILGenSourceFileRequest const&) + 972
35 swift                    0x000000010e30e42d swift::performSILGeneration(swift::FileUnit&, swift::Lowering::TypeConverter&, swift::SILOptions const&) + 173
36 swift                    0x000000010de7d83f swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 20479
37 swift                    0x000000010ddfec07 main + 1255
38 libdyld.dylib            0x00007fff6afaacc9 start + 1
error: Segmentation fault: 11 (in target 'PstReaderTests' from project 'PstReader')

Contributor guide