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

Crash in syntax highlighting on loading CMakeLists.txt

    XMLWordPrintable

    Details

    • Commits:
      4ccbbc2f24 (qt-creator/qt-creator/master) 2b0a4a1245 (qt-creator/qt-creator/6.0) 2b0a4a1245 (qt-creator/qt-creator/master) 2b0a4a1245 (qt-creator/qt-creator/qmlprojectstorage) 4ccbbc2f24 (qt-creator/qt-creator/qmlprojectstorage)

      Description

      Once on loading a CMakeLists.txt file. Following crash observed

      Thread 1 "qtcreator" received signal SIGSEGV, Segmentation fault.
      0x00007fffe9651467 in std::__atomic_base<int>::operator++() () from /src/qt-creator/lib/qtcreator/plugins/libTextEditor.so
      (gdb) bt
      #0  0x00007fffe9651467 in std::__atomic_base<int>::operator++() () from /src/qt-creator/lib/qtcreator/plugins/libTextEditor.so
      #1  0x00007fffe96507ed in bool QAtomicOps<int>::ref<int>(std::atomic<int>&) () from /src/qt-creator/lib/qtcreator/plugins/libTextEditor.so
      #2  0x00007fffe964eb4e in QBasicAtomicInteger<int>::ref() () from /src/qt-creator/lib/qtcreator/plugins/libTextEditor.so
      #3  0x00007fffe9649860 in QArrayData::ref() () from /src/qt-creator/lib/qtcreator/plugins/libTextEditor.so
      #4  0x00007fffe972782d in QArrayDataPointer<KSyntaxHighlighting::Definition>::ref() () from /src/qt-creator/lib/qtcreator/plugins/libTextEditor.so
      #5  0x00007fffe972710a in QArrayDataPointer<KSyntaxHighlighting::Definition>::QArrayDataPointer(QArrayDataPointer<KSyntaxHighlighting::Definition> const&)
          () from /src/qt-creator/lib/qtcreator/plugins/libTextEditor.so
      #6  0x00007fffe9726815 in QList<KSyntaxHighlighting::Definition>::QList(QList<KSyntaxHighlighting::Definition> const&) ()
         from /src/qt-creator/lib/qtcreator/plugins/libTextEditor.so
      #7  0x00007fffe972683f in QList<KSyntaxHighlighting::Definition>::toList() const () from /src/qt-creator/lib/qtcreator/plugins/libTextEditor.so
      #8  0x00007fffe97231f0 in TextEditor::Highlighter::definitionsForFileName(Utils::FilePath const&) ()
         from /src/qt-creator/lib/qtcreator/plugins/libTextEditor.so
      #9  0x00007fffe9722921 in TextEditor::Highlighter::definitionsForDocument(TextEditor::TextDocument const*) ()
         from /src/qt-creator/lib/qtcreator/plugins/libTextEditor.so
      #10 0x00007fffe97d9812 in TextEditor::TextEditorWidget::configureGenericHighlighter() () from /src/qt-creator/lib/qtcreator/plugins/libTextEditor.so
      #11 0x00007fffe97b8636 in TextEditor::Internal::TextEditorWidgetPrivate::reconfigure() () from /src/qt-creator/lib/qtcreator/plugins/libTextEditor.so
      #12 0x00007fffe980a2d7 in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (TextEditor::Internal::TextEditorWidgetPrivate::*)()>::call(void (TextEditor::Internal::TextEditorWidgetPrivate::*)(), TextEditor::Internal::TextEditorWidgetPrivate*, void**) ()
         from /src/qt-creator/lib/qtcreator/plugins/libTextEditor.so
      #13 0x00007fffe980356d in void QtPrivate::FunctionPointer<void (TextEditor::Internal::TextEditorWidgetPrivate::*)()>::call<QtPrivate::List<>, void>(void (TextEditor::Internal::TextEditorWidgetPrivate::*)(), TextEditor::Internal::TextEditorWidgetPrivate*, void**) ()
         from /src/qt-creator/lib/qtcreator/plugins/libTextEditor.so
      #14 0x00007fffe97fc55f in QtPrivate::QSlotObject<void (TextEditor::Internal::TextEditorWidgetPrivate::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) () from /src/qt-creator/lib/qtcreator/plugins/libTextEditor.so
      #15 0x00007ffff633d558 in QtPrivate::QSlotObjectBase::call (a=0x7fffffffb660, r=0x55555776c1c0, this=<optimized out>)
          at qtbase/include/QtCore/../../../../qtbase/src/corelib/kernel/qobjectdefs_impl.h:375
      #16 doActivate<false> (sender=0x55555b4b9c70, signal_index=8, argv=0x7fffffffb660) at ../qtbase/src/corelib/kernel/qobject.cpp:3908
      #17 0x00007fffe9b2818c in Core::IDocument::filePathChanged(Utils::FilePath const&, Utils::FilePath const&) ()
         from /src/qt-creator/lib/qtcreator/plugins/libCore.so
      #18 0x00007fffe9d890da in Core::IDocument::setFilePath(Utils::FilePath const&) () from /src/qt-creator/lib/qtcreator/plugins/libCore.so
      #19 0x00007fffe979972c in TextEditor::TextDocument::setFilePath(Utils::FilePath const&) () from /src/qt-creator/lib/qtcreator/plugins/libTextEditor.so
      #20 0x00007fffe9799dae in TextEditor::TextDocument::openImpl(QString*, Utils::FilePath const&, Utils::FilePath const&, bool) ()
         from /src/qt-creator/lib/qtcreator/plugins/libTextEditor.so
      #21 0x00007fffe979986b in TextEditor::TextDocument::open(QString*, Utils::FilePath const&, Utils::FilePath const&) ()
         from /src/qt-creator/lib/qtcreator/plugins/libTextEditor.so
      #22 0x00007fffe9c743ca in Core::Internal::EditorManagerPrivate::openEditor(Core::Internal::EditorView*, Utils::FilePath const&, Utils::Id, QFlags<Core::EditorManager::OpenEditorFlag>, bool*) () from /src/qt-creator/lib/qtcreator/plugins/libCore.so
      #23 0x00007fffe9c813d8 in Core::EditorManager::openEditor(Utils::FilePath const&, Utils::Id, QFlags<Core::EditorManager::OpenEditorFlag>, bool*) ()
         from /src/qt-creator/lib/qtcreator/plugins/libCore.so
      #24 0x00007fffe9da3f81 in Core::BaseFileFilter::openEditorAt(Core::LocatorFilterEntry const&) () from /src/qt-creator/lib/qtcreator/plugins/libCore.so
      #25 0x00007fffe9df10f6 in Core::Internal::OpenDocumentsFilter::accept(Core::LocatorFilterEntry, QString*, int*, int*) const ()
         from /src/qt-creator/lib/qtcreator/plugins/libCore.so
      #26 0x00007fffe9de869d in Core::Internal::LocatorWidget::acceptEntry(int) () from /src/qt-creator/lib/qtcreator/plugins/libCore.so
      #27 0x00007fffe9de8361 in Core::Internal::LocatorWidget::scheduleAcceptEntry(QModelIndex const&) () from /src/qt-creator/lib/qtcreator/plugins/libCore.so
      #28 0x00007fffe9de4e38 in Core::Internal::LocatorPopup::LocatorPopup(Core::Internal::LocatorWidget*, QWidget*)::{lambda(QModelIndex const&)#3}::operator()(QModelIndex const&) const () from /src/qt-creator/lib/qtcreator/plugins/libCore.so
      #29 0x00007fffe9deaa89 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<QModelIndex const&>, void, Core::Internal::LocatorPopup::LocatorPopup(Core::Internal::LocatorWidget*, QWidget*)::{lambda(QModelIndex const&)#3}>::call(Core::Internal::LocatorPopup::LocatorPopup(Core::Internal::LocatorWidget*, QWidget*)::{lambda(QModelIndex const&)#3}&, void**) () from /src/qt-creator/lib/qtcreator/plugins/libCore.so
      #30 0x00007fffe9dea66f in void QtPrivate::Functor<Core::Internal::LocatorPopup::LocatorPopup(Core::Internal::LocatorWidget*, QWidget*)::{lambda(QModelIndex const&)#3}, 1>::call<QtPrivate::List<QModelIndex const&>, void>(Core::Internal::LocatorPopup::LocatorPopup(Core::Internal::LocatorWidget*, QWidget*)::{lambda(QModelIndex const&)#3}&, void*, void**) () from /src/qt-creator/lib/qtcreator/plugins/libCore.so
      #31 0x00007fffe9dea268 in QtPrivate::QFunctorSlotObject<Core::Internal::LocatorPopup::LocatorPopup(Core::Internal::LocatorWidget*, QWidget*)::{lambda(QModelIndex const&)#3}, 1, QtPrivate::List<QModelIndex const&>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) ()
         from /src/qt-creator/lib/qtcreator/plugins/libCore.so
      #32 0x00007ffff633d558 in QtPrivate::QSlotObjectBase::call (a=0x7fffffffc200, r=0x555556040150, this=<optimized out>)
          at qtbase/include/QtCore/../../../../qtbase/src/corelib/kernel/qobjectdefs_impl.h:375
      #33 doActivate<false> (sender=0x5555560358b0, signal_index=10, argv=argv@entry=0x7fffffffc200) at ../qtbase/src/corelib/kernel/qobject.cpp:3908
      #34 0x00007ffff6334a28 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7ffff792a340 <QAbstractItemView::staticMetaObject>,
          local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7fffffffc200) at ../qtbase/src/corelib/kernel/qobject.cpp:3968
      #35 0x00007ffff761a8e9 in QAbstractItemView::activated (this=<optimized out>, _t1=...)
          at qtbase/src/widgets/Widgets_autogen/include/moc_qabstractitemview.cpp:645
      #36 0x00007fffe9de59f7 in Core::Internal::CompletionList::keyPressEvent(QKeyEvent*) () from /src/qt-creator/lib/qtcreator/plugins/libCore.so
      #37 0x00007ffff73a7aa9 in QWidget::event (this=this@entry=0x5555560358b0, event=event@entry=0x7fffffffcc50)
          at ../qtbase/src/widgets/kernel/qwidget.cpp:8730
      #38 0x00007ffff7443cf6 in QFrame::event (this=0x5555560358b0, e=0x7fffffffcc50) at ../qtbase/src/widgets/widgets/qframe.cpp:550
      #39 0x00007ffff734cf96 in QApplicationPrivate::notify_helper (this=this@entry=0x5555555bcdf0, receiver=receiver@entry=0x5555560358b0,
          e=e@entry=0x7fffffffcc50) at ../qtbase/src/widgets/kernel/qapplication.cpp:3409
      #40 0x00007ffff735664c in QApplication::notify (this=<optimized out>, receiver=0x5555560358b0, e=0x7fffffffcc50)
          at ../qtbase/src/widgets/kernel/qapplication.cpp:2789
      

        Attachments

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

          Activity

            People

            Assignee:
            allan.jensen Allan Sandfeld Jensen
            Reporter:
            allan.jensen Allan Sandfeld Jensen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes