Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-16592

segfault on code editor events

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • Qt Creator 4.0.3
    • All Other Issues
    • None
    • Linux Mint 18 (Ubuntu 16.04)

    Description

      I get a segmentation fault when creating a new project while the first file with code appears (mainwindow.cpp). Similar segfault also occurs when opening an existing project/file and entering some blank lines.

      It seems to be related to event handling in the code editor. I also tried several old versions of Qt and QtCreator, but always got segfaults. On Linux Mint 17 I never had these problems, so I think it's somehow related to Mint 18 / Ubuntu 16.04.

      I installed QtCreator and Qt with `qt-unified-linux-x64-2.0.3-1-online.run`

      Thread 1 "qtcreator" received signal SIGSEGV, Segmentation fault.
      0x00007ffff5babe08 in QSortFilterProxyModel::parent(QModelIndex const&) const ()
         from /home/bart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      (gdb) bt full
      #0  0x00007ffff5babe08 in QSortFilterProxyModel::parent(QModelIndex const&) const ()
         from /home/bart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      No symbol table info available.
      #1  0x00007ffff715afbb in QTreeView::isIndexHidden(QModelIndex const&) const ()
         from /home/bart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      No symbol table info available.
      #2  0x00007ffff715d88f in QTreeView::visualRect(QModelIndex const&) const ()
         from /home/bart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      No symbol table info available.
      #3  0x00007ffff7107dfa in ?? () from /home/bart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      No symbol table info available.
      #4  0x00007ffff710870a in ?? () from /home/bart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      No symbol table info available.
      #5  0x00007fffee511b59 in ?? ()
         from /home/bart/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libQt5XcbQpa.so.5
      No symbol table info available.
      #6  0x00007fffee5122bb in ?? ()
         from /home/bart/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libQt5XcbQpa.so.5
      No symbol table info available.
      #7  0x00007fffee51673c in ?? ()
         from /home/bart/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libQt5XcbQpa.so.5
      No symbol table info available.
      #8  0x00007fffed053ece in ?? ()
         from /home/bart/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libQt5DBus.so.5
      No symbol table info available.
      #9  0x00007fffed056c0e in ?? ()
         from /home/bart/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libQt5DBus.so.5
      No symbol table info available.
      #10 0x00007ffff5c0461a in QObject::event(QEvent*) ()
         from /home/bart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      No symbol table info available.
      #11 0x00007ffff6ee552c in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
         from /home/bart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      No symbol table info available.
      #12 0x00007ffff6eec220 in QApplication::notify(QObject*, QEvent*) ()
         from /home/bart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      No symbol table info available.
      #13 0x00007ffff5bdbae0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) ()
         from /home/bart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      No symbol table info available.
      #14 0x00007ffff5bde51b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
         from /home/bart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      No symbol table info available.
      #15 0x00007ffff5c28c53 in ?? () from /home/bart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      No symbol table info available.
      #16 0x00007ffff15551a7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
      No symbol table info available.
      #17 0x00007ffff1555400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
      No symbol table info available.
      #18 0x00007ffff15554ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
      No symbol table info available.
      #19 0x00007ffff5c29047 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
         from /home/bart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      No symbol table info available.
      #20 0x00007ffff5bd9dca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
         from /home/bart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      No symbol table info available.
      #21 0x00007ffff5be1bad in QCoreApplication::exec() ()
         from /home/bart/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      No symbol table info available.
      #22 0x00000000004091d1 in ?? ()
      No symbol table info available.
      #23 0x00007ffff4892830 in __libc_start_main (main=0x406730, argc=1, argv=0x7fffffffdf98, init=<optimized out>, 
          fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdf88) at ../csu/libc-start.c:291
              result = <optimized out>
      ---Type <return> to continue, or q <return> to quit---
              unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, 8334688695155789095, 4233728, 140737488347024, 0, 0, 
                      -8334689255410791129, -8334708643133289177}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x1, 
                    0x406730}, data = {prev = 0x0, cleanup = 0x0, canceltype = 1}}}
              not_first_call = <optimized out>
      #24 0x0000000000409a29 in ?? ()
      No symbol table info available.
      #25 0x00007fffffffdf88 in ?? ()
      No symbol table info available.
      #26 0x000000000000001c in ?? ()
      No symbol table info available.
      #27 0x0000000000000001 in ?? ()
      No symbol table info available.
      #28 0x00007fffffffe2f4 in ?? ()
      No symbol table info available.
      #29 0x0000000000000000 in ?? ()
      No symbol table info available.
      

      Attachments

        Issue Links

          Activity

            People

              con Eike Ziller
              bart Bart Slinger
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: