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

[Typed Throws]: Crash with SIL assertion when casting to error type #69982

Open
jshier opened this issue Nov 18, 2023 · 0 comments
Open

[Typed Throws]: Crash with SIL assertion when casting to error type #69982

jshier opened this issue Nov 18, 2023 · 0 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels

Comments

@jshier
Copy link
Contributor

jshier commented Nov 18, 2023

Description
When using the Typed Throws evolution toolchain, casting to an error type results in a SIL assertion.

Steps to reproduce

  1. Clone the Alamofire feature/websocket-request-typed-throws branch. There will be an initial compiler failure due to Swift 5 not supporting typed catch:

Cannot convert value of type 'any Error' to expected argument type 'Serializer.Failure'

  1. Add the suggested fixit, "Insert as! Serializer.Failure".

Expected behavior
Successful compilation, even if it's not really a correct fixit.

Actual behavior

SwiftCompile normal arm64 Compiling\ Request.swift /Users/jshier/Desktop/Code/Alamofire/Source/Request.swift (in target 'Alamofire macOS' from project 'Alamofire')
    cd /Users/jshier/Desktop/Code/Alamofire
    builtin-swiftTaskExecution -- /Users/jshier/Library/Developer/Toolchains/swift-PR-69771-946.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/jshier/Desktop/Code/Alamofire/Source/ParameterEncoding.swift /Users/jshier/Desktop/Code/Alamofire/Source/Protected.swift /Users/jshier/Desktop/Code/Alamofire/Source/ResponseSerialization.swift /Users/jshier/Desktop/Code/Alamofire/Source/Response.swift /Users/jshier/Desktop/Code/Alamofire/Source/Concurrency.swift /Users/jshier/Desktop/Code/Alamofire/Source/URLConvertible+URLRequestConvertible.swift /Users/jshier/Desktop/Code/Alamofire/Source/RequestTaskMap.swift /Users/jshier/Desktop/Code/Alamofire/Source/AFError.swift /Users/jshier/Desktop/Code/Alamofire/Source/URLSessionConfiguration+Alamofire.swift /Users/jshier/Desktop/Code/Alamofire/Source/Result+Alamofire.swift /Users/jshier/Desktop/Code/Alamofire/Source/AuthenticationInterceptor.swift /Users/jshier/Desktop/Code/Alamofire/Source/ParameterEncoder.swift /Users/jshier/Desktop/Code/Alamofire/Source/OperationQueue+Alamofire.swift /Users/jshier/Desktop/Code/Alamofire/Source/HTTPHeaders.swift /Users/jshier/Desktop/Code/Alamofire/Source/HTTPMethod.swift /Users/jshier/Desktop/Code/Alamofire/Source/RedirectHandler.swift /Users/jshier/Desktop/Code/Alamofire/Source/Notifications.swift /Users/jshier/Desktop/Code/Alamofire/Source/Alamofire.swift /Users/jshier/Desktop/Code/Alamofire/Source/URLEncodedFormEncoder.swift /Users/jshier/Desktop/Code/Alamofire/Source/URLRequest+Alamofire.swift /Users/jshier/Desktop/Code/Alamofire/Source/MultipartFormData.swift /Users/jshier/Desktop/Code/Alamofire/Source/RequestCompression.swift /Users/jshier/Desktop/Code/Alamofire/Source/RequestInterceptor.swift /Users/jshier/Desktop/Code/Alamofire/Source/StringEncoding+Alamofire.swift /Users/jshier/Desktop/Code/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/jshier/Desktop/Code/Alamofire/Source/ServerTrustEvaluation.swift /Users/jshier/Desktop/Code/Alamofire/Source/MultipartUpload.swift /Users/jshier/Desktop/Code/Alamofire/Source/CachedResponseHandler.swift /Users/jshier/Desktop/Code/Alamofire/Source/SessionDelegate.swift /Users/jshier/Desktop/Code/Alamofire/Source/NetworkReachabilityManager.swift /Users/jshier/Desktop/Code/Alamofire/Source/RetryPolicy.swift -primary-file /Users/jshier/Desktop/Code/Alamofire/Source/Request.swift /Users/jshier/Desktop/Code/Alamofire/Source/Combine.swift /Users/jshier/Desktop/Code/Alamofire/Source/Validation.swift /Users/jshier/Desktop/Code/Alamofire/Source/Session.swift /Users/jshier/Desktop/Code/Alamofire/Source/EventMonitor.swift /Users/jshier/Desktop/Code/Alamofire/Source/AlamofireExtended.swift -emit-dependencies-path /Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire\ macOS.build/Objects-normal/arm64/Request.d -emit-const-values-path /Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire\ macOS.build/Objects-normal/arm64/Request.swiftconstvalues -emit-reference-dependencies-path /Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire\ macOS.build/Objects-normal/arm64/Request.swiftdeps -serialize-diagnostics-path /Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire\ macOS.build/Objects-normal/arm64/Request.dia -target arm64-apple-macos10.12 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode_15.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -I /Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Products/Debug -F /Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Products/Debug -no-color-diagnostics -application-extension -enable-testing -g -module-cache-path /Users/jshier/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -swift-version 5 -enforce-exclusivity\=checked -Onone -D DEBUG -external-plugin-path /Applications/Xcode_15.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins\#/Applications/Xcode_15.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode_15.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/lib/swift/host/plugins\#/Applications/Xcode_15.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-plugin-server -serialize-debugging-options -const-gather-protocols-file /Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire\ macOS.build/Objects-normal/arm64/Alamofire\ macOS_const_extract_protocols.json -enable-experimental-feature TypedThrows -enable-bare-slash-regex -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/jshier/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/jshier/Desktop/Code/Alamofire -resource-dir /Users/jshier/Library/Developer/Toolchains/swift-PR-69771-946.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -I/Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire\ macOS.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire\ macOS.build/Alamofire-generated-files.hmap -Xcc -I/Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire\ macOS.build/Alamofire-own-target-headers.hmap -Xcc -I/Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire\ macOS.build/Alamofire-all-target-headers.hmap -Xcc -iquote -Xcc /Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire\ macOS.build/Alamofire-project-headers.hmap -Xcc -I/Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Products/Debug/include -Xcc -I/Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire\ macOS.build/DerivedSources-normal/arm64 -Xcc -I/Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire\ macOS.build/DerivedSources/arm64 -Xcc -I/Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire\ macOS.build/DerivedSources -Xcc -DDEBUG\=1 -module-name Alamofire -frontend-parseable-output -disable-clang-spi -target-sdk-version 14.2 -target-sdk-name macosx14.2 -external-plugin-path /Applications/Xcode_15.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/lib/swift/host/plugins\#/Applications/Xcode_15.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode_15.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/local/lib/swift/host/plugins\#/Applications/Xcode_15.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode_15.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins\#/Applications/Xcode_15.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode_15.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/local/lib/swift/host/plugins\#/Applications/Xcode_15.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -plugin-path /Users/jshier/Library/Developer/Toolchains/swift-PR-69771-946.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Users/jshier/Library/Developer/Toolchains/swift-PR-69771-946.xctoolchain/usr/local/lib/swift/host/plugins -o /Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire\ macOS.build/Objects-normal/arm64/Request.o -index-unit-output-path /Alamofire.build/Debug/Alamofire\ macOS.build/Objects-normal/arm64/Request.o -index-store-path /Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Index.noindex/DataStore -index-system-modules

Assertion failed: (destErrorType == SILType::getExceptionType(getASTContext())), function emitThrow, file SILGenStmt.cpp, line 1563.
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.	Program arguments: /Users/jshier/Library/Developer/Toolchains/swift-PR-69771-946.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/jshier/Desktop/Code/Alamofire/Source/ParameterEncoding.swift /Users/jshier/Desktop/Code/Alamofire/Source/Protected.swift /Users/jshier/Desktop/Code/Alamofire/Source/ResponseSerialization.swift /Users/jshier/Desktop/Code/Alamofire/Source/Response.swift /Users/jshier/Desktop/Code/Alamofire/Source/Concurrency.swift /Users/jshier/Desktop/Code/Alamofire/Source/URLConvertible+URLRequestConvertible.swift /Users/jshier/Desktop/Code/Alamofire/Source/RequestTaskMap.swift /Users/jshier/Desktop/Code/Alamofire/Source/AFError.swift /Users/jshier/Desktop/Code/Alamofire/Source/URLSessionConfiguration+Alamofire.swift /Users/jshier/Desktop/Code/Alamofire/Source/Result+Alamofire.swift /Users/jshier/Desktop/Code/Alamofire/Source/AuthenticationInterceptor.swift /Users/jshier/Desktop/Code/Alamofire/Source/ParameterEncoder.swift /Users/jshier/Desktop/Code/Alamofire/Source/OperationQueue+Alamofire.swift /Users/jshier/Desktop/Code/Alamofire/Source/HTTPHeaders.swift /Users/jshier/Desktop/Code/Alamofire/Source/HTTPMethod.swift /Users/jshier/Desktop/Code/Alamofire/Source/RedirectHandler.swift /Users/jshier/Desktop/Code/Alamofire/Source/Notifications.swift /Users/jshier/Desktop/Code/Alamofire/Source/Alamofire.swift /Users/jshier/Desktop/Code/Alamofire/Source/URLEncodedFormEncoder.swift /Users/jshier/Desktop/Code/Alamofire/Source/URLRequest+Alamofire.swift /Users/jshier/Desktop/Code/Alamofire/Source/MultipartFormData.swift /Users/jshier/Desktop/Code/Alamofire/Source/RequestCompression.swift /Users/jshier/Desktop/Code/Alamofire/Source/RequestInterceptor.swift /Users/jshier/Desktop/Code/Alamofire/Source/StringEncoding+Alamofire.swift /Users/jshier/Desktop/Code/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/jshier/Desktop/Code/Alamofire/Source/ServerTrustEvaluation.swift /Users/jshier/Desktop/Code/Alamofire/Source/MultipartUpload.swift /Users/jshier/Desktop/Code/Alamofire/Source/CachedResponseHandler.swift /Users/jshier/Desktop/Code/Alamofire/Source/SessionDelegate.swift /Users/jshier/Desktop/Code/Alamofire/Source/NetworkReachabilityManager.swift /Users/jshier/Desktop/Code/Alamofire/Source/RetryPolicy.swift -primary-file /Users/jshier/Desktop/Code/Alamofire/Source/Request.swift /Users/jshier/Desktop/Code/Alamofire/Source/Combine.swift /Users/jshier/Desktop/Code/Alamofire/Source/Validation.swift /Users/jshier/Desktop/Code/Alamofire/Source/Session.swift /Users/jshier/Desktop/Code/Alamofire/Source/EventMonitor.swift /Users/jshier/Desktop/Code/Alamofire/Source/AlamofireExtended.swift -emit-dependencies-path "/Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire macOS.build/Objects-normal/arm64/Request.d" -emit-const-values-path "/Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire macOS.build/Objects-normal/arm64/Request.swiftconstvalues" -emit-reference-dependencies-path "/Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire macOS.build/Objects-normal/arm64/Request.swiftdeps" -serialize-diagnostics-path "/Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire macOS.build/Objects-normal/arm64/Request.dia" -target arm64-apple-macos10.12 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode_15.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -I /Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Products/Debug -F /Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Products/Debug -no-color-diagnostics -application-extension -enable-testing -g -module-cache-path /Users/jshier/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -swift-version 5 -enforce-exclusivity=checked -Onone -D DEBUG -external-plugin-path /Applications/Xcode_15.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins#/Applications/Xcode_15.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode_15.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/lib/swift/host/plugins#/Applications/Xcode_15.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-plugin-server -serialize-debugging-options -const-gather-protocols-file "/Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire macOS.build/Objects-normal/arm64/Alamofire macOS_const_extract_protocols.json" -enable-experimental-feature TypedThrows -enable-bare-slash-regex -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/jshier/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/jshier/Desktop/Code/Alamofire -resource-dir /Users/jshier/Library/Developer/Toolchains/swift-PR-69771-946.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -Xcc "-I/Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire macOS.build/swift-overrides.hmap" -Xcc -iquote -Xcc "/Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire macOS.build/Alamofire-generated-files.hmap" -Xcc "-I/Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire macOS.build/Alamofire-own-target-headers.hmap" -Xcc "-I/Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire macOS.build/Alamofire-all-target-headers.hmap" -Xcc -iquote -Xcc "/Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire macOS.build/Alamofire-project-headers.hmap" -Xcc -I/Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Products/Debug/include -Xcc "-I/Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire macOS.build/DerivedSources-normal/arm64" -Xcc "-I/Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire macOS.build/DerivedSources/arm64" -Xcc "-I/Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire macOS.build/DerivedSources" -Xcc -DDEBUG=1 -module-name Alamofire -frontend-parseable-output -disable-clang-spi -target-sdk-version 14.2 -target-sdk-name macosx14.2 -external-plugin-path /Applications/Xcode_15.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/lib/swift/host/plugins#/Applications/Xcode_15.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode_15.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/local/lib/swift/host/plugins#/Applications/Xcode_15.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode_15.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins#/Applications/Xcode_15.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode_15.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/local/lib/swift/host/plugins#/Applications/Xcode_15.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -plugin-path /Users/jshier/Library/Developer/Toolchains/swift-PR-69771-946.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Users/jshier/Library/Developer/Toolchains/swift-PR-69771-946.xctoolchain/usr/local/lib/swift/host/plugins -o "/Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Build/Intermediates.noindex/Alamofire.build/Debug/Alamofire macOS.build/Objects-normal/arm64/Request.o" -index-unit-output-path "/Alamofire.build/Debug/Alamofire macOS.build/Objects-normal/arm64/Request.o" -index-store-path /Users/jshier/Library/Developer/Xcode/DerivedData/Alamofire-gqexvpxfnitcltctvgfmsnsdspgw/Index.noindex/DataStore -index-system-modules
1.	Apple Swift version 5.11-dev (LLVM 3d6e0f96eb2caa2, Swift d4fa0e4f1bcbcc8)
2.	Compiling with the current language version
3.	While evaluating request ASTLoweringRequest(Lowering AST to SIL for file "/Users/jshier/Desktop/Code/Alamofire/Source/Request.swift")
4.	While silgen emitFunction SIL function "@$s9Alamofire32DecodableWebSocketMessageDecoderV6decodeyxSo012NSURLSessioncD4TaskC10FoundationE0E0OAC5ErrorOyx_GYKF".
 for 'decode(_:)' (at /Users/jshier/Desktop/Code/Alamofire/Source/Request.swift:2136:12)
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           0x000000010a241b04 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1  swift-frontend           0x000000010a240260 llvm::sys::RunSignalHandlers() + 112
2  swift-frontend           0x000000010a242154 SignalHandler(int) + 304
3  libsystem_platform.dylib 0x000000018d06ba24 _sigtramp + 56
4  libsystem_pthread.dylib  0x000000018d03ccc0 pthread_kill + 288
5  libsystem_c.dylib        0x000000018cf4ca40 abort + 180
6  libsystem_c.dylib        0x000000018cf4bd30 err + 0
7  swift-frontend           0x000000010a36acc4 swift::Lowering::SILGenFunction::emitThrow(swift::SILLocation, swift::Lowering::ManagedValue, bool) (.cold.15) + 0
8  swift-frontend           0x0000000105514dcc swift::Lowering::SILGenFunction::emitThrow(swift::SILLocation, swift::Lowering::ManagedValue, bool) + 1860
9  swift-frontend           0x0000000105511db4 swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) + 7676
10 swift-frontend           0x0000000105511058 swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) + 4256
11 swift-frontend           0x000000010550ffac swift::Lowering::SILGenFunction::emitStmt(swift::Stmt*) + 24
12 swift-frontend           0x00000001054ecab8 (anonymous namespace)::PatternMatchEmission::emitCaseBody(swift::CaseStmt*) + 56
13 swift-frontend           0x00000001054ed27c void llvm::function_ref<void ((anonymous namespace)::PatternMatchEmission&, llvm::ArrayRef<swift::Lowering::ConsumableManagedValue>, (anonymous namespace)::ClauseRow&)>::callback_fn<swift::Lowering::SILGenFunction::emitSwitchStmt(swift::SwitchStmt*)::$_0>(long, (anonymous namespace)::PatternMatchEmission&, llvm::ArrayRef<swift::Lowering::ConsumableManagedValue>, (anonymous namespace)::ClauseRow&) + 1772
14 swift-frontend           0x00000001054e3b98 (anonymous namespace)::PatternMatchEmission::emitDispatch((anonymous namespace)::ClauseMatrix&, llvm::ArrayRef<swift::Lowering::ConsumableManagedValue>, std::__1::function<void (swift::SILLocation)> const&) + 1924
15 swift-frontend           0x00000001054e2d40 swift::Lowering::SILGenFunction::emitSwitchStmt(swift::SwitchStmt*) + 3408
16 swift-frontend           0x000000010550ffac swift::Lowering::SILGenFunction::emitStmt(swift::Stmt*) + 24
17 swift-frontend           0x00000001054a6028 swift::ASTVisitor<(anonymous namespace)::RValueEmitter, swift::Lowering::RValue, void, void, void, void, void, swift::Lowering::SGFContext>::visit(swift::Expr*, swift::Lowering::SGFContext) + 18820
18 swift-frontend           0x00000001054973b8 swift::Lowering::SILGenFunction::emitExprInto(swift::Expr*, swift::Lowering::Initialization*, std::__1::optional<swift::SILLocation>) + 248
19 swift-frontend           0x0000000105485aa0 swift::Lowering::SILGenFunction::emitPatternBinding(swift::PatternBindingDecl*, unsigned int, bool) + 1364
20 swift-frontend           0x0000000105485ccc swift::Lowering::SILGenFunction::visitPatternBindingDecl(swift::PatternBindingDecl*, bool) + 64
21 swift-frontend           0x0000000105510f5c swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) + 4004
22 swift-frontend           0x000000010550ffac swift::Lowering::SILGenFunction::emitStmt(swift::Stmt*) + 24
23 swift-frontend           0x00000001054b9c94 swift::Lowering::SILGenFunction::emitFunction(swift::FuncDecl*) + 472
24 swift-frontend           0x0000000105438938 swift::Lowering::SILGenModule::emitFunctionDefinition(swift::SILDeclRef, swift::SILFunction*) + 8720
25 swift-frontend           0x00000001054391d8 swift::Lowering::SILGenModule::emitOrDelayFunction(swift::SILDeclRef) + 224
26 swift-frontend           0x00000001054366f0 swift::Lowering::SILGenModule::emitFunction(swift::FuncDecl*) + 200
27 swift-frontend           0x0000000105521288 (anonymous namespace)::SILGenType::visitFuncDecl(swift::FuncDecl*) + 28
28 swift-frontend           0x000000010551e12c (anonymous namespace)::SILGenType::emitType() + 136
29 swift-frontend           0x000000010551e098 swift::Lowering::SILGenModule::visitNominalTypeDecl(swift::NominalTypeDecl*) + 24
30 swift-frontend           0x000000010543bc10 swift::ASTLoweringRequest::evaluate(swift::Evaluator&, swift::ASTLoweringDescriptor) const + 1024
31 swift-frontend           0x000000010550fa40 swift::SimpleRequest<swift::ASTLoweringRequest, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>> (swift::ASTLoweringDescriptor), (swift::RequestFlags)9>::evaluateRequest(swift::ASTLoweringRequest const&, swift::Evaluator&) + 148
32 swift-frontend           0x000000010543eb9c llvm::Expected<swift::ASTLoweringRequest::OutputType> swift::Evaluator::getResultUncached<swift::ASTLoweringRequest>(swift::ASTLoweringRequest const&) + 396
33 swift-frontend           0x000000010543c5b8 swift::performASTLowering(swift::FileUnit&, swift::Lowering::TypeConverter&, swift::SILOptions const&, swift::IRGenOptions const*) + 96
34 swift-frontend           0x0000000104eae768 swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 552
35 swift-frontend           0x0000000104ebdf90 withSemanticAnalysis(swift::CompilerInstance&, swift::FrontendObserver*, llvm::function_ref<bool (swift::CompilerInstance&)>, bool) + 160
36 swift-frontend           0x0000000104eb1380 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 704
37 swift-frontend           0x0000000104eb0344 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2628
38 swift-frontend           0x0000000104ccbb74 swift::mainEntry(int, char const**) + 2192
39 dyld                     0x000000018ccc10e0 start + 2360
@jshier jshier added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels labels Nov 18, 2023
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. triage needed This issue needs more specific labels
Projects
None yet
Development

No branches or pull requests

1 participant