Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.0.1] Compiler crashes for code that was compiling in Swift 6.0 #76741

Open
soumyamahunt opened this issue Sep 27, 2024 · 1 comment
Open
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. crash Bug: A crash, i.e., an abnormal termination of software triage needed This issue needs more specific labels

Comments

@soumyamahunt
Copy link

soumyamahunt commented Sep 27, 2024

Description

If I try to compile Swift package: https://github.com/SwiftyLab/MetaCodable with Swift 6.0 toolchain package is built without errors. When trying to compile with Swift 6.0.1 following compiler crash occurs:

Reproduction

Try to build swift package: https://github.com/SwiftyLab/MetaCodable with latest Swift 6.0.1 toolchain on macOS 14.

Stack dump

0  swift-frontend           0x0000000108029b78 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1  swift-frontend           0x0000000108028344 llvm::sys::RunSignalHandlers() + 112
2  swift-frontend           0x000000010802a1c0 SignalHandler(int) + 304
3  libsystem_platform.dylib 0x000000018e34e584 _sigtramp + 56
4  libsystem_pthread.dylib  0x000000018e31dc20 pthread_kill + 288
5  libsystem_c.dylib        0x000000018e22aa30 abort + 180
6  swift-frontend           0x0000000108582c28 swift::rewriting::RequirementMachine::verify(swift::rewriting::MutableTerm const&) const (.cold.3) + 0
7  swift-frontend           0x000000010442f158 swift::rewriting::RequirementMachine::verify(swift::rewriting::MutableTerm const&) const + 1016
8  swift-frontend           0x000000010442f5f0 swift::rewriting::RequirementMachine::getRequiredProtocols(swift::Type) const + 136
9  swift-frontend           0x0000000102eec31c swift::irgen::FulfillmentMap::searchWitnessTable(swift::irgen::IRGenModule&, swift::CanType, swift::ProtocolDecl*, unsigned int, swift::irgen::MetadataPath&&, swift::irgen::FulfillmentMap::InterestingKeysCallback const&) + 216
10 swift-frontend           0x0000000102eebd14 swift::irgen::FulfillmentMap::searchNominalTypeMetadata(swift::irgen::IRGenModule&, swift::CanType, swift::MetadataState, unsigned int, swift::irgen::MetadataPath&&, swift::irgen::FulfillmentMap::InterestingKeysCallback const&) + 1200
11 swift-frontend           0x000000010301f954 (anonymous namespace)::PolymorphicConvention::considerWitnessSelf(swift::CanTypeWrapper<swift::SILFunctionType>) + 328
12 swift-frontend           0x000000010301f624 (anonymous namespace)::PolymorphicConvention::PolymorphicConvention(swift::irgen::IRGenModule&, swift::CanTypeWrapper<swift::SILFunctionType>, bool) + 304
13 swift-frontend           0x000000010301e018 swift::irgen::expandPolymorphicSignature(swift::irgen::IRGenModule&, swift::CanTypeWrapper<swift::SILFunctionType>, llvm::SmallVectorImpl<llvm::Type*>&, llvm::SmallVectorImpl<swift::irgen::PolymorphicSignatureExpandedTypeSource>*) + 68
14 swift-frontend           0x0000000102efd6a8 swift::irgen::(anonymous namespace)::SignatureExpansion::expandFunctionType(swift::irgen::SignatureExpansionABIDetails*) + 2672
15 swift-frontend           0x0000000102efcbc0 swift::irgen::Signature::getUncached(swift::irgen::IRGenModule&, swift::CanTypeWrapper<swift::SILFunctionType>, swift::irgen::FunctionPointerKind, bool, clang::CXXConstructorDecl const*) + 184
16 swift-frontend           0x0000000102fb6610 (anonymous namespace)::FuncSignatureInfo::getSignature(swift::irgen::IRGenModule&) const + 164
17 swift-frontend           0x0000000102fb6198 swift::irgen::IRGenModule::getSignature(swift::CanTypeWrapper<swift::SILFunctionType>, swift::irgen::FunctionPointerKind, bool, clang::CXXConstructorDecl const*) + 408
18 swift-frontend           0x0000000102f610a4 swift::irgen::IRGenModule::getAddrOfSILFunction(swift::SILFunction*, swift::ForDefinition_t, bool, bool) + 1428
19 swift-frontend           0x000000010302346c (anonymous namespace)::FragileWitnessTableBuilder::addMethod(swift::SILDeclRef) + 352
20 swift-frontend           0x0000000103022174 swift::SILWitnessVisitor<(anonymous namespace)::FragileWitnessTableBuilder>::visitProtocolDecl(swift::ProtocolDecl*) + 2176
21 swift-frontend           0x0000000103018f18 swift::irgen::IRGenModule::emitSILWitnessTable(swift::SILWitnessTable*) + 1652
22 swift-frontend           0x0000000102f5c360 swift::irgen::IRGenerator::emitGlobalTopLevel(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>> const&) + 884
23 swift-frontend           0x000000010306e124 swift::IRGenRequest::evaluate(swift::Evaluator&, swift::IRGenDescriptor) const + 2172
24 swift-frontend           0x00000001030bafc8 swift::GeneratedModule swift::SimpleRequest<swift::IRGenRequest, swift::GeneratedModule (swift::IRGenDescriptor), (swift::RequestFlags)9>::callDerived<0ul>(swift::Evaluator&, std::__1::integer_sequence<unsigned long, 0ul>) const + 200
25 swift-frontend           0x00000001030767e0 swift::IRGenRequest::OutputType swift::Evaluator::getResultUncached<swift::IRGenRequest, swift::IRGenRequest::OutputType swift::evaluateOrFatal<swift::IRGenRequest>(swift::Evaluator&, swift::IRGenRequest)::'lambda'()>(swift::IRGenRequest const&, swift::IRGenRequest::OutputType swift::evaluateOrFatal<swift::IRGenRequest>(swift::Evaluator&, swift::IRGenRequest)::'lambda'()) + 212
26 swift-frontend           0x000000010307018c swift::performIRGeneration(swift::FileUnit*, swift::IRGenOptions const&, swift::TBDGenOptions const&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>>, llvm::StringRef, swift::PrimarySpecificPaths const&, llvm::StringRef, llvm::GlobalVariable**) + 208
27 swift-frontend           0x0000000102b7a564 generateIR(swift::IRGenOptions const&, swift::TBDGenOptions const&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>>, swift::PrimarySpecificPaths const&, llvm::StringRef, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, llvm::GlobalVariable*&, llvm::ArrayRef<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>) + 156
28 swift-frontend           0x0000000102b76f98 performCompileStepsPostSILGen(swift::CompilerInstance&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>>, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) + 1416
29 swift-frontend           0x0000000102b763f8 swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 656
30 swift-frontend           0x0000000102b82104 withSemanticAnalysis(swift::CompilerInstance&, swift::FrontendObserver*, llvm::function_ref<bool (swift::CompilerInstance&)>, bool) + 160
31 swift-frontend           0x0000000102b782d0 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 708
32 swift-frontend           0x0000000102b779a4 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2344
33 swift-frontend           0x000000010298dfdc swift::mainEntry(int, char const**) + 3096
34 dyld                     0x000000018df93154 start + 2476

Expected behavior

Code should compile.

Environment

Apple Swift version 6.0.1 (swift-6.0.1-RELEASE)
Target: arm64-apple-macosx10.15

Host: macOS 14.6.1 arm64

Additional information

1.	Apple Swift version 6.0.1 (swift-6.0.1-RELEASE)
2.	Compiling with effective version 5.10
3.	While evaluating request IRGenRequest(IR Generation for file "/Users/runner/work/MetaCodable/MetaCodable/Sources/PluginCore/Variables/Type/MemberGroup.swift")
4.	While emitting witness table for protocol conformance MemberGroup<Decl>: DeclaredVariable at extension of MemberGroup (at /Users/runner/work/MetaCodable/MetaCodable/Sources/PluginCore/Variables/Type/MemberGroup.swift:160:1)
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           0x0000000108029b78 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1  swift-frontend           0x0000000108028344 llvm::sys::RunSignalHandlers() + 112
2  swift-frontend           0x000000010802a1c0 SignalHandler(int) + 304
3  libsystem_platform.dylib 0x000000018e34e584 _sigtramp + 56
4  libsystem_pthread.dylib  0x000000018e31dc20 pthread_kill + 288
5  libsystem_c.dylib        0x000000018e22aa30 abort + 180
6  swift-frontend           0x0000000108582c28 swift::rewriting::RequirementMachine::verify(swift::rewriting::MutableTerm const&) const (.cold.3) + 0
7  swift-frontend           0x000000010442f158 swift::rewriting::RequirementMachine::verify(swift::rewriting::MutableTerm const&) const + 1016
8  swift-frontend           0x000000010442f5f0 swift::rewriting::RequirementMachine::getRequiredProtocols(swift::Type) const + 136
9  swift-frontend           0x0000000102eec31c swift::irgen::FulfillmentMap::searchWitnessTable(swift::irgen::IRGenModule&, swift::CanType, swift::ProtocolDecl*, unsigned int, swift::irgen::MetadataPath&&, swift::irgen::FulfillmentMap::InterestingKeysCallback const&) + 216
10 swift-frontend           0x0000000102eebd14 swift::irgen::FulfillmentMap::searchNominalTypeMetadata(swift::irgen::IRGenModule&, swift::CanType, swift::MetadataState, unsigned int, swift::irgen::MetadataPath&&, swift::irgen::FulfillmentMap::InterestingKeysCallback const&) + 1200
11 swift-frontend           0x000000010301f954 (anonymous namespace)::PolymorphicConvention::considerWitnessSelf(swift::CanTypeWrapper<swift::SILFunctionType>) + 328
12 swift-frontend           0x000000010301f624 (anonymous namespace)::PolymorphicConvention::PolymorphicConvention(swift::irgen::IRGenModule&, swift::CanTypeWrapper<swift::SILFunctionType>, bool) + 304
13 swift-frontend           0x000000010301e018 swift::irgen::expandPolymorphicSignature(swift::irgen::IRGenModule&, swift::CanTypeWrapper<swift::SILFunctionType>, llvm::SmallVectorImpl<llvm::Type*>&, llvm::SmallVectorImpl<swift::irgen::PolymorphicSignatureExpandedTypeSource>*) + 68
14 swift-frontend           0x0000000102efd6a8 swift::irgen::(anonymous namespace)::SignatureExpansion::expandFunctionType(swift::irgen::SignatureExpansionABIDetails*) + 2672
15 swift-frontend           0x0000000102efcbc0 swift::irgen::Signature::getUncached(swift::irgen::IRGenModule&, swift::CanTypeWrapper<swift::SILFunctionType>, swift::irgen::FunctionPointerKind, bool, clang::CXXConstructorDecl const*) + 184
16 swift-frontend           0x0000000102fb6610 (anonymous namespace)::FuncSignatureInfo::getSignature(swift::irgen::IRGenModule&) const + 164
17 swift-frontend           0x0000000102fb6198 swift::irgen::IRGenModule::getSignature(swift::CanTypeWrapper<swift::SILFunctionType>, swift::irgen::FunctionPointerKind, bool, clang::CXXConstructorDecl const*) + 408
18 swift-frontend           0x0000000102f610a4 swift::irgen::IRGenModule::getAddrOfSILFunction(swift::SILFunction*, swift::ForDefinition_t, bool, bool) + 1428
19 swift-frontend           0x000000010302346c (anonymous namespace)::FragileWitnessTableBuilder::addMethod(swift::SILDeclRef) + 352
20 swift-frontend           0x0000000103022174 swift::SILWitnessVisitor<(anonymous namespace)::FragileWitnessTableBuilder>::visitProtocolDecl(swift::ProtocolDecl*) + 2176
21 swift-frontend           0x0000000103018f18 swift::irgen::IRGenModule::emitSILWitnessTable(swift::SILWitnessTable*) + 1652
22 swift-frontend           0x0000000102f5c360 swift::irgen::IRGenerator::emitGlobalTopLevel(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>> const&) + 884
23 swift-frontend           0x000000010306e124 swift::IRGenRequest::evaluate(swift::Evaluator&, swift::IRGenDescriptor) const + 2172
24 swift-frontend           0x00000001030bafc8 swift::GeneratedModule swift::SimpleRequest<swift::IRGenRequest, swift::GeneratedModule (swift::IRGenDescriptor), (swift::RequestFlags)9>::callDerived<0ul>(swift::Evaluator&, std::__1::integer_sequence<unsigned long, 0ul>) const + 200
25 swift-frontend           0x00000001030767e0 swift::IRGenRequest::OutputType swift::Evaluator::getResultUncached<swift::IRGenRequest, swift::IRGenRequest::OutputType swift::evaluateOrFatal<swift::IRGenRequest>(swift::Evaluator&, swift::IRGenRequest)::'lambda'()>(swift::IRGenRequest const&, swift::IRGenRequest::OutputType swift::evaluateOrFatal<swift::IRGenRequest>(swift::Evaluator&, swift::IRGenRequest)::'lambda'()) + 212
26 swift-frontend           0x000000010307018c swift::performIRGeneration(swift::FileUnit*, swift::IRGenOptions const&, swift::TBDGenOptions const&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>>, llvm::StringRef, swift::PrimarySpecificPaths const&, llvm::StringRef, llvm::GlobalVariable**) + 208
27 swift-frontend           0x0000000102b7a564 generateIR(swift::IRGenOptions const&, swift::TBDGenOptions const&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>>, swift::PrimarySpecificPaths const&, llvm::StringRef, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, llvm::GlobalVariable*&, llvm::ArrayRef<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>) + 156
28 swift-frontend           0x0000000102b76f98 performCompileStepsPostSILGen(swift::CompilerInstance&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>>, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) + 1416
29 swift-frontend           0x0000000102b763f8 swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 656
30 swift-frontend           0x0000000102b82104 withSemanticAnalysis(swift::CompilerInstance&, swift::FrontendObserver*, llvm::function_ref<bool (swift::CompilerInstance&)>, bool) + 160
31 swift-frontend           0x0000000102b782d0 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 708
32 swift-frontend           0x0000000102b779a4 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2344
33 swift-frontend           0x000000010298dfdc swift::mainEntry(int, char const**) + 3096
34 dyld                     0x000000018df93154 start + 2476
Apple Swift version 6.0.1 (swift-6.0.1-RELEASE)
Target: arm64-apple-macosx10.15

The complete build log can be sheen as part of GitHub workflow run: https://github.com/SwiftyLab/MetaCodable/actions/runs/11062444941/job/30736942223

@soumyamahunt soumyamahunt added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. crash Bug: A crash, i.e., an abnormal termination of software triage needed This issue needs more specific labels labels Sep 27, 2024
@sbhat98
Copy link

sbhat98 commented Sep 30, 2024

I can confirm that I am also seeing this while trying to build the Swift Foundation repo with the 6.0.1 release.

swift --verison output:

Apple Swift version 6.0.1 (swift-6.0.1-RELEASE)
Target: x86_64-apple-macosx15.0

Command run: swift test

Failed to reconstruct type for $s6Darwin14POSIXErrorCodeOD
Original type:
(enum_type decl="_errno.(file).POSIXErrorCode")
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Pass '-Xfrontend -disable-round-trip-debug-types' to disable this assertion.
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.  Program arguments: /Library/Developer/Toolchains/swift-6.0.1-RELEASE.xctoolchain/usr/bin/swift-frontend -frontend -c -filelist /var/folders/cj/0w4bb6k17375x2djs9w7k0x80000gn/T/TemporaryDirectory.oxtmqV/sources-1 -primary-file /Users/shishir/code/swift-foundation/Sources/FoundationEssentials/Data/Pointers+DataProtocol.swift -primary-file /Users/shishir/code/swift-foundation/Sources/FoundationEssentials/Date.swift -primary-file /Users/shishir/code/swift-foundation/Sources/FoundationEssentials/DateInterval.swift -primary-file /Users/shishir/code/swift-foundation/Sources/FoundationEssentials/Decimal/Decimal+Compatibility.swift -primary-file /Users/shishir/code/swift-foundation/Sources/FoundationEssentials/Decimal/Decimal+Conformances.swift -primary-file /Users/shishir/code/swift-foundation/Sources/FoundationEssentials/Decimal/Decimal+Math.swift -primary-file /Users/shishir/code/swift-foundation/Sources/FoundationEssentials/Decimal/Decimal.swift -primary-file /Users/shishir/code/swift-foundation/Sources/FoundationEssentials/Error/CocoaError+FilePath.swift -primary-file /Users/shishir/code/swift-foundation/Sources/FoundationEssentials/Error/CocoaError.swift -primary-file /Users/shishir/code/swift-foundation/Sources/FoundationEssentials/Error/ErrorCodes+POSIX.swift -primary-file /Users/shishir/code/swift-foundation/Sources/FoundationEssentials/Error/ErrorCodes+Win32.swift -primary-file /Users/shishir/code/swift-foundation/Sources/FoundationEssentials/Error/ErrorCodes.swift -primary-file /Users/shishir/code/swift-foundation/Sources/FoundationEssentials/FileManager/FileManager+Basics.swift -primary-file /Users/shishir/code/swift-foundation/Sources/FoundationEssentials/FileManager/FileManager+Bridge.swift -primary-file /Users/shishir/code/swift-foundation/Sources/FoundationEssentials/FileManager/FileManager+Directories.swift -primary-file /Users/shishir/code/swift-foundation/Sources/FoundationEssentials/FileManager/FileManager+Files.swift -supplementary-output-file-map /var/folders/cj/0w4bb6k17375x2djs9w7k0x80000gn/T/TemporaryDirectory.oxtmqV/supplementaryOutputs-4 -target x86_64-apple-macosx13.3 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk -I /Users/shishir/code/swift-foundation/.build/x86_64-apple-macosx/debug/Modules -I /Library/Developer/Toolchains/swift-6.0.1-RELEASE.xctoolchain/usr/lib/swift/macosx/testing -I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -color-diagnostics -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /Users/shishir/code/swift-foundation/.build/x86_64-apple-macosx/debug/ModuleCache -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -load-plugin-executable /Users/shishir/code/swift-foundation/.build/x86_64-apple-macosx/debug/FoundationMacros-tool#FoundationMacros -enable-experimental-feature VariadicGenerics -enable-experimental-feature AccessLevelOnImport -enable-experimental-feature "AvailabilityMacro=FoundationPreview 0.1:macOS 13.3, iOS 16.4, tvOS 16.4, watchOS 9.4" -enable-experimental-feature "AvailabilityMacro=FoundationPredicate 0.1:macOS 14, iOS 17, tvOS 17, watchOS 10" -enable-experimental-feature "AvailabilityMacro=FoundationPredicateRegex 0.1:macOS 15, iOS 18, tvOS 18, watchOS 11" -enable-experimental-feature "AvailabilityMacro=FoundationPreview 0.2:macOS 13.3, iOS 16.4, tvOS 16.4, watchOS 9.4" -enable-experimental-feature "AvailabilityMacro=FoundationPredicate 0.2:macOS 14, iOS 17, tvOS 17, watchOS 10" -enable-experimental-feature "AvailabilityMacro=FoundationPredicateRegex 0.2:macOS 15, iOS 18, tvOS 18, watchOS 11" -enable-experimental-feature "AvailabilityMacro=FoundationPreview 0.3:macOS 13.3, iOS 16.4, tvOS 16.4, watchOS 9.4" -enable-experimental-feature "AvailabilityMacro=FoundationPredicate 0.3:macOS 14, iOS 17, tvOS 17, watchOS 10" -enable-experimental-feature "AvailabilityMacro=FoundationPredicateRegex 0.3:macOS 15, iOS 18, tvOS 18, watchOS 11" -enable-experimental-feature "AvailabilityMacro=FoundationPreview 0.4:macOS 13.3, iOS 16.4, tvOS 16.4, watchOS 9.4" -enable-experimental-feature "AvailabilityMacro=FoundationPredicate 0.4:macOS 14, iOS 17, tvOS 17, watchOS 10" -enable-experimental-feature "AvailabilityMacro=FoundationPredicateRegex 0.4:macOS 15, iOS 18, tvOS 18, watchOS 11" -enable-experimental-feature "AvailabilityMacro=FoundationPreview 6.0.2:macOS 13.3, iOS 16.4, tvOS 16.4, watchOS 9.4" -enable-experimental-feature "AvailabilityMacro=FoundationPredicate 6.0.2:macOS 14, iOS 17, tvOS 17, watchOS 10" -enable-experimental-feature "AvailabilityMacro=FoundationPredicateRegex 6.0.2:macOS 15, iOS 18, tvOS 18, watchOS 11" -enable-experimental-feature StrictConcurrency -enable-upcoming-feature InferSendableFromCaptures -empty-abi-descriptor -plugin-path /Library/Developer/Toolchains/swift-6.0.1-RELEASE.xctoolchain/usr/lib/swift/host/plugins/testing -resource-dir /Library/Developer/Toolchains/swift-6.0.1-RELEASE.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -file-compilation-dir /Users/shishir/code/swift-foundation -Xcc -fmodule-map-file=/Users/shishir/code/swift-foundation/.build/checkouts/swift-syntax/Sources/_SwiftSyntaxCShims/include/module.modulemap -Xcc -I -Xcc /Users/shishir/code/swift-foundation/.build/checkouts/swift-syntax/Sources/_SwiftSyntaxCShims/include -Xcc -fmodule-map-file=/Users/shishir/code/swift-foundation/Sources/_FoundationCShims/include/module.modulemap -Xcc -I -Xcc /Users/shishir/code/swift-foundation/Sources/_FoundationCShims/include -Xcc -isysroot -Xcc /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk -Xcc -F -Xcc /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -Xcc -fPIC -Xcc -g -module-name FoundationEssentials -package-name swift_foundation -plugin-path /Library/Developer/Toolchains/swift-6.0.1-RELEASE.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Library/Developer/Toolchains/swift-6.0.1-RELEASE.xctoolchain/usr/local/lib/swift/host/plugins -target-sdk-version 15.0 -target-sdk-name macosx15.0 -external-plugin-path /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins#/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/local/lib/swift/host/plugins#/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -parse-as-library -o /Users/shishir/code/swift-foundation/.build/x86_64-apple-macosx/debug/FoundationEssentials.build/Pointers+DataProtocol.swift.o -o /Users/shishir/code/swift-foundation/.build/x86_64-apple-macosx/debug/FoundationEssentials.build/Date.swift.o -o /Users/shishir/code/swift-foundation/.build/x86_64-apple-macosx/debug/FoundationEssentials.build/DateInterval.swift.o -o /Users/shishir/code/swift-foundation/.build/x86_64-apple-macosx/debug/FoundationEssentials.build/Decimal+Compatibility.swift.o -o /Users/shishir/code/swift-foundation/.build/x86_64-apple-macosx/debug/FoundationEssentials.build/Decimal+Conformances.swift.o -o /Users/shishir/code/swift-foundation/.build/x86_64-apple-macosx/debug/FoundationEssentials.build/Decimal+Math.swift.o -o /Users/shishir/code/swift-foundation/.build/x86_64-apple-macosx/debug/FoundationEssentials.build/Decimal.swift.o -o /Users/shishir/code/swift-foundation/.build/x86_64-apple-macosx/debug/FoundationEssentials.build/CocoaError+FilePath.swift.o -o /Users/shishir/code/swift-foundation/.build/x86_64-apple-macosx/debug/FoundationEssentials.build/CocoaError.swift.o -o /Users/shishir/code/swift-foundation/.build/x86_64-apple-macosx/debug/FoundationEssentials.build/ErrorCodes+POSIX.swift.o -o /Users/shishir/code/swift-foundation/.build/x86_64-apple-macosx/debug/FoundationEssentials.build/ErrorCodes+Win32.swift.o -o /Users/shishir/code/swift-foundation/.build/x86_64-apple-macosx/debug/FoundationEssentials.build/ErrorCodes.swift.o -o /Users/shishir/code/swift-foundation/.build/x86_64-apple-macosx/debug/FoundationEssentials.build/FileManager+Basics.swift.o -o /Users/shishir/code/swift-foundation/.build/x86_64-apple-macosx/debug/FoundationEssentials.build/FileManager+Bridge.swift.o -o /Users/shishir/code/swift-foundation/.build/x86_64-apple-macosx/debug/FoundationEssentials.build/FileManager+Directories.swift.o -o /Users/shishir/code/swift-foundation/.build/x86_64-apple-macosx/debug/FoundationEssentials.build/FileManager+Files.swift.o -index-store-path /Users/shishir/code/swift-foundation/.build/x86_64-apple-macosx/debug/index/store -index-system-modules
1.  Apple Swift version 6.0.1 (swift-6.0.1-RELEASE)
2.  Compiling with effective version 5.10
3.  Contents of /var/folders/cj/0w4bb6k17375x2djs9w7k0x80000gn/T/TemporaryDirectory.oxtmqV/sources-1:
4.  While evaluating request IRGenRequest(IR Generation for file "/Users/shishir/code/swift-foundation/Sources/FoundationEssentials/Error/CocoaError+FilePath.swift")
5.  While emitting IR SIL function "@$s20FoundationEssentials10POSIXErrorV5errnoACSgs5Int32V_tc33_FBA71097CBDF77AA6E663B7714FA1434LlfC".
 for 'init(errno:)' (at /Users/shishir/code/swift-foundation/Sources/FoundationEssentials/Error/CocoaError+FilePath.swift:73:17)
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           0x000000010e60c458 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 40
1  swift-frontend           0x000000010e60a945 llvm::sys::RunSignalHandlers() + 85
2  swift-frontend           0x000000010e60caae SignalHandler(int) + 270
3  libsystem_platform.dylib 0x00007ff802876e9d _sigtramp + 29
4  libsystem_platform.dylib 0x00007f8846accd68 _sigtramp + 18446743593816514280
5  libsystem_c.dylib        0x00007ff802762b19 abort + 126
6  swift-frontend           0x000000010e6ffbfd (anonymous namespace)::IRGenDebugInfoImpl::getOrCreateType(swift::irgen::DebugTypeInfo) (.cold.23) + 141
7  swift-frontend           0x000000010896633b (anonymous namespace)::IRGenDebugInfoImpl::getOrCreateType(swift::irgen::DebugTypeInfo) + 4699
8  swift-frontend           0x000000010895f37a (anonymous namespace)::IRGenDebugInfoImpl::emitVariableDeclaration(swift::irgen::IRBuilder&, llvm::ArrayRef<llvm::Value*>, swift::irgen::DebugTypeInfo, swift::SILDebugScope const*, std::__1::optional<swift::SILLocation>, swift::SILDebugVariable, swift::irgen::IndirectionKind, swift::irgen::ArtificialKind, swift::irgen::AddrDbgInstrKind) + 602
9  swift-frontend           0x000000010895f0dc swift::irgen::IRGenDebugInfo::emitVariableDeclaration(swift::irgen::IRBuilder&, llvm::ArrayRef<llvm::Value*>, swift::irgen::DebugTypeInfo, swift::SILDebugScope const*, std::__1::optional<swift::SILLocation>, swift::SILDebugVariable, swift::irgen::IndirectionKind, swift::irgen::ArtificialKind, swift::irgen::AddrDbgInstrKind) + 300
10 swift-frontend           0x00000001089c9e9a (anonymous namespace)::IRGenSILFunction::visitSILBasicBlock(swift::SILBasicBlock*) + 94074
11 swift-frontend           0x00000001089b1eac (anonymous namespace)::IRGenSILFunction::emitSILFunction() + 11884
12 swift-frontend           0x00000001089ae9f3 swift::irgen::IRGenModule::emitSILFunction(swift::SILFunction*) + 2339
13 swift-frontend           0x00000001088197b4 swift::irgen::IRGenerator::emitGlobalTopLevel(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>> const&) + 820
14 swift-frontend           0x000000010894ebe3 swift::IRGenRequest::evaluate(swift::Evaluator&, swift::IRGenDescriptor) const + 2755
15 swift-frontend           0x00000001089adbbf swift::GeneratedModule swift::SimpleRequest<swift::IRGenRequest, swift::GeneratedModule (swift::IRGenDescriptor), (swift::RequestFlags)9>::callDerived<0ul>(swift::Evaluator&, std::__1::integer_sequence<unsigned long, 0ul>) const + 223
16 swift-frontend           0x00000001089ada9e swift::SimpleRequest<swift::IRGenRequest, swift::GeneratedModule (swift::IRGenDescriptor), (swift::RequestFlags)9>::evaluateRequest(swift::IRGenRequest const&, swift::Evaluator&) + 14
17 swift-frontend           0x0000000108958221 swift::IRGenRequest::OutputType swift::Evaluator::getResultUncached<swift::IRGenRequest, swift::IRGenRequest::OutputType swift::evaluateOrFatal<swift::IRGenRequest>(swift::Evaluator&, swift::IRGenRequest)::'lambda'()>(swift::IRGenRequest const&, swift::IRGenRequest::OutputType swift::evaluateOrFatal<swift::IRGenRequest>(swift::Evaluator&, swift::IRGenRequest)::'lambda'()) + 209
18 swift-frontend           0x0000000108951460 swift::performIRGeneration(swift::FileUnit*, swift::IRGenOptions const&, swift::TBDGenOptions const&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>>, llvm::StringRef, swift::PrimarySpecificPaths const&, llvm::StringRef, llvm::GlobalVariable**) + 304
19 swift-frontend           0x00000001083a3234 generateIR(swift::IRGenOptions const&, swift::TBDGenOptions const&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>>, swift::PrimarySpecificPaths const&, llvm::StringRef, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, llvm::GlobalVariable*&, llvm::ArrayRef<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>) + 180
20 swift-frontend           0x000000010839ecf7 performCompileStepsPostSILGen(swift::CompilerInstance&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>>, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) + 1575
21 swift-frontend           0x000000010839de6e swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 830
22 swift-frontend           0x00000001083acc1f withSemanticAnalysis(swift::CompilerInstance&, swift::FrontendObserver*, llvm::function_ref<bool (swift::CompilerInstance&)>, bool) + 143
23 swift-frontend           0x00000001083a0547 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 967
24 swift-frontend           0x000000010839f98f swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2927
25 swift-frontend           0x000000010818572c swift::mainEntry(int, char const**) + 2636
26 dyld                     0x00007ff8024b42cd start + 1805

error: fatalError

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. crash Bug: A crash, i.e., an abnormal termination of software triage needed This issue needs more specific labels
Projects
None yet
Development

No branches or pull requests

2 participants