Uploaded image for project: 'Swift'
  1. Swift
  2. SR-1427

Segmentation fault: 11 when compiling PromiseKit while emitting SIL function

    Details

      Description

      Compiler crashes when archiving a project that uses PromiseKit. Debug schemes compiles with no errors.
      Failing module: NSNotificationCenter+Promise.swift

      CompileSwift normal arm64 /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Categories/Foundation/NSNotificationCenter+Promise.swift
          cd /Users/travis/build/Company/iOS/Project/Pods
          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -emit-bc /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Sources/after.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Categories/Foundation/afterlife.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Sources/AnyPromise.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Sources/dispatch_promise.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Sources/Error.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Sources/join.swift -primary-file /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Categories/Foundation/NSNotificationCenter+Promise.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Categories/Foundation/NSObject+Promise.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Categories/Foundation/NSURLConnection+Promise.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Categories/Foundation/NSURLSession+Promise.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Sources/Promise+Properties.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Sources/Promise.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Sources/race.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Sources/State.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Sources/URLDataPromise.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Sources/when.swift -target arm64-apple-ios8.0 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -I /Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/BuildProductsPath/Release-iphoneos -F /Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/BuildProductsPath/Release-iphoneos -g -import-underlying-module -module-cache-path /Users/travis/Library/Developer/Xcode/DerivedData/ModuleCache -D COCOAPODS -serialize-debugging-options -Xcc -I/Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/PromiseKit.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/PromiseKit.build/PromiseKit-generated-files.hmap -Xcc -I/Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/PromiseKit.build/PromiseKit-own-target-headers.hmap -Xcc -I/Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/PromiseKit.build/PromiseKit-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/IntermediateBuildFilesPath/Pods.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/PromiseKit.build/PromiseKit-project-headers.hmap -Xcc -I/Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/BuildProductsPath/Release-iphoneos/include -Xcc -I/Users/travis/build/Company/iOS/Project/Pods/Headers/Private -Xcc -I/Users/travis/build/Company/iOS/Project/Pods/Headers/Private/PromiseKit -Xcc -I/Users/travis/build/Company/iOS/Project/Pods/Headers/Public -Xcc -I/Users/travis/build/Company/iOS/Project/Pods/Headers/Public/Crashlytics -Xcc -I/Users/travis/build/Company/iOS/Project/Pods/Headers/Public/Fabric -Xcc -I/Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/PromiseKit.build/DerivedSources/arm64 -Xcc -I/Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/PromiseKit.build/DerivedSources -Xcc -DRELEASE=1 -Xcc -DCOCOAPODS=1 -Xcc -working-directory/Users/travis/build/Company/iOS/Project/Pods -emit-module-doc-path /Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/PromiseKit.build/Objects-normal/arm64/NSNotificationCenter+Promise~partial.swiftdoc -O -module-name PromiseKit -emit-module-path /Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/PromiseKit.build/Objects-normal/arm64/NSNotificationCenter+Promise~partial.swiftmodule -serialize-diagnostics-path /Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/PromiseKit.build/Objects-normal/arm64/NSNotificationCenter+Promise.dia -emit-dependencies-path /Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/PromiseKit.build/Objects-normal/arm64/NSNotificationCenter+Promise.d -o /Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/PromiseKit.build/Objects-normal/arm64/NSNotificationCenter+Promise.bc
      0  swift                    0x000000010ad4166b llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 43
      1  swift                    0x000000010ad40956 llvm::sys::RunSignalHandlers() + 70
      2  swift                    0x000000010ad41ccf SignalHandler(int) + 287
      3  libsystem_platform.dylib 0x00007fff8c0ad52a _sigtramp + 26
      4  libsystem_platform.dylib 0x00000000000002f0 _sigtramp + 1945447904
      5  swift                    0x0000000108bdd16d emitApplyArgument((anonymous namespace)::IRGenSILFunction&, swift::SILValue, swift::SILParameterInfo, swift::irgen::Explosion&) + 365
      6  swift                    0x0000000108bdc971 (anonymous namespace)::IRGenSILFunction::visitFullApplySite(swift::FullApplySite) + 2497
      7  swift                    0x0000000108bca23b swift::irgen::IRGenModule::emitSILFunction(swift::SILFunction*) + 9787
      8  swift                    0x0000000108b255c8 swift::irgen::IRGenModuleDispatcher::emitGlobalTopLevel() + 600
      9  swift                    0x0000000108bb104e performIRGeneration(swift::IRGenOptions&, swift::ModuleDecl*, swift::SILModule*, llvm::StringRef, llvm::LLVMContext&, swift::SourceFile*, unsigned int) + 1278
      10 swift                    0x0000000108bb14f6 swift::performIRGeneration(swift::IRGenOptions&, swift::SourceFile&, swift::SILModule*, llvm::StringRef, llvm::LLVMContext&, unsigned int) + 70
      11 swift                    0x0000000108a94c8c performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&) + 15004
      12 swift                    0x0000000108a9068d frontend_main(llvm::ArrayRef<char const*>, char const*, void*) + 2781
      13 swift                    0x0000000108a8c0ac main + 1932
      14 libdyld.dylib            0x00007fff8aad75ad start + 1
      15 libdyld.dylib            0x000000000000005b start + 1968343727
      Stack dump:
      0.	Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -emit-bc /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Sources/after.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Categories/Foundation/afterlife.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Sources/AnyPromise.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Sources/dispatch_promise.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Sources/Error.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Sources/join.swift -primary-file /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Categories/Foundation/NSNotificationCenter+Promise.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Categories/Foundation/NSObject+Promise.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Categories/Foundation/NSURLConnection+Promise.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Categories/Foundation/NSURLSession+Promise.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Sources/Promise+Properties.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Sources/Promise.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Sources/race.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Sources/State.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Sources/URLDataPromise.swift /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Sources/when.swift -target arm64-apple-ios8.0 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -I /Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/BuildProductsPath/Release-iphoneos -F /Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/BuildProductsPath/Release-iphoneos -g -import-underlying-module -module-cache-path /Users/travis/Library/Developer/Xcode/DerivedData/ModuleCache -D COCOAPODS -serialize-debugging-options -Xcc -I/Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/PromiseKit.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/PromiseKit.build/PromiseKit-generated-files.hmap -Xcc -I/Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/PromiseKit.build/PromiseKit-own-target-headers.hmap -Xcc -I/Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/PromiseKit.build/PromiseKit-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/IntermediateBuildFilesPath/Pods.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/PromiseKit.build/PromiseKit-project-headers.hmap -Xcc -I/Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/BuildProductsPath/Release-iphoneos/include -Xcc -I/Users/travis/build/Company/iOS/Project/Pods/Headers/Private -Xcc -I/Users/travis/build/Company/iOS/Project/Pods/Headers/Private/PromiseKit -Xcc -I/Users/travis/build/Company/iOS/Project/Pods/Headers/Public -Xcc -I/Users/travis/build/Company/iOS/Project/Pods/Headers/Public/Crashlytics -Xcc -I/Users/travis/build/Company/iOS/Project/Pods/Headers/Public/Fabric -Xcc -I/Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/PromiseKit.build/DerivedSources/arm64 -Xcc -I/Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/PromiseKit.build/DerivedSources -Xcc -DRELEASE=1 -Xcc -DCOCOAPODS=1 -Xcc -working-directory/Users/travis/build/Company/iOS/Project/Pods -emit-module-doc-path /Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/PromiseKit.build/Objects-normal/arm64/NSNotificationCenter+Promise~partial.swiftdoc -O -module-name PromiseKit -emit-module-path /Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/PromiseKit.build/Objects-normal/arm64/NSNotificationCenter+Promise~partial.swiftmodule -serialize-diagnostics-path /Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/PromiseKit.build/Objects-normal/arm64/NSNotificationCenter+Promise.dia -emit-dependencies-path /Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/PromiseKit.build/Objects-normal/arm64/NSNotificationCenter+Promise.d -o /Users/travis/Library/Developer/Xcode/DerivedData/Project-dtaoyjhgdxdnqsdrizcxetkzcack/Build/Intermediates/ArchiveIntermediates/Release/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/PromiseKit.build/Objects-normal/arm64/NSNotificationCenter+Promise.bc 
      1.	While emitting IR SIL function @_TZFE10PromiseKitCSo20NSNotificationCenter4oncefSSCS_19NotificationPromise for 'once' at /Users/travis/build/Company/iOS/Project/Pods/PromiseKit/Categories/Foundation/NSNotificationCenter+Promise.swift:22:12
      <unknown>:0: error: unable to execute command: Segmentation fault: 11
      <unknown>:0: error: compile command failed due to signal (use -v to see invocation)
      ** ARCHIVE FAILED **
      

        Attachments

          Activity

            People

            • Assignee:
              swiftix Roman Levenstein
              Reporter:
              sega-zero Sergey Galezdinov
            • Votes:
              13 Vote for this issue
              Watchers:
              20 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: