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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Fixed
    • Affects Version/s: 6.3.0 Alpha
    • Fix Version/s: 6.2.4, 6.3.0 Beta1
    • Component/s: Core: Threads
    • Labels:
      None
    • Platform/s:
      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

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

            Activity

              People

              Assignee:
              allan.jensen Allan Sandfeld Jensen
              Reporter:
              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