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

Possible crash in ClangEditorDocumentProcessor on shutdown

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: Qt Creator 4.15.0-rc1
    • Fix Version/s: Qt Creator 5.0.0-beta1
    • Component/s: Editors
    • Labels:
      None
    • Commits:
      0ca487b265160549dc0a445b4e74d68033ec4c1c (qt-creator/tqtc-qt-creator/master)

      Description

      To reproduce:
      1. Apply this patch https://codereview.qt-project.org/c/qt-creator/qt-creator/+/347452
      2. Load creator project into creator
      3. As soon as you see the "Shutdown now" printout, close creator. It should crash.

      The reason is that ClangEditorDocumentProcessor::runImpl() cancels the last future and sets the new one (m_parserWatcher), so the old one may still be running if the shutdown comes now.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              jkobus Jarek Kobus
              Reporter:
              jkobus Jarek Kobus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes