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

AddressSanitizer: heap-use-after-free on tst_QHttpServerMultithreaded

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.9
    • Qt Http Server
    • None

    Description

      Found on nightly health check:

      agent:2024/08/08 22:58:36 build.go:404: ==19267==ERROR: AddressSanitizer: heap-use-after-free on address 0x60c0000434e0 at pc 0x7f92fe7849c3 bp 0x7f92ef15c320 sp 0x7f92ef15c318
      agent:2024/08/08 22:58:36 build.go:404: READ of size 8 at 0x60c0000434e0 thread T27 (Thread (pooled))
      agent:2024/08/08 22:58:36 build.go:404:     #0 0x7f92fe7849c2 in std::__atomic_base<QObjectPrivate::ConnectionData*>::load(std::memory_order) const /usr/include/c++/9/bits/atomic_base.h:740
      agent:2024/08/08 22:58:36 build.go:404:     #1 0x7f92fe7849c2 in std::atomic<QObjectPrivate::ConnectionData*>::load(std::memory_order) const /usr/include/c++/9/atomic:519
      agent:2024/08/08 22:58:36 build.go:404:     #2 0x7f92fe77f7cf in QObjectPrivate::ConnectionData* QAtomicOps<QObjectPrivate::ConnectionData*>::loadAcquire<QObjectPrivate::ConnectionData*>(std::atomic<QObjectPrivate::ConnectionData*> const&) /home/qt/work/qt/qtbase/src/corelib/thread/qatomic_cxx11.h:214
      agent:2024/08/08 22:58:36 build.go:404:     #3 0x7f92fe777f53 in QBasicAtomicPointer<QObjectPrivate::ConnectionData>::loadAcquire() const /home/qt/work/qt/qtbase/src/corelib/thread/qbasicatomic.h:177
      agent:2024/08/08 22:58:36 build.go:404:     #4 0x7f92fe77eb18 in void doActivate<false>(QObject*, int, void**) /home/qt/work/qt/qtbase/src/corelib/kernel/qobject.cpp:4162
      agent:2024/08/08 22:58:36 build.go:404:     #5 0x7f92fe766f0c in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) /home/qt/work/qt/qtbase/src/corelib/kernel/qobject.cpp:4180
      agent:2024/08/08 22:58:36 build.go:404:     #6 0x7f92fecce780 in QObjectContinuationWrapper::run() /home/qt/work/qt/qtbase_build/src/corelib/Core_autogen/include/qfutureinterface.moc:139
      agent:2024/08/08 22:58:36 build.go:404:     #7 0x7f92fecc353a in operator() /home/qt/work/qt/qtbase/src/corelib/thread/qfutureinterface.cpp:96
      agent:2024/08/08 22:58:36 build.go:404:     #8 0x7f92feccee9f in _M_invoke /usr/include/c++/9/bits/std_function.h:300
      agent:2024/08/08 22:58:36 build.go:404:     #9 0x7f92fecd12da in std::function<void (QFutureInterfaceBase const&)>::operator()(QFutureInterfaceBase const&) const /usr/include/c++/9/bits/std_function.h:688
      agent:2024/08/08 22:58:36 build.go:404:     #10 0x7f92feccdd10 in QFutureInterfaceBase::runContinuation() const /home/qt/work/qt/qtbase/src/corelib/thread/qfutureinterface.cpp:920
      agent:2024/08/08 22:58:36 build.go:404:     #11 0x55e594fca19d in QFutureInterface<QHttpServerResponse>::reportFinished() /home/qt/work/install/include/QtCore/qfutureinterface.h:258
      agent:2024/08/08 22:58:36 build.go:404:     #12 0x55e594fed5cb in QtConcurrent::RunFunctionTaskBase<QHttpServerResponse>::run() /home/qt/work/install/include/QtConcurrent/qtconcurrentrunbase.h:91
      agent:2024/08/08 22:58:36 build.go:404:     #13 0x7f92fec9e597 in QThreadPoolThread::run() /home/qt/work/qt/qtbase/src/corelib/thread/qthreadpool.cpp:68
      agent:2024/08/08 22:58:36 build.go:404:     #14 0x7f92fec75cfd in operator() /home/qt/work/qt/qtbase/src/corelib/thread/qthread_unix.cpp:335
      agent:2024/08/08 22:58:36 build.go:404:     #15 0x7f92fec794ca in terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > /home/qt/work/qt/qtbase/src/corelib/thread/qthread_unix.cpp:263
      agent:2024/08/08 22:58:36 build.go:404:     #16 0x7f92fec76055 in QThreadPrivate::start(void*) /home/qt/work/qt/qtbase/src/corelib/thread/qthread_unix.cpp:294
      agent:2024/08/08 22:58:36 build.go:404:     #17 0x7f930125b6e9 in start_thread (/lib64/libpthread.so.0+0xa6e9)
      agent:2024/08/08 22:58:36 build.go:404:     #18 0x7f92fdc6250e in clone (/lib64/libc.so.6+0x11850e)
      

      Full log: https://testresults.qt.io/coin/api/log/qt/qthttpserver/0003ae06e83755254006acc2b368a0ce7b504d9b/LinuxopenSUSE_15_5x86_64LinuxopenSUSE_15_5x86_64GCCqtci-linux-openSUSE-15.5-x86_64-52-59203aSccache_UseAddressSanitizer_UseConfigure_WarningsAreErrors/e4cdb0edccbdc96abf273b866e0457a0423ea6ca/forceRun/test_1723160209/log.txt.gz
      Intregration:https://testresults.qt.io/coin/integration/qt/qt5/tasks/nightly1723153502

      Attachments

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

        Activity

          People

            mikhailsvetkin Mikhail Svetkin
            jujokini Jukka Jokiniva
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes