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

QtGlobalStatic fails to build with threadsanitizer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • 6.7.0
    • Core: Other
    • None
    • Linux/Wayland

    Description

      Error:
      In function ‘void std::atomic_thread_fence(memory_order)’,
          inlined from ‘QtGlobalStatic::Holder<QGS>::~Holder() [with QGS = \{anonymous}::Q_QGS_global_callback_table]’ at /home/jonas/Code/qt5/qtbase/src/corelib/global/qglobalstatic.h:44:33:
      /usr/include/c++/13.2.1/bits/atomic_base.h:144:26: error: ‘atomic_thread_fence’ is not supported with ‘-fsanitize=thread’ [-Werror=tsan]
      {{  144 |   { _atomic_thread_fence(int(_m)); }}}
            |     ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
      {{cc1plus: all warnings being treated as errors
      }}

      Configured like this:
      ../../qt5/configure -debug -developer-build -nomake examples -nomake tests -init-submodules -submodules qtdeclarative,qtquick3dphysics,qtwayland -cmake-generator Ninja -prefix /home/jonas/install/qt-dev-tsan -sanitize thread – -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            jokarlss Jonas Karlsson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes