Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-99775

Crash on QObject::objectName access when using QThreadPool from non-owning thread

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.2.4, 6.3.0 Beta1
    • 6.3.0 Alpha
    • Core: Threads
    • None
    • Linux/Wayland, Linux/X11

    Description

      Observed in Qt Creator.

      The crash comes in from the Qt Creator async run feature and from AutoTest plugin.

      It comes from a pool->start() call, and is triggered when an expired job-thread is restarted, causing a QThread::start() from a non-owning thread.

      Also in QThreadPool, it is noticed QThreadPoolPrivate::startThread() is also doing similar access that could be racy or crashy.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-99775
          # Subject Branch Project Status CR V

          Activity

            People

              allan.jensen Allan Sandfeld Jensen
              allan.jensen Allan Sandfeld Jensen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes