https://bugs.kde.org/show_bug.cgi?id=402208

            Bug ID: 402208
           Summary: Open .py file and right click in the editor => crash
           Product: kdevelop
           Version: git master
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: All editors
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: codestr...@posteo.org
  Target Milestone: ---

Open KDevelop with a Python file (in my case it was not part of the current
project) and right click in the editor.

=> KDevelop crashes.

Segmentation fault (core dumped).

gdb session:

Thread 1 "kdevelop" received signal SIGSEGV, Segmentation fault.
ClangTidy::Plugin::contextMenuExtension (this=0x19f3be0,
context=0x7fffffffae10, parent=0x7769e10)
    at
/home/gregor/kde/src/extragear/kdevelop/kdevelop/plugins/clangtidy/plugin.cpp:282
282             if
(!core()->projectController()->findProjectForUrl(doc->url())->buildSystemManager())
{
(gdb) bt
#0  ClangTidy::Plugin::contextMenuExtension (this=0x19f3be0,
context=0x7fffffffae10, parent=0x7769e10)
    at
/home/gregor/kde/src/extragear/kdevelop/kdevelop/plugins/clangtidy/plugin.cpp:282
#1  0x00007ffff7c09a40 in
KDevelop::PluginController::queryPluginsForContextMenuExtensions
(this=0xd2b090, context=0x7fffffffae10, parent=0x7769e10)
    at
/home/gregor/kde/src/extragear/kdevelop/kdevelop/kdevplatform/shell/plugincontroller.cpp:720
#2  0x00007ffff7c4bec7 in KDevelop::TextDocument::populateContextMenu
(this=0x336a290, v=0x33e4b80, menu=0xfc25670)
    at
/home/gregor/kde/src/extragear/kdevelop/kdevelop/kdevplatform/shell/textdocument.cpp:686
#3  0x00007ffff7c4ff94 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0, 1>,
QtPrivate::List<KTextEditor::View*, QMenu*>, void, void
(KDevelop::TextDocument::*)(KTextEditor::View*, QMenu*)>::call (f=
    (void (KDevelop::TextDocument::*)(KDevelop::TextDocument * const,
KTextEditor::View *, QMenu *)) 0x7ffff7c4bca4
<KDevelop::TextDocument::populateContextMenu(KTextEditor::View*, QMenu*)>,
o=0x336a290, arg=0x7fffffffb050) at
/usr/include/qt5/QtCore/qobjectdefs_impl.h:134
#4  0x00007ffff7c4fa6d in QtPrivate::FunctionPointer<void
(KDevelop::TextDocument::*)(KTextEditor::View*,
QMenu*)>::call<QtPrivate::List<KTextEditor::View*, QMenu*>, void> (f=
    (void (KDevelop::TextDocument::*)(KDevelop::TextDocument * const,
KTextEditor::View *, QMenu *)) 0x7ffff7c4bca4
<KDevelop::TextDocument::populateContextMenu(KTextEditor::View*, QMenu*)>,
o=0x336a290, arg=0x7fffffffb050) at
/usr/include/qt5/QtCore/qobjectdefs_impl.h:167
#5  0x00007ffff7c4f485 in QtPrivate::QSlotObject<void
(KDevelop::TextDocument::*)(KTextEditor::View*, QMenu*),
QtPrivate::List<KTextEditor::View*, QMenu*>, void>::impl (
    which=1, this_=0x34dcdd0, r=0x336a290, a=0x7fffffffb050, ret=0x0) at
/usr/include/qt5/QtCore/qobjectdefs_impl.h:396
#6  0x00007ffff3ecd320 in QMetaObject::activate(QObject*, int, int, void**) ()
from /usr/lib64/libQt5Core.so.5
#7  0x00007ffff67fecdb in KTextEditor::View::contextMenuAboutToShow
(this=0x33e4b80, _t1=0x33e4b80, _t2=0xfc25670) at
src/KF5TextEditor_autogen/OGSBNZGFXN/moc_view.cpp:404
#8  0x00007ffff66c8ee0 in KTextEditor::ViewPrivate::aboutToShowContextMenu
(this=0x33e4b80) at
/home/gregor/kde/src/frameworks/ktexteditor/src/view/kateview.cpp:3093
#9  0x00007ffff68006b5 in KTextEditor::ViewPrivate::qt_static_metacall
(_o=0x33e4b80, _c=QMetaObject::InvokeMetaMethod, _id=20, _a=0x7fffffffb248)
    at src/KF5TextEditor_autogen/OTUN7GXZT4/moc_kateview.cpp:634
#10 0x00007ffff3ecd1c3 in QMetaObject::activate(QObject*, int, int, void**) ()
from /usr/lib64/libQt5Core.so.5
#11 0x00007ffff4db8019 in QMenu::popup(QPoint const&, QAction*) () from
/usr/lib64/libQt5Widgets.so.5
#12 0x00007ffff66dded3 in KateViewInternal::contextMenuEvent (this=0x33ef440,
e=0x7fffffffb6d0)
    at
/home/gregor/kde/src/frameworks/ktexteditor/src/view/kateviewinternal.cpp:2510
#13 0x00007ffff4c90938 in QWidget::event(QEvent*) () from
/usr/lib64/libQt5Widgets.so.5
#14 0x00007ffff4c54e71 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() from /usr/lib64/libQt5Widgets.so.5
#15 0x00007ffff4c5c28e in QApplication::notify(QObject*, QEvent*) () from
/usr/lib64/libQt5Widgets.so.5
#16 0x00007ffff3ea5369 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() from /usr/lib64/libQt5Core.so.5
#17 0x00007ffff4cab1e1 in ?? () from /usr/lib64/libQt5Widgets.so.5
#18 0x00007ffff4cad2db in ?? () from /usr/lib64/libQt5Widgets.so.5
#19 0x00007ffff4c54e71 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() from /usr/lib64/libQt5Widgets.so.5
#20 0x00007ffff4c5c050 in QApplication::notify(QObject*, QEvent*) () from
/usr/lib64/libQt5Widgets.so.5
#21 0x00007ffff3ea5369 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() from /usr/lib64/libQt5Core.so.5
#22 0x00007ffff4576ce3 in
QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*)
() from /usr/lib64/libQt5Gui.so.5
#23 0x00007ffff4578aa5 in
QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*)
() from /usr/lib64/libQt5Gui.so.5
---Type <return> to continue, or q <return> to quit---

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to