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

Clang: Crash when closing editor

    XMLWordPrintable

Details

    Description

      How to reproduce:
      Open Qt Creator 3.5 in Qt Creator. Open iphonesimulator.h. Close it.

      Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
      0   org.qt-project.QtCore         	0x000000010e0938bb QRegExp::isEmpty() const + 11
      1   libTextEditor_debug.dylib     	0x00000001162550e4 TextEditor::Internal::TextEditorWidgetPrivate::slotUpdateRequest(QRect const&, int) + 180 (texteditor.cpp:4659)
      2   libTextEditor_debug.dylib     	0x00000001162a3a28 QtPrivate::FunctorCall<QtPrivate::IndexesList<0, 1>, QtPrivate::List<QRect const&, int>, void, void (TextEditor::Internal::TextEditorWidgetPrivate::*)(QRect const&, int)>::call(void (TextEditor::Internal::TextEditorWidgetPrivate::*)(QRect const&, int), TextEditor::Internal::TextEditorWidgetPrivate*, void**) + 152 (qobjectdefs_impl.h:501)
      3   libTextEditor_debug.dylib     	0x00000001162a3980 void QtPrivate::FunctionPointer<void (TextEditor::Internal::TextEditorWidgetPrivate::*)(QRect const&, int)>::call<QtPrivate::List<QRect const&, int>, void>(void (TextEditor::Internal::TextEditorWidgetPrivate::*)(QRect const&, int), TextEditor::Internal::TextEditorWidgetPrivate*, void**) + 80 (qobjectdefs_impl.h:521)
      4   libTextEditor_debug.dylib     	0x00000001162a38a8 QtPrivate::QSlotObject<void (TextEditor::Internal::TextEditorWidgetPrivate::*)(QRect const&, int), QtPrivate::List<QRect const&, int>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) + 168 (qobject_impl.h:144)
      5   org.qt-project.QtCore         	0x000000010e1f239f QMetaObject::activate(QObject*, int, int, void**) + 1647
      6   org.qt-project.QtWidgets      	0x000000010d5106bc QPlainTextEditPrivate::_q_repaintContents(QRectF const&) + 236
      7   org.qt-project.QtCore         	0x000000010e1f28b9 QMetaObject::activate(QObject*, int, int, void**) + 2953
      8   org.qt-project.QtWidgets      	0x000000010d4fd727 QWidgetTextControl::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) + 1895
      9   org.qt-project.QtCore         	0x000000010e1f28b9 QMetaObject::activate(QObject*, int, int, void**) + 2953
      10  org.qt-project.QtGui          	0x000000010db3d7e5 QAbstractTextDocumentLayout::update(QRectF const&) + 53
      11  org.qt-project.QtWidgets      	0x000000010d50d785 QPlainTextDocumentLayout::requestUpdate() + 69
      12  libTextEditor_debug.dylib     	0x000000011624b69c TextEditor::TextDocument::removeMarkFromMarksCache(TextEditor::TextMark*) + 204 (textdocument.cpp:843)
      13  libTextEditor_debug.dylib     	0x000000011624bad1 TextEditor::TextDocument::removeMark(TextEditor::TextMark*) + 369 (textdocument.cpp:881)
      14  libTextEditor_debug.dylib     	0x0000000116401842 TextEditor::TextMark::~TextMark() + 98 (textmark.cpp:64)
      15  libClangCodeModel_debug.dylib 	0x000000011af5d935 ClangCodeModel::ClangTextMark::~ClangTextMark() + 21 (clangtextmark.h:40)
      16  libClangCodeModel_debug.dylib 	0x000000011af5d8e5 ClangCodeModel::ClangTextMark::~ClangTextMark() + 21 (clangtextmark.h:40)
      17  libClangCodeModel_debug.dylib 	0x000000011af554ea std::__1::__vector_base<ClangCodeModel::ClangTextMark, std::__1::allocator<ClangCodeModel::ClangTextMark> >::~__vector_base() + 282 (vector:443)
      18  libClangCodeModel_debug.dylib 	0x000000011af553c5 std::__1::vector<ClangCodeModel::ClangTextMark, std::__1::allocator<ClangCodeModel::ClangTextMark> >::~vector() + 21 (iterator:1233)
      19  libClangCodeModel_debug.dylib 	0x000000011af4a1b5 std::__1::vector<ClangCodeModel::ClangTextMark, std::__1::allocator<ClangCodeModel::ClangTextMark> >::~vector() + 21 (iterator:1233)
      20  libClangCodeModel_debug.dylib 	0x000000011af444a6 ClangCodeModel::Internal::ClangEditorDocumentProcessor::~ClangEditorDocumentProcessor() + 1238 (clangeditordocumentprocessor.cpp:115)
      21  libClangCodeModel_debug.dylib 	0x000000011af445c5 ClangCodeModel::Internal::ClangEditorDocumentProcessor::~ClangEditorDocumentProcessor() + 21 (clangeditordocumentprocessor.cpp:115)
      22  libClangCodeModel_debug.dylib 	0x000000011af445e9 ClangCodeModel::Internal::ClangEditorDocumentProcessor::~ClangEditorDocumentProcessor() + 25 (clangeditordocumentprocessor.cpp:106)
      23  libCppEditor_debug.dylib      	0x0000000118bac52e QScopedPointerDeleter<CppTools::BaseEditorDocumentProcessor>::cleanup(CppTools::BaseEditorDocumentProcessor*) + 46 (qscopedpointer.h:55)
      24  libCppEditor_debug.dylib      	0x0000000118bad078 QScopedPointer<CppTools::BaseEditorDocumentProcessor, QScopedPointerDeleter<CppTools::BaseEditorDocumentProcessor> >::~QScopedPointer() + 24 (qscopedpointer.h:101)
      25  libCppEditor_debug.dylib      	0x0000000118baa815 QScopedPointer<CppTools::BaseEditorDocumentProcessor, QScopedPointerDeleter<CppTools::BaseEditorDocumentProcessor> >::~QScopedPointer() + 21 (qscopedpointer.h:102)
      26  libCppEditor_debug.dylib      	0x0000000118c9bcd7 CppEditor::Internal::CppEditorDocument::~CppEditorDocument() + 71 (cppeditordocument.h:48)
      27  libCppEditor_debug.dylib      	0x0000000118c9bc35 CppEditor::Internal::CppEditorDocument::~CppEditorDocument() + 21 (cppeditordocument.h:48)
      28  libCppEditor_debug.dylib      	0x0000000118c9bc59 CppEditor::Internal::CppEditorDocument::~CppEditorDocument() + 25 (cppeditordocument.h:48)
      29  libTextEditor_debug.dylib     	0x0000000116295421 QtSharedPointer::CustomDeleter<TextEditor::TextDocument, QtSharedPointer::NormalDeleter>::execute() + 49 (qsharedpointer_impl.h:189)
      30  libTextEditor_debug.dylib     	0x00000001162950d4 QtSharedPointer::ExternalRefCountWithCustomDeleter<TextEditor::TextDocument, QtSharedPointer::NormalDeleter>::deleter(QtSharedPointer::ExternalRefCountData*) + 36 (qsharedpointer_impl.h:211)
      31  libTextEditor_debug.dylib     	0x000000011629459b QtSharedPointer::ExternalRefCountData::destroy() + 27 (qsharedpointer_impl.h:151)
      32  libTextEditor_debug.dylib     	0x00000001162a4b32 QSharedPointer<TextEditor::TextDocument>::deref(QtSharedPointer::ExternalRefCountData*) + 66 (qsharedpointer_impl.h:474)
      33  libTextEditor_debug.dylib     	0x00000001162a4ae9 QSharedPointer<TextEditor::TextDocument>::deref() + 25 (qsharedpointer_impl.h:467)
      34  libTextEditor_debug.dylib     	0x00000001162a4ab1 QSharedPointer<TextEditor::TextDocument>::~QSharedPointer() + 17 (qsharedpointer_impl.h:306)
      35  libTextEditor_debug.dylib     	0x0000000116287845 QSharedPointer<TextEditor::TextDocument>::~QSharedPointer() + 21 (qsharedpointer_impl.h:306)
      36  libTextEditor_debug.dylib     	0x0000000116293459 TextEditor::Internal::TextEditorWidgetPrivate::~TextEditorWidgetPrivate() + 537 (texteditor.cpp:261)
      37  libTextEditor_debug.dylib     	0x0000000116293205 TextEditor::Internal::TextEditorWidgetPrivate::~TextEditorWidgetPrivate() + 21 (texteditor.cpp:261)
      38  libTextEditor_debug.dylib     	0x0000000116293229 TextEditor::Internal::TextEditorWidgetPrivate::~TextEditorWidgetPrivate() + 25 (texteditor.cpp:259)
      39  libTextEditor_debug.dylib     	0x00000001162571b3 TextEditor::TextEditorWidget::~TextEditorWidget() + 83 (texteditor.cpp:766)
      40  libCppEditor_debug.dylib      	0x0000000118b9c0ff CppEditor::Internal::CppEditorWidget::~CppEditorWidget() + 79 (cppeditor.cpp:239)
      41  libCppEditor_debug.dylib      	0x0000000118b9c125 CppEditor::Internal::CppEditorWidget::~CppEditorWidget() + 21 (cppeditor.cpp:239)
      42  libCppEditor_debug.dylib      	0x0000000118b9c179 CppEditor::Internal::CppEditorWidget::~CppEditorWidget() + 25 (cppeditor.cpp:237)
      43  libTextEditor_debug.dylib     	0x0000000116280c70 TextEditor::BaseTextEditor::~BaseTextEditor() + 80 (texteditor.cpp:6930)
      44  libCppEditor_debug.dylib      	0x0000000118c9b295 CppEditor::Internal::CppEditor::~CppEditor() + 21 (cppeditor.h:54)
      45  libCppEditor_debug.dylib      	0x0000000118c9ae25 CppEditor::Internal::CppEditor::~CppEditor() + 21 (cppeditor.h:54)
      46  libCppEditor_debug.dylib      	0x0000000118c9ae49 CppEditor::Internal::CppEditor::~CppEditor() + 25 (cppeditor.h:54)
      47  libCore_debug.dylib           	0x00000001153f7124 Core::EditorManager::closeEditors(QList<Core::IEditor*> const&, bool) + 5044 (editormanager.cpp:2463)
      48  libCore_debug.dylib           	0x00000001153ff327 Core::EditorManager::closeDocuments(QList<Core::IDocument*> const&, bool) + 55 (editormanager.cpp:2764)
      49  libCore_debug.dylib           	0x00000001153faed9 Core::EditorManager::closeDocument(Core::IDocument*, bool) + 73 (editormanager.cpp:2759)
      50  libCore_debug.dylib           	0x00000001153fa9ef Core::Internal::EditorManagerPrivate::closeEditorOrDocument(Core::IEditor*) + 207 (editormanager.cpp:1314)
      51  libCore_debug.dylib           	0x00000001153ffe20 Core::EditorManager::slotCloseCurrentEditorOrDocument() + 112 (editormanager.cpp:2161)
      52  libCore_debug.dylib           	0x00000001155ee22a Core::EditorManager::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) + 474 (moc_editormanager.cpp:228)
      53  org.qt-project.QtCore         	0x000000010e1f28b9 QMetaObject::activate(QObject*, int, int, void**) + 2953
      54  org.qt-project.QtWidgets      	0x000000010d328360 QAction::triggered(bool) + 64
      55  libUtils_debug.1.dylib        	0x000000010cfcf0d3 QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<bool>, void, void (QAction::*)(bool)>::call(void (QAction::*)(bool), QAction*, void**) + 147 (qobjectdefs_impl.h:501)
      56  libUtils_debug.1.dylib        	0x000000010cfcf030 void QtPrivate::FunctionPointer<void (QAction::*)(bool)>::call<QtPrivate::List<bool>, void>(void (QAction::*)(bool), QAction*, void**) + 80 (qobjectdefs_impl.h:521)
      57  libUtils_debug.1.dylib        	0x000000010cfcef58 QtPrivate::QSlotObject<void (QAction::*)(bool), QtPrivate::List<bool>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) + 168 (qobject_impl.h:144)
      58  org.qt-project.QtCore         	0x000000010e1f239f QMetaObject::activate(QObject*, int, int, void**) + 1647
      59  org.qt-project.QtWidgets      	0x000000010d3281c0 QAction::activate(QAction::ActionEvent) + 288
      60  org.qt-project.QtCore         	0x000000010e1f28b9 QMetaObject::activate(QObject*, int, int, void**) + 2953
      61  org.qt-project.QtCore         	0x000000010e1eb5a3 QObject::event(QEvent*) + 755
      62  org.qt-project.QtWidgets      	0x000000010d3310a3 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 307
      63  org.qt-project.QtWidgets      	0x000000010d334396 QApplication::notify(QObject*, QEvent*) + 8022
      64  org.qt-project.QtCore         	0x000000010e1c2dbc QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 956
      65  libqcocoa.dylib               	0x000000011123352e QCocoaEventDispatcherPrivate::processPostedEvents() + 190
      66  libqcocoa.dylib               	0x0000000111233da1 QCocoaEventDispatcherPrivate::postedEventsSourceCallback(void*) + 33
      67  com.apple.CoreFoundation      	0x00007fff89d94a01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
      68  com.apple.CoreFoundation      	0x00007fff89d86b8d __CFRunLoopDoSources0 + 269
      69  com.apple.CoreFoundation      	0x00007fff89d861bf __CFRunLoopRun + 927
      70  com.apple.CoreFoundation      	0x00007fff89d85bd8 CFRunLoopRunSpecific + 296
      71  com.apple.HIToolbox           	0x00007fff88a5356f RunCurrentEventLoopInMode + 235
      72  com.apple.HIToolbox           	0x00007fff88a531ee ReceiveNextEventCommon + 179
      73  com.apple.HIToolbox           	0x00007fff88a5312b _BlockUntilNextEventMatchingListInModeWithFilter + 71
      74  com.apple.AppKit              	0x00007fff8d9948ab _DPSNextEvent + 978
      75  com.apple.AppKit              	0x00007fff8d993e58 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346
      76  com.apple.AppKit              	0x00007fff8d989af3 -[NSApplication run] + 594
      77  libqcocoa.dylib               	0x0000000111232cfa QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2266
      78  org.qt-project.QtCore         	0x000000010e1bf84c QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 412
      79  org.qt-project.QtCore         	0x000000010e1c269a QCoreApplication::exec() + 346
      80  org.qt-project.qtcreator      	0x000000010cdc93bb main + 13291 (main.cpp:528)
      81  org.qt-project.qtcreator      	0x000000010cdc2324 start + 52
      

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-15010
        # Subject Branch Project Status CR V

        Activity

          People

            davschul David Schulz
            con Eike Ziller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes