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

Assertion failure in getOrCreateKeyPathEqualsAndHash

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: Compiler
    • Environment:

      macOS 10.13.3

      Xcode 9.3b4

      Old build system

      Toolchain 3/14/18 (master)

       

      Description

      Ran into this when trying to help test the new batch mode.  The assertion occurred when compiling the Differentiator library we depend on 

      Assertion failed: (hasVal), function operator*, file /Users/buildnode/jenkins/workspace/oss-swift-package-osx/llvm/include/llvm/ADT/Optional.h, line 160.
      0  swift                    0x000000010650c678 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
      1  swift                    0x000000010650cd86 SignalHandler(int) + 694
      2  libsystem_platform.dylib 0x00007fff5c149f5a _sigtramp + 26
      3  libsystem_platform.dylib 0x00000001181b0578 _sigtramp + 3154535992
      4  libsystem_c.dylib        0x00007fff5bf74312 abort + 127
      5  libsystem_c.dylib        0x00007fff5bf3c368 basename_r + 0
      6  swift                    0x00000001034f7877 getOrCreateKeyPathEqualsAndHash(swift::Lowering::SILGenModule&, swift::SILLocation, swift::GenericEnvironment*, llvm::ArrayRef<swift::KeyPathPatternComponent::Index>, swift::SILFunction*&, swift::SILFunction*&) + 12391
      7  swift                    0x00000001034f2c25 swift::Lowering::SILGenModule::emitKeyPathComponentForDecl(swift::SILLocation, swift::GenericEnvironment*, unsigned int&, bool&, llvm::ArrayRef<swift::Substitution>, swift::AbstractStorageDecl*, llvm::ArrayRef<swift::ProtocolConformanceRef>, swift::CanType) + 1429
      8  swift                    0x000000010348d2ec swift::Lowering::SILGenModule::tryEmitPropertyDescriptor(swift::AbstractStorageDecl*) + 1004
      9  swift                    0x00000001035631ab SILGenExtension::emitExtension(swift::ExtensionDecl*) + 59
      10 swift                    0x0000000103563165 swift::Lowering::SILGenModule::visitExtensionDecl(swift::ExtensionDecl*) + 21
      11 swift                    0x000000010348dd3b swift::Lowering::SILGenModule::emitSourceFile(swift::SourceFile*, unsigned int) + 811
      12 swift                    0x000000010348eaf0 swift::SILModule::constructSIL(swift::ModuleDecl*, swift::SILOptions&, swift::FileUnit*, llvm::Optional<unsigned int>, bool) + 352
      13 swift                    0x000000010348f0df swift::performSILGeneration(swift::FileUnit&, swift::SILOptions&, llvm::Optional<unsigned int>) + 95
      14 swift                    0x0000000102d7c146 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 8598
      15 swift                    0x0000000102d78f9e swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 3310
      16 swift                    0x0000000102d2faf3 main + 2051
      17 libdyld.dylib            0x00007fff5bec8115 start + 1
      Stack dump:
      0.
      

       

        Attachments

          Activity

            People

            Assignee:
            jckarter Joe Groff
            Reporter:
            kdawgwilk Kaden Wilkinson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: