Bug 443032 - Kate crashes while trying to download new snippets using Snippets plugin
Summary: Kate crashes while trying to download new snippets using Snippets plugin
Status: RESOLVED DUPLICATE of bug 442879
Alias: None
Product: frameworks-knewstuff
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 5.86.0
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2021-09-27 21:02 UTC by arpan
Modified: 2021-10-04 10:25 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arpan 2021-09-27 21:02:03 UTC
Application: kate (21.08.1)

Qt Version: 5.15.3
Frameworks Version: 5.86.0
Operating System: Linux 5.11.0-34-generic x86_64
Windowing System: X11
Drkonqi Version: 5.22.5
Distribution: KDE neon User Edition 5.22

-- Information about the crash:
1. Open Kate and enable Snippets plugin if is disabled.
2. Open the Snippet dock.
3. Either right-click in the dock window or click "Download new snippet" button from dock window's own toolbar.
4. Kate crashes every single time I do this.

The crash can be reproduced every time.

-- Backtrace:
Application: Kate (kate), signal: Segmentation fault

[New LWP 17210]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007fdfdb08faff in __GI___poll (fds=0x7ffffb76afb8, nfds=1, timeout=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
[Current thread is 1 (Thread 0x7fdfd6eb49c0 (LWP 17207))]

Thread 2 (Thread 0x7fdfd4c5e700 (LWP 17210)):
#0  0x00007fdfdb08faff in __GI___poll (fds=0x7fdfc80134b0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fdfd941e36e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fdfd941e4a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fdfdb65d5eb in QEventDispatcherGlib::processEvents (this=0x7fdfc8000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007fdfdb60187b in QEventLoop::exec (this=this@entry=0x7fdfd4c5dbb0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007fdfdb41b292 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007fdfdc6b5f4b in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007fdfdb41c42c in QThreadPrivate::start (arg=0x7fdfdc739d80) at thread/qthread_unix.cpp:329
#8  0x00007fdfd9e37609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007fdfdb09c293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fdfd6eb49c0 (LWP 17207)):
[KCrash Handler]
#4  QObject::objectName (this=this@entry=0x18) at kernel/qobject.cpp:1226
#5  0x00007fdfcfa7d4b5 in Ui_DownloadWidget::setupUi (this=this@entry=0x55d196692098, DownloadWidget=0x18) at ./obj-x86_64-linux-gnu/src/ui_downloadwidget.h:97
#6  0x00007fdfcfa79d9f in KNS3::DownloadWidgetPrivate::init (this=0x55d196692070, configFile=...) at ./src/downloadwidget.cpp:226
#7  0x00007fdfcfa7ae51 in KNS3::DownloadWidget::init (this=<optimized out>, configFile=...) at ./src/downloadwidget.cpp:54
#8  0x00007fdfcfa777a6 in KNS3::DownloadDialog::init (this=0x7ffffb76bcc0, configFile=...) at ./src/downloaddialog.cpp:72
#9  0x00007fdfcf8444b1 in SnippetView::slotGHNS (this=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:967
#10 0x00007fdfdb639d9e in QtPrivate::QSlotObjectBase::call (a=0x7ffffb76be30, r=0x55d19688e8d0, this=0x55d1968a4bf0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#11 doActivate<false> (sender=0x55d1968a4c20, signal_index=4, argv=0x7ffffb76be30) at kernel/qobject.cpp:3886
#12 0x00007fdfdb633167 in QMetaObject::activate (sender=sender@entry=0x55d1968a4c20, m=m@entry=0x7fdfdc6541c0 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffffb76be30) at kernel/qobject.cpp:3946
#13 0x00007fdfdc13c8e6 in QAction::triggered (this=this@entry=0x55d1968a4c20, _t1=<optimized out>) at .moc/moc_qaction.cpp:376
#14 0x00007fdfdc13efb8 in QAction::activate (this=0x55d1968a4c20, event=<optimized out>) at kernel/qaction.cpp:1161
#15 0x00007fdfdc2c9832 in QMenuPrivate::activateCausedStack (this=this@entry=0x55d196ae1750, causedStack=..., action=action@entry=0x55d1968a4c20, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1384
#16 0x00007fdfdc2d0f7e in QMenuPrivate::activateAction (this=this@entry=0x55d196ae1750, action=action@entry=0x55d1968a4c20, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1461
#17 0x00007fdfdc2d2212 in QMenu::mouseReleaseEvent (this=0x7ffffb76ce80, e=0x7ffffb76c510) at widgets/qmenu.cpp:2967
#18 0x00007fdfdc185cf6 in QWidget::event (this=this@entry=0x7ffffb76ce80, event=event@entry=0x7ffffb76c510) at kernel/qwidget.cpp:8664
#19 0x00007fdfdc2d481b in QMenu::event (this=0x7ffffb76ce80, e=0x7ffffb76c510) at widgets/qmenu.cpp:3089
#20 0x00007fdfdc142dc3 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x7ffffb76ce80, e=0x7ffffb76c510) at kernel/qapplication.cpp:3632
#21 0x00007fdfdc14be77 in QApplication::notify(QObject*, QEvent*) () at kernel/qapplication.cpp:3076
#22 0x00007fdfdb602d7a in QCoreApplication::notifyInternal2 (receiver=0x7ffffb76ce80, event=0x7ffffb76c510) at ../../include/QtCore/5.15.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#23 0x00007fdfdc14b0a7 in QApplicationPrivate::sendMouseEvent (receiver=0x7ffffb76ce80, event=event@entry=0x7ffffb76c510, alienWidget=0x0, nativeWidget=0x7ffffb76ce80, buttonDown=<optimized out>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2614
#24 0x00007fdfdc1a19de in QWidgetWindow::handleMouseEvent (this=0x55d196a7cd80, event=0x7ffffb76c990) at /usr/include/c++/9/bits/atomic_base.h:413
#25 0x00007fdfdc1a4264 in QWidgetWindow::event (event=0x7ffffb76c990, this=0x55d196a7cd80) at kernel/qwidgetwindow.cpp:300
#26 QWidgetWindow::event (this=0x55d196a7cd80, event=0x7ffffb76c990) at kernel/qwidgetwindow.cpp:239
#27 0x00007fdfdc142dc3 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55d196a7cd80, e=0x7ffffb76c990) at kernel/qapplication.cpp:3632
#28 0x00007fdfdc14bbb8 in QApplication::notify(QObject*, QEvent*) () at kernel/qapplication.cpp:3156
#29 0x00007fdfdb602d7a in QCoreApplication::notifyInternal2 (receiver=0x55d196a7cd80, event=0x7ffffb76c990) at ../../include/QtCore/5.15.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#30 0x00007fdfdb9e84e8 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at kernel/qguiapplication.cpp:2282
#31 0x00007fdfdb9e9b55 in QGuiApplicationPrivate::processWindowSystemEvent (e=0x55d19704d900) at kernel/qguiapplication.cpp:2002
#32 0x00007fdfdb9c17ac in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1169
#33 0x00007fdfd6819eae in xcbSourceDispatch (source=<optimized out>) at qxcbeventdispatcher.cpp:105
#34 0x00007fdfd941e17d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007fdfd941e400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007fdfd941e4a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007fdfdb65d5d2 in QEventDispatcherGlib::processEvents (this=0x55d195e075e0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#38 0x00007fdfdb60187b in QEventLoop::exec (this=this@entry=0x7ffffb76cd40, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#39 0x00007fdfdc2cea88 in QMenuPrivate::exec(QPoint const&, QAction*, std::function<QPoint (QSize const&)>) (this=0x55d196ae1750, p=..., action=action@entry=0x0, positionFunction=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#40 0x00007fdfdc2cebb3 in QMenu::exec (this=this@entry=0x7ffffb76ce80, p=..., action=action@entry=0x0) at /usr/include/c++/9/bits/std_function.h:396
#41 0x00007fdfcf843f15 in SnippetView::contextMenu (this=0x55d19688e8d0, pos=...) at ./addons/snippets/snippetview.cpp:219
#42 0x00007fdfdb639d9e in QtPrivate::QSlotObjectBase::call (a=0x7ffffb76cfe0, r=0x55d19688e8d0, this=0x55d196893c20) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#43 doActivate<false> (sender=0x55d196892040, signal_index=6, argv=0x7ffffb76cfe0) at kernel/qobject.cpp:3886
#44 0x00007fdfdb633167 in QMetaObject::activate (sender=sender@entry=0x55d196892040, m=m@entry=0x7fdfdc6557c0 <QWidget::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffffb76cfe0) at kernel/qobject.cpp:3946
#45 0x00007fdfdc16b1c9 in QWidget::customContextMenuRequested (this=this@entry=0x55d196892040, _t1=...) at .moc/moc_qwidget.cpp:653
#46 0x00007fdfdc1869c5 in QWidget::event (this=this@entry=0x55d196892040, event=event@entry=0x7ffffb76d620) at ../../include/QtGui/../../src/gui/kernel/qevent.h:564
#47 0x00007fdfdc236092 in QFrame::event (this=0x55d196892040, e=0x7ffffb76d620) at widgets/qframe.cpp:550
#48 0x00007fdfdc3c0972 in QAbstractItemView::viewportEvent (this=this@entry=0x55d196892040, event=event@entry=0x7ffffb76d620) at itemviews/qabstractitemview.cpp:1746
#49 0x00007fdfdc43150f in QTreeView::viewportEvent (this=0x55d196892040, event=0x7ffffb76d620) at itemviews/qtreeview.cpp:1314
#50 0x00007fdfdb602ae3 in QCoreApplicationPrivate::sendThroughObjectEventFilters (event=<optimized out>, receiver=<optimized out>) at kernel/qcoreapplication.cpp:1190
#51 QCoreApplicationPrivate::sendThroughObjectEventFilters (receiver=receiver@entry=0x55d1968926b0, event=event@entry=0x7ffffb76d620) at kernel/qcoreapplication.cpp:1179
#52 0x00007fdfdc142db2 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55d1968926b0, e=0x7ffffb76d620) at kernel/qapplication.cpp:3626
#53 0x00007fdfdc14c96c in QApplication::notify(QObject*, QEvent*) () at kernel/qapplication.cpp:3238
#54 0x00007fdfdb602d7a in QCoreApplication::notifyInternal2 (receiver=0x55d1968926b0, event=0x7ffffb76d620) at ../../include/QtCore/5.15.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#55 0x00007fdfdc1a15fc in QWidgetWindow::handleMouseEvent (this=0x55d196925080, event=0x7ffffb76dae0) at kernel/qwidgetwindow.cpp:691
#56 0x00007fdfdc1a4264 in QWidgetWindow::event (event=0x7ffffb76dae0, this=0x55d196925080) at kernel/qwidgetwindow.cpp:300
#57 QWidgetWindow::event (this=0x55d196925080, event=0x7ffffb76dae0) at kernel/qwidgetwindow.cpp:239
#58 0x00007fdfdc142dc3 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55d196925080, e=0x7ffffb76dae0) at kernel/qapplication.cpp:3632
#59 0x00007fdfdc14bbb8 in QApplication::notify(QObject*, QEvent*) () at kernel/qapplication.cpp:3156
#60 0x00007fdfdb602d7a in QCoreApplication::notifyInternal2 (receiver=0x55d196925080, event=0x7ffffb76dae0) at ../../include/QtCore/5.15.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#61 0x00007fdfdb9e84e8 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at kernel/qguiapplication.cpp:2282
#62 0x00007fdfdb9e9b55 in QGuiApplicationPrivate::processWindowSystemEvent (e=0x55d196e23d00) at kernel/qguiapplication.cpp:2002
#63 0x00007fdfdb9c17ac in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1169
#64 0x00007fdfd6819eae in xcbSourceDispatch (source=<optimized out>) at qxcbeventdispatcher.cpp:105
#65 0x00007fdfd941e17d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#66 0x00007fdfd941e400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#67 0x00007fdfd941e4a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#68 0x00007fdfdb65d5d2 in QEventDispatcherGlib::processEvents (this=0x55d195e075e0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#69 0x00007fdfdb60187b in QEventLoop::exec (this=this@entry=0x7ffffb76de80, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#70 0x00007fdfdb609a34 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#71 0x000055d1946c60c5 in main (argc=<optimized out>, argv=<optimized out>) at ./kate/main.cpp:699
[Inferior 1 (process 17207) detached]

Possible duplicates by query: bug 208726, bug 170806.

Reported using DrKonqi
Comment 1 Christoph Cullmann 2021-10-03 18:54:16 UTC
I can't reproduce, but I would assume this is rather an error in the framework.
Comment 2 Dan Leinir Turthra Jensen 2021-10-04 10:25:23 UTC
Thanks for reporting - it's already fixed in frameworks, and backports have been requested with the distros :)

*** This bug has been marked as a duplicate of bug 442879 ***