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

Cyclic Metadata Dependency in Swift 5

    XMLWordPrintable

    Details

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

      Catalina 10.15.1

      Xcode Version 11.2.1 (11B500)

      Apple Swift version 5.1.2 (swiftlang-1100.0.278 clang-1100.0.33.9)

      lldb-1100.0.30.6

      Description

      Attached project builds successfully but results in EXC_BAD_ACCESS crash at class initializer callsite (RootBuilder.swift#46, marked). Running po ClassName.self ahead of crash produces the following output:

      (lldb) po RootRouter.self
      error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0x0).
      The process has been returned to the state before expression evaluation.
      
      (lldb) po RootRouter.self
      SingletonMetadataCache(0x600003fdd5e0): cyclic metadata dependency detected, aborting
      error: Execution was interrupted, reason: signal SIGABRT.
      The process has been returned to the state before expression evaluation.
      

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            ermik Ermolay Romanov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: