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

[LLDB] LLDB disconnects from process: 'Cannot load 'CurrentModule'' when debugging external project in workspace

    XMLWordPrintable

    Details

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

      Description

      Trying to debug a xcworkspace's code that is included in a workspace (which is the main target application) resolves in the debugger getting disconnected from the process after briefly showing an error message. The trigger is just making a po call. It does not crash with v instead, which is weird to me. Sometimes the disconnection produces a lldb-rpc-server crash (attached to the issue) and also I attach the lldb log session.

      warning: Swift error in fallback scratch context: error: failed to load module 'CurrentModule'
      
      
      note: This error message is displayed only once. If the error displayed above is due to conflicting search paths to Clang modules in different images of the debugged executable, this can slow down debugging of Swift code significantly, since a fresh Swift context has to be created every time a conflict is encountered.
      
      Message from debugger: The LLDB RPC server has crashed. The crash log is located in ~/Library/Logs/DiagnosticReports and has a prefix 'lldb-rpc-server'. Please file a bug and attach the most recent crash log.
      
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            minuscorp Jorge Revuelta Herrero
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: