swiftlang / swift-syntax

A set of Swift libraries for parsing, inspecting, generating, and transforming Swift source code.
Apache License 2.0
3.25k stars 416 forks source link

`utils/build-script --benchmark` terminates with crash (Assertion failed: Loop should always make progress) #1246

Closed valeriyvan closed 1 year ago

valeriyvan commented 1 year ago

Description

utils/build-script --benchmark terminates with crash

SwiftParser/LoopProgressCondition.swift:30: Assertion failed: Loop should always make progress
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.  Program arguments: /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/bin/swift-frontend -frontend -c /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Algorithms/Contains.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Algorithms/FirstRange.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Algorithms/Ranges.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Algorithms/Replace.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Algorithms/Split.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Algorithms/StartsWith.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Algorithms/Trim.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Consumers/CollectionConsumer.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Consumers/FixedPatternConsumer.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Consumers/ManyConsumer.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Consumers/PredicateConsumer.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Matching/FirstMatch.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Matching/MatchReplace.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Matching/MatchResult.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Matching/Matches.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Matching/MatchingCollectionConsumer.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Matching/MatchingCollectionSearcher.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Searchers/CollectionSearcher.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Searchers/ConsumerSearcher.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Searchers/NaivePatternSearcher.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Searchers/PatternOrEmpty.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Searchers/PredicateSearcher.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Searchers/TwoWaySearcher.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Searchers/ZSearcher.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/ByteCodeGen.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Capture.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Compiler.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/ConsumerInterface.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/Backtracking.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/Consume.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/Engine.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/InstPayload.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/Instruction.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/MEBuilder.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/MEBuiltins.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/MECapture.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/MEProgram.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/MEQuantify.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/Metrics.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/Processor.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/Registers.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/Structuralize.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/Tracing.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Executor.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/MatchingOptions.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/PrintAsPattern.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Regex/ASTConversion.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Regex/AnyRegexOutput.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Regex/Core.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Regex/CustomComponents.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Regex/DSLTree.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Regex/Match.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Regex/Options.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/CaseConversion.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/CharacterProps.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/Comparison.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/Decoding.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/Encodings.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/Formatting.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/NFC.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/NecessaryEvils.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/NumberParsing.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/ScalarProps.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/Transcoding.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/UCD.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/Validation.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/WordBreaking.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Utility/ASTBuilder.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Utility/AsciiBitset.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Utility/Misc.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Utility/Protocols.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Utility/RegexFactory.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Utility/Traced.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Utility/TypeVerification.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Utility/TypedIndex.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Utility/TypedInt.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/_CharacterClassModel.swift -supplementary-output-file-map /var/folders/zd/1vcfywf176jck2p0025xnxmw0000gn/T/supplementaryOutputs-ff0eab -target x86_64-apple-macosx10.9 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -I /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/./lib/swift/macosx -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/../../../Developer/Library/Frameworks -warn-implicit-overrides -enable-library-evolution -g -module-cache-path /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/./module-cache -module-link-name swift_StringProcessing -resource-dir /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/./lib/swift -swift-version 5 -tools-directory /Users/**********/*********/Apple/build/Ninja-DebugAssert/llvm-macosx-arm64/./bin -Onone -library-level api -D INTERNAL_CHECKS_ENABLED -D SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY -D SWIFT_ENABLE_EXPERIMENTAL_DISTRIBUTED -D SWIFT_ENABLE_RUNTIME_FUNCTION_COUNTERS -D SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING -D SWIFT_ENABLE_EXPERIMENTAL_STRING_PROCESSING -D SWIFT_ENABLE_EXPERIMENTAL_REFLECTION -D SWIFT_RUNTIME_OS_VERSIONING -D SWIFT_STDLIB_ENABLE_UNICODE_DATA -D SWIFT_STDLIB_ENABLE_VECTOR_TYPES -D SWIFT_STDLIB_HAS_COMMANDLINE -D SWIFT_STDLIB_HAS_STDIN -D SWIFT_STDLIB_HAS_ENVIRON -D SWIFT_THREADING_DARWIN -D SWIFT_ENABLE_REFLECTION -require-explicit-availability=ignore -enforce-exclusivity=unchecked -disable-autolinking-runtime-compatibility-concurrency -enable-ossa-modules -enable-lexical-lifetimes=false -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import -disable-implicit-string-processing-module-import -prespecialize-generic-metadata -define-availability "SwiftStdlib 9999:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999" -define-availability "SwiftStdlib 5.0:macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2" -define-availability "SwiftStdlib 5.1:macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0" -define-availability "SwiftStdlib 5.2:macOS 10.15.4, iOS 13.4, watchOS 6.2, tvOS 13.4" -define-availability "SwiftStdlib 5.3:macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0" -define-availability "SwiftStdlib 5.4:macOS 11.3, iOS 14.5, watchOS 7.4, tvOS 14.5" -define-availability "SwiftStdlib 5.5:macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0" -define-availability "SwiftStdlib 5.6:macOS 12.3, iOS 15.4, watchOS 8.5, tvOS 15.4" -define-availability "SwiftStdlib 5.7:macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0" -define-availability "SwiftStdlib 5.8:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999" -define-availability "SwiftStdlib 5.9:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999" -target-min-inlining-version min -enable-anonymous-context-mangled-names -Xcc -DSWIFT_STDLIB_HAS_ENVIRON -target-sdk-version 13.1 -parse-as-library -module-name _StringProcessing -save-optimization-record=bitstream -save-optimization-record-path /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/stdlib/public/StringProcessing//OSX/x86_64/_StringProcessing.opt.bitstream -o /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/stdlib/public/StringProcessing//OSX/x86_64/_StringProcessing.o -runtime-compatibility-version none -disable-autolinking-runtime-compatibility-dynamic-replacements
1.  Swift version 5.9-dev (LLVM 0a6dab4da195e1d, Swift f2302b926b12ab3)
2.  Compiling with the current language version
3.  While evaluating request ParseTopLevelDeclsRequest(source_file "/Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/Registers.swift")
4.  While evaluating request ParseSourceFileRequest(source_file "/Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/Registers.swift")
5.  With parser at source location: <invalid loc>
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  swift-frontend           0x00000001124217a0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 72
1  swift-frontend           0x0000000112421cbc PrintStackTraceSignalHandler(void*) + 28
2  swift-frontend           0x000000011241fd5c llvm::sys::RunSignalHandlers() + 148
3  swift-frontend           0x0000000112423928 SignalHandler(int) + 252
4  libsystem_platform.dylib 0x000000018b4f32a4 _sigtramp + 56
5  libswiftCore.dylib       0x0000000199281218 $ss17_assertionFailure__4file4line5flagss5NeverOs12StaticStringV_SSAHSus6UInt32VtF + 316
6  libSwiftParser.dylib     0x000000013cc34b2c $s11SwiftParser21LoopProgressConditionV8evaluateySbAA5LexerO6LexemeVF + 1108
7  libSwiftParser.dylib     0x000000013cc1557c $s11SwiftParser0B0V9LookaheadV22isValidTrailingClosureySbAC10ExprFlavorOF + 928
8  libSwiftParser.dylib     0x000000013cc10fd4 $s11SwiftParser0B0V28parsePostfixExpressionSuffix__12forDirective7pattern0A6Syntax07RawExprJ0VAI_AC0L6FlavorOSbAC14PatternContextOtF + 7376
9  libSwiftParser.dylib     0x000000013cc0cad4 $s11SwiftParser0B0V22parsePostfixExpression_12forDirective7pattern0A6Syntax07RawExprI0VAC0K6FlavorO_SbAC14PatternContextOtF + 332
10 libSwiftParser.dylib     0x000000013cc0a070 $s11SwiftParser0B0V20parseUnaryExpression_12forDirective7pattern0A6Syntax07RawExprI0VAC0K6FlavorO_SbAC14PatternContextOtF + 2452
11 libSwiftParser.dylib     0x000000013cc0738c $s11SwiftParser0B0V30parseSequenceExpressionElement_12forDirective7pattern0A6Syntax07RawExprJ0VAC0L6FlavorO_SbAC14PatternContextOtF + 4504
12 libSwiftParser.dylib     0x000000013cc0568c $s11SwiftParser0B0V23parseSequenceExpression_12forDirective7pattern0A6Syntax07RawExprI0VAC0K6FlavorO_SbAC14PatternContextOtF + 1208
13 libSwiftParser.dylib     0x000000013cc0519c $s11SwiftParser0B0V15parseExpression_7pattern0A6Syntax07RawExprF0VAC0H6FlavorO_AC14PatternContextOtF + 884
14 libSwiftParser.dylib     0x000000013cc7288c $s11SwiftParser0B0V21parseConditionElement0A6Syntax03RawdeF0V0D0OyF + 7404
15 libSwiftParser.dylib     0x000000013cc70624 $s11SwiftParser0B0V18parseConditionList0A6Syntax03Rawd7ElementeF0VyF + 940
16 libSwiftParser.dylib     0x000000013cc6b1d8 $s11SwiftParser0B0V16parseIfStatement8ifHandle0A6Syntax03Rawd4StmtH0VAA019RecoveryConsumptionG0V_tF + 1084
17 libSwiftParser.dylib     0x000000013cc67f64 $s11SwiftParser0B0V14parseStatement0A6Syntax07RawStmtE0VyF + 2056
18 libSwiftParser.dylib     0x000000013cc85184 $s11SwiftParser0B0V9parseItem33_008C1B0E0A90478841CED0DF9A7053A1LL12isAtTopLevel13allowInitDecl0A6Syntax012RawCodeBlockdT0V0D0OSb_SbtF + 1268
19 libSwiftParser.dylib     0x000000013cc84004 $s11SwiftParser0B0V18parseCodeBlockItem12isAtTopLevel13allowInitDecl0A6Syntax03RawdefN0VSgSb_SbtF + 2540
20 libSwiftParser.dylib     0x000000013cc82f28 $s11SwiftParser0B0V22parseCodeBlockItemList12isAtTopLevel13allowInitDecl13stopCondition0A6Syntax03RawdefgQ0VSb_S2bACzXEtF + 1316
21 libSwiftParser.dylib     0x000000013cc84a30 $s11SwiftParser0B0V14parseCodeBlock10introducer13allowInitDecl0A6Syntax03RawdeJ0VAG0k5TokenJ0VSg_SbtF + 648
22 libSwiftParser.dylib     0x000000013cc84740 $s11SwiftParser0B0V22parseOptionalCodeBlock13allowInitDecl0A6Syntax03RawefJ0VSgSb_tF + 316
23 libSwiftParser.dylib     0x000000013cbde70c $s11SwiftParser0B0V20parseFuncDeclarationy0A6Syntax015RawFunctionDeclF0VAC0I10AttributesV_AA25RecoveryConsumptionHandleVtF + 3768
24 libSwiftParser.dylib     0x000000013cbd6780 $s11SwiftParser0B0V16parseDeclaration16inMemberDeclList0A6Syntax03RawgI0VSb_tF + 3968
25 libSwiftParser.dylib     0x000000013cc850f4 $s11SwiftParser0B0V9parseItem33_008C1B0E0A90478841CED0DF9A7053A1LL12isAtTopLevel13allowInitDecl0A6Syntax012RawCodeBlockdT0V0D0OSb_SbtF + 1124
26 libSwiftParser.dylib     0x000000013cc84004 $s11SwiftParser0B0V18parseCodeBlockItem12isAtTopLevel13allowInitDecl0A6Syntax03RawdefN0VSgSb_SbtF + 2540
27 libSwiftParser.dylib     0x000000013cbf5958 $s11SwiftParser0B0V11parseGetSet0A6Syntax016RawSubscriptDeclF0V8AccessorOyF + 2408
28 libSwiftParser.dylib     0x000000013cbe5fe0 $s11SwiftParser0B0V24parseLetOrVarDeclaration__16inMemberDeclList0A6Syntax011RawVariablejL0VAC0J10AttributesV_AA25RecoveryConsumptionHandleVSbtF + 6936
29 libSwiftParser.dylib     0x000000013cbd6878 $s11SwiftParser0B0V16parseDeclaration16inMemberDeclList0A6Syntax03RawgI0VSb_tF + 4216
30 libSwiftParser.dylib     0x000000013cbef6d0 $s11SwiftParser0B0V23parseMemberDeclListItem0A6Syntax03RawdefgH0VSgyF + 2028
31 libSwiftParser.dylib     0x000000013cbea628 $s11SwiftParser0B0V19parseMemberDeclList10introducer0A6Syntax03Rawde5BlockH0VAF0i5TokenH0VSg_tF + 2112
32 libSwiftParser.dylib     0x000000013cbdd514 $s11SwiftParser0B0V25parseExtensionDeclarationy0A6Syntax03Rawd4DeclF0VAC0H10AttributesV_AA25RecoveryConsumptionHandleVtF + 1788
33 libSwiftParser.dylib     0x000000013cbd670c $s11SwiftParser0B0V16parseDeclaration16inMemberDeclList0A6Syntax03RawgI0VSb_tF + 3852
34 libSwiftParser.dylib     0x000000013cc850f4 $s11SwiftParser0B0V9parseItem33_008C1B0E0A90478841CED0DF9A7053A1LL12isAtTopLevel13allowInitDecl0A6Syntax012RawCodeBlockdT0V0D0OSb_SbtF + 1124
35 libSwiftParser.dylib     0x000000013cc84004 $s11SwiftParser0B0V18parseCodeBlockItem12isAtTopLevel13allowInitDecl0A6Syntax03RawdefN0VSgSb_SbtF + 2540
36 libSwiftParser.dylib     0x000000013cc82f28 $s11SwiftParser0B0V22parseCodeBlockItemList12isAtTopLevel13allowInitDecl13stopCondition0A6Syntax03RawdefgQ0VSb_S2bACzXEtF + 1316
37 libSwiftParser.dylib     0x000000013cc829ec $s11SwiftParser0B0V27parseTopLevelCodeBlockItems0A6Syntax03Rawfg8ItemListI0VyF + 68
38 libSwiftParser.dylib     0x000000013cc82754 $s11SwiftParser0B0V15parseSourceFile0A6Syntax03RawdeF0VyF + 420
39 libSwiftParser.dylib     0x000000013cc99a40 $s11SwiftSyntax010SourceFileB0V0A6ParserE5parse4fromAcD0E0Vz_tFZ + 288
40 libSwiftParser.dylib     0x000000013cc99bdc $s11SwiftParser0B0V5parse6source19maximumNestingLevel0C10Transition0A6Syntax010SourceFileI0VSRys5UInt8VG_SiSgAH016IncrementalParseH0CSgtFZ + 192
41 swift-frontend           0x0000000104e54e7c $s11swiftASTGen15parseSourceFile6buffer0F6Length10moduleName8filenameSVSPys5UInt8VG_SiA2ItF + 284
42 swift-frontend           0x0000000104e54d58 swift_ASTGen_parseSourceFile + 12
43 swift-frontend           0x000000010852cbc0 swift::Parser::parseSourceFileViaASTGen(llvm::SmallVectorImpl<swift::ASTNode>&, llvm::Optional<swift::DiagnosticTransaction>&, bool) + 572
44 swift-frontend           0x000000010852c50c swift::Parser::parseTopLevelItems(llvm::SmallVectorImpl<swift::ASTNode>&) + 80
45 swift-frontend           0x0000000108629714 swift::ParseSourceFileRequest::evaluate(swift::Evaluator&, swift::SourceFile*) const + 884
46 swift-frontend           0x000000010862b3b4 swift::SourceFileParsingResult swift::SimpleRequest<swift::ParseSourceFileRequest, swift::SourceFileParsingResult (swift::SourceFile*), (swift::RequestFlags)12>::callDerived<0ul>(swift::Evaluator&, std::__1::integer_sequence<unsigned long, 0ul>) const + 84
47 swift-frontend           0x000000010862b134 swift::SimpleRequest<swift::ParseSourceFileRequest, swift::SourceFileParsingResult (swift::SourceFile*), (swift::RequestFlags)12>::evaluateRequest(swift::ParseSourceFileRequest const&, swift::Evaluator&) + 32
48 swift-frontend           0x0000000109073e20 llvm::Expected<swift::ParseSourceFileRequest::OutputType> swift::Evaluator::getResultUncached<swift::ParseSourceFileRequest>(swift::ParseSourceFileRequest const&) + 296
49 swift-frontend           0x0000000109073c48 llvm::Expected<swift::ParseSourceFileRequest::OutputType> swift::Evaluator::getResultCached<swift::ParseSourceFileRequest, (void*)0>(swift::ParseSourceFileRequest const&) + 188
50 swift-frontend           0x0000000109073990 llvm::Expected<swift::ParseSourceFileRequest::OutputType> swift::Evaluator::operator()<swift::ParseSourceFileRequest, (void*)0>(swift::ParseSourceFileRequest const&) + 68
51 swift-frontend           0x0000000108fea32c swift::ParseSourceFileRequest::OutputType swift::evaluateOrDefault<swift::ParseSourceFileRequest>(swift::Evaluator&, swift::ParseSourceFileRequest, swift::ParseSourceFileRequest::OutputType) + 68
52 swift-frontend           0x0000000108629e2c swift::ParseTopLevelDeclsRequest::evaluate(swift::Evaluator&, swift::SourceFile*) const + 160
53 swift-frontend           0x000000010862b40c llvm::ArrayRef<swift::Decl*> swift::SimpleRequest<swift::ParseTopLevelDeclsRequest, llvm::ArrayRef<swift::Decl*> (swift::SourceFile*), (swift::RequestFlags)2>::callDerived<0ul>(swift::Evaluator&, std::__1::integer_sequence<unsigned long, 0ul>) const + 76
54 swift-frontend           0x000000010862b160 swift::SimpleRequest<swift::ParseTopLevelDeclsRequest, llvm::ArrayRef<swift::Decl*> (swift::SourceFile*), (swift::RequestFlags)2>::evaluateRequest(swift::ParseTopLevelDeclsRequest const&, swift::Evaluator&) + 32
55 swift-frontend           0x00000001090ae8dc llvm::Expected<swift::ParseTopLevelDeclsRequest::OutputType> swift::Evaluator::getResultUncached<swift::ParseTopLevelDeclsRequest>(swift::ParseTopLevelDeclsRequest const&) + 272
56 swift-frontend           0x00000001090ae70c llvm::Expected<swift::ParseTopLevelDeclsRequest::OutputType> swift::Evaluator::getResultCached<swift::ParseTopLevelDeclsRequest, (void*)0>(swift::ParseTopLevelDeclsRequest const&) + 212
57 swift-frontend           0x00000001090ae594 llvm::Expected<swift::ParseTopLevelDeclsRequest::OutputType> swift::Evaluator::operator()<swift::ParseTopLevelDeclsRequest, (void*)0>(swift::ParseTopLevelDeclsRequest const&) + 68
58 swift-frontend           0x0000000108ff6b7c swift::ParseTopLevelDeclsRequest::OutputType swift::evaluateOrDefault<swift::ParseTopLevelDeclsRequest>(swift::Evaluator&, swift::ParseTopLevelDeclsRequest, swift::ParseTopLevelDeclsRequest::OutputType) + 68
59 swift-frontend           0x0000000108fde050 swift::SourceFile::getTopLevelDecls() const + 104
60 swift-frontend           0x0000000107aa64ec swift::performImportResolution(swift::SourceFile&) + 336
61 swift-frontend           0x00000001056ee5ac swift::CompilerInstance::performParseAndResolveImportsOnly() + 792
62 swift-frontend           0x00000001056ee7d4 swift::CompilerInstance::performSema() + 28
63 swift-frontend           0x00000001050f4050 withSemanticAnalysis(swift::CompilerInstance&, swift::FrontendObserver*, llvm::function_ref<bool (swift::CompilerInstance&)>, bool) + 160
64 swift-frontend           0x00000001050ef088 performAction(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 1060
65 swift-frontend           0x00000001050c7c50 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 220
66 swift-frontend           0x00000001050c6c4c swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2056
67 swift-frontend           0x0000000104e623e4 run_driver(llvm::StringRef, llvm::ArrayRef<char const*>, llvm::ArrayRef<char const*>) + 324
68 swift-frontend           0x0000000104e61860 swift::mainEntry(int, char const**) + 1148
69 swift-frontend           0x0000000104e36df4 main + 36
70 dyld                     0x000000018b19be50 start + 2544
<unknown>:0: error: unable to execute command: Trace/BPT trap: 5
<unknown>:0: error: compile command failed due to signal 5 (use -v to see invocation)
[1568/2176][ 72%][4081.257s] Generating /Users/v...ssing.swiftmodule/x86_64-apple-macos.swiftmodul
FAILED: lib/swift/macosx/_StringProcessing.swiftmodule/x86_64-apple-macos.swiftmodule lib/swift/macosx/_StringProcessing.swiftmodule/x86_64-apple-macos.swiftdoc lib/swift/macosx/_StringProcessing.swiftmodule/x86_64-apple-macos.swiftinterface /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/lib/swift/macosx/_StringProcessing.swiftmodule/x86_64-apple-macos.swiftmodule /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/lib/swift/macosx/_StringProcessing.swiftmodule/x86_64-apple-macos.swiftdoc /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/lib/swift/macosx/_StringProcessing.swiftmodule/x86_64-apple-macos.swiftinterface 
cd /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/stdlib/public/StringProcessing && /opt/homebrew/Cellar/cmake/3.25.1/bin/cmake -E remove -f /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/./lib/swift/macosx/_StringProcessing.swiftmodule/x86_64-apple-macos.swiftmodule /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/./lib/swift/macosx/_StringProcessing.swiftmodule/x86_64-apple-macos.swiftdoc /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/./lib/swift/macosx/_StringProcessing.swiftmodule/x86_64-apple-macos.swiftinterface && /opt/homebrew/Cellar/cmake/3.25.1/bin/cmake -E make_directory /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/./lib/swift/macosx /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/./lib/swift/macosx/_StringProcessing.swiftmodule && /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Users/**********/*********/Apple/swift/utils/line-directive @/Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/stdlib/public/StringProcessing/88f05a8e01e662364a09e25ee11a9a1e262151d7.txt -- /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/./bin/swiftc -emit-module -o /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/./lib/swift/macosx/_StringProcessing.swiftmodule/x86_64-apple-macos.swiftmodule -avoid-emit-module-source-info -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -target x86_64-apple-macosx10.9 -resource-dir /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/./lib/swift -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/../../../Developer/Library/Frameworks -Onone -g -D INTERNAL_CHECKS_ENABLED -D SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY -D SWIFT_ENABLE_EXPERIMENTAL_DISTRIBUTED -D SWIFT_ENABLE_RUNTIME_FUNCTION_COUNTERS -D SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING -D SWIFT_ENABLE_EXPERIMENTAL_STRING_PROCESSING -D SWIFT_ENABLE_EXPERIMENTAL_REFLECTION -D SWIFT_RUNTIME_OS_VERSIONING -D SWIFT_STDLIB_ENABLE_UNICODE_DATA -D SWIFT_STDLIB_ENABLE_VECTOR_TYPES -D SWIFT_STDLIB_HAS_COMMANDLINE -D SWIFT_STDLIB_HAS_STDIN -D SWIFT_STDLIB_HAS_ENVIRON -Xcc -DSWIFT_STDLIB_HAS_ENVIRON -D SWIFT_THREADING_DARWIN -tools-directory /Users/**********/*********/Apple/build/Ninja-DebugAssert/llvm-macosx-arm64/./bin -module-cache-path /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/./module-cache -no-link-objc-runtime -enable-library-evolution -library-level api -Xfrontend -require-explicit-availability=ignore -Xfrontend -enforce-exclusivity=unchecked -D SWIFT_ENABLE_REFLECTION -module-name _StringProcessing -swift-version 5 -runtime-compatibility-version none -disable-autolinking-runtime-compatibility-dynamic-replacements -Xfrontend -disable-autolinking-runtime-compatibility-concurrency -warn-implicit-overrides -Xfrontend -enable-ossa-modules -Xfrontend -enable-lexical-lifetimes=false -Xfrontend -disable-implicit-concurrency-module-import -Xfrontend -disable-implicit-string-processing-module-import -Xfrontend -disable-implicit-string-processing-module-import -Xfrontend -prespecialize-generic-metadata -Xfrontend -define-availability -Xfrontend SwiftStdlib\ 9999:macOS\ 9999,\ iOS\ 9999,\ watchOS\ 9999,\ tvOS\ 9999 -Xfrontend -define-availability -Xfrontend SwiftStdlib\ 5.0:macOS\ 10.14.4,\ iOS\ 12.2,\ watchOS\ 5.2,\ tvOS\ 12.2 -Xfrontend -define-availability -Xfrontend SwiftStdlib\ 5.1:macOS\ 10.15,\ iOS\ 13.0,\ watchOS\ 6.0,\ tvOS\ 13.0 -Xfrontend -define-availability -Xfrontend SwiftStdlib\ 5.2:macOS\ 10.15.4,\ iOS\ 13.4,\ watchOS\ 6.2,\ tvOS\ 13.4 -Xfrontend -define-availability -Xfrontend SwiftStdlib\ 5.3:macOS\ 11.0,\ iOS\ 14.0,\ watchOS\ 7.0,\ tvOS\ 14.0 -Xfrontend -define-availability -Xfrontend SwiftStdlib\ 5.4:macOS\ 11.3,\ iOS\ 14.5,\ watchOS\ 7.4,\ tvOS\ 14.5 -Xfrontend -define-availability -Xfrontend SwiftStdlib\ 5.5:macOS\ 12.0,\ iOS\ 15.0,\ watchOS\ 8.0,\ tvOS\ 15.0 -Xfrontend -define-availability -Xfrontend SwiftStdlib\ 5.6:macOS\ 12.3,\ iOS\ 15.4,\ watchOS\ 8.5,\ tvOS\ 15.4 -Xfrontend -define-availability -Xfrontend SwiftStdlib\ 5.7:macOS\ 13.0,\ iOS\ 16.0,\ watchOS\ 9.0,\ tvOS\ 16.0 -Xfrontend -define-availability -Xfrontend SwiftStdlib\ 5.8:macOS\ 9999,\ iOS\ 9999,\ watchOS\ 9999,\ tvOS\ 9999 -Xfrontend -define-availability -Xfrontend SwiftStdlib\ 5.9:macOS\ 9999,\ iOS\ 9999,\ watchOS\ 9999,\ tvOS\ 9999 -Xfrontend -target-min-inlining-version -Xfrontend min -module-link-name swift_StringProcessing -whole-module-optimization -save-optimization-record=bitstream -parse-as-library -resource-dir /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/./lib/swift -I /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/./lib/swift/macosx -emit-module-interface-path /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/./lib/swift/macosx/_StringProcessing.swiftmodule/x86_64-apple-macos.swiftinterface -Xfrontend -experimental-skip-non-inlinable-function-bodies @/Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/stdlib/public/StringProcessing/88f05a8e01e662364a09e25ee11a9a1e262151d7.txt
SwiftParser/LoopProgressCondition.swift:30: Assertion failed: Loop should always make progress
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.  Program arguments: /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/bin/swift-frontend -frontend -emit-module /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Algorithms/Contains.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Algorithms/FirstRange.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Algorithms/Ranges.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Algorithms/Replace.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Algorithms/Split.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Algorithms/StartsWith.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Algorithms/Trim.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Consumers/CollectionConsumer.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Consumers/FixedPatternConsumer.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Consumers/ManyConsumer.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Consumers/PredicateConsumer.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Matching/FirstMatch.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Matching/MatchReplace.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Matching/MatchResult.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Matching/Matches.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Matching/MatchingCollectionConsumer.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Matching/MatchingCollectionSearcher.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Searchers/CollectionSearcher.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Searchers/ConsumerSearcher.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Searchers/NaivePatternSearcher.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Searchers/PatternOrEmpty.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Searchers/PredicateSearcher.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Searchers/TwoWaySearcher.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Algorithms/Searchers/ZSearcher.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/ByteCodeGen.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Capture.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Compiler.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/ConsumerInterface.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/Backtracking.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/Consume.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/Engine.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/InstPayload.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/Instruction.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/MEBuilder.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/MEBuiltins.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/MECapture.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/MEProgram.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/MEQuantify.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/Metrics.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/Processor.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/Registers.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/Structuralize.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/Tracing.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Executor.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/MatchingOptions.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/PrintAsPattern.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Regex/ASTConversion.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Regex/AnyRegexOutput.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Regex/Core.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Regex/CustomComponents.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Regex/DSLTree.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Regex/Match.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Regex/Options.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/CaseConversion.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/CharacterProps.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/Comparison.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/Decoding.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/Encodings.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/Formatting.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/NFC.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/NecessaryEvils.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/NumberParsing.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/ScalarProps.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/Transcoding.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/UCD.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/Validation.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Unicode/WordBreaking.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Utility/ASTBuilder.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Utility/AsciiBitset.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Utility/Misc.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Utility/Protocols.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Utility/RegexFactory.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Utility/Traced.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Utility/TypeVerification.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Utility/TypedIndex.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Utility/TypedInt.swift /Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/_CharacterClassModel.swift -supplementary-output-file-map /var/folders/zd/1vcfywf176jck2p0025xnxmw0000gn/T/supplementaryOutputs-2ca18d -target x86_64-apple-macosx10.9 -warn-on-potentially-unavailable-enum-case -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -I /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/./lib/swift/macosx -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/../../../Developer/Library/Frameworks -warn-implicit-overrides -enable-library-evolution -g -module-cache-path /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/./module-cache -module-link-name swift_StringProcessing -resource-dir /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/./lib/swift -swift-version 5 -tools-directory /Users/**********/*********/Apple/build/Ninja-DebugAssert/llvm-macosx-arm64/./bin -Onone -library-level api -D INTERNAL_CHECKS_ENABLED -D SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY -D SWIFT_ENABLE_EXPERIMENTAL_DISTRIBUTED -D SWIFT_ENABLE_RUNTIME_FUNCTION_COUNTERS -D SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING -D SWIFT_ENABLE_EXPERIMENTAL_STRING_PROCESSING -D SWIFT_ENABLE_EXPERIMENTAL_REFLECTION -D SWIFT_RUNTIME_OS_VERSIONING -D SWIFT_STDLIB_ENABLE_UNICODE_DATA -D SWIFT_STDLIB_ENABLE_VECTOR_TYPES -D SWIFT_STDLIB_HAS_COMMANDLINE -D SWIFT_STDLIB_HAS_STDIN -D SWIFT_STDLIB_HAS_ENVIRON -D SWIFT_THREADING_DARWIN -D SWIFT_ENABLE_REFLECTION -require-explicit-availability=ignore -enforce-exclusivity=unchecked -disable-autolinking-runtime-compatibility-concurrency -enable-ossa-modules -enable-lexical-lifetimes=false -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import -disable-implicit-string-processing-module-import -prespecialize-generic-metadata -define-availability "SwiftStdlib 9999:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999" -define-availability "SwiftStdlib 5.0:macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2" -define-availability "SwiftStdlib 5.1:macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0" -define-availability "SwiftStdlib 5.2:macOS 10.15.4, iOS 13.4, watchOS 6.2, tvOS 13.4" -define-availability "SwiftStdlib 5.3:macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0" -define-availability "SwiftStdlib 5.4:macOS 11.3, iOS 14.5, watchOS 7.4, tvOS 14.5" -define-availability "SwiftStdlib 5.5:macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0" -define-availability "SwiftStdlib 5.6:macOS 12.3, iOS 15.4, watchOS 8.5, tvOS 15.4" -define-availability "SwiftStdlib 5.7:macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0" -define-availability "SwiftStdlib 5.8:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999" -define-availability "SwiftStdlib 5.9:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999" -target-min-inlining-version min -experimental-skip-non-inlinable-function-bodies -enable-anonymous-context-mangled-names -Xcc -DSWIFT_STDLIB_HAS_ENVIRON -target-sdk-version 13.1 -parse-as-library -module-name _StringProcessing -save-optimization-record=bitstream -save-optimization-record-path /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/./lib/swift/macosx/_StringProcessing.swiftmodule/_StringProcessing.opt.bitstream -o /Users/**********/*********/Apple/build/Ninja-DebugAssert/swift-macosx-arm64/./lib/swift/macosx/_StringProcessing.swiftmodule/x86_64-apple-macos.swiftmodule -runtime-compatibility-version none -disable-autolinking-runtime-compatibility-dynamic-replacements
1.  Swift version 5.9-dev (LLVM 0a6dab4da195e1d, Swift f2302b926b12ab3)
2.  Compiling with the current language version
3.  While evaluating request ParseTopLevelDeclsRequest(source_file "/Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/Registers.swift")
4.  While evaluating request ParseSourceFileRequest(source_file "/Users/**********/*********/Apple/swift-experimental-string-processing/Sources/_StringProcessing/Engine/Registers.swift")
5.  With parser at source location: <invalid loc>
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  swift-frontend           0x0000000111f657a0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 72
1  swift-frontend           0x0000000111f65cbc PrintStackTraceSignalHandler(void*) + 28
2  swift-frontend           0x0000000111f63d5c llvm::sys::RunSignalHandlers() + 148
3  swift-frontend           0x0000000111f67928 SignalHandler(int) + 252
4  libsystem_platform.dylib 0x000000018b4f32a4 _sigtramp + 56
5  libswiftCore.dylib       0x0000000199281218 $ss17_assertionFailure__4file4line5flagss5NeverOs12StaticStringV_SSAHSus6UInt32VtF + 316
6  libSwiftParser.dylib     0x000000013c778b2c $s11SwiftParser21LoopProgressConditionV8evaluateySbAA5LexerO6LexemeVF + 1108
7  libSwiftParser.dylib     0x000000013c75957c $s11SwiftParser0B0V9LookaheadV22isValidTrailingClosureySbAC10ExprFlavorOF + 928
8  libSwiftParser.dylib     0x000000013c754fd4 $s11SwiftParser0B0V28parsePostfixExpressionSuffix__12forDirective7pattern0A6Syntax07RawExprJ0VAI_AC0L6FlavorOSbAC14PatternContextOtF + 7376
9  libSwiftParser.dylib     0x000000013c750ad4 $s11SwiftParser0B0V22parsePostfixExpression_12forDirective7pattern0A6Syntax07RawExprI0VAC0K6FlavorO_SbAC14PatternContextOtF + 332
10 libSwiftParser.dylib     0x000000013c74e070 $s11SwiftParser0B0V20parseUnaryExpression_12forDirective7pattern0A6Syntax07RawExprI0VAC0K6FlavorO_SbAC14PatternContextOtF + 2452
11 libSwiftParser.dylib     0x000000013c74b38c $s11SwiftParser0B0V30parseSequenceExpressionElement_12forDirective7pattern0A6Syntax07RawExprJ0VAC0L6FlavorO_SbAC14PatternContextOtF + 4504
12 libSwiftParser.dylib     0x000000013c74968c $s11SwiftParser0B0V23parseSequenceExpression_12forDirective7pattern0A6Syntax07RawExprI0VAC0K6FlavorO_SbAC14PatternContextOtF + 1208
13 libSwiftParser.dylib     0x000000013c74919c $s11SwiftParser0B0V15parseExpression_7pattern0A6Syntax07RawExprF0VAC0H6FlavorO_AC14PatternContextOtF + 884
14 libSwiftParser.dylib     0x000000013c7b688c $s11SwiftParser0B0V21parseConditionElement0A6Syntax03RawdeF0V0D0OyF + 7404
15 libSwiftParser.dylib     0x000000013c7b4624 $s11SwiftParser0B0V18parseConditionList0A6Syntax03Rawd7ElementeF0VyF + 940
16 libSwiftParser.dylib     0x000000013c7af1d8 $s11SwiftParser0B0V16parseIfStatement8ifHandle0A6Syntax03Rawd4StmtH0VAA019RecoveryConsumptionG0V_tF + 1084
17 libSwiftParser.dylib     0x000000013c7abf64 $s11SwiftParser0B0V14parseStatement0A6Syntax07RawStmtE0VyF + 2056
18 libSwiftParser.dylib     0x000000013c7c9184 $s11SwiftParser0B0V9parseItem33_008C1B0E0A90478841CED0DF9A7053A1LL12isAtTopLevel13allowInitDecl0A6Syntax012RawCodeBlockdT0V0D0OSb_SbtF + 1268
19 libSwiftParser.dylib     0x000000013c7c8004 $s11SwiftParser0B0V18parseCodeBlockItem12isAtTopLevel13allowInitDecl0A6Syntax03RawdefN0VSgSb_SbtF + 2540
20 libSwiftParser.dylib     0x000000013c7c6f28 $s11SwiftParser0B0V22parseCodeBlockItemList12isAtTopLevel13allowInitDecl13stopCondition0A6Syntax03RawdefgQ0VSb_S2bACzXEtF + 1316
21 libSwiftParser.dylib     0x000000013c7c8a30 $s11SwiftParser0B0V14parseCodeBlock10introducer13allowInitDecl0A6Syntax03RawdeJ0VAG0k5TokenJ0VSg_SbtF + 648
22 libSwiftParser.dylib     0x000000013c7c8740 $s11SwiftParser0B0V22parseOptionalCodeBlock13allowInitDecl0A6Syntax03RawefJ0VSgSb_tF + 316
23 libSwiftParser.dylib     0x000000013c72270c $s11SwiftParser0B0V20parseFuncDeclarationy0A6Syntax015RawFunctionDeclF0VAC0I10AttributesV_AA25RecoveryConsumptionHandleVtF + 3768
24 libSwiftParser.dylib     0x000000013c71a780 $s11SwiftParser0B0V16parseDeclaration16inMemberDeclList0A6Syntax03RawgI0VSb_tF + 3968
25 libSwiftParser.dylib     0x000000013c7c90f4 $s11SwiftParser0B0V9parseItem33_008C1B0E0A90478841CED0DF9A7053A1LL12isAtTopLevel13allowInitDecl0A6Syntax012RawCodeBlockdT0V0D0OSb_SbtF + 1124
26 libSwiftParser.dylib     0x000000013c7c8004 $s11SwiftParser0B0V18parseCodeBlockItem12isAtTopLevel13allowInitDecl0A6Syntax03RawdefN0VSgSb_SbtF + 2540
27 libSwiftParser.dylib     0x000000013c739958 $s11SwiftParser0B0V11parseGetSet0A6Syntax016RawSubscriptDeclF0V8AccessorOyF + 2408
28 libSwiftParser.dylib     0x000000013c729fe0 $s11SwiftParser0B0V24parseLetOrVarDeclaration__16inMemberDeclList0A6Syntax011RawVariablejL0VAC0J10AttributesV_AA25RecoveryConsumptionHandleVSbtF + 6936
29 libSwiftParser.dylib     0x000000013c71a878 $s11SwiftParser0B0V16parseDeclaration16inMemberDeclList0A6Syntax03RawgI0VSb_tF + 4216
30 libSwiftParser.dylib     0x000000013c7336d0 $s11SwiftParser0B0V23parseMemberDeclListItem0A6Syntax03RawdefgH0VSgyF + 2028
31 libSwiftParser.dylib     0x000000013c72e628 $s11SwiftParser0B0V19parseMemberDeclList10introducer0A6Syntax03Rawde5BlockH0VAF0i5TokenH0VSg_tF + 2112
32 libSwiftParser.dylib     0x000000013c721514 $s11SwiftParser0B0V25parseExtensionDeclarationy0A6Syntax03Rawd4DeclF0VAC0H10AttributesV_AA25RecoveryConsumptionHandleVtF + 1788
33 libSwiftParser.dylib     0x000000013c71a70c $s11SwiftParser0B0V16parseDeclaration16inMemberDeclList0A6Syntax03RawgI0VSb_tF + 3852
34 libSwiftParser.dylib     0x000000013c7c90f4 $s11SwiftParser0B0V9parseItem33_008C1B0E0A90478841CED0DF9A7053A1LL12isAtTopLevel13allowInitDecl0A6Syntax012RawCodeBlockdT0V0D0OSb_SbtF + 1124
35 libSwiftParser.dylib     0x000000013c7c8004 $s11SwiftParser0B0V18parseCodeBlockItem12isAtTopLevel13allowInitDecl0A6Syntax03RawdefN0VSgSb_SbtF + 2540
36 libSwiftParser.dylib     0x000000013c7c6f28 $s11SwiftParser0B0V22parseCodeBlockItemList12isAtTopLevel13allowInitDecl13stopCondition0A6Syntax03RawdefgQ0VSb_S2bACzXEtF + 1316
37 libSwiftParser.dylib     0x000000013c7c69ec $s11SwiftParser0B0V27parseTopLevelCodeBlockItems0A6Syntax03Rawfg8ItemListI0VyF + 68
38 libSwiftParser.dylib     0x000000013c7c6754 $s11SwiftParser0B0V15parseSourceFile0A6Syntax03RawdeF0VyF + 420
39 libSwiftParser.dylib     0x000000013c7dda40 $s11SwiftSyntax010SourceFileB0V0A6ParserE5parse4fromAcD0E0Vz_tFZ + 288
40 libSwiftParser.dylib     0x000000013c7ddbdc $s11SwiftParser0B0V5parse6source19maximumNestingLevel0C10Transition0A6Syntax010SourceFileI0VSRys5UInt8VG_SiSgAH016IncrementalParseH0CSgtFZ + 192
41 swift-frontend           0x0000000104998e7c $s11swiftASTGen15parseSourceFile6buffer0F6Length10moduleName8filenameSVSPys5UInt8VG_SiA2ItF + 284
42 swift-frontend           0x0000000104998d58 swift_ASTGen_parseSourceFile + 12
43 swift-frontend           0x0000000108070bc0 swift::Parser::parseSourceFileViaASTGen(llvm::SmallVectorImpl<swift::ASTNode>&, llvm::Optional<swift::DiagnosticTransaction>&, bool) + 572
44 swift-frontend           0x000000010807050c swift::Parser::parseTopLevelItems(llvm::SmallVectorImpl<swift::ASTNode>&) + 80
45 swift-frontend           0x000000010816d714 swift::ParseSourceFileRequest::evaluate(swift::Evaluator&, swift::SourceFile*) const + 884
46 swift-frontend           0x000000010816f3b4 swift::SourceFileParsingResult swift::SimpleRequest<swift::ParseSourceFileRequest, swift::SourceFileParsingResult (swift::SourceFile*), (swift::RequestFlags)12>::callDerived<0ul>(swift::Evaluator&, std::__1::integer_sequence<unsigned long, 0ul>) const + 84
47 swift-frontend           0x000000010816f134 swift::SimpleRequest<swift::ParseSourceFileRequest, swift::SourceFileParsingResult (swift::SourceFile*), (swift::RequestFlags)12>::evaluateRequest(swift::ParseSourceFileRequest const&, swift::Evaluator&) + 32
48 swift-frontend           0x0000000108bb7e20 llvm::Expected<swift::ParseSourceFileRequest::OutputType> swift::Evaluator::getResultUncached<swift::ParseSourceFileRequest>(swift::ParseSourceFileRequest const&) + 296
49 swift-frontend           0x0000000108bb7c48 llvm::Expected<swift::ParseSourceFileRequest::OutputType> swift::Evaluator::getResultCached<swift::ParseSourceFileRequest, (void*)0>(swift::ParseSourceFileRequest const&) + 188
50 swift-frontend           0x0000000108bb7990 llvm::Expected<swift::ParseSourceFileRequest::OutputType> swift::Evaluator::operator()<swift::ParseSourceFileRequest, (void*)0>(swift::ParseSourceFileRequest const&) + 68
51 swift-frontend           0x0000000108b2e32c swift::ParseSourceFileRequest::OutputType swift::evaluateOrDefault<swift::ParseSourceFileRequest>(swift::Evaluator&, swift::ParseSourceFileRequest, swift::ParseSourceFileRequest::OutputType) + 68
52 swift-frontend           0x000000010816de2c swift::ParseTopLevelDeclsRequest::evaluate(swift::Evaluator&, swift::SourceFile*) const + 160
53 swift-frontend           0x000000010816f40c llvm::ArrayRef<swift::Decl*> swift::SimpleRequest<swift::ParseTopLevelDeclsRequest, llvm::ArrayRef<swift::Decl*> (swift::SourceFile*), (swift::RequestFlags)2>::callDerived<0ul>(swift::Evaluator&, std::__1::integer_sequence<unsigned long, 0ul>) const + 76
54 swift-frontend           0x000000010816f160 swift::SimpleRequest<swift::ParseTopLevelDeclsRequest, llvm::ArrayRef<swift::Decl*> (swift::SourceFile*), (swift::RequestFlags)2>::evaluateRequest(swift::ParseTopLevelDeclsRequest const&, swift::Evaluator&) + 32
55 swift-frontend           0x0000000108bf28dc llvm::Expected<swift::ParseTopLevelDeclsRequest::OutputType> swift::Evaluator::getResultUncached<swift::ParseTopLevelDeclsRequest>(swift::ParseTopLevelDeclsRequest const&) + 272
56 swift-frontend           0x0000000108bf270c llvm::Expected<swift::ParseTopLevelDeclsRequest::OutputType> swift::Evaluator::getResultCached<swift::ParseTopLevelDeclsRequest, (void*)0>(swift::ParseTopLevelDeclsRequest const&) + 212
57 swift-frontend           0x0000000108bf2594 llvm::Expected<swift::ParseTopLevelDeclsRequest::OutputType> swift::Evaluator::operator()<swift::ParseTopLevelDeclsRequest, (void*)0>(swift::ParseTopLevelDeclsRequest const&) + 68
58 swift-frontend           0x0000000108b3ab7c swift::ParseTopLevelDeclsRequest::OutputType swift::evaluateOrDefault<swift::ParseTopLevelDeclsRequest>(swift::Evaluator&, swift::ParseTopLevelDeclsRequest, swift::ParseTopLevelDeclsRequest::OutputType) + 68
59 swift-frontend           0x0000000108b22050 swift::SourceFile::getTopLevelDecls() const + 104
60 swift-frontend           0x00000001075ea4ec swift::performImportResolution(swift::SourceFile&) + 336
61 swift-frontend           0x00000001052325ac swift::CompilerInstance::performParseAndResolveImportsOnly() + 792
62 swift-frontend           0x00000001052327d4 swift::CompilerInstance::performSema() + 28
63 swift-frontend           0x0000000104c38050 withSemanticAnalysis(swift::CompilerInstance&, swift::FrontendObserver*, llvm::function_ref<bool (swift::CompilerInstance&)>, bool) + 160
64 swift-frontend           0x0000000104c33088 performAction(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 1060
65 swift-frontend           0x0000000104c0bc50 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 220
66 swift-frontend           0x0000000104c0ac4c swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2056
67 swift-frontend           0x00000001049a63e4 run_driver(llvm::StringRef, llvm::ArrayRef<char const*>, llvm::ArrayRef<char const*>) + 324
68 swift-frontend           0x00000001049a5860 swift::mainEntry(int, char const**) + 1148
69 swift-frontend           0x000000010497adf4 main + 36
70 dyld                     0x000000018b19be50 start + 2544
<unknown>:0: error: unable to execute command: Trace/BPT trap: 5
<unknown>:0: error: compile command failed due to signal 5 (use -v to see invocation)
[1569/2176][ 72%][4083.142s] Compiling /Users/va...lib/public/RegexParser//OSX/arm64/_RegexParser.
ninja: build stopped: subcommand failed.
ERROR: command terminated with a non-zero exit status 1, aborting

Steps to reproduce

Expected behavior no crash

Environment

AnthonyLatsis commented 1 year ago

cc @ahoppen

ahoppen commented 1 year ago

Reduced reproducer:

if r{""
ahoppen commented 1 year ago

rdar://104392338

ahoppen commented 1 year ago

Forward-duping to https://github.com/apple/swift-syntax/issues/1246 because it has the nicer description.