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

ClangToolsCompilationDb has issues with thread safety

    XMLWordPrintable

Details

    • 6cf0d3142 (16.0)

    Description

      The getCompilerOptionsBuilder function in ClangToolsCompilationDb::Private::generate(), that is passed to and run by the asynchronously run generateCompilationDB function, makes various unsafe calls into functions that are not thread safe.

      ClangToolsProjectSettings::getSettings(...), and then access to that settings object; is the call to "connect" safe?; the access to diagnosticConfigs; toolExecutable(...) accesses global settings; getClangIncludeDirAndVersion(...) accesses static data unsafely

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-32411
        # Subject Branch Project Status CR V

        Activity

          People

            kandeler Christian Kandeler
            con Eike Ziller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes