swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.27k stars 10.33k forks source link

[SR-15755] Swift 5.6-dev crashes when trying to compile SwiftGLib #58032

Open swift-ci opened 2 years ago

swift-ci commented 2 years ago
Previous ID SR-15755
Radar None
Original Reporter rhexel (JIRA User)
Type Bug

Attachment: Download

Environment `Darwin Kernel Version 21.3.0: Mon Jan 3 23:49:26 PST 2022; root:xnu-8019.80.24~15/RELEASE_X86_64 x86_64` `Apple Swift version 5.6-dev (LLVM 64a4d678f114158, Swift 8ae983c3480462b)` `Target: x86_64-apple-macosx12.0` `glib-2.70.2` (installed via `brew install glib`)
Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 1 | |Component/s | Compiler | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: 0268cd20d5fb23438d0cfd4a3226b4dd

Issue Description:

Trying to run swift build with the January 11 macOS snapshot for 5.6 crashes with the following output:

Fetching https://github.com/rhx/gir2swift.git from cache Fetched https://github.com/rhx/gir2swift.git (0.77s) Fetching https://github.com/apple/swift-docc-plugin from cache Fetched https://github.com/apple/swift-docc-plugin (0.74s) Fetching https://github.com/rhx/SwiftLibXML.git from cache Fetched https://github.com/rhx/SwiftLibXML.git (0.69s) Fetching https://github.com/jpsim/Yams.git from cache Fetching https://github.com/apple/swift-argument-parser from cache Fetched https://github.com/jpsim/Yams.git (0.81s) Fetched https://github.com/apple/swift-argument-parser (0.83s) Computing version for https://github.com/jpsim/Yams.git Computed https://github.com/jpsim/Yams.git at 4.0.6 (0.06s) Computing version for https://github.com/apple/swift-argument-parser Computed https://github.com/apple/swift-argument-parser at 0.5.0 (0.06s) Creating working copy for https://github.com/rhx/gir2swift.git Working copy of https://github.com/rhx/gir2swift.git resolved at development Creating working copy for https://github.com/apple/swift-docc-plugin Working copy of https://github.com/apple/swift-docc-plugin resolved at main Creating working copy for https://github.com/rhx/SwiftLibXML.git Working copy of https://github.com/rhx/SwiftLibXML.git resolved at main Creating working copy for https://github.com/jpsim/Yams.git Working copy of https://github.com/jpsim/Yams.git resolved at 4.0.6 Creating working copy for https://github.com/apple/swift-argument-parser Working copy of https://github.com/apple/swift-argument-parser resolved at 0.5.0 warning: dependency 'swift-docc-plugin' is not used by any target Building for debugging... Failed to reconstruct type for $sSpySo13__va_list_tagVGSgD Original type: (bound_generic_enum_type decl=Swift.(file).Optional (bound_generic_struct_type decl=Swift.(file).UnsafeMutablePointer (struct_type decl=ObjC.(file).va_list_tag))) Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project and the crash backtrace. Stack dump:

  1. Program arguments: /Library/Developer/Toolchains/swift-5.6-DEVELOPMENT-SNAPSHOT-2022-01-11-a.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/rh/Downloads/SwiftGLib/Sources/GLib/ClosureHolder.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/Error.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/Functions.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-@.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-A.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-B.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-C.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-D.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-E.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-F.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-G.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-H.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-I.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-J.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-K.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-L.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-M.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-N.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-O.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-P.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-Q.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-R.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-S.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-T.swift -primary-file /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-U.swift -primary-file /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-V.swift -primary-file /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-W.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-X.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-Y.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-Z.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-aliases.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-bitfields.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-callbacks.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-constants.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-enumerations.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-functions.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-unions.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/List.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/MainLoop.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/Memory.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/Mutex.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/SList.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/Sequence.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/String.swift /Users/rh/Downloads/SwiftGLib/Sources/GLib/Time.swift -emit-dependencies-path /Users/rh/Downloads/SwiftGLib/.build/x86_64-apple-macosx/debug/GLib.build/GLib-2.0-U.d -emit-reference-dependencies-path /Users/rh/Downloads/SwiftGLib/.build/x86_64-apple-macosx/debug/GLib.build/GLib-2.0-U.swiftdeps -emit-dependencies-path /Users/rh/Downloads/SwiftGLib/.build/x86_64-apple-macosx/debug/GLib.build/GLib-2.0-V.d -emit-reference-dependencies-path /Users/rh/Downloads/SwiftGLib/.build/x86_64-apple-macosx/debug/GLib.build/GLib-2.0-V.swiftdeps -emit-dependencies-path /Users/rh/Downloads/SwiftGLib/.build/x86_64-apple-macosx/debug/GLib.build/GLib-2.0-W.d -emit-reference-dependencies-path /Users/rh/Downloads/SwiftGLib/.build/x86_64-apple-macosx/debug/GLib.build/GLib-2.0-W.swiftdeps -target x86_64-apple-macosx10.10 -enable-objc-interop -sdk /Applications/Devel/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -I /Users/rh/Downloads/SwiftGLib/.build/x86_64-apple-macosx/debug -I /usr/local/Cellar/glib/2.70.2/include/gio-unix-2.0 -I /usr/local/Cellar/glib/2.70.2/include -I /usr/local/Cellar/glib/2.70.2/include/glib-2.0 -I /usr/local/Cellar/glib/2.70.2/lib/glib-2.0/include -I /usr/local/opt/gettext/include -I /usr/local/Cellar/pcre/8.45/include -I /usr/local/Cellar/libffi/3.4.2/include -I /Applications/Devel/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Applications/Devel/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -color-diagnostics -enable-testing -g -module-cache-path /Users/rh/Downloads/SwiftGLib/.build/x86_64-apple-macosx/debug/ModuleCache -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -new-driver-path /Library/Developer/Toolchains/swift-5.6-DEVELOPMENT-SNAPSHOT-2022-01-11-a.xctoolchain/usr/bin/swift-driver -serialize-debugging-options -resource-dir /Library/Developer/Toolchains/swift-5.6-DEVELOPMENT-SNAPSHOT-2022-01-11-a.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -fmodule-map-file=/Users/rh/Downloads/SwiftGLib/Sources/CGLib/module.modulemap -module-name GLib -target-sdk-version 12.1 -parse-as-library -o /Users/rh/Downloads/SwiftGLib/.build/x86_64-apple-macosx/debug/GLib.build/GLib-2.0-U.swift.o -o /Users/rh/Downloads/SwiftGLib/.build/x86_64-apple-macosx/debug/GLib.build/GLib-2.0-V.swift.o -o /Users/rh/Downloads/SwiftGLib/.build/x86_64-apple-macosx/debug/GLib.build/GLib-2.0-W.swift.o -index-store-path /Users/rh/Downloads/SwiftGLib/.build/x86_64-apple-macosx/debug/index/store -index-system-modules
  2. Apple Swift version 5.6-dev (LLVM 64a4d678f114158, Swift 8ae983c3480462b)
  3. Compiling with the current language version
  4. While evaluating request IRGenRequest(IR Generation for file "/Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-U.swift")
  5. While emitting IR SIL function "@$s4GLib10VariantRefV9parsed_va3appACSPys4Int8VGSg_SpySo02E9_list_tagVGSgtcfC". for 'init(parsed_va:app: )' (at /Users/rh/Downloads/SwiftGLib/Sources/GLib/GLib-2.0-U.swift:1162:16) 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 0x000000010d5c6767 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 39 1 swift-frontend 0x000000010d5c5985 llvm::sys::RunSignalHandlers() + 85 2 swift-frontend 0x000000010d5c6da0 SignalHandler(int) + 288 3 libsystem_platform.dylib 0x00007ff805c2ae2d _sigtramp + 29 4 libsystem_platform.dylib 0x0000000000000003 _sigtramp + 18446603370484290035 5 libsystem_c.dylib 0x00007ff805b61d10 abort + 123 6 swift-frontend 0x000000010d704c81 (anonymous namespace)::IRGenDebugInfoImpl::getOrCreateType(swift::irgen::DebugTypeInfo) (.cold.8) + 113 7 swift-frontend 0x0000000108cd3706 (anonymous namespace)::IRGenDebugInfoImpl::getOrCreateType(swift::irgen::DebugTypeInfo) + 4726 8 swift-frontend 0x0000000108cd3e7d (anonymous namespace)::IRGenDebugInfoImpl::createParameterType(llvm::SmallVectorImpl<llvm::Metadata*>&, swift::SILType) + 125 9 swift-frontend 0x0000000108cd3d4d (anonymous namespace)::IRGenDebugInfoImpl::createParameterTypes(swift::CanTypeWrapper) + 1021 10 swift-frontend 0x0000000108ccc1f5 (anonymous namespace)::IRGenDebugInfoImpl::emitFunction(swift::SILDebugScope const*, llvm::Function*, swift::SILFunctionTypeRepresentation, swift::SILType, swift::DeclContext*) + 2021 11 swift-frontend 0x0000000108ccccf2 swift::irgen::IRGenDebugInfo::emitFunction(swift::SILFunction&, llvm::Function*) + 162 12 swift-frontend 0x0000000108cf94d7 (anonymous namespace)::IRGenSILFunction::emitSILFunction() + 791 13 swift-frontend 0x0000000108cf8bd2 swift::irgen::IRGenModule::emitSILFunction(swift::SILFunction*) + 1666 14 swift-frontend 0x0000000108bc8262 swift::irgen::IRGenerator::emitGlobalTopLevel(std::1::vector<std::1::basic_string<char, std::1::char_traits, std::1::allocator >, std::1::allocator<std::1::basic_string<char, std::__1::char_traits, std::1::allocator > > > const&) + 786 15 swift-frontend 0x0000000108cb8960 swift::IRGenRequest::evaluate(swift::Evaluator&, swift::IRGenDescriptor) const + 2384 16 swift-frontend 0x0000000108cf802a 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 + 218 17 swift-frontend 0x0000000108cf7f0e swift::SimpleRequest<swift::IRGenRequest, swift::GeneratedModule (swift::IRGenDescriptor), (swift::RequestFlags)9>::evaluateRequest(swift::IRGenRequest const&, swift::Evaluator&) + 14 18 swift-frontend 0x0000000108cc3fb9 llvm::Expected swift::Evaluator::getResultUncached(swift::IRGenRequest const&) + 409 19 swift-frontend 0x0000000108cbb245 swift::performIRGeneration(swift::FileUnit*, swift::IRGenOptions const&, swift::TBDGenOptions const&, std::__1::unique_ptr<swift::SILModule, std::1::default_delete >, llvm::StringRef, swift::PrimarySpecificPaths const&, llvm::StringRef, llvm::GlobalVariable**) + 325 20 swift-frontend 0x000000010880777f performCompileStepsPostSILGen(swift::CompilerInstance&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete >, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) + 1903 21 swift-frontend 0x00000001088068a5 performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 693 22 swift-frontend 0x00000001087fbe55 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 3845 23 swift-frontend 0x00000001087adac9 swift::mainEntry(int, char const**) + 553 24 dyld 0x00000001232494fe start + 462 }}
MaxDesiatov commented 2 years ago

This is not reproducible for me with swift-DEVELOPMENT-SNAPSHOT-2022-01-09-a-osx. I'm getting these error messages when trying to build the archive from attachments:

SwiftGLib/Sources/GLib/GLib-2.0-constants.swift:706:31: error: cannot find 'G_VA_COPY_AS_ARRAY' in scope
public let VA_COPY_AS_ARRAY = G_VA_COPY_AS_ARRAY // 1
^\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~

swift --version shows this with that snapshot:

Apple Swift version 5.6-dev (LLVM 7b20e61dd04138a, Swift 9438cf6b2e83c5f)
Target: arm64-apple-macosx11.0

swift-ci commented 2 years ago

Comment by Rene Hexel (JIRA)

The auto-generated Glib-2.0-*.swift files are for the corresponding x86_64 .gir files, so I would not expect them to work out of the box on arm64. I don't have an arm64 Mac, but this should be reproducible on an Intel Mac.

If you wanted to try and reproduce this on arm64, these would be the steps to take (but YMMV as glib and the generated files would most likely be different):

brew install glib gobject-introspection
cd SwiftGLib
./distclean.sh
./run-gir2swift.sh
swift build

MaxDesiatov commented 2 years ago

Thanks, with these steps it builds successfully for me with both Xcode 13.2.1 and swift-DEVELOPMENT-SNAPSHOT-2022-01-09-a. The latest 5.6 snapshot from swift.org is unfortunately broken for me, not with SwiftGLib, but for any purposes with unrelated errors, so I couldn't try that.

swift-ci commented 2 years ago

Comment by Rene Hexel (JIRA)

I did some more digging and have attached a minimal example (VAListPointer.zip) that reproduces this. This builds fine for any Xcode versions of Swift (including 5.6 from the latest beta), but crashes with the latest snapshots for both trunk and 5.6 (i.e. swift-DEVELOPMENT-SNAPSHOT-2022-01-09-a and swift-5.6-DEVELOPMENT-SNAPSHOT-2022-01-11-a).

The problem goes away when I replace UnsafeMutablePointer with CVaListPointer, but obviously neither should crash the compiler.

With swift-DEVELOPMENT-SNAPSHOT-2022-01-09-a for x86_64, i.e.

Apple Swift version 5.6-dev (LLVM 7b20e61dd04138a, Swift 9438cf6b2e83c5f) Target: x86_64-apple-macosx12.0

I get the following crash/backtrace for the VAListPointer package example:

$ swift build Building for debugging... Failed to reconstruct type for $sSpySo13__va_list_tagVGSgD Original type: (bound_generic_enum_type decl=Swift.(file).Optional (bound_generic_struct_type decl=Swift.(file).UnsafeMutablePointer (struct_type decl=ObjC.(file).va_list_tag))) Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project and the crash backtrace. Stack dump:

  1. Program arguments: /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-01-09-a.xctoolchain/usr/bin/swift-frontend -frontend -c -primary-file /Volumes/Data/Archive/Dropbox/Developer/src/swift/rh/Bugs/VAListPointer/Sources/VAListPointer/VAListPointer.swift -emit-dependencies-path /Volumes/Data/Archive/Dropbox/Developer/src/swift/rh/Bugs/VAListPointer/.build/x86_64-apple-macosx/debug/VAListPointer.build/VAListPointer.d -emit-reference-dependencies-path /Volumes/Data/Archive/Dropbox/Developer/src/swift/rh/Bugs/VAListPointer/.build/x86_64-apple-macosx/debug/VAListPointer.build/VAListPointer.swiftdeps -target x86_64-apple-macosx10.10 -enable-objc-interop -sdk /Applications/Devel/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -I /Volumes/Data/Archive/Dropbox/Developer/src/swift/rh/Bugs/VAListPointer/.build/x86_64-apple-macosx/debug -I /Applications/Devel/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Applications/Devel/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -color-diagnostics -enable-testing -g -module-cache-path /Volumes/Data/Archive/Dropbox/Developer/src/swift/rh/Bugs/VAListPointer/.build/x86_64-apple-macosx/debug/ModuleCache -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -new-driver-path /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-01-09-a.xctoolchain/usr/bin/swift-driver -resource-dir /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-01-09-a.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -module-name VAListPointer -target-sdk-version 12.3 -parse-as-library -o /Volumes/Data/Archive/Dropbox/Developer/src/swift/rh/Bugs/VAListPointer/.build/x86_64-apple-macosx/debug/VAListPointer.build/VAListPointer.swift.o -index-store-path /Volumes/Data/Archive/Dropbox/Developer/src/swift/rh/Bugs/VAListPointer/.build/x86_64-apple-macosx/debug/index/store -index-system-modules
  2. Apple Swift version 5.6-dev (LLVM 7b20e61dd04138a, Swift 9438cf6b2e83c5f)
  3. Compiling with the current language version
  4. While evaluating request IRGenRequest(IR Generation for file "/Volumes/Data/Archive/Dropbox/Developer/src/swift/rh/Bugs/VAListPointer/Sources/VAListPointer/VAListPointer.swift")
  5. While emitting IR SIL function "@$s13VAListPointerAAV4argsSpySo13va_list_tagVGSgvg". for getter for args (at /Volumes/Data/Archive/Dropbox/Developer/src/swift/rh/Bugs/VAListPointer/Sources/VAListPointer/VAListPointer.swift:5:9) 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 0x000000010dd314c7 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 39 1 swift-frontend 0x000000010dd306e5 llvm::sys::RunSignalHandlers() + 85 2 swift-frontend 0x000000010dd31b00 SignalHandler(int) + 288 3 libsystem_platform.dylib 0x00007ff80220ae2d _sigtramp + 29 4 libsystem_platform.dylib 0x000000000000001b _sigtramp + 18446603370545238539 5 libsystem_c.dylib 0x00007ff802141d10 abort + 123 6 swift-frontend 0x000000010de4d611 (anonymous namespace)::IRGenDebugInfoImpl::getOrCreateType(swift::irgen::DebugTypeInfo) (.cold.8) + 113 7 swift-frontend 0x00000001092dce06 (anonymous namespace)::IRGenDebugInfoImpl::getOrCreateType(swift::irgen::DebugTypeInfo) + 4726 8 swift-frontend 0x00000001092dd57d (anonymous namespace)::IRGenDebugInfoImpl::createParameterType(llvm::SmallVectorImpl<llvm::Metadata*>&, swift::SILType) + 125 9 swift-frontend 0x00000001092dd39a (anonymous namespace)::IRGenDebugInfoImpl::createParameterTypes(swift::CanTypeWrapper) + 842 10 swift-frontend 0x00000001092d58b5 (anonymous namespace)::IRGenDebugInfoImpl::emitFunction(swift::SILDebugScope const*, llvm::Function*, swift::SILFunctionTypeRepresentation, swift::SILType, swift::DeclContext*) + 2021 11 swift-frontend 0x00000001092d63ba swift::irgen::IRGenDebugInfo::emitFunction(swift::SILFunction&, llvm::Function*) + 170 12 swift-frontend 0x0000000109302f03 (anonymous namespace)::IRGenSILFunction::emitSILFunction() + 867 13 swift-frontend 0x00000001093025ba swift::irgen::IRGenModule::emitSILFunction(swift::SILFunction*) + 1674 14 swift-frontend 0x00000001091cf9a2 swift::irgen::IRGenerator::emitGlobalTopLevel(std::1::vector<std::1::basic_string<char, std::__1::char_traits, std::1::allocator >, std::1::allocator<std::1::basic_string<char, std::1::char_traits, std::1::allocator > > > const&) + 786 15 swift-frontend 0x00000001092c17bc swift::IRGenRequest::evaluate(swift::Evaluator&, swift::IRGenDescriptor) const + 2508 16 swift-frontend 0x0000000109301a0a 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 + 218 17 swift-frontend 0x00000001093018ee swift::SimpleRequest<swift::IRGenRequest, swift::GeneratedModule (swift::IRGenDescriptor), (swift::RequestFlags)9>::evaluateRequest(swift::IRGenRequest const&, swift::Evaluator&) + 14 18 swift-frontend 0x00000001092cd669 llvm::Expected swift::Evaluator::getResultUncached(swift::IRGenRequest const&) + 409 19 swift-frontend 0x00000001092c40b5 swift::performIRGeneration(swift::FileUnit*, swift::IRGenOptions const&, swift::TBDGenOptions const&, std::1::unique_ptr<swift::SILModule, std::1::default_delete >, llvm::StringRef, swift::PrimarySpecificPaths const&, llvm::StringRef, llvm::GlobalVariable**) + 325 20 swift-frontend 0x0000000108ee6501 performCompileStepsPostSILGen(swift::CompilerInstance&, std::__1::unique_ptr<swift::SILModule, std::1::default_delete >, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) + 2001 21 swift-frontend 0x0000000108ee55c5 swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 693 22 swift-frontend 0x0000000108ee796b swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 3803 23 swift-frontend 0x0000000108e76019 swift::mainEntry(int, char const**) + 553 24 dyld 0x000000012212a4fe start + 462