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

Quasselcore randomly segfaults in QCoreApplication::notifyInternal2 in with Qt 5.12.0beta1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 5.12.6
    • 5.12.0 Beta 1
    • Core: Event loop
    • None
    • Linux x86_64

    Description

      I tried to run a Quassel core (the latest git revision) against Qt 5.12.0beta1 and I get seemingly random crashes.  If I run it normally, it exits with status 1, but if I run it in GDB, it crashes with signal 11.  Here is a stacktrace I captured from one of the crashes:

      #0  QCoreApplication::notifyInternal2 (receiver=0x7ff8d003eccf, event=0x7ff8de78abf0) at kernel/qcoreapplication.cpp:1053 
      #1  0x00007ff8e5e70805 in socketNotifierSourceDispatch (source=0x7ff8d0004820) at kernel/qeventdispatcher_glib.cpp:106 
      #2  0x00007ff8e4b31c3e in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 
      #3  0x00007ff8e4b31ed8 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 
      #4  0x00007ff8e4b31f6c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 
      #5  0x00007ff8e5e6fbf3 in QEventDispatcherGlib::processEvents (this=0x7ff8d0000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:422 
      #6  0x00007ff8e5e1a3fb in QEventLoop::exec (this=this@entry=0x7ff8de78ae20, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140 
      #7  0x00007ff8e5c64596 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120 
      #8  0x00007ff8e5c658e2 in QThreadPrivate::start (arg=0x55beab4b3380) at thread/qthread_unix.cpp:361 
      #9  0x00007ff8e5801164 in start_thread (arg=<optimized out>) at pthread_create.c:486 
      #10 0x00007ff8e5934def in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      If I revert to Qt 5.11.x, the issue no longer occurs.  (In both cases, Quassel is both compiled and running against the same Qt version.)

      Attachments

        1. asan_symbolized.log
          12 kB
        2. asan.log
          11 kB
        3. gdb_qtextcodec_destructor_breakpoint.txt
          55 kB
        4. gdb.txt
          38 kB
        5. valgrind_safe_exit.txt
          81 kB
        6. valgrind.txt
          37 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Eddy Edward Welbourne
            mamarley Michael Marley
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes