https://bugs.kde.org/show_bug.cgi?id=467639
Bug ID: 467639 Summary: Crash after closing a deleted file Classification: Applications Product: kate Version: 22.08.3 Platform: Compiled Sources OS: Linux Status: REPORTED Keywords: drkonqi Severity: crash Priority: NOR Component: general Assignee: kwrite-bugs-n...@kde.org Reporter: vidra.jo...@seznam.cz Target Milestone: --- Application: kate (22.08.3) (Compiled from sources) Qt Version: 5.15.8 Frameworks Version: 5.102.0 Operating System: Linux 6.1.12-gentoo x86_64 Windowing System: X11 Distribution: "Gentoo Linux" DrKonqi: 5.26.5 [KCrashBackend] -- Information about the crash: I opened a text file made by my e-mail client in /tmp. The mail client auto-deletes the file after waiting a short time for the editor to open it. I closed the file almost immediately after it opened in the editor, presumably just as it was being deleted. The "File changed on disk" dialog popped up and after clicking "ignore", Kate crashed. 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() = 0x0} [KCrash Handler] #6 0x00007f7ad088158f in KateMwModOnHdDialog::slotSelectionChanged (this=<optimized out>, current=0x55f489b999c0) at /var/tmp/portage/kde-apps/kate-lib-22.08.3/work/kate-22.08.3/apps/lib/katemwmodonhddialog.cpp:244 #7 0x00007f7acf4a9a5e in QtPrivate::QSlotObjectBase::call (a=0x7fffbb828ef0, r=0x55f4899cf180, this=0x55f489f7c060) at /var/tmp/portage/dev-qt/qtcore-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398 #8 doActivate<false> (sender=0x55f489c1aa30, signal_index=24, argv=0x7fffbb828ef0) at /var/tmp/portage/dev-qt/qtcore-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/src/corelib/kernel/qobject.cpp:3923 #9 0x00007f7acf4a397f in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f7ad049f100 <QTreeWidget::staticMetaObject>, local_signal_index=local_signal_index@entry=8, argv=argv@entry=0x7fffbb828ef0) at /var/tmp/portage/dev-qt/qtcore-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/src/corelib/kernel/qobject.cpp:3983 #10 0x00007f7ad025226e in QTreeWidget::currentItemChanged (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>) at .moc/moc_qtreewidget.cpp:445 #11 0x00007f7acf4a9aa4 in doActivate<false> (sender=0x55f489fec210, signal_index=4, argv=0x7fffbb829000) at /var/tmp/portage/dev-qt/qtcore-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/src/corelib/kernel/qobject.cpp:3935 #12 0x00007f7acf4a397f in QMetaObject::activate (sender=sender@entry=0x55f489fec210, m=m@entry=0x7f7acf7467c0 <QItemSelectionModel::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fffbb829000) at /var/tmp/portage/dev-qt/qtcore-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/src/corelib/kernel/qobject.cpp:3983 #13 0x00007f7acf4380ba in QItemSelectionModel::currentChanged (this=this@entry=0x55f489fec210, _t1=..., _t2=...) at .moc/moc_qitemselectionmodel.cpp:482 #14 0x00007f7acf43969a in QItemSelectionModel::setCurrentIndex (this=0x55f489fec210, index=..., command=...) at /var/tmp/portage/dev-qt/qtcore-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/src/corelib/itemmodels/qitemselectionmodel.cpp:1416 #15 0x00007f7ad01df5a7 in QAbstractItemView::focusInEvent (this=0x55f489c1aa30, event=0x7fffbb829270) at /var/tmp/portage/dev-qt/qtwidgets-5.15.8-r2/work/qtbase-everywhere-src-5.15.8/src/widgets/itemviews/qabstractitemview.cpp:2251 #16 0x00007f7acffa60bc in QWidget::event (this=this@entry=0x55f489c1aa30, event=event@entry=0x7fffbb829270) at /var/tmp/portage/dev-qt/qtwidgets-5.15.8-r2/work/qtbase-everywhere-src-5.15.8/src/widgets/kernel/qwidget.cpp:8835 #17 0x00007f7ad005086e in QFrame::event (this=0x55f489c1aa30, e=0x7fffbb829270) at /var/tmp/portage/dev-qt/qtwidgets-5.15.8-r2/work/qtbase-everywhere-src-5.15.8/src/widgets/widgets/qframe.cpp:550 #18 0x00007f7acff6372f in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55f489c1aa30, e=0x7fffbb829270) at /var/tmp/portage/dev-qt/qtwidgets-5.15.8-r2/work/qtbase-everywhere-src-5.15.8/src/widgets/kernel/qapplication.cpp:3640 #19 0x00007f7acf477098 in QCoreApplication::notifyInternal2 (receiver=0x55f489c1aa30, event=0x7fffbb829270) at /var/tmp/portage/dev-qt/qtcore-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/src/corelib/kernel/qcoreapplication.cpp:1064 #20 0x00007f7acff67b59 in QApplicationPrivate::setFocusWidget (reason=<optimized out>, focus=<optimized out>) at /var/tmp/portage/dev-qt/qtwidgets-5.15.8-r2/work/qtbase-everywhere-src-5.15.8/src/widgets/kernel/qapplication.cpp:1726 #21 QApplicationPrivate::setFocusWidget (focus=focus@entry=0x55f489c1aa30, reason=reason@entry=Qt::ActiveWindowFocusReason) at /var/tmp/portage/dev-qt/qtwidgets-5.15.8-r2/work/qtbase-everywhere-src-5.15.8/src/widgets/kernel/qapplication.cpp:1680 #22 0x00007f7acff9f5b6 in QWidget::setFocus (reason=Qt::ActiveWindowFocusReason, this=<optimized out>) at /var/tmp/portage/dev-qt/qtwidgets-5.15.8-r2/work/qtbase-everywhere-src-5.15.8/src/widgets/kernel/qwidget.cpp:6349 #23 QWidget::setFocus (this=0x55f489c1aa30, reason=reason@entry=Qt::ActiveWindowFocusReason) at /var/tmp/portage/dev-qt/qtwidgets-5.15.8-r2/work/qtbase-everywhere-src-5.15.8/src/widgets/kernel/qwidget.cpp:6296 #24 0x00007f7acff67fc9 in QApplication::setActiveWindow (act=act@entry=0x55f4899cf180) at /var/tmp/portage/dev-qt/qtwidgets-5.15.8-r2/work/qtbase-everywhere-src-5.15.8/src/widgets/kernel/qapplication.cpp:2055 #25 0x00007f7acff680ab in QApplicationPrivate::notifyActiveWindowChange (this=<optimized out>, previous=<optimized out>) at /var/tmp/portage/dev-qt/qtwidgets-5.15.8-r2/work/qtbase-everywhere-src-5.15.8/src/widgets/kernel/qapplication.cpp:2101 #26 0x00007f7acf9163c5 in QGuiApplicationPrivate::processActivatedEvent (e=<optimized out>) at /var/tmp/portage/dev-qt/qtgui-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/src/gui/kernel/qguiapplication.cpp:2518 #27 0x00007f7acf8f93eb in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at /var/tmp/portage/dev-qt/qtgui-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/src/gui/kernel/qwindowsysteminterface.cpp:1169 #28 0x00007f7ac9d254da in xcbSourceDispatch (source=<optimized out>) at /var/tmp/portage/dev-qt/qtgui-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:105 #29 0x00007f7acd11f78b in g_main_dispatch (context=0x7f7ac4005010) at ../glib-2.74.5/glib/gmain.c:3454 #30 g_main_context_dispatch (context=0x7f7ac4005010) at ../glib-2.74.5/glib/gmain.c:4172 #31 0x00007f7acd11fa38 in g_main_context_iterate (context=context@entry=0x7f7ac4005010, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib-2.74.5/glib/gmain.c:4248 #32 0x00007f7acd11faef in g_main_context_iteration (context=0x7f7ac4005010, may_block=1) at ../glib-2.74.5/glib/gmain.c:4313 #33 0x00007f7acf4c76c8 in QEventDispatcherGlib::processEvents (this=0x55f4825f3a00, flags=...) at /var/tmp/portage/dev-qt/qtcore-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/src/corelib/kernel/qeventdispatcher_glib.cpp:423 #34 0x00007f7acf475b23 in QEventLoop::exec (this=this@entry=0x7fffbb8296d0, flags=..., flags@entry=...) at /var/tmp/portage/dev-qt/qtcore-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/include/QtCore/../../src/corelib/global/qflags.h:69 #35 0x00007f7ad016cf79 in QDialog::exec (this=0x55f4899cf180) at /var/tmp/portage/dev-qt/qtwidgets-5.15.8-r2/work/qtbase-everywhere-src-5.15.8/include/QtCore/../../src/corelib/global/qflags.h:121 #36 0x00007f7ad086895d in operator() (__closure=<optimized out>) at /var/tmp/portage/kde-apps/kate-lib-22.08.3/work/kate-22.08.3/apps/lib/katemainwindow.cpp:1277 #37 QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, KateMainWindow::event(QEvent*)::<lambda()> >::call (arg=<optimized out>, f=...) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:146 #38 QtPrivate::Functor<KateMainWindow::event(QEvent*)::<lambda()>, 0>::call<QtPrivate::List<>, void> (arg=<optimized out>, f=...) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:256 #39 QtPrivate::QFunctorSlotObject<KateMainWindow::event(QEvent*)::<lambda()>, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=<optimized out>, this_=<optimized out>, r=<optimized out>, a=<optimized out>, ret=<optimized out>) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:443 #40 0x00007f7acf4adb22 in QtPrivate::QSlotObjectBase::call (a=0x7fffbb829750, r=<optimized out>, this=<optimized out>) at /var/tmp/portage/dev-qt/qtcore-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398 #41 QSingleShotTimer::timerEvent (this=0x55f4892c5a90) at /var/tmp/portage/dev-qt/qtcore-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/src/corelib/kernel/qtimer.cpp:320 #42 0x00007f7acf4a1aaf in QObject::event (this=0x55f4892c5a90, e=0x7fffbb829890) at /var/tmp/portage/dev-qt/qtcore-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/src/corelib/kernel/qobject.cpp:1369 #43 0x00007f7acff6372f in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55f4892c5a90, e=0x7fffbb829890) at /var/tmp/portage/dev-qt/qtwidgets-5.15.8-r2/work/qtbase-everywhere-src-5.15.8/src/widgets/kernel/qapplication.cpp:3640 #44 0x00007f7acf477098 in QCoreApplication::notifyInternal2 (receiver=0x55f4892c5a90, event=0x7fffbb829890) at /var/tmp/portage/dev-qt/qtcore-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/src/corelib/kernel/qcoreapplication.cpp:1064 #45 0x00007f7acf4c6a2b in QTimerInfoList::activateTimers (this=0x55f4825e5d40) at /var/tmp/portage/dev-qt/qtcore-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/src/corelib/kernel/qtimerinfo_unix.cpp:643 #46 0x00007f7acf4c72d4 in timerSourceDispatch (source=<optimized out>) at /var/tmp/portage/dev-qt/qtcore-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/src/corelib/kernel/qeventdispatcher_glib.cpp:183 #47 0x00007f7acd11f78b in g_main_dispatch (context=0x7f7ac4005010) at ../glib-2.74.5/glib/gmain.c:3454 #48 g_main_context_dispatch (context=0x7f7ac4005010) at ../glib-2.74.5/glib/gmain.c:4172 #49 0x00007f7acd11fa38 in g_main_context_iterate (context=context@entry=0x7f7ac4005010, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib-2.74.5/glib/gmain.c:4248 #50 0x00007f7acd11faef in g_main_context_iteration (context=0x7f7ac4005010, may_block=1) at ../glib-2.74.5/glib/gmain.c:4313 #51 0x00007f7acf4c76c8 in QEventDispatcherGlib::processEvents (this=0x55f4825f3a00, flags=...) at /var/tmp/portage/dev-qt/qtcore-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/src/corelib/kernel/qeventdispatcher_glib.cpp:423 #52 0x00007f7acf475b23 in QEventLoop::exec (this=this@entry=0x7fffbb829ad0, flags=..., flags@entry=...) at /var/tmp/portage/dev-qt/qtcore-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/include/QtCore/../../src/corelib/global/qflags.h:69 #53 0x00007f7acf47de10 in QCoreApplication::exec () at /var/tmp/portage/dev-qt/qtcore-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/include/QtCore/../../src/corelib/global/qflags.h:121 #54 0x00007f7acf90e3fc in QGuiApplication::exec () at /var/tmp/portage/dev-qt/qtgui-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/src/gui/kernel/qguiapplication.cpp:1870 #55 0x00007f7acff636a5 in QApplication::exec () at /var/tmp/portage/dev-qt/qtwidgets-5.15.8-r2/work/qtbase-everywhere-src-5.15.8/src/widgets/kernel/qapplication.cpp:2832 #56 0x000055f480be1e32 in main (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/kde-apps/kate-22.08.3-r1/work/kate-22.08.3/apps/kate/main.cpp:607 [Inferior 1 (process 4345) detached] The reporter indicates this bug may be a duplicate of or related to bug 461558, bug 464088. Reported using DrKonqi -- You are receiving this mail because: You are watching all bug changes.