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

Frequent crashes on use of Find Usages

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 3.0.0-rc1
    • C/C++/Obj-C++ Support
    • None
    • Arch Linux (64-bit)
      gcc (GCC) 4.8.2
      Qt 5 build (branch stable)
      Qt Creator build (branch 3.0)

    Description

      I have been using the QtC built from branch 3.0 for more than a month now and it quite often crashes for me after I use "Find Usages" feature against a current symbol under cursor.

      I haven't noticed any patterns yet, it happens randomly but regularly.
      So, I decided to run Qt Creator under debugger and use as normal, after a while it crashed again. Here is backtrace:

      Program received signal SIGABRT, Aborted.
      [Switching to Thread 0x7fff2a2ea700 (LWP 6487)]
      0x00007ffff42c23d9 in raise () from /usr/lib/libc.so.6
      (gdb) bt
      #0  0x00007ffff42c23d9 in raise () from /usr/lib/libc.so.6
      #1  0x00007ffff42c37d8 in abort () from /usr/lib/libc.so.6
      #2  0x00007ffff42ffe64 in __libc_message () from /usr/lib/libc.so.6
      #3  0x00007ffff430562e in malloc_printerr () from /usr/lib/libc.so.6
      #4  0x00007ffff4306307 in _int_free () from /usr/lib/libc.so.6
      #5  0x00007ffff5382758 in QArrayData::deallocate (data=0x7fff200e90c0, objectSize=8, alignment=8) at tools/qarraydata.cpp:125
      #6  0x00007ffff6693c0b in QTypedArrayData<double>::deallocate (data=0x7fff200e90c0) at ../../include/QtCore/../../src/corelib/tools/qarraydata.h:230
      #7  0x00007ffff6693227 in QVector<double>::freeData (this=0x7fff2a2e9960, x=0x7fff200e90c0) at ../../include/QtCore/../../src/corelib/tools/qvector.h:453
      #8  0x00007ffff6692e48 in QVector<double>::~QVector (this=0x7fff2a2e9960, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qvector.h:76
      #9  0x00007ffff6693026 in QtConcurrent::Median<double>::median (this=0x7fff2a2e9a18) at ../../include/QtConcurrent/../../src/concurrent/qtconcurrentmedian.h:108
      #10 0x00007ffff6692ac2 in QtConcurrent::BlockSizeManager::timeAfterUser (this=0x7fff2a2e99e0) at qtconcurrentiteratekernel.cpp:173
      #11 0x00007fffd84caf59 in QtConcurrent::IterateKernel<QList<QString>::const_iterator, QList<CPlusPlus::Usage> >::forThreadFunction (this=0x7fff200727d0)
          at /home/mloskot/dev/qt/_git/qt5/qtbase/include/QtConcurrent/../../src/concurrent/qtconcurrentiteratekernel.h:231
      #12 0x00007fffd84ca5a4 in QtConcurrent::IterateKernel<QList<QString>::const_iterator, QList<CPlusPlus::Usage> >::threadFunction (this=0x7fff200727d0)
          at /home/mloskot/dev/qt/_git/qt5/qtbase/include/QtConcurrent/../../src/concurrent/qtconcurrentiteratekernel.h:192
      #13 0x00007ffff6691f9d in QtConcurrent::ThreadEngineBase::startBlocking (this=0x7fff20072878) at qtconcurrentthreadengine.cpp:151
      #14 0x00007fffd84c8ea8 in QtConcurrent::ThreadEngine<QList<CPlusPlus::Usage> >::startBlocking (this=0x7fff200727d0)
          at /home/mloskot/dev/qt/_git/qt5/qtbase/include/QtConcurrent/../../src/concurrent/qtconcurrentthreadengine.h:156
      #15 0x00007fffd84c7c36 in QtConcurrent::ThreadEngineStarter<QList<CPlusPlus::Usage> >::startBlocking (this=0x7fff2a2e9b90)
          at /home/mloskot/dev/qt/_git/qt5/qtbase/include/QtConcurrent/../../src/concurrent/qtconcurrentthreadengine.h:243
      #16 0x00007fffd84c27de in QtConcurrent::blockingMappedReduced<QList<CPlusPlus::Usage>, QStringList, (anonymous namespace)::ProcessFile, (anonymous namespace)::UpdateUI> (
          sequence=..., map=..., reduce=..., options=...) at /home/mloskot/dev/qt/_git/qt5/qtbase/include/QtConcurrent/../../src/concurrent/qtconcurrentmap.h:217
      #17 0x00007fffd84bf4bf in find_helper (future=..., workingCopy=..., context=..., findRefs=0xc42830, symbol=0x7fff242ac340)
          at /home/mloskot/dev/qt/_git/qt-creator/src/plugins/cpptools/cppfindreferences.cpp:311
      #18 0x00007fffd84ca82e in QtConcurrent::StoredInterfaceFunctionCall4<CPlusPlus::Usage, void (*)(QFutureInterface<CPlusPlus::Usage>&, CppTools::CppModelManagerInterface::WorkingCopy, CPlusPlus::LookupContext, CppTools::Internal::CppFindReferences*, CPlusPlus::Symbol*), CppTools::CppModelManagerInterface::WorkingCopy, CPlusPlus::LookupContext, CppTools::Internal::CppFindReferences*, CPlusPlus::Symbol*>::run (this=0x36ad9d0) at /home/mloskot/dev/qt/_git/qt-creator/src/libs/utils/runextensions.h:266
      #19 0x00007ffff537a957 in QThreadPoolThread::run (this=0x2095d40) at thread/qthreadpool.cpp:100
      #20 0x00007ffff5380bb7 in QThreadPrivate::start (arg=0x2095d40) at thread/qthread_unix.cpp:345
      #21 0x00007ffff4e5d0a2 in start_thread () from /usr/lib/libpthread.so.0
      #22 0x00007ffff437249d in clone () from /usr/lib/libc.so.6
      (gdb) 
      

      I've searched the Issues for QtConcurrent::StoredInterfaceFunctionCall4 and CPlusPlus::Usage, nothing similar to my report appeared, so I'm submitting this issue hoping it won't be a duplicate.

      Attachments

        Issue Links

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

          Activity

            People

              kosjar Nikolai Kosjar
              mloskot Mateusz Loskot
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes