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

            Bug ID: 427338
           Summary: Kate crashes when toggling the "LSP Client" plug-in
           Product: kate
           Version: 19.12.3
          Platform: Ubuntu Packages
                OS: Linux
            Status: REPORTED
          Keywords: drkonqi
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: ser...@cip.md
  Target Milestone: ---

Application: kate (19.12.3)

Qt Version: 5.12.8
Frameworks Version: 5.68.0
Operating System: Linux 5.4.0-48-generic x86_64
Windowing system: X11
Distribution: Ubuntu 20.04.1 LTS

-- Information about the crash:
- What I was doing when the application crashed:
Click the checkbox next to "LSP Client" repeatedly, about 2 clicks per second.

I also had Kate crash when not clicking the checkbox repeatedly but instead
changing to another setting group and then back to "Plug-ins" after enabling
"LSP Client", but those crashes are harder to reproduce.

The crash can be reproduced every time.

-- Backtrace:
Application: Kate (kate), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7ff88048b940 (LWP 83045))]

Thread 7 (Thread 0x7ff875a32700 (LWP 83052)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0,
futex_word=0x5638b0cd9388) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x5638b0cd9338,
cond=0x5638b0cd9360) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x5638b0cd9360, mutex=0x5638b0cd9338) at
pthread_cond_wait.c:638
#3  0x00007ff87775297b in ?? () from
/opt/amdgpu/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007ff87775258b in ?? () from
/opt/amdgpu/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007ff8832b7609 in start_thread (arg=<optimized out>) at
pthread_create.c:477
#6  0x00007ff88458e293 in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7ff876233700 (LWP 83051)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0,
futex_word=0x5638b0cd9388) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x5638b0cd9338,
cond=0x5638b0cd9360) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x5638b0cd9360, mutex=0x5638b0cd9338) at
pthread_cond_wait.c:638
#3  0x00007ff87775297b in ?? () from
/opt/amdgpu/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007ff87775258b in ?? () from
/opt/amdgpu/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007ff8832b7609 in start_thread (arg=<optimized out>) at
pthread_create.c:477
#6  0x00007ff88458e293 in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7ff876a34700 (LWP 83050)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0,
futex_word=0x5638b0cd9388) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x5638b0cd9338,
cond=0x5638b0cd9360) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x5638b0cd9360, mutex=0x5638b0cd9338) at
pthread_cond_wait.c:638
#3  0x00007ff87775297b in ?? () from
/opt/amdgpu/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007ff87775258b in ?? () from
/opt/amdgpu/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007ff8832b7609 in start_thread (arg=<optimized out>) at
pthread_create.c:477
#6  0x00007ff88458e293 in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7ff877235700 (LWP 83049)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0,
futex_word=0x5638b0cd9388) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x5638b0cd9338,
cond=0x5638b0cd9360) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x5638b0cd9360, mutex=0x5638b0cd9338) at
pthread_cond_wait.c:638
#3  0x00007ff87775297b in ?? () from
/opt/amdgpu/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007ff87775258b in ?? () from
/opt/amdgpu/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007ff8832b7609 in start_thread (arg=<optimized out>) at
pthread_create.c:477
#6  0x00007ff88458e293 in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7ff87df02700 (LWP 83048)):
#0  0x00007ff882a1472d in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007ff882a16185 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ff882a1766b in g_main_context_prepare () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ff882a180db in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ff882a182e3 in g_main_context_iteration () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ff884b1d583 in QEventDispatcherGlib::processEvents
(this=0x7ff870000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#6  0x00007ff884ac44db in QEventLoop::exec (this=this@entry=0x7ff87df01c30,
flags=..., flags@entry=...) at
../../include/QtCore/../../src/corelib/global/qflags.h:140
#7  0x00007ff8848fc785 in QThread::exec (this=<optimized out>) at
../../include/QtCore/../../src/corelib/global/qflags.h:120
#8  0x00007ff884d9fefa in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#9  0x00007ff8848fd9d2 in QThreadPrivate::start (arg=0x7ff884e22d80) at
thread/qthread_unix.cpp:361
#10 0x00007ff8832b7609 in start_thread (arg=<optimized out>) at
pthread_create.c:477
#11 0x00007ff88458e293 in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7ff87f349700 (LWP 83047)):
#0  0x00007ff884581aff in __GI___poll (fds=0x7ff87f348b68, nfds=1, timeout=-1)
at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007ff8832e1c1a in ?? () from /lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007ff8832e390a in xcb_wait_for_event () from
/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007ff87fb09298 in QXcbEventQueue::run (this=0x5638b096b380) at
qxcbeventqueue.cpp:228
#4  0x00007ff8848fd9d2 in QThreadPrivate::start (arg=0x5638b096b380) at
thread/qthread_unix.cpp:361
#5  0x00007ff8832b7609 in start_thread (arg=<optimized out>) at
pthread_create.c:477
#6  0x00007ff88458e293 in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7ff88048b940 (LWP 83045)):
[KCrash Handler]
#6  QWidget::layout (this=0x0) at
../../include/QtWidgets/../../src/widgets/kernel/qwidget.h:131
#7  0x00007ff874234fbd in LSPClientSymbolViewImpl::LSPClientSymbolViewImpl
(this=0x5638b2cbb260, plugin=0x5638b26fa000, mainWin=0x5638b0c11750,
manager=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qscopedpointer.h:116
#8  0x00007ff874231c30 in LSPClientSymbolView::new_
(plugin=plugin@entry=0x5638b26fa000, mainWin=mainWin@entry=0x5638b0c11750,
manager=...) at
/usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer_impl.h:339
#9  0x00007ff87420e9e3 in LSPClientActionView::LSPClientActionView
(this=0x5638b2c182b0, plugin=0x5638b26fa000, mainWin=0x5638b0c11750,
client=0x5638b2c1f320, serverManager=...) at
/usr/include/c++/9/bits/atomic_base.h:318
#10 0x00007ff8741feea3 in LSPClientPluginViewImpl::LSPClientPluginViewImpl
(mainWin=0x5638b0c11750, plugin=0x5638b26fa000, this=0x5638b2c1f310) at
/usr/include/c++/9/bits/atomic_base.h:318
#11 LSPClientPluginView::new_ (plugin=0x5638b26fa000, mainWin=0x5638b0c11750)
at ./addons/lspclient/lspclientpluginview.cpp:1631
#12 0x00005638b06c5a89 in KatePluginManager::enablePluginGUI
(item=item@entry=0x5638b0b507d0, win=0x5638b0ac6130, config=config@entry=0x0,
this=<optimized out>) at ./kate/katemainwindow.h:101
#13 0x00005638b06c5d13 in KatePluginManager::enablePluginGUI (config=0x0,
win=<optimized out>, item=0x5638b0b507d0, this=<optimized out>) at
./kate/katepluginmanager.cpp:225
#14 KatePluginManager::enablePluginGUI (item=0x5638b0b507d0, this=<optimized
out>) at ./kate/katepluginmanager.cpp:261
#15 0x00005638b06c5d40 in KatePluginManager::enablePluginGUI (this=<optimized
out>, item=<optimized out>) at ./kate/katepluginmanager.cpp:255
#16 0x00005638b06fdc6b in KateConfigPluginPage::loadPlugin
(item=0x5638b26e4300, this=0x5638b26cf620) at
./kate/kateconfigplugindialogpage.cpp:38
#17 KateConfigPluginPage::loadPlugin (this=0x5638b26cf620, item=0x5638b26e4300)
at ./kate/kateconfigplugindialogpage.cpp:107
#18 0x00005638b06fdd81 in KateConfigPluginPage::stateChange
(this=0x5638b26cf620, item=<optimized out>, b=<optimized out>) at
./kate/kateconfigplugindialogpage.cpp:99
#19 0x00007ff884af1458 in QtPrivate::QSlotObjectBase::call (a=0x7ffe6d54fd50,
r=0x5638b26cf620, this=0x5638b26e9500) at
../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#20 QMetaObject::activate (sender=0x5638b12794c0, signalOffset=<optimized out>,
local_signal_index=<optimized out>, argv=<optimized out>) at
kernel/qobject.cpp:3784
#21 0x00005638b06e2be1 in KatePluginListView::stateChange
(this=this@entry=0x5638b12794c0, _t1=<optimized out>, _t1@entry=0x5638b26e4300,
_t2=<optimized out>, _t2@entry=true) at
./obj-x86_64-linux-gnu/kate/kate-lib_autogen/EWIEGA46WW/moc_kateconfigplugindialogpage.cpp:142
#22 0x00005638b06fd9ee in KatePluginListView::stateChanged
(this=0x5638b12794c0, item=0x5638b26e4300) at
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qtreewidget.h:158
#23 0x00007ff884af1458 in QtPrivate::QSlotObjectBase::call (a=0x7ffe6d54fed0,
r=0x5638b12794c0, this=0x5638b26ded40) at
../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#24 QMetaObject::activate (sender=0x5638b12794c0, signalOffset=<optimized out>,
local_signal_index=<optimized out>, argv=<optimized out>) at
kernel/qobject.cpp:3784
#25 0x00007ff88590ed24 in QTreeWidget::itemChanged (this=<optimized out>,
_t1=<optimized out>, _t2=<optimized out>) at .moc/moc_qtreewidget.cpp:423
#26 0x00007ff88591074f in QTreeWidgetPrivate::_q_emitItemChanged
(this=<optimized out>, index=...) at
../../include/QtCore/../../src/corelib/itemmodels/qabstractitemmodel.h:63
#27 0x00007ff885917a75 in QTreeWidget::qt_static_metacall (_o=<optimized out>,
_c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at
itemviews/qtreewidget.h:381
#28 0x00007ff884af1300 in QMetaObject::activate (sender=0x5638b26de400,
signalOffset=<optimized out>, local_signal_index=<optimized out>,
argv=<optimized out>) at kernel/qobject.cpp:3804
#29 0x00007ff884a71a29 in QAbstractItemModel::dataChanged
(this=this@entry=0x5638b26de400, _t1=..., _t2=..., _t3=...) at
.moc/moc_qabstractitemmodel.cpp:556
#30 0x00007ff88590f9d8 in QTreeModel::emitDataChanged
(this=this@entry=0x5638b26de400, item=item@entry=0x5638b26e4300,
column=column@entry=0, roles=...) at itemviews/qtreewidget.cpp:800
#31 0x00007ff885912c32 in QTreeWidgetItem::setData (this=0x5638b26e4300,
column=0, role=10, value=...) at itemviews/qtreewidget.cpp:1801
#32 0x00007ff88590e7da in QTreeModel::setData (this=this@entry=0x5638b26de400,
index=..., value=..., role=role@entry=10) at
../../include/QtCore/../../src/corelib/itemmodels/qabstractitemmodel.h:63
#33 0x00007ff8858bb4fe in QStyledItemDelegate::editorEvent (this=<optimized
out>, event=<optimized out>, model=0x5638b26de400, option=..., index=...) at
itemviews/qstyleditemdelegate.cpp:644
#34 0x00007ff885892fc0 in QAbstractItemViewPrivate::sendDelegateEvent
(this=this@entry=0x5638b127a3f0, index=..., event=event@entry=0x7ffe6d550da0)
at itemviews/qabstractitemview.cpp:4396
#35 0x00007ff885898bef in QAbstractItemView::edit
(this=this@entry=0x5638b12794c0, index=...,
trigger=trigger@entry=QAbstractItemView::NoEditTriggers,
event=event@entry=0x7ffe6d550da0) at itemviews/qabstractitemview.cpp:2659
#36 0x00007ff8858934c3 in QAbstractItemView::mouseReleaseEvent
(this=this@entry=0x5638b12794c0, event=event@entry=0x7ffe6d550da0) at
../../include/QtGui/../../src/gui/kernel/qevent.h:132
#37 0x00007ff88590bd83 in QTreeView::mouseReleaseEvent (this=0x5638b12794c0,
event=0x7ffe6d550da0) at itemviews/qtreeview.cpp:1908
#38 0x00007ff88566b2b6 in QWidget::event (this=this@entry=0x5638b12794c0,
event=event@entry=0x7ffe6d550da0) at kernel/qwidget.cpp:8981
#39 0x00007ff885718d52 in QFrame::event (this=0x5638b12794c0, e=0x7ffe6d550da0)
at widgets/qframe.cpp:550
#40 0x00007ff88589d482 in QAbstractItemView::viewportEvent
(this=this@entry=0x5638b12794c0, event=event@entry=0x7ffe6d550da0) at
itemviews/qabstractitemview.cpp:1750
#41 0x00007ff88590b62f in QTreeView::viewportEvent (this=0x5638b12794c0,
event=0x7ffe6d550da0) at itemviews/qtreeview.cpp:1318
#42 0x00007ff884ac564b in
QCoreApplicationPrivate::sendThroughObjectEventFilters (event=<optimized out>,
receiver=<optimized out>) at kernel/qcoreapplication.cpp:1214
#43 QCoreApplicationPrivate::sendThroughObjectEventFilters
(receiver=receiver@entry=0x5638b127aa50, event=event@entry=0x7ffe6d550da0) at
kernel/qcoreapplication.cpp:1203
#44 0x00007ff885628a55 in QApplicationPrivate::notify_helper
(this=this@entry=0x5638b0961280, receiver=receiver@entry=0x5638b127aa50,
e=e@entry=0x7ffe6d550da0) at kernel/qapplication.cpp:3694
#45 0x00007ff885632343 in QApplication::notify (this=<optimized out>,
receiver=0x5638b127aa50, e=0x7ffe6d550da0) at kernel/qapplication.cpp:3160
#46 0x00007ff884ac593a in QCoreApplication::notifyInternal2
(receiver=0x5638b127aa50, event=0x7ffe6d550da0) at
../../include/QtCore/../../src/corelib/kernel/qobject.h:142
#47 0x00007ff885631457 in QApplicationPrivate::sendMouseEvent
(receiver=receiver@entry=0x5638b127aa50, event=event@entry=0x7ffe6d550da0,
alienWidget=alienWidget@entry=0x5638b127aa50, nativeWidget=0x7ff87008e8d0,
buttonDown=buttonDown@entry=0x7ff885b588d0 <qt_button_down>,
lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at
kernel/qapplication.cpp:2646
#48 0x00007ff88568735d in QWidgetWindow::handleMouseEvent (this=0x5638b2aec0a0,
event=0x7ffe6d551220) at /usr/include/c++/9/bits/atomic_base.h:413
#49 0x00007ff88568a1ec in QWidgetWindow::event (event=0x7ffe6d551220,
this=0x5638b2aec0a0) at kernel/qwidgetwindow.cpp:289
#50 QWidgetWindow::event (this=0x5638b2aec0a0, event=0x7ffe6d551220) at
kernel/qwidgetwindow.cpp:232
#51 0x00007ff885628a66 in QApplicationPrivate::notify_helper
(this=this@entry=0x5638b0961280, receiver=receiver@entry=0x5638b2aec0a0,
e=e@entry=0x7ffe6d551220) at kernel/qapplication.cpp:3700
#52 0x00007ff8856320f0 in QApplication::notify (this=0x7ffe6d552020,
receiver=0x5638b2aec0a0, e=0x7ffe6d551220) at kernel/qapplication.cpp:3446
#53 0x00007ff884ac593a in QCoreApplication::notifyInternal2
(receiver=0x5638b2aec0a0, event=0x7ffe6d551220) at
../../include/QtCore/../../src/corelib/kernel/qobject.h:142
#54 0x00007ff884ff77d3 in QGuiApplicationPrivate::processMouseEvent
(e=e@entry=0x5638b2c44400) at kernel/qguiapplication.cpp:2107
#55 0x00007ff884ff910b in QGuiApplicationPrivate::processWindowSystemEvent
(e=e@entry=0x5638b2c44400) at kernel/qguiapplication.cpp:1842
#56 0x00007ff884fd335b in QWindowSystemInterface::sendWindowSystemEvents
(flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1151
#57 0x00007ff87fb0a32e in xcbSourceDispatch (source=<optimized out>) at
qxcbeventdispatcher.cpp:105
#58 0x00007ff882a17fbd in g_main_context_dispatch () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#59 0x00007ff882a18240 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#60 0x00007ff882a182e3 in g_main_context_iteration () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#61 0x00007ff884b1d565 in QEventDispatcherGlib::processEvents
(this=0x5638b09d3950, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#62 0x00007ff884ac44db in QEventLoop::exec (this=this@entry=0x7ffe6d5515c0,
flags=..., flags@entry=...) at
../../include/QtCore/../../src/corelib/global/qflags.h:140
#63 0x00007ff88582cc6d in QDialog::exec (this=0x7ff87008e8d0) at
../../include/QtCore/../../src/corelib/global/qflags.h:120
#64 0x00005638b06ab185 in KateMainWindow::showPluginConfigPage (id=0,
configpageinterface=0x0, this=0x5638b0ac6130) at ./kate/katemainwindow.cpp:860
#65 KateMainWindow::showPluginConfigPage (this=0x5638b0ac6130,
configpageinterface=0x0, id=0) at ./kate/katemainwindow.cpp:849
#66 0x00005638b06e610b in KateMainWindow::qt_static_metacall
(_o=0x5638b0ac6130, _c=<optimized out>, _id=<optimized out>, _a=0x7ffe6d5517c0)
at
./obj-x86_64-linux-gnu/kate/kate-lib_autogen/EWIEGA46WW/moc_katemainwindow.cpp:408
#67 0x00007ff884af1300 in QMetaObject::activate (sender=0x5638b0c98370,
signalOffset=<optimized out>, local_signal_index=<optimized out>,
argv=<optimized out>) at kernel/qobject.cpp:3804
#68 0x00007ff8856223e6 in QAction::triggered (this=this@entry=0x5638b0c98370,
_t1=<optimized out>) at .moc/moc_qaction.cpp:380
#69 0x00007ff885624aa2 in QAction::activate (this=0x5638b0c98370,
event=<optimized out>) at kernel/qaction.cpp:1166
#70 0x00007ff884af1d5a in QObject::event (this=0x5638b0c98370, e=<optimized
out>) at kernel/qobject.cpp:1261
#71 0x00007ff885625337 in QAction::event (this=<optimized out>, e=<optimized
out>) at kernel/qaction.cpp:1096
#72 0x00007ff885628a66 in QApplicationPrivate::notify_helper
(this=this@entry=0x5638b0961280, receiver=receiver@entry=0x5638b0c98370,
e=e@entry=0x5638b262dda0) at kernel/qapplication.cpp:3700
#73 0x00007ff8856320f0 in QApplication::notify (this=0x7ffe6d552020,
receiver=0x5638b0c98370, e=0x5638b262dda0) at kernel/qapplication.cpp:3446
#74 0x00007ff884ac593a in QCoreApplication::notifyInternal2
(receiver=0x5638b0c98370, event=0x5638b262dda0) at
../../include/QtCore/../../src/corelib/kernel/qobject.h:142
#75 0x00007ff884ac85b8 in QCoreApplicationPrivate::sendPostedEvents
(receiver=0x0, event_type=0, data=0x5638b09676d0) at
kernel/qcoreapplication.cpp:1825
#76 0x00007ff884b1df67 in postEventSourceDispatch (s=0x5638b09cdde0) at
kernel/qeventdispatcher_glib.cpp:276
#77 0x00007ff882a17fbd in g_main_context_dispatch () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#78 0x00007ff882a18240 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#79 0x00007ff882a182e3 in g_main_context_iteration () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#80 0x00007ff884b1d565 in QEventDispatcherGlib::processEvents
(this=0x5638b09d3950, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#81 0x00007ff884ac44db in QEventLoop::exec (this=this@entry=0x7ffe6d551dd0,
flags=..., flags@entry=...) at
../../include/QtCore/../../src/corelib/global/qflags.h:140
#82 0x00007ff884acc246 in QCoreApplication::exec () at
../../include/QtCore/../../src/corelib/global/qflags.h:120
#83 0x00005638b069afd7 in main (argc=<optimized out>, argv=<optimized out>) at
./kate/main.cpp:638
[Inferior 1 (process 83045) detached]

Possible duplicates by query: bug 387233, bug 344105.

Reported using DrKonqi

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

Reply via email to