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

Segfault in Clang Code model

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 4.6.0-beta1
    • C/C++/Obj-C++ Support
    • None
    • OSX 10.12.6

    Description

      In a recent nightly (4.5.82)... I was just typing and got the following segfault. The Clang Code Model plugin is enabled.

      Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
      0   libClangCodeModel.dylib       	0x000000010e9b623d QtPrivate::QFunctorSlotObject<ClangCodeModel::Internal::ClangHoverHandler::identifyMatch(TextEditor::TextEditorWidget*, int, std::__1::function<void (int)>)::$_0, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) + 141
      1   org.qt-project.QtCore         	0x0000000105caa8eb QMetaObject::activate(QObject*, int, int, void**) + 2347
      2   org.qt-project.QtCore         	0x0000000105aadb18 QFutureWatcherBase::event(QEvent*) + 216
      3   org.qt-project.QtWidgets      	0x0000000104fd49a2 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 306
      4   org.qt-project.QtWidgets      	0x0000000104fd5cbf QApplication::notify(QObject*, QEvent*) + 383
      5   org.qt-project.QtCore         	0x0000000105c7997f QCoreApplication::notifyInternal2(QObject*, QEvent*) + 159
      6   org.qt-project.QtCore         	0x0000000105c7ab32 QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 850
      7   libqcocoa.dylib               	0x0000000107f0b1ee QCocoaEventDispatcherPrivate::processPostedEvents() + 190
      8   libqcocoa.dylib               	0x0000000107f0baa1 QCocoaEventDispatcherPrivate::postedEventsSourceCallback(void*) + 33
      9   com.apple.CoreFoundation      	0x00007fffa368c321 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
      10  com.apple.CoreFoundation      	0x00007fffa366d197 __CFRunLoopDoSources0 + 423
      11  com.apple.CoreFoundation      	0x00007fffa366c716 __CFRunLoopRun + 934
      12  com.apple.CoreFoundation      	0x00007fffa366c114 CFRunLoopRunSpecific + 420
      13  com.apple.HIToolbox           	0x00007fffa2bccebc RunCurrentEventLoopInMode + 240
      14  com.apple.HIToolbox           	0x00007fffa2bccbf9 ReceiveNextEventCommon + 184
      15  com.apple.HIToolbox           	0x00007fffa2bccb26 _BlockUntilNextEventMatchingListInModeWithFilter + 71
      16  com.apple.AppKit              	0x00007fffa1163a54 _DPSNextEvent + 1120
      17  com.apple.AppKit              	0x00007fffa18df7ee -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
      18  com.apple.AppKit              	0x00007fffa11583db -[NSApplication run] + 926
      19  libqcocoa.dylib               	0x0000000107f0a89d QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2397
      20  org.qt-project.QtCore         	0x0000000105c75502 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 418
      21  org.qt-project.QtCore         	0x0000000105c7a092 QCoreApplication::exec() + 402
      22  org.qt-project.qtcreator      	0x0000000104d28444 main + 16484
      23  libdyld.dylib                 	0x00007fffb8df2235 start + 1
      

      Qt Creator is getting very segfaulty lately. I'm sure it used to be better. :-/

      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
              timmmm Tim
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes