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

[Xcode 9 beta1, previously: 8.3 beta] Segmentation fault: 11. While emitting SIL for <member>

    Details

      Description

      This open source library compiles fine with Xcode 8.2, but seg faults and crashes the compiler with Xcode 8.3. There are at least a few hundred developers using this library.

      I don't know enough to give this task a better title/description, so hopefully someone can help with that.

      Here's the project with the problem:
      https://github.com/jessesquires/JSQDataSourcesKit

      Also tracking this issue on GitHub at:
      https://github.com/jessesquires/JSQDataSourcesKit/issues/95

      Repro steps

      Using Xcode Version 8.2.1 (8C1002)

      1. Checkout the develop branch.
      2. Build (cmd-B
      3. Happiness

      Using Xcode Version 8.3 beta 3 (8W132p)

      1. Checkout the develop branch.
      2. Build (cmd-B
      3. Cry

      Stack trace:

      0 swift 0x000000010b0b97a7 PrintStackTraceSignalHandler(void*) + 39
      1 swift 0x000000010b0b8d36 SignalHandler(int) + 662
      2 libsystem_platform.dylib 0x00007fffaa0f6bba _sigtramp + 26
      3 libsystem_platform.dylib 0x00007ff93fd9fa80 _sigtramp + 2513080032
      4 swift 0x0000000108e0ebe7 swift::CanType swift::CanTypeVisitor<(anonymous namespace)::SILTypeSubstituter, swift::CanType>::visit<>(swift::CanType) + 375
      5 swift 0x0000000108e0f352 (anonymous namespace)::SILTypeSubstituter::visitSILFunctionType(swift::CanTypeWrapper<swift::SILFunctionType>, bool) + 770
      6 swift 0x0000000108e0f5b1 swift::SILFunctionType::substGenericArgs(swift::SILModule&, llvm::ArrayRef<swift::Substitution>) + 193
      7 swift 0x0000000108a26150 (anonymous namespace)::Callee::getAtUncurryLevel(swift::Lowering::SILGenFunction&, unsigned int) const + 2880
      8 swift 0x0000000108a22d90 (anonymous namespace)::CallEmission::apply(swift::Lowering::SGFContext) + 2032
      9 swift 0x0000000108a6fb2c swift::ASTVisitor<(anonymous namespace)::RValueEmitter, swift::Lowering::RValue, void, void, void, void, void, swift::Lowering::SGFContext>::visit(swift::Expr*, swift::Lowering::SGFContext) + 124
      10 swift 0x0000000108accf14 swift::Lowering::SILGenFunction::emitReturnExpr(swift::SILLocation, swift::Expr*) + 452
      11 swift 0x0000000108ac8e7c swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) + 188
      12 swift 0x0000000108acc618 swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) + 14424
      13 swift 0x0000000108a8c0c9 swift::Lowering::SILGenFunction::emitFunction(swift::FuncDecl*) + 409
      14 swift 0x0000000108a0d52b swift::Lowering::SILGenModule::emitFunction(swift::FuncDecl*)::$_1::operator()(swift::SILFunction*) const + 1867
      15 swift 0x0000000108a0c102 swift::Lowering::SILGenModule::emitFunction(swift::FuncDecl*) + 642
      16 swift 0x0000000108ad28fa swift::Lowering::SILGenModule::visitExtensionDecl(swift::ExtensionDecl*) + 634
      17 swift 0x0000000108a19b3b swift::Lowering::SILGenModule::emitSourceFile(swift::SourceFile*, unsigned int) + 1483
      18 swift 0x0000000108a1b719 swift::SILModule::constructSIL(swift::ModuleDecl*, swift::SILOptions&, swift::FileUnit*, llvm::Optional<unsigned int>, bool, bool) + 1593
      19 swift 0x00000001083403f2 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 45842
      20 swift 0x00000001082f03c2 main + 11298
      21 libdyld.dylib 0x00007fffa9ee9255 start + 1

        Attachments

          Activity

            People

            • Assignee:
              jsq Jesse Squires
              Reporter:
              jsq Jesse Squires
            • Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: