Bug 476888 - Kate Crash Nov 12, 2023
Summary: Kate Crash Nov 12, 2023
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 23.08.2
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2023-11-12 18:32 UTC by andrewesouza
Modified: 2024-02-19 03:46 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description andrewesouza 2023-11-12 18:32:23 UTC
Application: kate (23.08.2)

Qt Version: 5.15.11
Frameworks Version: 5.111.0
Operating System: Linux 6.1.60-1-lts x86_64
Windowing System: X11
Distribution: Arch Linux
DrKonqi: 5.27.9 [KCrashBackend]

-- Information about the crash:
Kate exited mid-typing. Did not recover any buffer from before last save.

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: Kate (kate), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>}
[KCrash Handler]
#6  0x00007fd9a1c73ba5 in QSortFilterProxyModelPrivate::updateChildrenMapping(QModelIndex const&, QSortFilterProxyModelPrivate::Mapping*, Qt::Orientation, int, int, int, bool) (this=0x55b21aff0500, source_parent=..., parent_mapping=<optimized out>, orient=<optimized out>, start=<optimized out>, end=-1, delta_item_count=0, remove=true) at itemmodels/qsortfilterproxymodel.cpp:1200
#7  0x00007fd9a1c87bab in QSortFilterProxyModelPrivate::source_items_removed(QModelIndex const&, int, int, Qt::Orientation) (this=0x55b21aff0500, source_parent=..., start=0, end=<optimized out>, orient=Qt::Vertical) at itemmodels/qsortfilterproxymodel.cpp:1146
#8  0x00007fd9a1c84883 in QSortFilterProxyModelPrivate::source_items_removed(QModelIndex const&, int, int, Qt::Orientation) (orient=Qt::Vertical, end=<optimized out>, start=<optimized out>, source_parent=..., this=0x55b21aff0500) at itemmodels/qsortfilterproxymodel.cpp:1106
#9  QSortFilterProxyModelPrivate::_q_sourceRowsRemoved(QModelIndex const&, int, int) (end=<optimized out>, start=<optimized out>, source_parent=..., this=0x55b21aff0500) at itemmodels/qsortfilterproxymodel.cpp:1738
#10 QSortFilterProxyModel::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at .moc/moc_qsortfilterproxymodel.cpp:284
#11 0x00007fd9a1cd1253 in doActivate<false>(QObject*, int, void**) (sender=0x55b21afe5ce0, signal_index=15, argv=0x7ffd7408fca0) at kernel/qobject.cpp:3937
#12 0x00007fd9a1c57dc3 in QAbstractItemModel::rowsRemoved(QModelIndex const&, int, int, QAbstractItemModel::QPrivateSignal) (this=this@entry=0x55b21afe5ce0, _t1=..., _t2=<optimized out>, _t3=<optimized out>, _t4=...) at .moc/moc_qabstractitemmodel.cpp:606
#13 0x00007fd9a1c57f27 in QAbstractItemModel::endRemoveRows() (this=0x55b21afe5ce0) at itemmodels/qabstractitemmodel.cpp:2837
#14 0x00007fd9a32e4c9a in  () at /usr/lib/libkateprivate.so.23.08.2
#15 0x00007fd9a32eecc5 in  () at /usr/lib/libkateprivate.so.23.08.2
#16 0x00007fd9a1cd1097 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffd74090060, r=<optimized out>, this=0x55b21b21a700, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#17 doActivate<false>(QObject*, int, void**) (sender=0x55b21b21acf0, signal_index=3, argv=0x7ffd74090060) at kernel/qobject.cpp:3925
#18 0x00007fd9a32f0077 in DiagnosticsProvider::diagnosticsAdded(FileDiagnostics const&) () at /usr/lib/libkateprivate.so.23.08.2
#19 0x00007fd9a1cd1097 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffd74090470, r=<optimized out>, this=0x55b21b34db30, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#20 doActivate<false>(QObject*, int, void**) (sender=0x55b21b77cbe0, signal_index=6, argv=0x7ffd74090470) at kernel/qobject.cpp:3925
#21 0x00007fd9988143e7 in  () at /usr/lib/qt/plugins/ktexteditor/lspclientplugin.so
#22 0x00007fd9a1cd1097 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffd740905e0, r=<optimized out>, this=0x55b21b77cde0, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#23 doActivate<false>(QObject*, int, void**) (sender=0x55b21aeb5600, signal_index=15, argv=0x7ffd740905e0) at kernel/qobject.cpp:3925
#24 0x00007fd9a1c289b2 in QProcess::readyReadStandardOutput(QProcess::QPrivateSignal) (this=<optimized out>, _t1=...) at .moc/moc_qprocess.cpp:367
#25 0x00007fd9a1c2259e in QProcessPrivate::tryReadFromChannel(QProcessPrivate::Channel*) (this=0x55b21b77e370, channel=0x55b21b77e480) at io/qprocess.cpp:1073
#26 0x00007fd9a1c290bd in QProcessPrivate::_q_canReadStandardError() (this=<optimized out>) at io/qprocess.cpp:1092
#27 QProcess::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x7ffd74090790) at .moc/moc_qprocess.cpp:210
#28 0x00007fd9a1cd1253 in doActivate<false>(QObject*, int, void**) (sender=0x55b21b77f650, signal_index=3, argv=0x7ffd74090790) at kernel/qobject.cpp:3937
#29 0x00007fd9a1cd2894 in QSocketNotifier::activated(QSocketDescriptor, QSocketNotifier::Type, QSocketNotifier::QPrivateSignal) (this=this@entry=0x55b21b77f650, _t1=..., _t2=<optimized out>, _t3=...) at .moc/moc_qsocketnotifier.cpp:178
#30 0x00007fd9a1cd29d8 in QSocketNotifier::event(QEvent*) (this=0x55b21b77f650, e=<optimized out>) at kernel/qsocketnotifier.cpp:302
#31 0x00007fd9a29788ff in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x55b21b77f650, e=0x7ffd740908b0) at kernel/qapplication.cpp:3640
#32 0x00007fd9a1c9c168 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x55b21b77f650, event=0x7ffd740908b0) at kernel/qcoreapplication.cpp:1064
#33 0x00007fd9a1ce9cd6 in socketNotifierSourceDispatch(GSource*, GSourceFunc, gpointer) (source=0x55b21ab31c10) at kernel/qeventdispatcher_glib.cpp:107
#34 0x00007fd99f70df69 in g_main_dispatch (context=0x7fd994000ec0) at ../glib/glib/gmain.c:3476
#35 0x00007fd99f76c327 in g_main_context_dispatch_unlocked (context=0x7fd994000ec0) at ../glib/glib/gmain.c:4284
#36 g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x7fd994000ec0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4349
#37 0x00007fd99f70c162 in g_main_context_iteration (context=0x7fd994000ec0, may_block=1) at ../glib/glib/gmain.c:4414
#38 0x00007fd9a1ceaf7c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55b21ab44770, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#39 0x00007fd9a1c9ae74 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffd74090b30, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#40 0x00007fd9a1c9c313 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#41 0x000055b219f1160e in  ()
#42 0x00007fd9a1445cd0 in __libc_start_call_main (main=main@entry=0x55b219f10070, argc=argc@entry=2, argv=argv@entry=0x7ffd740910a8) at ../sysdeps/nptl/libc_start_call_main.h:58
#43 0x00007fd9a1445d8a in __libc_start_main_impl (main=0x55b219f10070, argc=2, argv=0x7ffd740910a8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd74091098) at ../csu/libc-start.c:360
#44 0x000055b219f13ab5 in  ()
[Inferior 1 (process 3831) detached]

Reported using DrKonqi
Comment 1 Christoph Cullmann 2023-12-18 18:35:46 UTC
Looks to crash somewhere in the diagnostics handling. @waqar: do you think we have some fixes that might solve that in master since the last stable release?
Comment 2 Waqar Ahmed 2023-12-18 19:20:31 UTC
Not sure. I have checked the code but everything seems to be right. We are using QStandardItemModel so the actual begin/insert rows happens there, we just specify stuff on a high level.

The two hidden calls
#14 0x00007fd9a32e4c9a in  () at /usr/lib/libkateprivate.so.23.08.2
#15 0x00007fd9a32eecc5 in  () at /usr/lib/libkateprivate.so.23.08.2
make things a bit more difficult.

What LSP are you using? Are you using diagnostic suppressions?
Comment 3 Christoph Cullmann 2024-01-20 21:22:16 UTC
Without more info how to reproduce this, we can't fix it.
Comment 4 Bug Janitor Service 2024-02-04 03:45:28 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2024-02-19 03:46:11 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!