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

Possible crash in ClangEditorDocumentProcessor on shutdown

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 5.0.0-beta1
    • Qt Creator 4.15.0-rc1
    • Editors
    • None
    • 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

              jkobus Jarek Kobus
              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