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

tst_QQuickListView crashes on macOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • 5.12
    • None
    • macOS 10.13, 10.14
    • macOS
    • Bug Fixing Week Q2/2020

    Description

      As seen here.

      If I comment out a test that's crashing, it just crashes in another one:

      Crashed Thread:        0  Dispatch queue: com.apple.main-thread
      
      Exception Type:        EXC_BAD_INSTRUCTION (SIGABRT)
      Exception Codes:       0x0000000000000001, 0x0000000000000000
      Exception Note:        EXC_CORPSE_NOTIFY
      
      Application Specific Information:
      ==48869==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffee69ac000; bottom 0x00011279f000; size: 0x7ffdd420d000 (140728162373632)
      False positive error reports may follow
      For details see https://github.com/google/sanitizers/issues/189
       
      abort() called
      
      Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
      0   libsystem_kernel.dylib        	0x00007fff63c38b86 __pthread_kill + 10
      1   libsystem_pthread.dylib       	0x00007fff63ceec50 pthread_kill + 285
      2   libsystem_c.dylib             	0x00007fff63ba21c9 abort + 127
      3   QtCore_debug                  	0x000000010fc5669d qt_message_fatal(QtMsgType, QMessageLogContext const&, QString const&) + 29
      4   QtCore_debug                  	0x000000010fc5ad5e QMessageLogger::fatal(char const*, ...) const + 702 (qlogging.cpp:887)
      5   QtTest_debug                  	0x000000010ecf8091 QTest::FatalSignalHandler::signal(int) + 481
      6   libsystem_platform.dylib      	0x00007fff63ce3b3d _sigtramp + 29
      7   ???                           	000000000000000000 0 + 0
      8   com.apple.Foundation          	0x00007fff38db6d38 -[NSConcreteNotification dealloc] + 64
      9   com.apple.SkyLight            	0x00007fff5c9cf771 (anonymous namespace)::notify_datagram_handler(unsigned int, CGSDatagramType, void*, unsigned long, void*) + 629
      10  com.apple.SkyLight            	0x00007fff5c9d323c CGSDatagramReadStream::dispatch_next_main_queue_datagram() + 270
      11  com.apple.SkyLight            	0x00007fff5cc2614e invocation function for block in CGSDatagramReadStream::dispatch_main_queue_datagrams_async(dispatch_queue_s*, CGSDatagramReadStream*) + 59
      12  libclang_rt.asan_osx_dynamic.dylib	0x0000000111707dd6 __wrap_dispatch_async_block_invoke + 214
      13  libdispatch.dylib             	0x00007fff63aaad4f _dispatch_call_block_and_release + 12
      14  libdispatch.dylib             	0x00007fff63aabdcb _dispatch_client_callout + 8
      15  libdispatch.dylib             	0x00007fff63ab6f5f _dispatch_main_queue_callback_4CF + 1125
      16  com.apple.CoreFoundation      	0x00007fff36a62147 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
      17  com.apple.CoreFoundation      	0x00007fff36a61856 __CFRunLoopRun + 2335
      18  com.apple.CoreFoundation      	0x00007fff36a60ce4 CFRunLoopRunSpecific + 463
      19  com.apple.HIToolbox           	0x00007fff35cfa895 RunCurrentEventLoopInMode + 293
      20  com.apple.HIToolbox           	0x00007fff35cfa5cb ReceiveNextEventCommon + 618
      21  com.apple.HIToolbox           	0x00007fff35cfa348 _BlockUntilNextEventMatchingListInModeWithFilter + 64
      22  com.apple.AppKit              	0x00007fff33fb795b _DPSNextEvent + 997
      23  com.apple.AppKit              	0x00007fff33fb66fa -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1362
      24  libqcocoa_debug.dylib         	0x0000000117994cf4 QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 6676 (qcocoaeventdispatcher.mm:488)
      25  QtCore_debug                  	0x00000001104d2e86 QCoreApplication::processEvents(QFlags<QEventLoop::ProcessEventsFlag>, int) + 726 (qcoreapplication.cpp:1309)
      26  QtGui_debug                   	0x000000010b34bda1 bool QTest::qWaitFor<QTest::qWaitForWindowExposed(QWindow*, int)::$_1>(QTest::qWaitForWindowExposed(QWindow*, int)::$_1, int) + 785 (qtestsupport_core.h:70)
      27  QtGui_debug                   	0x000000010b34ba06 QTest::qWaitForWindowExposed(QWindow*, int) + 390 (qtestsupport_gui.cpp:80)
      28  tst_qquicklistview            	0x000000010929bd8c tst_QQuickListView::enforceRange_withoutHighlight() + 3612 (tst_qquicklistview.cpp:1969)
      29  tst_qquicklistview            	0x000000010960346a tst_QQuickListView::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) + 714 (tst_qquicklistview.moc:741)
      30  QtCore_debug                  	0x0000000110500515 QMetaMethod::invoke(QObject*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) const + 5013 (qmetaobject.cpp:2289)
      31  QtTest_debug                  	0x000000010ecef44c QMetaMethod::invoke(QObject*, Qt::ConnectionType, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) const + 2124 (qmetaobject.h:122)
      32  QtTest_debug                  	0x000000010eced79f QTest::TestMethods::invokeTestOnData(int) const + 4079 (qtestcase.cpp:915)
      33  QtTest_debug                  	0x000000010ecf0eab QTest::TestMethods::invokeTest(int, char const*, QTest::WatchDog*) const + 2987 (qtestcase.cpp:1114)
      34  QtTest_debug                  	0x000000010ecf6f12 QTest::TestMethods::invokeTests(QObject*) const + 3794 (qtestcase.cpp:1456)
      35  QtTest_debug                  	0x000000010ecfac35 QTest::qRun() + 4565 (qtestcase.cpp:1896)
      36  QtTest_debug                  	0x000000010ecf93e8 QTest::qExec(QObject*, int, char**) + 40 (qtestcase.cpp:1783)
      37  tst_qquicklistview            	0x0000000109602fb5 main + 645 (tst_qquicklistview.cpp:8947)
      38  libdyld.dylib                 	0x00007fff63afa085 start + 1
      
      Thread 1:
      0   libsystem_pthread.dylib       	0x00007fff63ceb408 start_wqthread + 0
      1   ???                           	0x0000000054485244 0 + 1414025796
      
      Thread 2:: com.apple.NSEventThread
      0   libsystem_kernel.dylib        	0x00007fff63c32c2a mach_msg_trap + 10
      1   libsystem_kernel.dylib        	0x00007fff63c33174 mach_msg + 60
      2   com.apple.CoreFoundation      	0x00007fff36a6205e __CFRunLoopServiceMachPort + 337
      3   com.apple.CoreFoundation      	0x00007fff36a615ad __CFRunLoopRun + 1654
      4   com.apple.CoreFoundation      	0x00007fff36a60ce4 CFRunLoopRunSpecific + 463
      5   com.apple.AppKit              	0x00007fff33fc0581 _NSEventThread + 160
      6   libsystem_pthread.dylib       	0x00007fff63cec33d _pthread_body + 126
      7   libsystem_pthread.dylib       	0x00007fff63cef2a7 _pthread_start + 70
      8   libsystem_pthread.dylib       	0x00007fff63ceb425 thread_start + 13
      
      Thread 3:: Dispatch queue: NSCGSDisableUpdates
      0   libsystem_kernel.dylib        	0x00007fff63c32c2a mach_msg_trap + 10
      1   libsystem_kernel.dylib        	0x00007fff63c33174 mach_msg + 60
      2   com.apple.SkyLight            	0x00007fff5ca2f9bf CGSUpdateManager::enable_updates_common() + 539
      3   com.apple.SkyLight            	0x00007fff5c9d2f97 CGSUpdateManager::enable_update(unsigned long long) + 317
      4   libclang_rt.asan_osx_dynamic.dylib	0x0000000111707dd6 __wrap_dispatch_async_block_invoke + 214
      5   libdispatch.dylib             	0x00007fff63aaad4f _dispatch_call_block_and_release + 12
      6   libdispatch.dylib             	0x00007fff63aabdcb _dispatch_client_callout + 8
      7   libdispatch.dylib             	0x00007fff63ab2120 _dispatch_lane_serial_drain + 618
      8   libdispatch.dylib             	0x00007fff63ab2bd8 _dispatch_lane_invoke + 388
      9   libdispatch.dylib             	0x00007fff63abb084 _dispatch_workloop_worker_thread + 603
      10  libsystem_pthread.dylib       	0x00007fff63ceb61c _pthread_wqthread + 409
      11  libsystem_pthread.dylib       	0x00007fff63ceb415 start_wqthread + 13
      
      Thread 4:
      0   libsystem_pthread.dylib       	0x00007fff63ceb408 start_wqthread + 0
      1   ???                           	0x0000000054485244 0 + 1414025796
      
      Thread 5:: QQmlThread
      0   libsystem_kernel.dylib        	0x00007fff63c3ab8e poll + 10
      1   libclang_rt.asan_osx_dynamic.dylib	0x00000001116ef347 wrap_poll + 1623
      2   QtCore_debug                  	0x00000001106c6b3b qt_ppoll(pollfd*, unsigned int, timespec const*) + 59 (qcore_unix.cpp:134)
      3   QtCore_debug                  	0x00000001106c6814 qt_safe_poll(pollfd*, unsigned int, timespec const*) + 340 (qcore_unix.cpp:153)
      4   QtCore_debug                  	0x00000001106ce051 QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2737 (qeventdispatcher_unix.cpp:500)
      5   QtCore_debug                  	0x00000001104c0f35 QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 757 (qeventloop.cpp:138)
      6   QtCore_debug                  	0x00000001104c164e QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 1662 (qeventloop.cpp:225)
      7   QtCore_debug                  	0x000000010fc89879 QThread::exec() + 985 (qthread.cpp:534)
      8   QtQml_debug                   	0x000000010dcb4ec6 QQmlThreadPrivate::run() + 230 (qqmlthread.cpp:148)
      9   QtCore_debug                  	0x000000010fc90a3a QThreadPrivate::start(void*) + 2522 (qthread_unix.cpp:361)
      10  libsystem_pthread.dylib       	0x00007fff63cec33d _pthread_body + 126
      11  libsystem_pthread.dylib       	0x00007fff63cef2a7 _pthread_start + 70
      12  libsystem_pthread.dylib       	0x00007fff63ceb425 thread_start + 13
      
      Thread 6:: QSGRenderThread
      0   libsystem_kernel.dylib        	0x00007fff63c36876 __semwait_signal + 10
      1   libsystem_c.dylib             	0x00007fff63bc1830 nanosleep + 199
      2   QtCore_debug                  	0x00000001106c5800 qt_nanosleep(timespec) + 336 (qelapsedtimer_mac.cpp:107)
      3   QtCore_debug                  	0x000000010fc92717 QThread::msleep(unsigned long) + 567 (qthread_unix.cpp:534)
      4   QtQuick_debug                 	0x0000000109ca9a8e QSGRenderThread::syncAndRender() + 2622
      5   QtQuick_debug                 	0x0000000109cabc6a QSGRenderThread::run() + 1818 (qsgthreadedrenderloop.cpp:732)
      6   QtCore_debug                  	0x000000010fc90a3a QThreadPrivate::start(void*) + 2522 (qthread_unix.cpp:361)
      7   libsystem_pthread.dylib       	0x00007fff63cec33d _pthread_body + 126
      8   libsystem_pthread.dylib       	0x00007fff63cef2a7 _pthread_start + 70
      9   libsystem_pthread.dylib       	0x00007fff63ceb425 thread_start + 13
      
      

      If I run the test with a debugger, it stops on line 24:

      24  libqcocoa_debug.dylib         	0x0000000117994cf4 QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 6676 (qcocoaeventdispatcher.mm:488)
      

      Attachments

        Issue Links

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

          Activity

            People

              vestbo Tor Arne Vestbø
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes