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

Crash due to missing nullptr checking in connectSignalsToMethods

    XMLWordPrintable

Details

    Description

      Crash happened due to access to RAW pointer without checking of engine data member in context

       

           
      #1  0x0000007fa0059cd4 in __GI_abort () at abort.c:79
      #2  0x0000005578bdbde4 in QtAM::crashHandler (why=why@entry=0x55a7684b58 "uncaught signal 11 (Segmentation fault)", stackFramesToIgnore=8) at /data/jenkins/workspace/UISW-Carbon-UI/Ntgdeps/build-ntgdeps/build-harman/qtapplicationmanager/src/common-lib/crashhandler.cpp:585
      #3  0x0000005578bdc0a8 in QtAM::<lambda(int)>::operator() (__closure=<optimized out>, sig=11) at /data/jenkins/workspace/UISW-Carbon-UI/Ntgdeps/build-ntgdeps/build-harman/qtapplicationmanager/src/common-lib/crashhandler.cpp:338
      #4  std::_Function_handler<void(int), QtAM::initBacktraceUnix()::<lambda(int)> >::_M_invoke(const std::_Any_data &, int &&) (__functor=..., __args#0=<optimized out>) at /data/jenkins/workspace/UISW-Carbon-UI/Ntgdeps/build-ntgdeps/build-harman/target-sdk/install/sdk/sysroots/aarch64-gnu-linux/usr/include/c++/9.3.0/bits/std_function.h:300
      #5  0x0000005578bda0fc in std::function<void (int)>::operator()(int) const (__args#0=<optimized out>, this=0x55a767a1e8) at /data/jenkins/workspace/UISW-Carbon-UI/Ntgdeps/build-ntgdeps/build-harman/target-sdk/install/sdk/sysroots/aarch64-gnu-linux/usr/include/c++/9.3.0/bits/std_function.h:683
      #6  QtAM::UnixSignalHandler::<lambda(int)>::operator() (__closure=0x0, sig=<optimized out>) at /data/jenkins/workspace/UISW-Carbon-UI/Ntgdeps/build-ntgdeps/build-harman/qtapplicationmanager/src/common-lib/unixsignalhandler.cpp:145
      #7  QtAM::UnixSignalHandler::<lambda(int)>::_FUN(int) () at /data/jenkins/workspace/UISW-Carbon-UI/Ntgdeps/build-ntgdeps/build-harman/qtapplicationmanager/src/common-lib/unixsignalhandler.cpp:172
      #8  <signal handler called>
      #9  0x0000007fa1671acc in QQmlConnections::connectSignalsToMethods (this=this@entry=0x55bd40c8c0) at /usr/src/debug/qtdeclarative/5.15.7+gitAUTOINC+4757cac470-r0.2/git/src/qml/types/qqmlconnections.cpp:300
      #10 0x0000007fa1672674 in QQmlConnections::connectSignals (this=0x55bd40c8c0) at /usr/src/debug/qtdeclarative/5.15.7+gitAUTOINC+4757cac470-r0.2/git/src/qml/types/qqmlconnections.cpp:279
      #11 0x0000007fa161dd40 in QQmlObjectCreator::finalize (this=0x55bff8a9a0, interrupt=...) at /usr/src/debug/qtdeclarative/5.15.7+gitAUTOINC+4757cac470-r0.2/git/src/qml/qml/qqmlobjectcreator.cpp:1413
      #12 0x0000007fa15974e8 in QQmlComponentPrivate::complete (state=0x55bb904628, enginePriv=0x7f5c005520) at /usr/src/debug/qtdeclarative/5.15.7+gitAUTOINC+4757cac470-r0.2/git/src/qml/qml/qqmlcomponent.cpp:1000
      #13 QQmlComponentPrivate::complete (enginePriv=0x7f5c005520, state=0x55bb904628) at /usr/src/debug/qtdeclarative/5.15.7+gitAUTOINC+4757cac470-r0.2/git/src/qml/qml/qqmlcomponent.cpp:996
      #14 0x0000007fa159a2bc in QQmlComponentPrivate::completeCreate (this=0x55bb9045a0) at /usr/src/debug/qtdeclarative/5.15.7+gitAUTOINC+4757cac470-r0.2/git/src/qml/qml/qqmlcomponent.cpp:1092
      #15 QQmlComponentPrivate::completeCreate (this=0x55bb9045a0) at /usr/src/debug/qtdeclarative/5.15.7+gitAUTOINC+4757cac470-r0.2/git/src/qml/qml/qqmlcomponent.cpp:1082
      #16 0x0000007f941bfcf0 in MBDefaultListDelegateBase::updateEntry (this=this@entry=0x55baa441f0) at /data/jenkins/workspace/UISW-Carbon-UI/Release/carbon-release-build/carbon-ui/uikit/uisdk/src_wl/core/MBDefaultListDelegateBase.cpp:1139
      #17 0x0000007f941c1184 in MBDefaultListDelegateBase::componentComplete (this=0x55baa441f0) at /data/jenkins/workspace/UISW-Carbon-UI/Release/carbon-release-build/carbon-ui/uikit/uisdk/src_wl/core/MBDefaultListDelegateBase.cpp:766
      #18 0x0000007fa161dd40 in QQmlObjectCreator::finalize (this=0x55b2152520, interrupt=...) at /usr/src/debug/qtdeclarative/5.15.7+gitAUTOINC+4757cac470-r0.2/git/src/qml/qml/qqmlobjectcreator.cpp:1413
      #19 0x0000007fa159f6c0 in QQmlIncubatorPrivate::incubate (this=0x55baa83a70, i=...) at /usr/src/debug/qtdeclarative/5.15.7+gitAUTOINC+4757cac470-r0.2/git/src/qml/qml/qqmlincubator.cpp:364
      #20 0x0000007fa159fd38 in QQmlIncubationController::incubateFor (this=0x55a7a9dcc0, msecs=<optimized out>) at ../../include/QtQml/5.15.7/QtQml/private/../../../../../../git/src/qml/qml/ftw/qintrusivelist_p.h:216
      #21 0x0000007fa06f9db0 in doActivate<false> (sender=0x55a7a64d70, signal_index=3, argv=0x7ff7ad46b0) at ../../include/QtCore/../../../git/src/corelib/kernel/qobjectdefs_impl.h:395
      #22 0x0000007fa06f2c94 in QMetaObject::activate (sender=sender@entry=0x55a7a64d70, m=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at /usr/src/debug/qtbase/5.15.7+gitAUTOINC+dbf21da8a6-r0/git/src/corelib/kernel/qobject.cpp:3979
      #23 0x0000007fa19c1694 in QSGRenderLoop::timeToIncubate (this=this@entry=0x55a7a64d70) at .moc/moc_qsgrenderloop_p.cpp:131
      #24 0x0000007fa19e6904 in QSGThreadedRenderLoop::polishAndSync (this=this@entry=0x55a7a64d70, w=0x55a7ad14c0, inExpose=inExpose@entry=false) at /usr/src/debug/qtdeclarative/5.15.7+gitAUTOINC+4757cac470-r0.2/git/src/quick/scenegraph/qsgthreadedrenderloop.cpp:1621
      #25 0x0000007fa19e6f78 in QSGThreadedRenderLoop::handleUpdateRequest (this=0x55a7a64d70, window=0x55a7a648e0) at /usr/src/debug/qtdeclarative/5.15.7+gitAUTOINC+4757cac470-r0.2/git/src/quick/scenegraph/qsgthreadedrenderloop.cpp:1429
      #26 0x0000007fa1a4e7e4 in QQuickWindow::event (this=0x55a7a648e0, e=0x7ff7ad4920) at /usr/src/debug/qtdeclarative/5.15.7+gitAUTOINC+4757cac470-r0.2/git/src/quick/items/qquickwindow.cpp:1893
      #27 0x0000007fa06bf794 in QCoreApplication::notifyInternal2 (receiver=0x55a7a648e0, event=0x7ff7ad4920) at ../../include/QtCore/5.15.7/QtCore/private/../../../../../../git/src/corelib/thread/qthread_p.h:325
      #28 0x0000007fa0bc1f24 in QPlatformWindow::deliverUpdateRequest (this=<optimized out>) at /usr/src/debug/qtbase/5.15.7+gitAUTOINC+dbf21da8a6-r0/git/src/gui/kernel/qplatformwindow.cpp:796
      #29 QPlatformWindow::windowEvent (this=<optimized out>, event=<optimized out>) at /usr/src/debug/qtbase/5.15.7+gitAUTOINC+dbf21da8a6-r0/git/src/gui/kernel/qplatformwindow.cpp:476
      #30 0x0000007fa0bcec54 in QGuiApplication::notify (this=0x7ff7ad4d80, object=0x55a7a648e0, event=0x7ff7ad4a60) at /usr/src/debug/qtbase/5.15.7+gitAUTOINC+dbf21da8a6-r0/git/src/gui/kernel/qguiapplication.cpp:1932
      #31 0x0000007fa06bf794 in QCoreApplication::notifyInternal2 (receiver=0x55a7a648e0, event=0x7ff7ad4a60) at ../../include/QtCore/5.15.7/QtCore/private/../../../../../../git/src/corelib/thread/qthread_p.h:325
      #32 0x0000007fa071f1c8 in QTimerInfoList::activateTimers (this=0x55a76971a0) at /usr/src/debug/qtbase/5.15.7+gitAUTOINC+dbf21da8a6-r0/git/src/corelib/kernel/qtimerinfo_unix.cpp:643
      #33 0x0000007fa071fb6c in timerSourceDispatch (source=<optimized out>) at /usr/src/debug/qtbase/5.15.7+gitAUTOINC+dbf21da8a6-r0/git/src/corelib/kernel/qeventdispatcher_glib.cpp:183
      #34 idleTimerSourceDispatch (source=<optimized out>) at /usr/src/debug/qtbase/5.15.7+gitAUTOINC+dbf21da8a6-r0/git/src/corelib/kernel/qeventdispatcher_glib.cpp:230
      #35 0x0000007f9f5e5854 in g_main_dispatch (context=0x55a7694500) at ../glib-2.62.4/glib/gmain.c:3216
      #36 g_main_context_dispatch (context=context@entry=0x55a7694500) at ../glib-2.62.4/glib/gmain.c:3881
      #37 0x0000007f9f5e5ac0 in g_main_context_iterate (context=context@entry=0x55a7694500, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib-2.62.4/glib/gmain.c:3954
      #38 0x0000007f9f5e5b64 in g_main_context_iteration (context=0x55a7694500, may_block=1) at ../glib-2.62.4/glib/gmain.c:4015
      #39 0x0000007fa071fed4 in QEventDispatcherGlib::processEvents (this=0x55a7694080, flags=...) at /usr/src/debug/qtbase/5.15.7+gitAUTOINC+dbf21da8a6-r0/git/src/corelib/kernel/qeventdispatcher_glib.cpp:423
      #40 0x0000007fa06bde84 in QEventLoop::exec (this=this@entry=0x7ff7ad4cc8, flags=flags@entry=...) at ../../include/QtCore/../../../git/src/corelib/global/qflags.h:141
      #41 0x0000007fa06c6c30 in QCoreApplication::exec () at ../../include/QtCore/../../../git/src/corelib/global/qflags.h:121
      #42 0x0000005578a5153c in main (argc=<optimized out>, argv=<optimized out>) at /data/jenkins/workspace/UISW-Carbon-UI/Ntgdeps/build-ntgdeps/build-harman/qtapplicationmanager/src/tools/appman/appman.cpp:139
               
            
      
       

       

       

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            oserkindxc OLEKSANDR SERKIN
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes