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

Qt app randomly crashes inside QCoreApplicationPrivate::sendPostedEvents:1632

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.6.2
    • Core: Event loop
    • None
    • Other

    Description

      Line in which crash happens (qcoreapplication.cpp:1632):

      --r->d_func()->postedEvent;

      r variable contains a non-null pointer to QObject - most likely r contains reference to QObject that has been deleted

      Stack trace:

      #0  QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x7fb71e5c00)
          at src/corelib/kernel/qcoreapplication.cpp:1632
      #1  0x0000007f6b3a8fe4 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0)
          at src/corelib/kernel/qcoreapplication.cpp:1508
      #2  0x0000007f6b3fa088 in postEventSourceDispatch (s=0x7fb71e60d0)
          at src/corelib/kernel/qeventdispatcher_glib.cpp:270
      #3  0x0000007f6a790648 in g_main_dispatch (context=0x7fb728e6c0) at glib-2.0/1_2.42.1-r0/glib-2.42.1/glib/gmain.c:3111
      #4  g_main_context_dispatch (context=context@entry=0x7fb728e6c0) at glib-2.0/1_2.42.1-r0/glib-2.42.1/glib/gmain.c:3710
      #5  0x0000007f6a790894 in g_main_context_iterate (context=context@entry=0x7fb728e6c0, block=block@entry=1, dispatch=dispatch@entry=1, 
          self=<optimized out>) at glib-2.0/1_2.42.1-r0/glib-2.42.1/glib/gmain.c:3781
      #6  0x0000007f6a790948 in g_main_context_iteration (context=0x7fb728e6c0, may_block=1)
          at glib-2.0/1_2.42.1-r0/glib-2.42.1/glib/gmain.c:3842
      #7  0x0000007f6b3fa460 in QEventDispatcherGlib::processEvents (this=0x7fb7217ae0, flags=...)
          at src/corelib/kernel/qeventdispatcher_glib.cpp:417
      #8  0x0000007f6b3a445c in QEventLoop::exec (this=this@entry=0x7fe389e548, flags=..., flags@entry=...)
          at src/corelib/kernel/qeventloop.cpp:206
      #9  0x0000007f6b3ac3ac in QCoreApplication::exec ()
          at src/corelib/kernel/qcoreapplication.cpp:1285
      #10 0x0000007f6bc9a6bc in QGuiApplication::exec ()
          atsrc/gui/kernel/qguiapplication.cpp:1611
      #11 0x0000007f6ea6c4a4 in main (argc=0, argv=<optimized out>) at main.cpp:451 

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            diredko diredko
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes