How can I debug a `error: Segmentation fault: 11`?

This trace doesn't have any useful info. How can I debug this?

Thanks in advance.

CompileSwift normal arm64 /Users/nebiros/ios/studio-ios/Studio/UI/SignInWithEmail/ResetPassword/SignInWithEmailResetPasswordViewModel.swift (in target: Studio)
    cd /Users/nebiros/ios/studio-ios
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c -filelist /var/folders/bg/q5lvd51j5qz4jhrrfbfs3ycr0000gn/T/sources-9c5de0 -primary-file /Users/nebiros/ios/studio-ios/Studio/UI/SignInWithEmail/ResetPassword/SignInWithEmailResetPasswordViewModel.swift -emit-module-path /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Intermediates.noindex/Studio.build/Development-iphoneos/Studio.build/Objects-normal-asan/arm64/SignInWithEmailResetPasswordViewModel~partial.swiftmodule -emit-module-doc-path /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Intermediates.noindex/Studio.build/Development-iphoneos/Studio.build/Objects-normal-asan/arm64/SignInWithEmailResetPasswordViewModel~partial.swiftdoc -serialize-diagnostics-path /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Intermediates.noindex/Studio.build/Development-iphoneos/Studio.build/Objects-normal-asan/arm64/SignInWithEmailResetPasswordViewModel.dia -emit-dependencies-path /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Intermediates.noindex/Studio.build/Development-iphoneos/Studio.build/Objects-normal-asan/arm64/SignInWithEmailResetPasswordViewModel.d -emit-reference-dependencies-path /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Intermediates.noindex/Studio.build/Development-iphoneos/Studio.build/Objects-normal-asan/arm64/SignInWithEmailResetPasswordViewModel.swiftdeps -target arm64-apple-ios10.0 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk -I /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/ActionSheetPicker-3.0 -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/Alamofire -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/AlamofireImage -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/AlamofireNetworkActivityLogger -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/Analytics -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/Bolts -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/Branch -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/CollectionViewSlantedLayout -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/DeallocationChecker -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/DeviceKit -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/EBCardCollectionViewLayout -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/FBSDKCoreKit -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/FBSDKLoginKit -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/FXKeychain -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/FirebaseCore -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/GoogleUtilities -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/JWTDecode -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/Marshal -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/PKHUD -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/PromiseKit -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/PushNotifications -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/PusherSwift -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/ReachabilitySwift -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/Reusable -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/SwiftMessages -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/SwiftVideoBackground -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/SwiftyBeaver-iOS -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/TTTAttributedLabel -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/Twinkle -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/UICountingLabel -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/apptentive-ios -F /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/nanopb -F /Users/nebiros/ios/studio-ios/Pods/AppsFlyerFramework -F /Users/nebiros/ios/studio-ios/Pods/Crashlytics/iOS -F /Users/nebiros/ios/studio-ios/Pods/Fabric/iOS -F /Users/nebiros/ios/studio-ios/Pods/FirebaseAnalytics/Frameworks -F /Users/nebiros/ios/studio-ios/Pods/FirebaseInstanceID/Frameworks -F /Users/nebiros/ios/studio-ios/Pods/GoogleAppMeasurement/Frameworks -F /Users/nebiros/ios/studio-ios/Pods/Intercom/Intercom -F /Users/nebiros/ios/studio-ios/Pods/Reveal-SDK/RevealServer-20/iOS -F /Users/nebiros/ios/studio-ios -enable-testing -g -module-cache-path /Users/nebiros/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -profile-generate -profile-coverage-mapping -sanitize=address -swift-version 4.2 -enforce-exclusivity=checked -Onone -D DEBUG -D COCOAPODS -D DEBUGIAP -D DEBUGREMOTE -D DEBUGWATCH -D DEBUGAPI -D DEBUGDEALLOC -warn-long-function-bodies=100 -serialize-debugging-options -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Intermediates.noindex/Studio.build/Development-iphoneos/Studio.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Intermediates.noindex/Studio.build/Development-iphoneos/Studio.build/Studio-generated-files.hmap -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Intermediates.noindex/Studio.build/Development-iphoneos/Studio.build/Studio-own-target-headers.hmap -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Intermediates.noindex/Studio.build/Development-iphoneos/Studio.build/Studio-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Intermediates.noindex/Studio.build/Development-iphoneos/Studio.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Intermediates.noindex/Studio.build/Development-iphoneos/Studio.build/Studio-project-headers.hmap -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/include -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/Alamofire/Alamofire.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/AlamofireImage/AlamofireImage.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/AlamofireNetworkActivityLogger/AlamofireNetworkActivityLogger.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/Analytics/Analytics.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/Bolts/Bolts.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/Branch/Branch.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/CollectionViewSlantedLayout/CollectionViewSlantedLayout.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/DeallocationChecker/DeallocationChecker.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/DeviceKit/DeviceKit.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/EBCardCollectionViewLayout/EBCardCollectionViewLayout.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/FBSDKCoreKit/FBSDKCoreKit.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/FBSDKLoginKit/FBSDKLoginKit.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/FXKeychain/FXKeychain.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/FirebaseCore/FirebaseCore.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/GoogleUtilities/GoogleUtilities.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/JWTDecode/JWTDecode.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/Marshal/Marshal.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/PKHUD/PKHUD.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/PromiseKit/PromiseKit.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/PushNotifications/PushNotifications.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/PusherSwift/PusherSwift.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/ReachabilitySwift/Reachability.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/Reusable/Reusable.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/SwiftMessages/SwiftMessages.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/SwiftVideoBackground/SwiftVideoBackground.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/SwiftyBeaver-iOS/SwiftyBeaver.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/TTTAttributedLabel/TTTAttributedLabel.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/Twinkle/Twinkle.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/UICountingLabel/UICountingLabel.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/apptentive-ios/Apptentive.framework/Headers -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Products/Development-iphoneos/nanopb/nanopb.framework/Headers -Xcc -I/Users/nebiros/ios/studio-ios/Pods/Headers/Public -Xcc -I/Users/nebiros/ios/studio-ios/Pods/Headers/Public/Firebase -Xcc -I/Users/nebiros/ios/studio-ios/Pods/Firebase/CoreOnly/Sources -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Intermediates.noindex/Studio.build/Development-iphoneos/Studio.build/DerivedSources/arm64 -Xcc -I/Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Intermediates.noindex/Studio.build/Development-iphoneos/Studio.build/DerivedSources -Xcc -DDEBUG=1 -Xcc -DCOCOAPODS=1 -Xcc -DDEBUG=1 -Xcc -DPB_FIELD_32BIT=1 -Xcc -DPB_NO_PACKED_STRUCTS=1 -Xcc -DPB_ENABLE_MALLOC=1 -Xcc -working-directory/Users/nebiros/ios/studio-ios -module-name Studio -o /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Build/Intermediates.noindex/Studio.build/Development-iphoneos/Studio.build/Objects-normal-asan/arm64/SignInWithEmailResetPasswordViewModel.o -index-store-path /Users/nebiros/Library/Developer/Xcode/DerivedData/Studio-fdoaqqqqaxmsxbexdokbsektatjl/Index/DataStore -index-system-modules

/Users/nebiros/ios/studio-ios/Studio/Data/APIClientRouter.swift:154:8: warning: instance method 'components()' took 196ms to type-check (limit: 100ms)
  func components() -> URLComponents {
       ^
0  swift                    0x00000001133f959a PrintStackTraceSignalHandler(void*) + 42
1  swift                    0x00000001133f8d4e SignalHandler(int) + 302
2  libsystem_platform.dylib 0x00007fff655a0b3d _sigtramp + 29
3  libsystem_platform.dylib 0x0000000000000007 _sigtramp + 2594567399
4  swift                    0x0000000110b03e4c swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 76
5  swift                    0x0000000110b03f07 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 263
6  swift                    0x0000000110b03e85 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 133
7  swift                    0x00000001106970db swift::constraints::ConstraintSystem::generateConstraints(swift::Expr*) + 827
8  swift                    0x00000001106e1198 swift::constraints::ConstraintSystem::solve(swift::Expr*&, swift::Type, swift::ExprTypeCheckListener*, llvm::SmallVectorImpl<swift::constraints::Solution>&, swift::FreeTypeVariableBinding) + 9112
9  swift                    0x00000001107992f4 swift::TypeChecker::solveForExpression(swift::Expr*&, swift::DeclContext*, swift::Type, swift::FreeTypeVariableBinding, swift::ExprTypeCheckListener*, swift::constraints::ConstraintSystem&, llvm::SmallVectorImpl<swift::constraints::Solution>&, swift::OptionSet<swift::TypeCheckExprFlags, unsigned int>) + 52
10 swift                    0x0000000110799a17 swift::TypeChecker::typeCheckExpression(swift::Expr*&, swift::DeclContext*, swift::TypeLoc, swift::ContextualTypePurpose, swift::OptionSet<swift::TypeCheckExprFlags, unsigned int>, swift::ExprTypeCheckListener*, swift::constraints::ConstraintSystem*) + 1207
11 swift                    0x0000000110671d4c (anonymous namespace)::FailureDiagnosis::typeCheckChildIndependently(swift::Expr*, swift::Type, swift::ContextualTypePurpose, swift::OptionSet<TCCFlags, unsigned int>, swift::ExprTypeCheckListener*, bool) + 1516
12 swift                    0x000000011066f577 (anonymous namespace)::FailureDiagnosis::typeCheckArbitrarySubExprIndependently(swift::Expr*, swift::OptionSet<TCCFlags, unsigned int>) + 839
13 swift                    0x0000000110661fba swift::constraints::ConstraintSystem::diagnoseFailureForExpr(swift::Expr*) + 3850
14 swift                    0x000000011069449f swift::constraints::ConstraintSystem::salvage(llvm::SmallVectorImpl<swift::constraints::Solution>&, swift::Expr*) + 6207
15 swift                    0x000000011079933a swift::TypeChecker::solveForExpression(swift::Expr*&, swift::DeclContext*, swift::Type, swift::FreeTypeVariableBinding, swift::ExprTypeCheckListener*, swift::constraints::ConstraintSystem&, llvm::SmallVectorImpl<swift::constraints::Solution>&, swift::OptionSet<swift::TypeCheckExprFlags, unsigned int>) + 122
16 swift                    0x0000000110799a17 swift::TypeChecker::typeCheckExpression(swift::Expr*&, swift::DeclContext*, swift::TypeLoc, swift::ContextualTypePurpose, swift::OptionSet<swift::TypeCheckExprFlags, unsigned int>, swift::ExprTypeCheckListener*, swift::constraints::ConstraintSystem*) + 1207
17 swift                    0x0000000110671d4c (anonymous namespace)::FailureDiagnosis::typeCheckChildIndependently(swift::Expr*, swift::Type, swift::ContextualTypePurpose, swift::OptionSet<TCCFlags, unsigned int>, swift::ExprTypeCheckListener*, bool) + 1516
18 swift                    0x000000011066f577 (anonymous namespace)::FailureDiagnosis::typeCheckArbitrarySubExprIndependently(swift::Expr*, swift::OptionSet<TCCFlags, unsigned int>) + 839
19 swift                    0x000000011066e336 (anonymous namespace)::FailureDiagnosis::diagnoseMemberFailures(swift::Expr*, swift::Expr*, swift::constraints::ConstraintKind, swift::DeclName, swift::FunctionRefKind, swift::constraints::ConstraintLocator*, llvm::Optional<std::__1::function<bool (llvm::ArrayRef<swift::constraints::OverloadChoice>)> >, bool) + 422
20 swift                    0x00000001106661e3 swift::ASTVisitor<(anonymous namespace)::FailureDiagnosis, bool, void, void, void, void, void>::visit(swift::Expr*) + 11123
21 swift                    0x00000001106610f6 swift::constraints::ConstraintSystem::diagnoseFailureForExpr(swift::Expr*) + 70
22 swift                    0x000000011069449f swift::constraints::ConstraintSystem::salvage(llvm::SmallVectorImpl<swift::constraints::Solution>&, swift::Expr*) + 6207
23 swift                    0x000000011079933a swift::TypeChecker::solveForExpression(swift::Expr*&, swift::DeclContext*, swift::Type, swift::FreeTypeVariableBinding, swift::ExprTypeCheckListener*, swift::constraints::ConstraintSystem&, llvm::SmallVectorImpl<swift::constraints::Solution>&, swift::OptionSet<swift::TypeCheckExprFlags, unsigned int>) + 122
24 swift                    0x0000000110799a17 swift::TypeChecker::typeCheckExpression(swift::Expr*&, swift::DeclContext*, swift::TypeLoc, swift::ContextualTypePurpose, swift::OptionSet<swift::TypeCheckExprFlags, unsigned int>, swift::ExprTypeCheckListener*, swift::constraints::ConstraintSystem*) + 1207
25 swift                    0x0000000110671d4c (anonymous namespace)::FailureDiagnosis::typeCheckChildIndependently(swift::Expr*, swift::Type, swift::ContextualTypePurpose, swift::OptionSet<TCCFlags, unsigned int>, swift::ExprTypeCheckListener*, bool) + 1516
26 swift                    0x0000000110681461 (anonymous namespace)::FailureDiagnosis::visitApplyExpr(swift::ApplyExpr*) + 1169
27 swift                    0x00000001106610f6 swift::constraints::ConstraintSystem::diagnoseFailureForExpr(swift::Expr*) + 70
28 swift                    0x000000011069449f swift::constraints::ConstraintSystem::salvage(llvm::SmallVectorImpl<swift::constraints::Solution>&, swift::Expr*) + 6207
29 swift                    0x000000011079933a swift::TypeChecker::solveForExpression(swift::Expr*&, swift::DeclContext*, swift::Type, swift::FreeTypeVariableBinding, swift::ExprTypeCheckListener*, swift::constraints::ConstraintSystem&, llvm::SmallVectorImpl<swift::constraints::Solution>&, swift::OptionSet<swift::TypeCheckExprFlags, unsigned int>) + 122
30 swift                    0x0000000110799a17 swift::TypeChecker::typeCheckExpression(swift::Expr*&, swift::DeclContext*, swift::TypeLoc, swift::ContextualTypePurpose, swift::OptionSet<swift::TypeCheckExprFlags, unsigned int>, swift::ExprTypeCheckListener*, swift::constraints::ConstraintSystem*) + 1207
31 swift                    0x000000011083189c swift::ASTVisitor<(anonymous namespace)::StmtChecker, void, swift::Stmt*, void, void, void, void>::visit(swift::Stmt*) + 12044
32 swift                    0x000000011082daae swift::TypeChecker::typeCheckAbstractFunctionBodyUntil(swift::AbstractFunctionDecl*, swift::SourceLoc) + 1294
33 swift                    0x0000000110833358 swift::TypeChecker::typeCheckAbstractFunctionBody(swift::AbstractFunctionDecl*) + 888
34 swift                    0x0000000110859f03 swift::performTypeChecking(swift::SourceFile&, swift::TopLevelContext&, swift::OptionSet<swift::TypeCheckingFlags, unsigned int>, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) + 2515
35 swift                    0x0000000110493f05 swift::CompilerInstance::performSema() + 4949
36 swift                    0x000000010f67f50b performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 731
37 swift                    0x000000010f67bd35 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 7717
38 swift                    0x000000010f621965 main + 1349
39 libdyld.dylib            0x00007fff653b5ed9 start + 1
error: Segmentation fault: 11

The compiler should never crash; this isn't your responsibility to debug. I'd suggest filing a radar with either (1) your project, if you're willing to share it, or if not that then (2) a minimized version of your project that still crashes.

5 Likes

Beyond echoing what John said, you may want to try with a swift.org toolchain to see if that provides more context for the bug report. It will have better debug information as well as asserts.

3 Likes

How should I do this?, call swift from the toolchain instead of calling it from the Xcode application?

Found the option at Xcode menu, gonna see what happens, :man_shrugging: