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

Possible crash in FindReferences on shutdown

    XMLWordPrintable

Details

    Description

      To reproduce:
      1. Apply this patch https://codereview.qt-project.org/c/qt-creator/qt-creator/+/348660.
      2. Load creator project into creator. Wait, until QML and C++ parsing finished. Open any qml file. Execute "Find References to Symbol Under Cursor" from popup menu.
      3. As soon as you see the "Shutdown now" printout, close creator (or switch the session). It should crash.

      The reason is that FindReferences::findUsages() installs the future watcher for the running task, but in case of shutdown it doesn't stop the running task.

      BTW, the same happens when "Rename Symbol Under Cursor" is executed. The reason is then lack of synchronization in FindReferences::renameUsages().

      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