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

tst_qwindow::initialSize() crashes sometimes when compiled with address sanitizer

    XMLWordPrintable

Details

    Description

      This log here is from an address-sanitizer testrun running on OpenSUSE. It receives SIGSEGV at

      tst_QWindow::initialSize (this=0x7fffec898850) at /home/qt/work/qt/qtbase/tests/auto/gui/kernel/qwindow/tst_qwindow.cpp:2068

      Full relevant part of the log:

      agent:2022/08/10 09:37:05 build.go:394: 321: PASS   : tst_QWindow::visibility()
      agent:2022/08/10 09:37:05 build.go:394: 321: PASS   : tst_QWindow::mask()
      agent:2022/08/10 09:37:05 build.go:394: 321: Received signal 11 (SIGSEGV), code 1, for address 0x000000000000011a
      agent:2022/08/10 09:37:05 build.go:394: 321:          Function time: 3ms, total time: 1719ms
      agent:2022/08/10 09:37:05 build.go:394: 321: 
      agent:2022/08/10 09:37:05 build.go:394: 321: === Stack trace ===
      agent:2022/08/10 09:37:06 build.go:394: 321: [New LWP 3790]
      agent:2022/08/10 09:37:06 build.go:394: 321: [New LWP 3791]
      agent:2022/08/10 09:37:06 build.go:394: 321: [Thread debugging using libthread_db enabled]
      agent:2022/08/10 09:37:06 build.go:394: 321: Using host libthread_db library "/lib64/libthread_db.so.1".
      agent:2022/08/10 09:37:06 build.go:394: 321: 0x00007f253ad2389f in wait4 () from /lib64/libc.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: 
      agent:2022/08/10 09:37:07 build.go:394: 321: Thread 3 (Thread 0x7f252ef3d700 (LWP 3791) "QtTest Watchdog"):
      agent:2022/08/10 09:37:07 build.go:394: 321: #0  0x00007f253b03b81e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
      agent:2022/08/10 09:37:07 build.go:394: 321: #1  0x00007f253fbddb91 in ?? () from /home/qt/work/install/lib/libQt6Test.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #2  0x00007f253fbf2aca in std::cv_status std::condition_variable::__wait_until_impl > >(std::unique_lock&, std::chrono::time_point > > const&) () from /home/qt/work/install/lib/libQt6Test.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #3  0x00007f253fbeec85 in std::cv_status std::condition_variable::wait_until > >(std::unique_lock&, std::chrono::time_point > > const&) () from /home/qt/work/install/lib/libQt6Test.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #4  0x00007f253fbeabca in ?? () from /home/qt/work/install/lib/libQt6Test.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #5  0x00007f253fbe591e in ?? () from /home/qt/work/install/lib/libQt6Test.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #6  0x00007f253fbe2485 in ?? () from /home/qt/work/install/lib/libQt6Test.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #7  0x00007f253fbe2f21 in ?? () from /home/qt/work/install/lib/libQt6Test.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #8  0x00007f253c4fc658 in ?? () from /home/qt/work/install/lib/libQt6Core.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #9  0x00007f253c4ff347 in ?? () from /home/qt/work/install/lib/libQt6Core.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #10 0x00007f253c4fc868 in ?? () from /home/qt/work/install/lib/libQt6Core.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #11 0x00007f253b03494a in start_thread () from /lib64/libpthread.so.0
      agent:2022/08/10 09:37:07 build.go:394: 321: #12 0x00007f253ad57d0f in clone () from /lib64/libc.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: 
      agent:2022/08/10 09:37:07 build.go:394: 321: Thread 2 (Thread 0x7f252ff6b700 (LWP 3790) "QXcbEventQueue"):
      agent:2022/08/10 09:37:07 build.go:394: 321: #0  0x00007f253ad4c099 in poll () from /lib64/libc.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #1  0x00007f253ff20de2 in poll () from /usr/lib64/libasan.so.5
      agent:2022/08/10 09:37:07 build.go:394: 321: #2  0x00007f2537aad387 in ?? () from /usr/lib64/libxcb.so.1
      agent:2022/08/10 09:37:07 build.go:394: 321: #3  0x00007f2537aaefba in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
      agent:2022/08/10 09:37:07 build.go:394: 321: #4  0x00007f25321cb63b in ?? () from /home/qt/work/install/plugins/platforms/../../lib/libQt6XcbQpa.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #5  0x00007f253c4fc658 in ?? () from /home/qt/work/install/lib/libQt6Core.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #6  0x00007f253c4ff347 in ?? () from /home/qt/work/install/lib/libQt6Core.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #7  0x00007f253c4fc868 in ?? () from /home/qt/work/install/lib/libQt6Core.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #8  0x00007f253b03494a in start_thread () from /lib64/libpthread.so.0
      agent:2022/08/10 09:37:07 build.go:394: 321: #9  0x00007f253ad57d0f in clone () from /lib64/libc.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: 
      agent:2022/08/10 09:37:07 build.go:394: 321: Thread 1 (Thread 0x7f2540cfea00 (LWP 3789) "tst_qwindow"):
      agent:2022/08/10 09:37:07 build.go:394: 321: #0  0x00007f253ad2389f in wait4 () from /lib64/libc.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #1  0x00007f253ff2c231 in ?? () from /usr/lib64/libasan.so.5
      agent:2022/08/10 09:37:07 build.go:394: 321: #2  0x00007f253fbbd8f9 in ?? () from /home/qt/work/install/lib/libQt6Test.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #3  0x00007f253fbcc7f6 in ?? () from /home/qt/work/install/lib/libQt6Test.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #4  
      agent:2022/08/10 09:37:07 build.go:394: 321: #5  0x00007f253dd412ac in QGuiApplicationPrivate::processNativeEvent(QWindow*, QByteArray const&, void*, long long*) () from /home/qt/work/install/lib/libQt6Gui.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #6  0x00007f253debdabc in QWindowSystemInterface::handleNativeEvent(QWindow*, QByteArray const&, void*, long long*) () from /home/qt/work/install/lib/libQt6Gui.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #7  0x00007f2532255467 in QXcbWindow::handleNativeEvent(xcb_generic_event_t*) () from /home/qt/work/install/plugins/platforms/../../lib/libQt6XcbQpa.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #8  0x00007f25321397ce in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) () from /home/qt/work/install/plugins/platforms/../../lib/libQt6XcbQpa.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #9  0x00007f253213c512 in QXcbConnection::processXcbEvents(QFlags) () from /home/qt/work/install/plugins/platforms/../../lib/libQt6XcbQpa.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #10 0x00007f25321c8c6f in ?? () from /home/qt/work/install/plugins/platforms/../../lib/libQt6XcbQpa.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #11 0x00007f2539ddf694 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
      agent:2022/08/10 09:37:07 build.go:394: 321: #12 0x00007f2539ddfa30 in ?? () from /usr/lib64/libglib-2.0.so.0
      agent:2022/08/10 09:37:07 build.go:394: 321: #13 0x00007f2539ddfabc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
      agent:2022/08/10 09:37:07 build.go:394: 321: #14 0x00007f253c8ac1b9 in QEventDispatcherGlib::processEvents(QFlags) () from /home/qt/work/install/lib/libQt6Core.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #15 0x00007f25321c91c5 in ?? () from /home/qt/work/install/plugins/platforms/../../lib/libQt6XcbQpa.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #16 0x00007f253bf83440 in QCoreApplication::processEvents(QFlags, int) () from /home/qt/work/install/lib/libQt6Core.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #17 0x00007f253c108534 in QTest::qWait(int) () from /home/qt/work/install/lib/libQt6Core.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #18 0x0000000000462dac in tst_QWindow::initialSize (this=0x7fffec898850) at /home/qt/work/qt/qtbase/tests/auto/gui/kernel/qwindow/tst_qwindow.cpp:2068
      agent:2022/08/10 09:37:07 build.go:394: 321: #19 0x000000000047ccc9 in tst_QWindow::qt_static_metacall (_o=0x7fffec898850, _c=QMetaObject::InvokeMetaMethod, _id=37, _a=0x7fffec896be0) at tests/auto/gui/kernel/qwindow/tst_qwindow_autogen/include/tst_qwindow.moc:602
      agent:2022/08/10 09:37:07 build.go:394: 321: #20 0x00007f253bfc58e8 in ?? () from /home/qt/work/install/lib/libQt6Core.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #21 0x00007f253bfc4416 in QMetaMethod::invoke(QObject*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) const () from /home/qt/work/install/lib/libQt6Core.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #22 0x00007f253fbe1b2b in ?? () from /home/qt/work/install/lib/libQt6Test.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #23 0x00007f253fbc4be3 in ?? () from /home/qt/work/install/lib/libQt6Test.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #24 0x00007f253fbc75fd in ?? () from /home/qt/work/install/lib/libQt6Test.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #25 0x00007f253fbcadb1 in ?? () from /home/qt/work/install/lib/libQt6Test.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #26 0x00007f253fbcde81 in QTest::qRun() () from /home/qt/work/install/lib/libQt6Test.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #27 0x00007f253fbccc02 in QTest::qExec(QObject*, int, char**) () from /home/qt/work/install/lib/libQt6Test.so.6
      agent:2022/08/10 09:37:07 build.go:394: 321: #28 0x000000000047d2b2 in main (argc=1, argv=0x7fffec8989c8) at /home/qt/work/qt/qtbase/tests/auto/gui/kernel/qwindow/tst_qwindow.cpp:2762
      agent:2022/08/10 09:37:07 build.go:394: 321: [Inferior 1 (process 3789) detached]
      agent:2022/08/10 09:37:07 build.go:394: 321: === End of stack trace ===
      agent:2022/08/10 09:37:07 build.go:394: 321: AddressSanitizer:DEADLYSIGNAL
      agent:2022/08/10 09:37:07 build.go:394: 321: =================================================================
      agent:2022/08/10 09:37:07 build.go:394: 321: ==3789==ERROR: AddressSanitizer: SEGV on unknown address 0x00000000011a (pc 0x7f253dd412ac bp 0x7fffec895100 sp 0x7fffec8950e0 T0)
      agent:2022/08/10 09:37:07 build.go:394: 321: ==3789==The signal is caused by a READ memory access.
      agent:2022/08/10 09:37:07 build.go:394: 321: ==3789==Hint: address points to the zero page.
      agent:2022/08/10 09:37:07 build.go:394: 321:     #0 0x7f253dd412ab in QGuiApplicationPrivate::processNativeEvent(QWindow*, QByteArray const&, void*, long long*) (/home/qt/work/install/lib/libQt6Gui.so.6+0x6062ab)
      agent:2022/08/10 09:37:07 build.go:394: 321:     #1 0x7f253debdabb in QWindowSystemInterface::handleNativeEvent(QWindow*, QByteArray const&, void*, long long*) (/home/qt/work/install/lib/libQt6Gui.so.6+0x782abb)
      agent:2022/08/10 09:37:07 build.go:394: 321:     #2 0x7f2532255466 in QXcbWindow::handleNativeEvent(xcb_generic_event_t*) (/home/qt/work/install/plugins/platforms/../../lib/libQt6XcbQpa.so.6+0x1d8466)
      agent:2022/08/10 09:37:07 build.go:394: 321:     #3 0x7f25321397cd in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) (/home/qt/work/install/plugins/platforms/../../lib/libQt6XcbQpa.so.6+0xbc7cd)
      agent:2022/08/10 09:37:07 build.go:394: 321:     #4 0x7f253213c511 in QXcbConnection::processXcbEvents(QFlags) (/home/qt/work/install/plugins/platforms/../../lib/libQt6XcbQpa.so.6+0xbf511)
      agent:2022/08/10 09:37:07 build.go:394: 321:     #5 0x7f25321c8c6e  (/home/qt/work/install/plugins/platforms/../../lib/libQt6XcbQpa.so.6+0x14bc6e)
      agent:2022/08/10 09:37:07 build.go:394: 321:     #6 0x7f2539ddf693 in g_main_context_dispatch (/usr/lib64/libglib-2.0.so.0+0x52693)
      agent:2022/08/10 09:37:07 build.go:394: 321:     #7 0x7f2539ddfa2f  (/usr/lib64/libglib-2.0.so.0+0x52a2f)
      agent:2022/08/10 09:37:07 build.go:394: 321:     #8 0x7f2539ddfabb in g_main_context_iteration (/usr/lib64/libglib-2.0.so.0+0x52abb)
      agent:2022/08/10 09:37:07 build.go:394: 321:     #9 0x7f253c8ac1b8 in QEventDispatcherGlib::processEvents(QFlags) (/home/qt/work/install/lib/libQt6Core.so.6+0xcf31b8)
      agent:2022/08/10 09:37:07 build.go:394: 321:     #10 0x7f25321c91c4  (/home/qt/work/install/plugins/platforms/../../lib/libQt6XcbQpa.so.6+0x14c1c4)
      agent:2022/08/10 09:37:07 build.go:394: 321:     #11 0x7f253bf8343f in QCoreApplication::processEvents(QFlags, int) (/home/qt/work/install/lib/libQt6Core.so.6+0x3ca43f)
      agent:2022/08/10 09:37:07 build.go:394: 321:     #12 0x7f253c108533 in QTest::qWait(int) (/home/qt/work/install/lib/libQt6Core.so.6+0x54f533)
      agent:2022/08/10 09:37:07 build.go:394: 321:     #13 0x462dab in tst_QWindow::initialSize() /home/qt/work/qt/qtbase/tests/auto/gui/kernel/qwindow/tst_qwindow.cpp:2068
      agent:2022/08/10 09:37:07 build.go:394: 321:     #14 0x47ccc8 in tst_QWindow::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) tests/auto/gui/kernel/qwindow/tst_qwindow_autogen/include/tst_qwindow.moc:602
      agent:2022/08/10 09:37:07 build.go:394: 321:     #15 0x7f253bfc58e7  (/home/qt/work/install/lib/libQt6Core.so.6+0x40c8e7)
      agent:2022/08/10 09:37:07 build.go:394: 321:     #16 0x7f253bfc4415 in QMetaMethod::invoke(QObject*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) const (/home/qt/work/install/lib/libQt6Core.so.6+0x40b415)
      agent:2022/08/10 09:37:07 build.go:394: 321:     #17 0x7f253fbe1b2a  (/home/qt/work/install/lib/libQt6Test.so.6+0xabb2a)
      agent:2022/08/10 09:37:07 build.go:394: 321:     #18 0x7f253fbc4be2  (/home/qt/work/install/lib/libQt6Test.so.6+0x8ebe2)
      agent:2022/08/10 09:37:07 build.go:394: 321:     #19 0x7f253fbc75fc  (/home/qt/work/install/lib/libQt6Test.so.6+0x915fc)
      agent:2022/08/10 09:37:07 build.go:394: 321:     #20 0x7f253fbcadb0  (/home/qt/work/install/lib/libQt6Test.so.6+0x94db0)
      agent:2022/08/10 09:37:07 build.go:394: 321:     #21 0x7f253fbcde80 in QTest::qRun() (/home/qt/work/install/lib/libQt6Test.so.6+0x97e80)
      agent:2022/08/10 09:37:07 build.go:394: 321:     #22 0x7f253fbccc01 in QTest::qExec(QObject*, int, char**) (/home/qt/work/install/lib/libQt6Test.so.6+0x96c01)
      agent:2022/08/10 09:37:07 build.go:394: 321:     #23 0x47d2b1 in main /home/qt/work/qt/qtbase/tests/auto/gui/kernel/qwindow/tst_qwindow.cpp:2762
      agent:2022/08/10 09:37:07 build.go:394: 321:     #24 0x7f253ac7c34c in __libc_start_main (/lib64/libc.so.6+0x2534c)
      agent:2022/08/10 09:37:07 build.go:394: 321:     #25 0x4101c9 in _start (/home/qt/work/qt/qtbase_standalone_tests/tests/auto/gui/kernel/qwindow/tst_qwindow+0x4101c9)
      agent:2022/08/10 09:37:07 build.go:394: 321: 
      agent:2022/08/10 09:37:07 build.go:394: 321: AddressSanitizer can not provide additional info.
      agent:2022/08/10 09:37:07 build.go:394: 321: SUMMARY: AddressSanitizer: SEGV (/home/qt/work/install/lib/libQt6Gui.so.6+0x6062ab) in QGuiApplicationPrivate::processNativeEvent(QWindow*, QByteArray const&, void*, long long*)
      agent:2022/08/10 09:37:07 build.go:394: 321: ==3789==ABORTING
      agent:2022/08/10 09:37:07 build.go:394: 321: sanitizer-testrunner.py     INFO: Test exit code was: 1
      agent:2022/08/10 09:37:07 build.go:394: 321: sanitizer-testrunner.py    ERROR: ASAN issues detected
      agent:2022/08/10 09:37:07 build.go:394: 321: CMake Error at tst_qwindowWrapperDebug.cmake:17 (message):
      agent:2022/08/10 09:37:07 build.go:394: 321:   /home/qt/work/install/libexec/sanitizer-testrunner.py
      agent:2022/08/10 09:37:07 build.go:394: 321:   /home/qt/work/qt/qtbase_standalone_tests/tests/auto/gui/kernel/qwindow/tst_qwindow
      agent:2022/08/10 09:37:07 build.go:394: 321:   execution failed with exit code 1.
      agent:2022/08/10 09:37:07 build.go:394: 321: 
      agent:2022/08/10 09:37:07 build.go:394: 321: 
      agent:2022/08/10 09:37:07 build.go:394: 321/608 Test #321: tst_qwindow .....................................***Failed    3.18 sec 

      Attachments

        Issue Links

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

          Activity

            People

              axelspoerl Axel Spoerl
              jimis Dimitrios Apostolou
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes