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

Find usages crashes Qt Creator

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Out of scope
    • Affects Version/s: Qt Creator 3.0.0-beta
    • Fix Version/s: None
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None
    • Environment:
      qtbase 9087d4ed7bd81b97de90e0aa1844e9944c9d9be6 stable 29.10.2013

      Description

      Qt Creator crashes after using "Find usages".
      But it doesn't crash every time, so you possibly have to use it a few times.

      With debug symbols:

      Program received signal SIGABRT, Aborted.
      [Switching to Thread 0x7fff13fff700 (LWP 7137)]
      0x00007ffff420a3d9 in raise () from /usr/lib/libc.so.6
      (gdb) bt
      #0  0x00007ffff420a3d9 in raise () from /usr/lib/libc.so.6
      #1  0x00007ffff420b7d8 in abort () from /usr/lib/libc.so.6
      #2  0x00007ffff4247ed4 in __libc_message () from /usr/lib/libc.so.6
      #3  0x00007ffff424d69e in malloc_printerr () from /usr/lib/libc.so.6
      #4  0x00007ffff424e377 in _int_free () from /usr/lib/libc.so.6
      #5  0x00007ffff539a758 in QArrayData::deallocate (data=0x7fff0d42f850, objectSize=8, alignment=8)
          at qt5/qtbase/src/corelib/tools/qarraydata.cpp:125
      #6  0x00007ffff66b6c0b in QTypedArrayData<double>::deallocate (data=0x7fff0d42f850)
          at ../../include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qarraydata.h:230
      #7  0x00007ffff66b6227 in QVector<double>::freeData (this=0x7fff13ffec30, x=0x7fff0d42f850)
          at ../../include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qvector.h:453
      #8  0x00007ffff66b5e48 in QVector<double>::~QVector (this=0x7fff13ffec30, __in_chrg=<optimized out>)
          at ../../include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qvector.h:76
      #9  0x00007ffff66b6026 in QtConcurrent::Median<double>::median (this=0x7fff13ffece8)
          at ../../include/QtConcurrent/../../../../qt5/qtbase/src/concurrent/qtconcurrentmedian.h:108
      #10 0x00007ffff66b5ac2 in QtConcurrent::BlockSizeManager::timeAfterUser (this=0x7fff13ffecb0)
          at qt5/qtbase/src/concurrent/qtconcurrentiteratekernel.cpp:173
      #11 0x00007fffde8cdc37 in QtConcurrent::IterateKernel<QList<QString>::const_iterator, QList<CPlusPlus::Usage> >::forThreadFunction (this=0x7fff18cbb240)
          at qt5-build/qtbase/include/QtConcurrent/../../../../qt5/qtbase/src/concurrent/qtconcurrentiteratekernel.h:231
      #12 0x00007fffde8cd282 in QtConcurrent::IterateKernel<QList<QString>::const_iterator, QList<CPlusPlus::Usage> >::threadFunction (this=0x7fff18cbb240)
          at qt5-build/qtbase/include/QtConcurrent/../../../../qt5/qtbase/src/concurrent/qtconcurrentiteratekernel.h:192
      #13 0x00007ffff66b5364 in QtConcurrent::ThreadEngineBase::run (this=0x7fff18cbb2e8)
          at qt5/qtbase/src/concurrent/qtconcurrentthreadengine.cpp:264
      #14 0x00007ffff5392957 in QThreadPoolThread::run (this=0x7fff2c003c80) at qt5/qtbase/src/corelib/thread/qthreadpool.cpp:100
      #15 0x00007ffff5398bb7 in QThreadPrivate::start (arg=0x7fff2c003c80) at qt5/qtbase/src/corelib/thread/qthread_unix.cpp:345
      #16 0x00007ffff4da50a2 in start_thread () from /usr/lib/libpthread.so.0
      #17 0x00007ffff42ba42d in clone () from /usr/lib/libc.so.6
      
      Program received signal SIGSEGV, Segmentation fault.
      [Switching to Thread 0x7fff0effd700 (LWP 6671)]
      0x00007ffff66b734a in std::__unguarded_partition<double*, double> (__first=0x7fff00021000, __last=0x7fff00003440, __pivot=@0x7fff00003420: 40116)
          at /usr/include/c++/4.8.2/bits/stl_algo.h:2242
      2242		  while (*__first < __pivot)
      (gdb) bt
      #0  0x00007ffff66b734a in std::__unguarded_partition<double*, double> (__first=0x7fff00021000, __last=0x7fff00003440, __pivot=@0x7fff00003420: 40116)
          at /usr/include/c++/4.8.2/bits/stl_algo.h:2242
      #1  0x00007ffff66b6fdf in std::__unguarded_partition_pivot<double*> (__first=0x7fff00003420, __last=0x7fff00003440)
          at /usr/include/c++/4.8.2/bits/stl_algo.h:2283
      #2  0x00007ffff66b6dd0 in std::__introselect<double*, long> (__first=0x7fff00003420, __nth=0x7fff00003420, __last=0x7fff00003440, __depth_limit=2)
          at /usr/include/c++/4.8.2/bits/stl_algo.h:2365
      #3  0x00007ffff66b64a8 in std::nth_element<double*> (__first=0x7fff00003408, __nth=0x7fff00003420, __last=0x7fff00003440)
          at /usr/include/c++/4.8.2/bits/stl_algo.h:5377
      #4  0x00007ffff66b6003 in QtConcurrent::Median<double>::median (this=0x7fff0effcce8)
          at ../../include/QtConcurrent/../../../../qt5/qtbase/src/concurrent/qtconcurrentmedian.h:107
      #5  0x00007ffff66b5ac2 in QtConcurrent::BlockSizeManager::timeAfterUser (this=0x7fff0effccb0)
          at qt5/qtbase/src/concurrent/qtconcurrentiteratekernel.cpp:173
      #6  0x00007fffde8cdc37 in QtConcurrent::IterateKernel<QList<QString>::const_iterator, QList<CPlusPlus::Usage> >::forThreadFunction (this=0x7fff2d8d2430)
          at qt5-build/qtbase/include/QtConcurrent/../../../../qt5/qtbase/src/concurrent/qtconcurrentiteratekernel.h:231
      #7  0x00007fffde8cd282 in QtConcurrent::IterateKernel<QList<QString>::const_iterator, QList<CPlusPlus::Usage> >::threadFunction (this=0x7fff2d8d2430)
          at qt5-build/qtbase/include/QtConcurrent/../../../../qt5/qtbase/src/concurrent/qtconcurrentiteratekernel.h:192
      #8  0x00007ffff66b5364 in QtConcurrent::ThreadEngineBase::run (this=0x7fff2d8d24d8)
          at qt5/qtbase/src/concurrent/qtconcurrentthreadengine.cpp:264
      #9  0x00007ffff5392957 in QThreadPoolThread::run (this=0x7fff28119e70) at qt5/qtbase/src/corelib/thread/qthreadpool.cpp:100
      #10 0x00007ffff5398bb7 in QThreadPrivate::start (arg=0x7fff28119e70) at qt5/qtbase/src/corelib/thread/qthread_unix.cpp:345
      #11 0x00007ffff4da50a2 in start_thread () from /usr/lib/libpthread.so.0
      #12 0x00007ffff42ba42d in clone () from /usr/lib/libc.so.6
      

      Without debug symbols:

      Program received signal SIGSEGV, Segmentation fault.
      [Switching to Thread 0x7fff2dffb700 (LWP 27851)]
      0x00007ffff44dfb21 in _int_malloc () from /usr/lib/libc.so.6
      (gdb) bt
      #0  0x00007ffff44dfb21 in _int_malloc () from /usr/lib/libc.so.6
      #1  0x00007ffff44e1cc0 in malloc () from /usr/lib/libc.so.6
      #2  0x00007ffff4d8935d in operator new(unsigned long) () from /usr/lib/libstdc++.so.6
      #3  0x00007ffff57c1675 in QFSFileEngine::QFSFileEngine (this=0x7fff1403e2d0, file=...)
          at qt5/qtbase/src/corelib/io/qfsfileengine.cpp:142
      #4  0x00007ffff575a6e1 in QAbstractFileEngine::create (fileName=...) at qt5/qtbase/src/corelib/io/qabstractfileengine.cpp:215
      #5  0x00007ffff576edc0 in QFilePrivate::engine (this=0x7fff14014050) at qt5/qtbase/src/corelib/io/qfile.cpp:107
      #6  0x00007ffff577131b in QFile::open (this=0x7fff2dffa830, mode=...) at qt5/qtbase/src/corelib/io/qfile.cpp:879
      #7  0x00007ffff77127e2 in Utils::FileReader::fetch(QString const&, QFlags<QIODevice::OpenModeFlag>) ()
         from qtcreator/bin/../lib/qtcreator/libUtils.so.1
      #8  0x00007ffff7712c9f in Utils::FileReader::fetch(QString const&, QFlags<QIODevice::OpenModeFlag>, QString*) ()
         from qtcreator/bin/../lib/qtcreator/libUtils.so.1
      #9  0x00007ffff771502a in ?? () from qtcreator/bin/../lib/qtcreator/libUtils.so.1
      #10 0x00007fffdf00472c in ?? () from qtcreator/lib/qtcreator/plugins/QtProject/libCppTools.so
      #11 0x00007fffdf004a02 in ?? () from qtcreator/lib/qtcreator/plugins/QtProject/libCppTools.so
      #12 0x00007fffdf004d2e in ?? () from qtcreator/lib/qtcreator/plugins/QtProject/libCppTools.so
      #13 0x00007fffdf00ae1b in ?? () from qtcreator/lib/qtcreator/plugins/QtProject/libCppTools.so
      #14 0x00007ffff6715364 in QtConcurrent::ThreadEngineBase::run (this=0x7fff18022c08)
          at qt5/qtbase/src/concurrent/qtconcurrentthreadengine.cpp:264
      #15 0x00007ffff5623957 in QThreadPoolThread::run (this=0x7fff31094360) at qt5/qtbase/src/corelib/thread/qthreadpool.cpp:100
      #16 0x00007ffff5629bb7 in QThreadPrivate::start (arg=0x7fff31094360) at qt5/qtbase/src/corelib/thread/qthread_unix.cpp:345
      #17 0x00007ffff50360a2 in start_thread () from /usr/lib/libpthread.so.0
      #18 0x00007ffff454b42d in clone () from /usr/lib/libc.so.6
      
      Program received signal SIGSEGV, Segmentation fault.
      [Switching to Thread 0x7fff27fff700 (LWP 24096)]
      0x00007ffff44df1b8 in _int_free () from /usr/lib/libc.so.6
      (gdb) bt
      #0  0x00007ffff44df1b8 in _int_free () from /usr/lib/libc.so.6
      #1  0x00007ffff562b758 in QArrayData::deallocate (data=0x7fff2061b9d0, objectSize=8, alignment=8)
          at qt5/qtbase/src/corelib/tools/qarraydata.cpp:125
      #2  0x00007ffff6716c0b in QTypedArrayData<double>::deallocate (data=0x7fff2061b9d0)
          at ../../include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qarraydata.h:230
      #3  0x00007ffff6716227 in QVector<double>::freeData (this=0x7fff27ffec30, x=0x7fff2061b9d0)
          at ../../include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qvector.h:453
      #4  0x00007ffff6715e48 in QVector<double>::~QVector (this=0x7fff27ffec30, __in_chrg=<optimized out>)
          at ../../include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qvector.h:76
      #5  0x00007ffff6716026 in QtConcurrent::Median<double>::median (this=0x7fff27ffed28)
          at ../../include/QtConcurrent/../../../../qt5/qtbase/src/concurrent/qtconcurrentmedian.h:108
      #6  0x00007ffff6715ac2 in QtConcurrent::BlockSizeManager::timeAfterUser (this=0x7fff27ffecf0)
          at qt5/qtbase/src/concurrent/qtconcurrentiteratekernel.cpp:173
      #7  0x00007fffdf00ae26 in ?? () from qtcreator/lib/qtcreator/plugins/QtProject/libCppTools.so
      #8  0x00007ffff6715364 in QtConcurrent::ThreadEngineBase::run (this=0x7fff14002b08)
          at qt5/qtbase/src/concurrent/qtconcurrentthreadengine.cpp:264
      #9  0x00007ffff5623957 in QThreadPoolThread::run (this=0x43dc520) at qt5/qtbase/src/corelib/thread/qthreadpool.cpp:100
      #10 0x00007ffff5629bb7 in QThreadPrivate::start (arg=0x43dc520) at qt5/qtbase/src/corelib/thread/qthread_unix.cpp:345
      #11 0x00007ffff50360a2 in start_thread () from /usr/lib/libpthread.so.0
      #12 0x00007ffff454b42d in clone () from /usr/lib/libc.so.6
      

        Attachments

        1. backtrace.txt.gz
          259 kB
        2. valgrind.txt
          156 kB
        3. valgrind3.txt
          55 kB

          Issue Links

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

            Activity

              People

              Assignee:
              kosjar Nikolai Kosjar
              Reporter:
              mkrems Marcel Krems
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes