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

Double free when using 'Find usages'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 3.0.0-beta
    • C/C++/Obj-C++ Support
    • None

    Description

      When I use qtcreator on qtbase, and try to use the 'Find usages' method, qtcreator often crashes. It appears to be on a double free.

      The last output to the console is:

          • Error in `/src/qt-creator/build/bin/qtcreator': double free or corruption (!prev): 0x00007ffe90077750 ***
          • Error in `/src/qt-creator/build/bin/qtcreator': double free or corruption (!prev): 0x00007ffe7f6d79e0 ***
          • Error in `/src/qt-creator/build/bin/qtcreator': double free or corruption (!prev): 0x00007ffeb44fb970 ***
          • Error in `/src/qt-creator/build/bin/qtcreator': double free or corruption (!prev): 0x00007ffe8c092170 ***

      Reproducing the crash in gdb has given me the following backtrace:
      #3 0x00007ffff44d2ac6 in malloc_printerr (action=3, str=0x7ffff45c4e30 "double free or corruption (!prev)", ptr=<optimized out>) at malloc.c:4902
      #4 0x00007ffff44d3843 in _int_free (av=<optimized out>, p=0x7ffe8c092160, have_lock=0) at malloc.c:3758
      #5 0x00007ffff5546b4c in QArrayData::deallocate (data=0x7ffe8c092170, objectSize=8, alignment=8) at tools/qarraydata.cpp:125
      #6 0x00007ffff6694bbf in QTypedArrayData<double>::deallocate (data=0x7ffe8c092170) at ../../include/QtCore/../../src/corelib/tools/qarraydata.h:230
      #7 0x00007ffff66941db in QVector<double>::freeData (this=0x7ffea0ff8c00, x=0x7ffe8c092170) at ../../include/QtCore/../../src/corelib/tools/qvector.h:453
      #8 0x00007ffff6693e26 in QVector<double>::~QVector (this=0x7ffea0ff8c00, __in_chrg=<optimized out>)
      at ../../include/QtCore/../../src/corelib/tools/qvector.h:76
      #9 0x00007ffff6693fda in QtConcurrent::Median<double>::median (this=0x7ffea0ff8cb8)
      at ../../include/QtConcurrent/../../src/concurrent/qtconcurrentmedian.h:108
      #10 0x00007ffff6693aa0 in QtConcurrent::BlockSizeManager::timeAfterUser (this=0x7ffea0ff8c80) at qtconcurrentiteratekernel.cpp:173
      #11 0x00007fffe16cccc7 in QtConcurrent::IterateKernel<QList<QString>::const_iterator, QList<CPlusPlus::Usage> >::forThreadFunction (this=0x7ffe7f6fba70)
      at /src/qt5/qtbase/include/QtConcurrent/../../src/concurrent/qtconcurrentiteratekernel.h:231
      #12 0x00007fffe16cc312 in QtConcurrent::IterateKernel<QList<QString>::const_iterator, QList<CPlusPlus::Usage> >::threadFunction (this=0x7ffe7f6fba70)
      at /src/qt5/qtbase/include/QtConcurrent/../../src/concurrent/qtconcurrentiteratekernel.h:192
      #13 0x00007ffff6693342 in QtConcurrent::ThreadEngineBase::run (this=0x7ffe7f6fbb18) at qtconcurrentthreadengine.cpp:264
      #14 0x00007ffff553ed51 in QThreadPoolThread::run (this=0x19c5650) at thread/qthreadpool.cpp:100
      #15 0x00007ffff5544fad in QThreadPrivate::start (arg=0x19c5650) at thread/qthread_unix.cpp:345
      #16 0x00007ffff5023e0e in start_thread (arg=0x7ffea0ff9700) at pthread_create.c:311
      #17 0x00007ffff454095d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

      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
              allan.jensen Allan Sandfeld Jensen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes