https://bugs.kde.org/show_bug.cgi?id=442873
Bug ID: 442873 Summary: kate crashes while system startup and session restore Product: kate Version: 21.08.1 Platform: Neon Packages OS: Linux Status: REPORTED Keywords: drkonqi Severity: crash Priority: NOR Component: general Assignee: kwrite-bugs-n...@kde.org Reporter: ar...@arsoft-online.com Target Milestone: --- 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 -- You are receiving this mail because: You are watching all bug changes.