Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-15131

Failure to start due to LLDB 3.7.0 incompatibility

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: Qt Creator 3.5.0
    • Fix Version/s: Qt Creator 3.6.0-beta1
    • Component/s: Debugger
    • Labels:
      None
    • Environment:
      Arch Linux x86_64 with the following package versions:

      {quote}
      qtcreator 3.5.0-3
      lldb 3.7.0-4
      clang 3.7.0-4
      llvm-libs 3.7.0-4
      {quote}
    • Commits:
      97e9f113879ca23d20ab0a5f124aaff9066ffb55

      Description

      A CMake build of LLDB 3.7.0 installs the following binaries to /usr/bin (on Arch Linux at least):

      argdumper
      lldb
      lldb-3.7.0
      lldb-mi
      lldb-mi-3.7.0
      lldb-server
      lldb-server-3.7.0

      At startup, Qt Creator tries executing all of them with a -version argument. Looking at DebuggerItemManager::autoDetectGdbOrLldbDebuggers(), it probes all LLDB binaries named "lldb", "lldb.exe" or "lldb-*"

      The "lldb-*" glob matches lldb-mi and lldb-mi-3.7.0 which treat the -version argument as the target binary to debug (they do accept a --version switch though). They then enter interactive mode and hang for 30 seconds until Qt Creator gives up waiting on them to exit.

      From a user perspective, Qt Creator does nothing for about a minute and then exits immediately. Attempting to run it from a terminal displays the following output:

      $ qtcreator
      QProcess: Destroyed while process ("/usr/bin/lldb-mi") is still running.
      QProcess: Destroyed while process ("/usr/bin/lldb-mi-3.7.0") is still running.
      ICE default IO error handler doing an exit(), pid = 3953, errno = 32

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            hjk hjk
            Reporter:
            foutrelis Evangelos Foutras
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes