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

LLDB REPL code completion assertion failure

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: LLDB for Swift
    • Labels:
      None

      Description

      On the Ubuntu 18.04 2019-08-05 development snapshot,

      marcrasi@marcrasi:~/Downloads/swift-toolchains/swift-DEVELOPMENT-SNAPSHOT-2019-08-05-a-ubuntu18.04$ usr/bin/swift
      Welcome to Swift version 5.1-dev (LLVM 200186e28b, Swift caeb2a44a8).
      Type :help for assistance.
       1> func foo(_ x: String) { print(x) }
       2> foo("hello"<TAB>

      Produces this assertion failure:

       lldb: /home/buildnode/jenkins/workspace/oss-swift-package-linux-ubuntu-18_04/swift/lib/AST/Evaluator.cpp:57: void swift::Evaluator::registerRequestFunctions(uint8_t, ArrayRef<swift::AbstractRequestFunction *>): Assertion `zone.first != zoneID' failed.
      /usr/local/google/home/marcrasi/Downloads/swift-toolchains/swift-DEVELOPMENT-SNAPSHOT-2019-08-05-a-ubuntu18.04/usr/bin/lldb[0x41f9f4]
      /usr/local/google/home/marcrasi/Downloads/swift-toolchains/swift-DEVELOPMENT-SNAPSHOT-2019-08-05-a-ubuntu18.04/usr/bin/lldb[0x41da3c]
      /usr/local/google/home/marcrasi/Downloads/swift-toolchains/swift-DEVELOPMENT-SNAPSHOT-2019-08-05-a-ubuntu18.04/usr/bin/lldb[0x41ff88]
      /lib/x86_64-linux-gnu/libpthread.so.0(+0x123a0)[0x7ff499cf43a0]
      /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x10b)[0x7ff49155acfb]
      /lib/x86_64-linux-gnu/libc.so.6(abort+0x129)[0x7ff4915458ad]
      /lib/x86_64-linux-gnu/libc.so.6(+0x2177f)[0x7ff49154577f]
      /lib/x86_64-linux-gnu/libc.so.6(+0x2f542)[0x7ff491553542]
      /usr/local/google/home/marcrasi/Downloads/swift-toolchains/swift-DEVELOPMENT-SNAPSHOT-2019-08-05-a-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0x1ed9d3c)[0x7ff494390d3c]
      /usr/local/google/home/marcrasi/Downloads/swift-toolchains/swift-DEVELOPMENT-SNAPSHOT-2019-08-05-a-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0x13a311a)[0x7ff49385a11a]
      /usr/local/google/home/marcrasi/Downloads/swift-toolchains/swift-DEVELOPMENT-SNAPSHOT-2019-08-05-a-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0xd227f7)[0x7ff4931d97f7]
      /usr/local/google/home/marcrasi/Downloads/swift-toolchains/swift-DEVELOPMENT-SNAPSHOT-2019-08-05-a-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0xa793de)[0x7ff492f303de]
      /usr/local/google/home/marcrasi/Downloads/swift-toolchains/swift-DEVELOPMENT-SNAPSHOT-2019-08-05-a-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0x9eb379)[0x7ff492ea2379]
      /usr/local/google/home/marcrasi/Downloads/swift-toolchains/swift-DEVELOPMENT-SNAPSHOT-2019-08-05-a-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0xa893de)[0x7ff492f403de]
      /usr/local/google/home/marcrasi/Downloads/swift-toolchains/swift-DEVELOPMENT-SNAPSHOT-2019-08-05-a-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0xa8b629)[0x7ff492f42629]
      /lib/x86_64-linux-gnu/libedit.so.2(el_wgets+0x107)[0x7ff490d7e5c7]
      /lib/x86_64-linux-gnu/libedit.so.2(el_gets+0x13)[0x7ff490d79cc3]
      /usr/local/google/home/marcrasi/Downloads/swift-toolchains/swift-DEVELOPMENT-SNAPSHOT-2019-08-05-a-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0xa8b01d)[0x7ff492f4201d]
      /usr/local/google/home/marcrasi/Downloads/swift-toolchains/swift-DEVELOPMENT-SNAPSHOT-2019-08-05-a-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0x9ebcc4)[0x7ff492ea2cc4]
      /usr/local/google/home/marcrasi/Downloads/swift-toolchains/swift-DEVELOPMENT-SNAPSHOT-2019-08-05-a-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0x9d0346)[0x7ff492e87346]
      /usr/local/google/home/marcrasi/Downloads/swift-toolchains/swift-DEVELOPMENT-SNAPSHOT-2019-08-05-a-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0x9d449f)[0x7ff492e8b49f]
      /usr/local/google/home/marcrasi/Downloads/swift-toolchains/swift-DEVELOPMENT-SNAPSHOT-2019-08-05-a-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0xa931ac)[0x7ff492f4a1ac]
      /lib/x86_64-linux-gnu/libpthread.so.0(+0x7c73)[0x7ff499ce9c73]
      /lib/x86_64-linux-gnu/libc.so.6(clone+0x3f)[0x7ff49161cdef]
      Aborted

      The same failure does not occur on the 5.0.2 release.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              marcrasi Marc Rasi
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated: