Bug 442873 - kate crashes while system startup and session restore
Summary: kate crashes while system startup and session restore
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 21.08.3
Platform: Compiled Sources Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2021-09-24 05:58 UTC by Andreas Roth
Modified: 2022-02-07 04:37 UTC (History)
3 users (show)

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


Attachments
New crash information added by DrKonqi (10.69 KB, text/plain)
2021-10-26 06:10 UTC, Andreas Roth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Roth 2021-09-24 05:58:58 UTC
Application: kate (21.08.1)

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

-- Information about the crash:
- What I was doing when the application crashed:
1. Kate was open with several files from an sftp source when i shutdown my machine.
2. Start my machine the next morning
3. Kate is restarted and tries to restore the previously open files
4. When the system starts up the network might not be ready (yet) and this leads to load errors for the SFTP files
5. Kate crashes
6. After the crash i can simply press restart application and the previous session is restored correctly (with SFTP files). Most likely by the time i press restart the network is up and running.

The crash can be reproduced sometimes.

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

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

Thread 3 (Thread 0x7f01d4de7700 (LWP 8577)):
#0  __GI___libc_read (nbytes=16, buf=0x7f01d4de69a0, fd=7) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=7, buf=0x7f01d4de69a0, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007f01d9630b2f in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f01d95e7ebe in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f01d95e8312 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f01d95e84a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f01db8275eb in QEventDispatcherGlib::processEvents (this=0x7f01c8000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#7  0x00007f01db7cb87b in QEventLoop::exec (this=this@entry=0x7f01d4de6bb0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#8  0x00007f01db5e5292 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#9  0x00007f01dc87ff4b in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#10 0x00007f01db5e642c in QThreadPrivate::start (arg=0x7f01dc903d80) at thread/qthread_unix.cpp:329
#11 0x00007f01da001609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#12 0x00007f01db266293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f01d6233700 (LWP 8575)):
#0  0x00007f01db259aff in __GI___poll (fds=0x7f01d6232ae8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f01da035c1a in ?? () from /lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f01da03790a in xcb_wait_for_event () from /lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f01d6970e88 in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f01db5e642c in QThreadPrivate::start (arg=0x560819e2cc50) at thread/qthread_unix.cpp:329
#5  0x00007f01da001609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f01db266293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f01d707e9c0 (LWP 8573)):
[KCrash Handler]
#4  QFlags<KEntryMap::SearchFlag>::operator|= (other=<optimized out>, this=<optimized out>) at ./src/core/kconfig.cpp:1013
#5  KConfigPrivate::lookupData (this=this@entry=0x0, group=..., key=key@entry=0x7f01dd81ccc7 "CursorColumn", flags=flags@entry=...) at ./src/core/kconfig.cpp:1014
#6  0x00007f01dccd817c in KConfigGroup::readEntry (this=this@entry=0x560835a24458, key=key@entry=0x7f01dd81ccc7 "CursorColumn", aDefault=...) at /usr/include/c++/9/bits/atomic_base.h:326
#7  0x00007f01dd6b289f in KConfigGroup::readEntry<int> (this=this@entry=0x560835a24458, key=key@entry=0x7f01dd81ccc7 "CursorColumn", defaultValue=defaultValue@entry=@0x7ffcbb9820f0: 0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qvariant.h:370
#8  0x00007f01dd6f7631 in KTextEditor::ViewPrivate::readSessionConfig (this=0x560835969360, config=..., flags=...) at ./src/view/kateview.cpp:1653
#9  0x0000560819ce0b9f in KateViewSpace::<lambda(KTextEditor::Document*)>::operator() (__closure=0x560835a24440) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:241
#10 QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<KTextEditor::Document*>, void, KateViewSpace::restoreConfig(KateViewManager*, const KConfigBase*, const QString&)::<lambda(KTextEditor::Document*)> >::call (arg=<optimized out>, f=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:146
#11 QtPrivate::Functor<KateViewSpace::restoreConfig(KateViewManager*, const KConfigBase*, const QString&)::<lambda(KTextEditor::Document*)>, 1>::call<QtPrivate::List<KTextEditor::Document*>, void> (arg=<optimized out>, f=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:256
#12 QtPrivate::QFunctorSlotObject<KateViewSpace::restoreConfig(KateViewManager*, const KConfigBase*, const QString&)::<lambda(KTextEditor::Document*)>, 1, QtPrivate::List<KTextEditor::Document*>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=<optimized out>, this_=0x560835a24430, r=<optimized out>, a=<optimized out>, ret=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:443
#13 0x00007f01db803d9e in QtPrivate::QSlotObjectBase::call (a=0x7ffcbb982280, r=0x560835969360, this=0x560835a24430) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#14 doActivate<false> (sender=0x56083530f3d0, signal_index=27, argv=0x7ffcbb982280) at kernel/qobject.cpp:3886
#15 0x00007f01db7fd167 in QMetaObject::activate (sender=sender@entry=0x56083530f3d0, m=m@entry=0x7f01dd8df6e0 <KTextEditor::Document::staticMetaObject>, local_signal_index=local_signal_index@entry=15, argv=argv@entry=0x7ffcbb982280) at kernel/qobject.cpp:3946
#16 0x00007f01dd5d7026 in KTextEditor::Document::textChanged (this=this@entry=0x56083530f3d0, _t1=<optimized out>, _t1@entry=0x56083530f3d0) at ./obj-x86_64-linux-gnu/src/KF5TextEditor_autogen/OGSBNZGFXN/moc_document.cpp:599
#17 0x00007f01dd66845a in KTextEditor::DocumentPrivate::openFile (this=0x56083530f3d0) at ./src/document/katedocument.cpp:2374
#18 0x00007f01dd4dd115 in KParts::ReadOnlyPartPrivate::slotJobFinished (this=0x56081a72e190, job=0x560835303400) at ./src/readonlypart.cpp:287
#19 0x00007f01db803d9e in QtPrivate::QSlotObjectBase::call (a=0x7ffcbb9824d0, r=0x56083530f3d0, this=0x560835303ae0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#20 doActivate<false> (sender=0x560835303400, signal_index=6, argv=0x7ffcbb9824d0) at kernel/qobject.cpp:3886
#21 0x00007f01db7fd167 in QMetaObject::activate (sender=sender@entry=0x560835303400, m=m@entry=0x7f01dca65720 <KJob::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffcbb9824d0) at kernel/qobject.cpp:3946
#22 0x00007f01dca11b90 in KJob::result (this=this@entry=0x560835303400, _t1=<optimized out>, _t1@entry=0x560835303400, _t2=...) at ./obj-x86_64-linux-gnu/src/lib/KF5CoreAddons_autogen/include/moc_kjob.cpp:631
#23 0x00007f01dca1294b in KJob::finishJob (this=0x560835303400, emitResult=<optimized out>) at ./src/lib/jobs/kjob.cpp:97
#24 0x00007f01dd2024f0 in KIO::FileCopyJob::slotResult(KJob*) () from /lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#25 0x00007f01db803d9e in QtPrivate::QSlotObjectBase::call (a=0x7ffcbb982640, r=0x560835303400, this=0x560835cd7840) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#26 doActivate<false> (sender=0x560835cd6cf0, signal_index=6, argv=0x7ffcbb982640) at kernel/qobject.cpp:3886
#27 0x00007f01db7fd167 in QMetaObject::activate (sender=sender@entry=0x560835cd6cf0, m=m@entry=0x7f01dca65720 <KJob::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffcbb982640) at kernel/qobject.cpp:3946
#28 0x00007f01dca11b90 in KJob::result (this=this@entry=0x560835cd6cf0, _t1=<optimized out>, _t1@entry=0x560835cd6cf0, _t2=...) at ./obj-x86_64-linux-gnu/src/lib/KF5CoreAddons_autogen/include/moc_kjob.cpp:631
#29 0x00007f01dca1294b in KJob::finishJob (this=0x560835cd6cf0, emitResult=<optimized out>) at ./src/lib/jobs/kjob.cpp:97
#30 0x00007f01dd20feb8 in KIO::SimpleJob::slotFinished() () from /lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#31 0x00007f01db803d9e in QtPrivate::QSlotObjectBase::call (a=0x7ffcbb9827e0, r=0x560835cd6cf0, this=0x560835f3ec10) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#32 doActivate<false> (sender=0x560835e59e80, signal_index=7, argv=0x7ffcbb9827e0) at kernel/qobject.cpp:3886
#33 0x00007f01dd1dd472 in KIO::SlaveInterface::dispatch(int, QByteArray const&) () from /lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#34 0x00007f01dd1db16f in KIO::SlaveInterface::dispatch() () from /lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#35 0x00007f01dd1e40d2 in KIO::Slave::gotInput() () from /lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#36 0x00007f01db803d9e in QtPrivate::QSlotObjectBase::call (a=0x7ffcbb982a50, r=0x560835e59e80, this=0x560819ec2f60) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#37 doActivate<false> (sender=0x560835e892a0, signal_index=3, argv=0x7ffcbb982a50) at kernel/qobject.cpp:3886
#38 0x00007f01db7fa919 in QObject::event (this=0x560835e892a0, e=0x560835ebb8b0) at kernel/qobject.cpp:1314
#39 0x00007f01dc30cdc3 in QApplicationPrivate::notify_helper (this=this@entry=0x560819e28360, receiver=receiver@entry=0x560835e892a0, e=e@entry=0x560835ebb8b0) at kernel/qapplication.cpp:3632
#40 0x00007f01dc315bb8 in QApplication::notify (this=0x7ffcbb983240, receiver=0x560835e892a0, e=0x560835ebb8b0) at kernel/qapplication.cpp:3156
#41 0x00007f01db7ccd7a in QCoreApplication::notifyInternal2 (receiver=0x560835e892a0, event=0x560835ebb8b0) at ../../include/QtCore/5.15.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#42 0x00007f01db7cf681 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x560819e0bef0) at kernel/qcoreapplication.cpp:1821
#43 0x00007f01db827f77 in postEventSourceDispatch (s=0x560819f5f3a0) at kernel/qeventdispatcher_glib.cpp:277
#44 0x00007f01d95e817d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#45 0x00007f01d95e8400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#46 0x00007f01d95e84a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#47 0x00007f01db8275d2 in QEventDispatcherGlib::processEvents (this=0x560819f60900, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#48 0x00007f01db7cb87b in QEventLoop::exec (this=this@entry=0x7ffcbb983000, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#49 0x00007f01db7d3a34 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#50 0x0000560819ca60c5 in main (argc=<optimized out>, argv=<optimized out>) at ./kate/main.cpp:699
[Inferior 1 (process 8573) detached]

The reporter indicates this bug may be a duplicate of or related to bug 421596.

Possible duplicates by query: bug 421596, bug 420134, bug 399212, bug 395913, bug 395869.

Reported using DrKonqi
Comment 1 Andreas Roth 2021-10-26 06:10:12 UTC
Created attachment 142894 [details]
New crash information added by DrKonqi

kate (21.08.2) using Qt 5.15.3

Still crashes with latest KDE framework and plasme installed on KDE neon distro (focal).

-- Backtrace (Reduced):
#4  0x00007f7a1b0c14be in QMapData<KEntryKey, KEntry>::findNode (this=0x30, akey=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:285
#5  0x00007f7a1b0c9720 in QMap<KEntryKey, KEntry>::constFind (this=0x56155ebb43c0, akey=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:850
#6  KEntryMap::constFindEntry (this=this@entry=0x56155ebb43c0, group=..., key=..., flags=..., flags@entry=...) at ./src/core/kconfigdata.cpp:60
#7  0x00007f7a1b0bb61d in KConfigPrivate::lookupData (this=this@entry=0x56155ebb43a0, group=..., key=key@entry=0x7f7a1bc25cc7 "CursorColumn", flags=..., flags@entry=...) at ./src/core/kconfig.cpp:1016
#8  0x00007f7a1b0d413c in KConfigGroup::readEntry (this=this@entry=0x56155e91db18, key=key@entry=0x7f7a1bc25cc7 "CursorColumn", aDefault=...) at /usr/include/c++/9/bits/atomic_base.h:326
Comment 2 ficticia2000 2021-12-03 17:42:23 UTC
Kate crash always  when try to open a different session in the session list.
Comment 3 Christoph Cullmann 2022-01-08 21:08:00 UTC
Hmm, the backtraces look very strange :(
Unfortunately I can't reproduce this.
Does it work with Kate 21.12?
Comment 4 Bug Janitor Service 2022-01-23 04:37:33 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 2022-02-07 04:37:15 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!