Build Information
Failed to build swift-typescript-bridge, reference main (79d319), with Swift 6.4 for Wasm on 25 Sep 2026 14:22:11 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sunghyun-k/swift-typescript-bridge.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/sunghyun-k/swift-typescript-bridge
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 79d319d Merge pull request #1 from sunghyun-k/github-action
Cloned https://github.com/sunghyun-k/swift-typescript-bridge.git
Revision (git rev-parse @):
79d319d403ceaa8a435156a7e7fb5097a9e52d9b
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/sunghyun-k/swift-typescript-bridge.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.4
Building package at path: $PWD
https://github.com/sunghyun-k/swift-typescript-bridge.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/pointfreeco/swift-macro-testing.git
[1/1002] Fetching swift-macro-testing
Fetched https://github.com/pointfreeco/swift-macro-testing.git (0.55s)
[1/80068] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git (3.30s)
Computing version for https://github.com/pointfreeco/swift-macro-testing.git
Computed https://github.com/pointfreeco/swift-macro-testing.git at 0.7.0 (3.48s)
Fetching https://github.com/pointfreeco/swift-snapshot-testing
[1/16479] Fetching swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-snapshot-testing (2.55s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 604.0.0 (3.73s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.19.6 (0.16s)
Fetching https://github.com/pointfreeco/swift-custom-dump
[1/5666] Fetching swift-custom-dump
Fetched https://github.com/pointfreeco/swift-custom-dump (0.54s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.7.3 (0.72s)
Fetching https://github.com/pointfreeco/swift-issue-reporting
[1/6161] Fetching swift-issue-reporting
Fetched https://github.com/pointfreeco/swift-issue-reporting (0.80s)
Computing version for https://github.com/pointfreeco/swift-issue-reporting
Computed https://github.com/pointfreeco/swift-issue-reporting at 2.1.1 (1.89s)
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.19.6
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.7.3
Creating working copy for https://github.com/pointfreeco/swift-issue-reporting
Working copy of https://github.com/pointfreeco/swift-issue-reporting resolved at 2.1.1
Creating working copy for https://github.com/pointfreeco/swift-macro-testing.git
Working copy of https://github.com/pointfreeco/swift-macro-testing.git resolved at 0.7.0
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 604.0.0
Building for debugging...
[Computing dependencies]
[Provisioning 23 / 27]
[Pre-planning 1 / 707]
[Planning deferred tasks]
[158 / 315] SwiftSyntax510
[199 / 316] SwiftSyntax
[201 / 325] SwiftSyntax
[203 / 327] SwiftSyntax601
[211 / 328] SwiftSyntax509
[215 / 329] SwiftSyntax509
[227 / 332] SwiftSyntax603
[228 / 332] SwiftSyntax
[229 / 332]
[229 / 332] SwiftSyntax
[242 / 360] SwiftParser
[245 / 360] SwiftDiagnostics
[253 / 360] SwiftBasicFormat
[254 / 360] SwiftBasicFormat
[256 / 360] SwiftParser
[257 / 360] SwiftParser
[258 / 360] SwiftParser
[260 / 360] SwiftParser
[264 / 360] SwiftParser
[265 / 360] SwiftParser
[266 / 360] SwiftDiagnostics
[268 / 360] SwiftDiagnostics
[269 / 360] SwiftDiagnostics
[270 / 360] SwiftParser
[273 / 360] SwiftDiagnostics
[274 / 360] SwiftBasicFormat
[276 / 361] SwiftParserDiagnostics
[280 / 363] SwiftParserDiagnostics
[284 / 381] SwiftParserDiagnostics
[285 / 382] SwiftParserDiagnostics
[286 / 382] SwiftParserDiagnostics
[297 / 382] SwiftParserDiagnostics
[298 / 383] SwiftSyntaxBuilder
[301 / 383] SwiftParserDiagnostics
[303 / 383] SwiftParserDiagnostics
[306 / 383] SwiftOperators
[307 / 383] SwiftOperators
[309 / 383] SwiftOperators
[310 / 383] SwiftOperators
[311 / 383] SwiftOperators
[319 / 394] SwiftSyntaxBuilder
[320 / 395] SwiftSyntaxBuilder
[321 / 395] SwiftSyntaxBuilder
[323 / 395] SwiftSyntaxBuilder
[324 / 395] SwiftSyntaxBuilder
[337 / 405] SwiftIfConfig
[338 / 405] SwiftIfConfig
[339 / 405] SwiftIfConfig
[342 / 405] SwiftIfConfig
[348 / 406] SwiftSyntaxBuilder
[352 / 416] SwiftSyntaxMacros
[355 / 416] SwiftSyntaxMacros
[360 / 416] SwiftSyntaxMacros
[364 / 416] SwiftSyntaxMacros-product
[371 / 427] SwiftSyntaxMacroExpansion
[372 / 428] SwiftSyntaxMacros
[375 / 428] SwiftSyntaxMacros
[383 / 428] SwiftIfConfig
[386 / 438] SwiftCompilerPluginMessageHandling
[386 / 438] SwiftSyntaxMacroExpansion
[389 / 438] SwiftCompilerPluginMessageHandling
[392 / 438] SwiftCompilerPluginMessageHandling
[394 / 438] SwiftCompilerPluginMessageHandling
[401 / 441]
[408 / 442] SwiftCompilerPluginMessageHandling
[409 / 443] SwiftCompilerPlugin
[410 / 443] SwiftCompilerPluginMessageHandling
[412 / 444] SwiftSyntax
[415 / 445] SwiftSyntax
[422 / 445] SwiftIfConfig
[431 / 446] TypeScriptBridgeMacros
[439 / 454] TypeScriptBridgeMacros
[440 / 454] TypeScriptBridgeMacros
[444 / 455] TypeScriptBridgeMacros
[447 / 458] TypeScriptBridge
macro expansion @Union:19:23: [1;33mwarning: [1;39m'is' test is always true[0;0m
`- /host/spi-builder-workspace/Examples/ApiResponses.swift:40:24: [1;39mnote: [1;39mexpanded code originates here[0;0m
[0;36m37 |[0;0m }
[0;36m38 |[0;0m
[0;36m39 |[0;0m [4;39m@Union(ApiOkUser.self, ApiError.self)[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39min expansion of macro 'Union' on enum 'ApiUserResponse' here[0;0m
[0;36m40 |[0;0m enum ApiUserResponse {}
[0;36m +--- [0;0mmacro expansion @Union [0;36m-----------------------------------------[0;0m
[0;36m |[0;0m[0;36m17 |[0;0m typealias Type0 = ApiOkUser
[0;36m |[0;0m[0;36m18 |[0;0m typealias Type1 = ApiError
[0;36m |[0;0m[0;36m19 |[0;0m if Type0.self is any TypeDiscriminated.Type {
[0;36m |[0;0m [0;36m|[0;0m `- [1;33mwarning: [1;39m'is' test is always true[0;0m
[0;36m |[0;0m[0;36m20 |[0;0m if let decoded = try? Type0(from: decoder) {
[0;36m |[0;0m[0;36m21 |[0;0m self = .apiOkUser(decoded)
[0;36m +---------------------------[0;0m[0;36m-----------------------------------------[0;0m
[0;36m41 |[0;0m
[0;36m42 |[0;0m enum ApiResponseExample {
swift-frontend: /home/build-user/swift/lib/SIL/IR/TypeLowering.cpp:3635: auto swift::Lowering::TypeConverter::verifyTrivialLowering(const TypeLowering &, AbstractionPattern, CanType, TypeExpansionContext)::(anonymous class)::operator()(auto, auto, auto *, auto) const [ty:auto = swift::CanType, origTy:auto = swift::Lowering::AbstractionPattern, field:auto = swift::ValueDecl, index:auto = std::optional<unsigned int>]: Assertion `checkConformance(ty, bitwiseCopyableProtocol) && "leaf of non-trivial BitwiseCopyable type that doesn't " "conform to BitwiseCopyable!?"' failed.
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0. Program arguments: /usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Examples/AnalyticsEvents.swift -primary-file /host/spi-builder-workspace/Examples/ApiResponses.swift /host/spi-builder-workspace/Examples/ExtendsHierarchy.swift /host/spi-builder-workspace/Examples/Webhooks.swift /host/spi-builder-workspace/Examples/main.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/ApiResponses.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/ApiResponses.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/ApiResponses.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/ApiResponses.dia -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D Xcode -serialize-debugging-options -load-plugin-executable /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/TypeScriptBridgeMacros#TypeScriptBridgeMacros -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval=86400 -Xcc -fmodules-prune-after=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG=1 -no-auto-bridging-header-chaining -module-name Examples -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/Examples_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/ApiResponses.o -index-unit-output-path /swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/ApiResponses.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
1. Swift version 6.4.2-dev (LLVM 15622a86b1749a9, Swift d2e983b81b18217)
2. Compiling with the current language version
3. While evaluating request ASTLoweringRequest(Lowering AST to SIL for file "/host/spi-builder-workspace/Examples/ApiResponses.swift")
4. While silgen visitDecl 'ApiResponseExample' (at /host/spi-builder-workspace/Examples/ApiResponses.swift:42:1)
5. While silgen emitFunction SIL function "@$s8Examples18ApiResponseExampleO4demoyyKFZ".
for 'demo()' (at /host/spi-builder-workspace/Examples/ApiResponses.swift:43:5)
#0 0x000057644e95ed98 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/bin/swift-frontend+0x8bb1d98)
#1 0x000057644e95c585 llvm::sys::RunSignalHandlers() (/usr/bin/swift-frontend+0x8baf585)
#2 0x000057644e95fb41 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
#3 0x00007b2ec24ef520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#4 0x00007b2ec25439bc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969bc)
#5 0x00007b2ec24ef476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
#6 0x00007b2ec24d57f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
#7 0x00007b2ec24d571b (/lib/x86_64-linux-gnu/libc.so.6+0x2871b)
#8 0x00007b2ec24e6e96 (/lib/x86_64-linux-gnu/libc.so.6+0x39e96)
#9 0x00005764475600b0 std::_Function_handler<bool (swift::CanType, swift::Lowering::AbstractionPattern, swift::ValueDecl*, std::optional<unsigned int>), swift::Lowering::TypeConverter::verifyTrivialLowering(swift::Lowering::TypeLowering const&, swift::Lowering::AbstractionPattern, swift::CanType, swift::TypeExpansionContext)::$_14>::_M_invoke(std::_Any_data const&, swift::CanType&&, swift::Lowering::AbstractionPattern&&, swift::ValueDecl*&&, std::optional<unsigned int>&&) TypeLowering.cpp:0:0
#10 0x0000576447544916 swift::Lowering::TypeConverter::visitAggregateLeaves(swift::Lowering::AbstractionPattern, swift::CanType, swift::TypeExpansionContext, std::function<bool (swift::CanType, swift::Lowering::AbstractionPattern, swift::ValueDecl*, std::optional<unsigned int>)>, std::function<bool (swift::CanType, swift::Lowering::AbstractionPattern, swift::ValueDecl*, std::optional<unsigned int>)>) (/usr/bin/swift-frontend+0x1797916)
#11 0x0000576447545c52 swift::Lowering::TypeConverter::verifyTrivialLowering(swift::Lowering::TypeLowering const&, swift::Lowering::AbstractionPattern, swift::CanType, swift::TypeExpansionContext) (/usr/bin/swift-frontend+0x1798c52)
#12 0x000057644754330d swift::Lowering::TypeConverter::getTypeLowering(swift::Lowering::AbstractionPattern, swift::Type, swift::TypeExpansionContext) (/usr/bin/swift-frontend+0x179630d)
#13 0x0000576447467833 swift::SILFunction::getLoweredType(swift::Type) const (/usr/bin/swift-frontend+0x16ba833)
#14 0x00005764471fae36 swift::Lowering::SILGenFunction::emitSwitchStmt(swift::SwitchStmt*) crtstuff.c:0:0
#15 0x0000576447187304 (anonymous namespace)::StmtEmitter::visitBraceStmt(swift::BraceStmt*) SILGenStmt.cpp:0:0
#16 0x0000576447180a86 swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) SILGenStmt.cpp:0:0
#17 0x0000576447187304 (anonymous namespace)::StmtEmitter::visitBraceStmt(swift::BraceStmt*) SILGenStmt.cpp:0:0
#18 0x0000576447180fd7 swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) SILGenStmt.cpp:0:0
#19 0x0000576447187304 (anonymous namespace)::StmtEmitter::visitBraceStmt(swift::BraceStmt*) SILGenStmt.cpp:0:0
#20 0x0000576447180c74 swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) SILGenStmt.cpp:0:0
#21 0x0000576447187304 (anonymous namespace)::StmtEmitter::visitBraceStmt(swift::BraceStmt*) SILGenStmt.cpp:0:0
#22 0x000057644717f2ed swift::Lowering::SILGenFunction::emitStmt(swift::Stmt*) crtstuff.c:0:0
#23 0x00005764470f40e7 swift::Lowering::SILGenFunction::emitFunction(swift::FuncDecl*) crtstuff.c:0:0
#24 0x000057644705dec2 swift::Lowering::SILGenModule::emitFunctionDefinition(swift::SILDeclRef, swift::SILFunction*) crtstuff.c:0:0
#25 0x000057644705f46d swift::Lowering::SILGenModule::emitOrDelayFunction(swift::SILDeclRef) crtstuff.c:0:0
#26 0x000057644705c420 swift::Lowering::SILGenModule::emitFunction(swift::FuncDecl*) crtstuff.c:0:0
#27 0x000057644719f022 (anonymous namespace)::SILGenType::visitFuncDecl(swift::FuncDecl*) SILGenType.cpp:0:0
#28 0x000057644719a28d (anonymous namespace)::SILGenType::emitType() SILGenType.cpp:0:0
#29 0x000057644719a168 swift::Lowering::SILGenModule::visitNominalTypeDecl(swift::NominalTypeDecl*) crtstuff.c:0:0
#30 0x0000576447062c2f swift::Lowering::SILGenModule::emitSourceFile(swift::SourceFile*) crtstuff.c:0:0
#31 0x0000576447063454 swift::ASTLoweringRequest::evaluate(swift::Evaluator&, swift::ASTLoweringDescriptor) const (/usr/bin/swift-frontend+0x12b6454)
#32 0x000057644717ebe6 swift::SimpleRequest<swift::ASTLoweringRequest, std::unique_ptr<swift::SILModule, std::default_delete<swift::SILModule>> (swift::ASTLoweringDescriptor), (swift::RequestFlags)17>::evaluateRequest(swift::ASTLoweringRequest const&, swift::Evaluator&) crtstuff.c:0:0
#33 0x0000576447068255 swift::ASTLoweringRequest::OutputType swift::Evaluator::getResultUncached<swift::ASTLoweringRequest, swift::ASTLoweringRequest::OutputType swift::evaluateOrFatal<swift::ASTLoweringRequest>(swift::Evaluator&, swift::ASTLoweringRequest)::'lambda'()>(swift::ASTLoweringRequest const&, swift::ASTLoweringRequest::OutputType swift::evaluateOrFatal<swift::ASTLoweringRequest>(swift::Evaluator&, swift::ASTLoweringRequest)::'lambda'()) crtstuff.c:0:0
#34 0x0000576447063d2f swift::performASTLowering(swift::FileUnit&, swift::Lowering::TypeConverter&, swift::SILOptions const&, swift::IRGenOptions const*) (/usr/bin/swift-frontend+0x12b6d2f)
#35 0x00005764467c3be2 swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*, llvm::ArrayRef<char const*>) (/usr/bin/swift-frontend+0xa16be2)
#36 0x00005764467dbfda withSemanticAnalysis(swift::CompilerInstance&, swift::FrontendObserver*, llvm::function_ref<bool (swift::CompilerInstance&)>, bool) FrontendTool.cpp:0:0
#37 0x00005764467c9aa9 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*, llvm::ArrayRef<char const*>) FrontendTool.cpp:0:0
#38 0x00005764467c66ee swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) (/usr/bin/swift-frontend+0xa196ee)
#39 0x00005764464deba8 swift::mainEntry(int, char const**) (/usr/bin/swift-frontend+0x731ba8)
#40 0x00007b2ec24d6d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#41 0x00007b2ec24d6e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#42 0x00005764464dda65 _start (/usr/bin/swift-frontend+0x730a65)
*** Signal 6: Backtracing from 0x7b2ec25cb9dd... done ***
*** Program crashed: Aborted at 0x00007b2ec25cb9dd ***
Platform: x86_64 Linux (Ubuntu 22.04.5 LTS)
Thread 0 "swift-frontend" crashed:
0 0x00007b2ec25cb9dd <unknown> in libc.so.6
Registers:
rax 0x0000000000000000 0
rdx 0x0000000000000006 6
rcx 0x00007b2ec25cb9dd 48 3d 01 f0 ff ff 73 01 c3 48 8b 0d 23 b4 0f 00 H=·ðÿÿs·ÃH··#´··
rbx 0x0000000000000006 6
rsi 0x000000000000056c 1388
rdi 0x000000000000056c 1388
rbp 0x000000000000056c 1388
rsp 0x0000576465e1f068 6b fb 95 4e 64 57 00 00 f0 f2 e1 65 64 57 00 00 kû·NdW··ðòáedW··
r8 0x0000576465e1f2f0 06 00 00 00 00 00 00 00 fa ff ff ff 00 00 00 00 ········úÿÿÿ····
r9 0x0000576465e1f2f0 06 00 00 00 00 00 00 00 fa ff ff ff 00 00 00 00 ········úÿÿÿ····
r10 0x0000576465e1f2f0 06 00 00 00 00 00 00 00 fa ff ff ff 00 00 00 00 ········úÿÿÿ····
r11 0x0000000000000246 582
r12 0x0000000000000000 0
r13 0x0000000000000000 0
r14 0x0000000000000000 0
r15 0x0000576465e1f078 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ················
rip 0x00007b2ec25cb9dd 48 3d 01 f0 ff ff 73 01 c3 48 8b 0d 23 b4 0f 00 H=·ðÿÿs·ÃH··#´··
rflags 0x0000000000000246 ZF PF
cs 0x0033 fs 0x0000 gs 0x0000
Images (27 omitted):
0x00007b2ec24ad000–0x00007b2ec2669401 6a6cb5a80fd5e5bb5bf3aeaa111add98e88843a5 libc.so.6 /usr/lib/x86_64-linux-gnu/libc.so.6
Backtrace took 0.00s
Failed frontend command:
/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Examples/AnalyticsEvents.swift -primary-file /host/spi-builder-workspace/Examples/ApiResponses.swift /host/spi-builder-workspace/Examples/ExtendsHierarchy.swift /host/spi-builder-workspace/Examples/Webhooks.swift /host/spi-builder-workspace/Examples/main.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/ApiResponses.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/ApiResponses.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/ApiResponses.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/ApiResponses.dia -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D Xcode -serialize-debugging-options -load-plugin-executable /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/TypeScriptBridgeMacros\#TypeScriptBridgeMacros -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Examples -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/Examples_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/ApiResponses.o -index-unit-output-path /swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/ApiResponses.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
macro expansion @Union:20:23: [1;33mwarning: [1;39m'is' test is always true[0;0m
`- /host/spi-builder-workspace/Examples/AnalyticsEvents.swift:47:26: [1;39mnote: [1;39mexpanded code originates here[0;0m
[0;36m44 |[0;0m }
[0;36m45 |[0;0m
[0;36m46 |[0;0m [4;39m@Union(AnalyticsPageView.self, AnalyticsClick.self, AnalyticsErrorOccurred.self)[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39min expansion of macro 'Union' on enum 'AnalyticsAnyEvent' here[0;0m
[0;36m47 |[0;0m enum AnalyticsAnyEvent {}
[0;36m +--- [0;0mmacro expansion @Union [0;36m-----------------------------------------[0;0m
[0;36m |[0;0m[0;36m18 |[0;0m typealias Type1 = AnalyticsClick
[0;36m |[0;0m[0;36m19 |[0;0m typealias Type2 = AnalyticsErrorOccurred
[0;36m |[0;0m[0;36m20 |[0;0m if Type0.self is any TypeDiscriminated.Type {
[0;36m |[0;0m [0;36m|[0;0m `- [1;33mwarning: [1;39m'is' test is always true[0;0m
[0;36m |[0;0m[0;36m21 |[0;0m if let decoded = try? Type0(from: decoder) {
[0;36m |[0;0m[0;36m22 |[0;0m self = .analyticsPageView(decoded)
[0;36m +---------------------------[0;0m[0;36m-----------------------------------------[0;0m
[0;36m48 |[0;0m
[0;36m49 |[0;0m enum AnalyticsExample {
macro expansion @Union:26:23: [1;33mwarning: [1;39m'is' test is always true[0;0m
`- /host/spi-builder-workspace/Examples/AnalyticsEvents.swift:47:26: [1;39mnote: [1;39mexpanded code originates here[0;0m
[0;36m44 |[0;0m }
[0;36m45 |[0;0m
[0;36m46 |[0;0m [4;39m@Union(AnalyticsPageView.self, AnalyticsClick.self, AnalyticsErrorOccurred.self)[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39min expansion of macro 'Union' on enum 'AnalyticsAnyEvent' here[0;0m
[0;36m47 |[0;0m enum AnalyticsAnyEvent {}
[0;36m +--- [0;0mmacro expansion @Union [0;36m-----------------------------------------[0;0m
[0;36m |[0;0m[0;36m24 |[0;0m }
[0;36m |[0;0m[0;36m25 |[0;0m }
[0;36m |[0;0m[0;36m26 |[0;0m if Type1.self is any TypeDiscriminated.Type {
[0;36m |[0;0m [0;36m|[0;0m `- [1;33mwarning: [1;39m'is' test is always true[0;0m
[0;36m |[0;0m[0;36m27 |[0;0m if let decoded = try? Type1(from: decoder) {
[0;36m |[0;0m[0;36m28 |[0;0m self = .analyticsClick(decoded)
[0;36m +---------------------------[0;0m[0;36m-----------------------------------------[0;0m
[0;36m48 |[0;0m
[0;36m49 |[0;0m enum AnalyticsExample {
swift-frontend: /home/build-user/swift/lib/SIL/IR/TypeLowering.cpp:3635: auto swift::Lowering::TypeConverter::verifyTrivialLowering(const TypeLowering &, AbstractionPattern, CanType, TypeExpansionContext)::(anonymous class)::operator()(auto, auto, auto *, auto) const [ty:auto = swift::CanType, origTy:auto = swift::Lowering::AbstractionPattern, field:auto = swift::ValueDecl, index:auto = std::optional<unsigned int>]: Assertion `checkConformance(ty, bitwiseCopyableProtocol) && "leaf of non-trivial BitwiseCopyable type that doesn't " "conform to BitwiseCopyable!?"' failed.
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0. Program arguments: /usr/bin/swift-frontend -frontend -c -primary-file /host/spi-builder-workspace/Examples/AnalyticsEvents.swift /host/spi-builder-workspace/Examples/ApiResponses.swift /host/spi-builder-workspace/Examples/ExtendsHierarchy.swift /host/spi-builder-workspace/Examples/Webhooks.swift /host/spi-builder-workspace/Examples/main.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/AnalyticsEvents.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/AnalyticsEvents.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/AnalyticsEvents.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/AnalyticsEvents.dia -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D Xcode -serialize-debugging-options -load-plugin-executable /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/TypeScriptBridgeMacros#TypeScriptBridgeMacros -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval=86400 -Xcc -fmodules-prune-after=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG=1 -no-auto-bridging-header-chaining -module-name Examples -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/Examples_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/AnalyticsEvents.o -index-unit-output-path /swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/AnalyticsEvents.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
1. Swift version 6.4.2-dev (LLVM 15622a86b1749a9, Swift d2e983b81b18217)
2. Compiling with the current language version
3. While evaluating request ASTLoweringRequest(Lowering AST to SIL for file "/host/spi-builder-workspace/Examples/AnalyticsEvents.swift")
4. While silgen visitDecl 'AnalyticsExample' (at /host/spi-builder-workspace/Examples/AnalyticsEvents.swift:49:1)
5. While silgen emitFunction SIL function "@$s8Examples16AnalyticsExampleO4demoyyKFZ".
for 'demo()' (at /host/spi-builder-workspace/Examples/AnalyticsEvents.swift:50:5)
#0 0x000062c746d89d98 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/bin/swift-frontend+0x8bb1d98)
#1 0x000062c746d87585 llvm::sys::RunSignalHandlers() (/usr/bin/swift-frontend+0x8baf585)
#2 0x000062c746d8ab41 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
#3 0x00007ed0fd361520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#4 0x00007ed0fd3b59bc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969bc)
#5 0x00007ed0fd361476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
#6 0x00007ed0fd3477f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
#7 0x00007ed0fd34771b (/lib/x86_64-linux-gnu/libc.so.6+0x2871b)
#8 0x00007ed0fd358e96 (/lib/x86_64-linux-gnu/libc.so.6+0x39e96)
#9 0x000062c73f98b0b0 std::_Function_handler<bool (swift::CanType, swift::Lowering::AbstractionPattern, swift::ValueDecl*, std::optional<unsigned int>), swift::Lowering::TypeConverter::verifyTrivialLowering(swift::Lowering::TypeLowering const&, swift::Lowering::AbstractionPattern, swift::CanType, swift::TypeExpansionContext)::$_14>::_M_invoke(std::_Any_data const&, swift::CanType&&, swift::Lowering::AbstractionPattern&&, swift::ValueDecl*&&, std::optional<unsigned int>&&) TypeLowering.cpp:0:0
#10 0x000062c73f96f916 swift::Lowering::TypeConverter::visitAggregateLeaves(swift::Lowering::AbstractionPattern, swift::CanType, swift::TypeExpansionContext, std::function<bool (swift::CanType, swift::Lowering::AbstractionPattern, swift::ValueDecl*, std::optional<unsigned int>)>, std::function<bool (swift::CanType, swift::Lowering::AbstractionPattern, swift::ValueDecl*, std::optional<unsigned int>)>) (/usr/bin/swift-frontend+0x1797916)
#11 0x000062c73f970c52 swift::Lowering::TypeConverter::verifyTrivialLowering(swift::Lowering::TypeLowering const&, swift::Lowering::AbstractionPattern, swift::CanType, swift::TypeExpansionContext) (/usr/bin/swift-frontend+0x1798c52)
#12 0x000062c73f96e30d swift::Lowering::TypeConverter::getTypeLowering(swift::Lowering::AbstractionPattern, swift::Type, swift::TypeExpansionContext) (/usr/bin/swift-frontend+0x179630d)
#13 0x000062c73f8926b3 swift::SILFunction::getTypeLowering(swift::Type) const (/usr/bin/swift-frontend+0x16ba6b3)
#14 0x000062c73f4cad58 (anonymous namespace)::LetValueInitialization::LetValueInitialization(swift::VarDecl*, swift::Lowering::SILGenFunction&) SILGenDecl.cpp:0:0
#15 0x000062c73f4ca92d swift::Lowering::SILGenFunction::emitInitializationForVarDecl(swift::VarDecl*, bool, bool) crtstuff.c:0:0
#16 0x000062c73f4cbd7f swift::Lowering::SILGenFunction::emitPatternBinding(swift::PatternBindingDecl*, unsigned int, bool) crtstuff.c:0:0
#17 0x000062c73f4d60c2 swift::ASTVisitor<swift::Lowering::SILGenFunction, void, void, void, void, void, void>::visit(swift::Decl*) crtstuff.c:0:0
#18 0x000062c73f5b21d0 (anonymous namespace)::StmtEmitter::visitBraceStmt(swift::BraceStmt*) SILGenStmt.cpp:0:0
#19 0x000062c73f5aba86 swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) SILGenStmt.cpp:0:0
#20 0x000062c73f5b2304 (anonymous namespace)::StmtEmitter::visitBraceStmt(swift::BraceStmt*) SILGenStmt.cpp:0:0
#21 0x000062c73f5abfd7 swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) SILGenStmt.cpp:0:0
#22 0x000062c73f5b2304 (anonymous namespace)::StmtEmitter::visitBraceStmt(swift::BraceStmt*) SILGenStmt.cpp:0:0
#23 0x000062c73f5abc74 swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) SILGenStmt.cpp:0:0
#24 0x000062c73f5b2304 (anonymous namespace)::StmtEmitter::visitBraceStmt(swift::BraceStmt*) SILGenStmt.cpp:0:0
#25 0x000062c73f5aa2ed swift::Lowering::SILGenFunction::emitStmt(swift::Stmt*) crtstuff.c:0:0
#26 0x000062c73f51f0e7 swift::Lowering::SILGenFunction::emitFunction(swift::FuncDecl*) crtstuff.c:0:0
#27 0x000062c73f488ec2 swift::Lowering::SILGenModule::emitFunctionDefinition(swift::SILDeclRef, swift::SILFunction*) crtstuff.c:0:0
#28 0x000062c73f48a46d swift::Lowering::SILGenModule::emitOrDelayFunction(swift::SILDeclRef) crtstuff.c:0:0
#29 0x000062c73f487420 swift::Lowering::SILGenModule::emitFunction(swift::FuncDecl*) crtstuff.c:0:0
#30 0x000062c73f5ca022 (anonymous namespace)::SILGenType::visitFuncDecl(swift::FuncDecl*) SILGenType.cpp:0:0
#31 0x000062c73f5c528d (anonymous namespace)::SILGenType::emitType() SILGenType.cpp:0:0
#32 0x000062c73f5c5168 swift::Lowering::SILGenModule::visitNominalTypeDecl(swift::NominalTypeDecl*) crtstuff.c:0:0
#33 0x000062c73f48dc2f swift::Lowering::SILGenModule::emitSourceFile(swift::SourceFile*) crtstuff.c:0:0
#34 0x000062c73f48e454 swift::ASTLoweringRequest::evaluate(swift::Evaluator&, swift::ASTLoweringDescriptor) const (/usr/bin/swift-frontend+0x12b6454)
#35 0x000062c73f5a9be6 swift::SimpleRequest<swift::ASTLoweringRequest, std::unique_ptr<swift::SILModule, std::default_delete<swift::SILModule>> (swift::ASTLoweringDescriptor), (swift::RequestFlags)17>::evaluateRequest(swift::ASTLoweringRequest const&, swift::Evaluator&) crtstuff.c:0:0
#36 0x000062c73f493255 swift::ASTLoweringRequest::OutputType swift::Evaluator::getResultUncached<swift::ASTLoweringRequest, swift::ASTLoweringRequest::OutputType swift::evaluateOrFatal<swift::ASTLoweringRequest>(swift::Evaluator&, swift::ASTLoweringRequest)::'lambda'()>(swift::ASTLoweringRequest const&, swift::ASTLoweringRequest::OutputType swift::evaluateOrFatal<swift::ASTLoweringRequest>(swift::Evaluator&, swift::ASTLoweringRequest)::'lambda'()) crtstuff.c:0:0
#37 0x000062c73f48ed2f swift::performASTLowering(swift::FileUnit&, swift::Lowering::TypeConverter&, swift::SILOptions const&, swift::IRGenOptions const*) (/usr/bin/swift-frontend+0x12b6d2f)
#38 0x000062c73ebeebe2 swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*, llvm::ArrayRef<char const*>) (/usr/bin/swift-frontend+0xa16be2)
#39 0x000062c73ec06fda withSemanticAnalysis(swift::CompilerInstance&, swift::FrontendObserver*, llvm::function_ref<bool (swift::CompilerInstance&)>, bool) FrontendTool.cpp:0:0
#40 0x000062c73ebf4aa9 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*, llvm::ArrayRef<char const*>) FrontendTool.cpp:0:0
#41 0x000062c73ebf16ee swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) (/usr/bin/swift-frontend+0xa196ee)
#42 0x000062c73e909ba8 swift::mainEntry(int, char const**) (/usr/bin/swift-frontend+0x731ba8)
#43 0x00007ed0fd348d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#44 0x00007ed0fd348e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#45 0x000062c73e908a65 _start (/usr/bin/swift-frontend+0x730a65)
*** Signal 6: Backtracing from 0x7ed0fd43d9dd... done ***
*** Program crashed: Aborted at 0x00007ed0fd43d9dd ***
Platform: x86_64 Linux (Ubuntu 22.04.5 LTS)
Thread 0 "swift-frontend" crashed:
0 0x00007ed0fd43d9dd <unknown> in libc.so.6
Registers:
rax 0x0000000000000000 0
rdx 0x0000000000000006 6
rcx 0x00007ed0fd43d9dd 48 3d 01 f0 ff ff 73 01 c3 48 8b 0d 23 b4 0f 00 H=·ðÿÿs·ÃH··#´··
rbx 0x0000000000000006 6
rsi 0x000000000000056f 1391
rdi 0x000000000000056f 1391
rbp 0x000000000000056f 1391
rsp 0x000062c775c5e068 6b ab d8 46 c7 62 00 00 f0 e2 c5 75 c7 62 00 00 k«ØFÇb··ðâÅuÇb··
r8 0x000062c775c5e2f0 06 00 00 00 00 00 00 00 fa ff ff ff 00 00 00 00 ········úÿÿÿ····
r9 0x000062c775c5e2f0 06 00 00 00 00 00 00 00 fa ff ff ff 00 00 00 00 ········úÿÿÿ····
r10 0x000062c775c5e2f0 06 00 00 00 00 00 00 00 fa ff ff ff 00 00 00 00 ········úÿÿÿ····
r11 0x0000000000000246 582
r12 0x0000000000000000 0
r13 0x0000000000000000 0
r14 0x0000000000000000 0
r15 0x000062c775c5e078 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ················
rip 0x00007ed0fd43d9dd 48 3d 01 f0 ff ff 73 01 c3 48 8b 0d 23 b4 0f 00 H=·ðÿÿs·ÃH··#´··
rflags 0x0000000000000246 ZF PF
cs 0x0033 fs 0x0000 gs 0x0000
Images (27 omitted):
0x00007ed0fd31f000–0x00007ed0fd4db401 6a6cb5a80fd5e5bb5bf3aeaa111add98e88843a5 libc.so.6 /usr/lib/x86_64-linux-gnu/libc.so.6
Backtrace took 0.00s
Failed frontend command:
/usr/bin/swift-frontend -frontend -c -primary-file /host/spi-builder-workspace/Examples/AnalyticsEvents.swift /host/spi-builder-workspace/Examples/ApiResponses.swift /host/spi-builder-workspace/Examples/ExtendsHierarchy.swift /host/spi-builder-workspace/Examples/Webhooks.swift /host/spi-builder-workspace/Examples/main.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/AnalyticsEvents.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/AnalyticsEvents.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/AnalyticsEvents.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/AnalyticsEvents.dia -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D Xcode -serialize-debugging-options -load-plugin-executable /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/TypeScriptBridgeMacros\#TypeScriptBridgeMacros -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Examples -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/Examples_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/AnalyticsEvents.o -index-unit-output-path /swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/AnalyticsEvents.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
macro expansion @Union:20:23: [1;33mwarning: [1;39m'is' test is always true[0;0m
`- /host/spi-builder-workspace/Examples/Webhooks.swift:36:21: [1;39mnote: [1;39mexpanded code originates here[0;0m
[0;36m33 |[0;0m }
[0;36m34 |[0;0m
[0;36m35 |[0;0m [4;39m@Union(WebhookMessageCreated.self, WebhookReactionAdded.self, WebhookUserJoined.self)[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39min expansion of macro 'Union' on enum 'WebhookEvent' here[0;0m
[0;36m36 |[0;0m enum WebhookEvent {}
[0;36m +--- [0;0mmacro expansion @Union [0;36m-----------------------------------------[0;0m
[0;36m |[0;0m[0;36m18 |[0;0m typealias Type1 = WebhookReactionAdded
[0;36m |[0;0m[0;36m19 |[0;0m typealias Type2 = WebhookUserJoined
[0;36m |[0;0m[0;36m20 |[0;0m if Type0.self is any TypeDiscriminated.Type {
[0;36m |[0;0m [0;36m|[0;0m `- [1;33mwarning: [1;39m'is' test is always true[0;0m
[0;36m |[0;0m[0;36m21 |[0;0m if let decoded = try? Type0(from: decoder) {
[0;36m |[0;0m[0;36m22 |[0;0m self = .webhookMessageCreated(decoded)
[0;36m +---------------------------[0;0m[0;36m-----------------------------------------[0;0m
[0;36m37 |[0;0m
[0;36m38 |[0;0m enum WebhookExample {
macro expansion @Union:26:23: [1;33mwarning: [1;39m'is' test is always true[0;0m
`- /host/spi-builder-workspace/Examples/Webhooks.swift:36:21: [1;39mnote: [1;39mexpanded code originates here[0;0m
[0;36m33 |[0;0m }
[0;36m34 |[0;0m
[0;36m35 |[0;0m [4;39m@Union(WebhookMessageCreated.self, WebhookReactionAdded.self, WebhookUserJoined.self)[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39min expansion of macro 'Union' on enum 'WebhookEvent' here[0;0m
[0;36m36 |[0;0m enum WebhookEvent {}
[0;36m +--- [0;0mmacro expansion @Union [0;36m-----------------------------------------[0;0m
[0;36m |[0;0m[0;36m24 |[0;0m }
[0;36m |[0;0m[0;36m25 |[0;0m }
[0;36m |[0;0m[0;36m26 |[0;0m if Type1.self is any TypeDiscriminated.Type {
[0;36m |[0;0m [0;36m|[0;0m `- [1;33mwarning: [1;39m'is' test is always true[0;0m
[0;36m |[0;0m[0;36m27 |[0;0m if let decoded = try? Type1(from: decoder) {
[0;36m |[0;0m[0;36m28 |[0;0m self = .webhookReactionAdded(decoded)
[0;36m +---------------------------[0;0m[0;36m-----------------------------------------[0;0m
[0;36m37 |[0;0m
[0;36m38 |[0;0m enum WebhookExample {
swift-frontend: /home/build-user/swift/lib/SIL/IR/TypeLowering.cpp:3635: auto swift::Lowering::TypeConverter::verifyTrivialLowering(const TypeLowering &, AbstractionPattern, CanType, TypeExpansionContext)::(anonymous class)::operator()(auto, auto, auto *, auto) const [ty:auto = swift::CanType, origTy:auto = swift::Lowering::AbstractionPattern, field:auto = swift::ValueDecl, index:auto = std::optional<unsigned int>]: Assertion `checkConformance(ty, bitwiseCopyableProtocol) && "leaf of non-trivial BitwiseCopyable type that doesn't " "conform to BitwiseCopyable!?"' failed.
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0. Program arguments: /usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Examples/AnalyticsEvents.swift /host/spi-builder-workspace/Examples/ApiResponses.swift /host/spi-builder-workspace/Examples/ExtendsHierarchy.swift -primary-file /host/spi-builder-workspace/Examples/Webhooks.swift /host/spi-builder-workspace/Examples/main.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/Webhooks.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/Webhooks.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/Webhooks.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/Webhooks.dia -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D Xcode -serialize-debugging-options -load-plugin-executable /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/TypeScriptBridgeMacros#TypeScriptBridgeMacros -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval=86400 -Xcc -fmodules-prune-after=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG=1 -no-auto-bridging-header-chaining -module-name Examples -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/Examples_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/Webhooks.o -index-unit-output-path /swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/Webhooks.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
1. Swift version 6.4.2-dev (LLVM 15622a86b1749a9, Swift d2e983b81b18217)
2. Compiling with the current language version
3. While evaluating request ASTLoweringRequest(Lowering AST to SIL for file "/host/spi-builder-workspace/Examples/Webhooks.swift")
4. While silgen visitDecl 'WebhookExample' (at /host/spi-builder-workspace/Examples/Webhooks.swift:38:1)
5. While silgen emitFunction SIL function "@$s8Examples14WebhookExampleO4demoyyKFZ".
for 'demo()' (at /host/spi-builder-workspace/Examples/Webhooks.swift:39:5)
#0 0x000057cd95cb4d98 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/bin/swift-frontend+0x8bb1d98)
#1 0x000057cd95cb2585 llvm::sys::RunSignalHandlers() (/usr/bin/swift-frontend+0x8baf585)
#2 0x000057cd95cb5b41 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
#3 0x0000702bf0f8a520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#4 0x0000702bf0fde9bc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969bc)
#5 0x0000702bf0f8a476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
#6 0x0000702bf0f707f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
#7 0x0000702bf0f7071b (/lib/x86_64-linux-gnu/libc.so.6+0x2871b)
#8 0x0000702bf0f81e96 (/lib/x86_64-linux-gnu/libc.so.6+0x39e96)
#9 0x000057cd8e8b60b0 std::_Function_handler<bool (swift::CanType, swift::Lowering::AbstractionPattern, swift::ValueDecl*, std::optional<unsigned int>), swift::Lowering::TypeConverter::verifyTrivialLowering(swift::Lowering::TypeLowering const&, swift::Lowering::AbstractionPattern, swift::CanType, swift::TypeExpansionContext)::$_14>::_M_invoke(std::_Any_data const&, swift::CanType&&, swift::Lowering::AbstractionPattern&&, swift::ValueDecl*&&, std::optional<unsigned int>&&) TypeLowering.cpp:0:0
#10 0x000057cd8e89a916 swift::Lowering::TypeConverter::visitAggregateLeaves(swift::Lowering::AbstractionPattern, swift::CanType, swift::TypeExpansionContext, std::function<bool (swift::CanType, swift::Lowering::AbstractionPattern, swift::ValueDecl*, std::optional<unsigned int>)>, std::function<bool (swift::CanType, swift::Lowering::AbstractionPattern, swift::ValueDecl*, std::optional<unsigned int>)>) (/usr/bin/swift-frontend+0x1797916)
#11 0x000057cd8e89bc52 swift::Lowering::TypeConverter::verifyTrivialLowering(swift::Lowering::TypeLowering const&, swift::Lowering::AbstractionPattern, swift::CanType, swift::TypeExpansionContext) (/usr/bin/swift-frontend+0x1798c52)
#12 0x000057cd8e89930d swift::Lowering::TypeConverter::getTypeLowering(swift::Lowering::AbstractionPattern, swift::Type, swift::TypeExpansionContext) (/usr/bin/swift-frontend+0x179630d)
#13 0x000057cd8e7bd833 swift::SILFunction::getLoweredType(swift::Type) const (/usr/bin/swift-frontend+0x16ba833)
#14 0x000057cd8e550e36 swift::Lowering::SILGenFunction::emitSwitchStmt(swift::SwitchStmt*) crtstuff.c:0:0
#15 0x000057cd8e4dd304 (anonymous namespace)::StmtEmitter::visitBraceStmt(swift::BraceStmt*) SILGenStmt.cpp:0:0
#16 0x000057cd8e4d6a86 swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) SILGenStmt.cpp:0:0
#17 0x000057cd8e4dd304 (anonymous namespace)::StmtEmitter::visitBraceStmt(swift::BraceStmt*) SILGenStmt.cpp:0:0
#18 0x000057cd8e4d6fd7 swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) SILGenStmt.cpp:0:0
#19 0x000057cd8e4dd304 (anonymous namespace)::StmtEmitter::visitBraceStmt(swift::BraceStmt*) SILGenStmt.cpp:0:0
#20 0x000057cd8e4d6c74 swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) SILGenStmt.cpp:0:0
#21 0x000057cd8e4dd304 (anonymous namespace)::StmtEmitter::visitBraceStmt(swift::BraceStmt*) SILGenStmt.cpp:0:0
#22 0x000057cd8e4d52ed swift::Lowering::SILGenFunction::emitStmt(swift::Stmt*) crtstuff.c:0:0
#23 0x000057cd8e44a0e7 swift::Lowering::SILGenFunction::emitFunction(swift::FuncDecl*) crtstuff.c:0:0
#24 0x000057cd8e3b3ec2 swift::Lowering::SILGenModule::emitFunctionDefinition(swift::SILDeclRef, swift::SILFunction*) crtstuff.c:0:0
#25 0x000057cd8e3b546d swift::Lowering::SILGenModule::emitOrDelayFunction(swift::SILDeclRef) crtstuff.c:0:0
#26 0x000057cd8e3b2420 swift::Lowering::SILGenModule::emitFunction(swift::FuncDecl*) crtstuff.c:0:0
#27 0x000057cd8e4f5022 (anonymous namespace)::SILGenType::visitFuncDecl(swift::FuncDecl*) SILGenType.cpp:0:0
#28 0x000057cd8e4f028d (anonymous namespace)::SILGenType::emitType() SILGenType.cpp:0:0
#29 0x000057cd8e4f0168 swift::Lowering::SILGenModule::visitNominalTypeDecl(swift::NominalTypeDecl*) crtstuff.c:0:0
#30 0x000057cd8e3b8c2f swift::Lowering::SILGenModule::emitSourceFile(swift::SourceFile*) crtstuff.c:0:0
#31 0x000057cd8e3b9454 swift::ASTLoweringRequest::evaluate(swift::Evaluator&, swift::ASTLoweringDescriptor) const (/usr/bin/swift-frontend+0x12b6454)
#32 0x000057cd8e4d4be6 swift::SimpleRequest<swift::ASTLoweringRequest, std::unique_ptr<swift::SILModule, std::default_delete<swift::SILModule>> (swift::ASTLoweringDescriptor), (swift::RequestFlags)17>::evaluateRequest(swift::ASTLoweringRequest const&, swift::Evaluator&) crtstuff.c:0:0
#33 0x000057cd8e3be255 swift::ASTLoweringRequest::OutputType swift::Evaluator::getResultUncached<swift::ASTLoweringRequest, swift::ASTLoweringRequest::OutputType swift::evaluateOrFatal<swift::ASTLoweringRequest>(swift::Evaluator&, swift::ASTLoweringRequest)::'lambda'()>(swift::ASTLoweringRequest const&, swift::ASTLoweringRequest::OutputType swift::evaluateOrFatal<swift::ASTLoweringRequest>(swift::Evaluator&, swift::ASTLoweringRequest)::'lambda'()) crtstuff.c:0:0
#34 0x000057cd8e3b9d2f swift::performASTLowering(swift::FileUnit&, swift::Lowering::TypeConverter&, swift::SILOptions const&, swift::IRGenOptions const*) (/usr/bin/swift-frontend+0x12b6d2f)
#35 0x000057cd8db19be2 swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*, llvm::ArrayRef<char const*>) (/usr/bin/swift-frontend+0xa16be2)
#36 0x000057cd8db31fda withSemanticAnalysis(swift::CompilerInstance&, swift::FrontendObserver*, llvm::function_ref<bool (swift::CompilerInstance&)>, bool) FrontendTool.cpp:0:0
#37 0x000057cd8db1faa9 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*, llvm::ArrayRef<char const*>) FrontendTool.cpp:0:0
#38 0x000057cd8db1c6ee swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) (/usr/bin/swift-frontend+0xa196ee)
#39 0x000057cd8d834ba8 swift::mainEntry(int, char const**) (/usr/bin/swift-frontend+0x731ba8)
#40 0x0000702bf0f71d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#41 0x0000702bf0f71e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#42 0x000057cd8d833a65 _start (/usr/bin/swift-frontend+0x730a65)
*** Signal 6: Backtracing from 0x702bf10669dd... done ***
*** Program crashed: Aborted at 0x0000702bf10669dd ***
Platform: x86_64 Linux (Ubuntu 22.04.5 LTS)
Thread 0 "swift-frontend" crashed:
0 0x0000702bf10669dd <unknown> in libc.so.6
Registers:
rax 0x0000000000000000 0
rdx 0x0000000000000006 6
rcx 0x0000702bf10669dd 48 3d 01 f0 ff ff 73 01 c3 48 8b 0d 23 b4 0f 00 H=·ðÿÿs·ÃH··#´··
rbx 0x0000000000000006 6
rsi 0x000000000000056d 1389
rdi 0x000000000000056d 1389
rbp 0x000000000000056d 1389
rsp 0x000057cdac8a2068 6b 5b cb 95 cd 57 00 00 f0 22 8a ac cd 57 00 00 k[Ë·ÍW··ð"·¬ÍW··
r8 0x000057cdac8a22f0 06 00 00 00 00 00 00 00 fa ff ff ff 00 00 00 00 ········úÿÿÿ····
r9 0x000057cdac8a22f0 06 00 00 00 00 00 00 00 fa ff ff ff 00 00 00 00 ········úÿÿÿ····
r10 0x000057cdac8a22f0 06 00 00 00 00 00 00 00 fa ff ff ff 00 00 00 00 ········úÿÿÿ····
r11 0x0000000000000246 582
r12 0x0000000000000000 0
r13 0x0000000000000000 0
r14 0x0000000000000000 0
r15 0x000057cdac8a2078 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ················
rip 0x0000702bf10669dd 48 3d 01 f0 ff ff 73 01 c3 48 8b 0d 23 b4 0f 00 H=·ðÿÿs·ÃH··#´··
rflags 0x0000000000000246 ZF PF
cs 0x0033 fs 0x0000 gs 0x0000
Images (27 omitted):
0x0000702bf0f48000–0x0000702bf1104401 6a6cb5a80fd5e5bb5bf3aeaa111add98e88843a5 libc.so.6 /usr/lib/x86_64-linux-gnu/libc.so.6
Backtrace took 0.00s
Failed frontend command:
/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Examples/AnalyticsEvents.swift /host/spi-builder-workspace/Examples/ApiResponses.swift /host/spi-builder-workspace/Examples/ExtendsHierarchy.swift -primary-file /host/spi-builder-workspace/Examples/Webhooks.swift /host/spi-builder-workspace/Examples/main.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/Webhooks.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/Webhooks.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/Webhooks.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/Webhooks.dia -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D Xcode -serialize-debugging-options -load-plugin-executable /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/TypeScriptBridgeMacros\#TypeScriptBridgeMacros -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Examples -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/Examples_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/Webhooks.o -index-unit-output-path /swift-typescript-bridge.build/Debug-webassembly-wasm32/Examples-p.build/Objects-normal/wasm32/Webhooks.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 wasm