Bug 452444

Summary: KMail crashed on quit
Product: [Applications] kmail2 Reporter: Erik Quaeghebeur <bugs.kde.org>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: crash CC: bugs.kde.org, giecrilj
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi

Description Erik Quaeghebeur 2022-04-09 20:40:19 UTC
Application: kmail (5.19.3 (21.12.3))
 (Compiled from sources)
Qt Version: 5.15.2
Frameworks Version: 5.90.0
Operating System: Linux 5.15.32-gentoo-r1-a x86_64
Windowing System: X11
Distribution: Gentoo/Linux
DrKonqi: 5.23.5 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
I was opening a mail, but it did not load. Therefore, I quit the application, which triggered this crash.

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault

[KCrash Handler]
#4  0x0000734216b897d8 in QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::operator->() const (this=0x8) at ../../include/QtCore/../../../qtbase-7c6c0030cf80ef7b9ace42996b0e0c3a72f76860/src/corelib/tools/qscopedpointer.h:118
#5  qGetPtrHelper<QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> > >(QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >&) (ptr=...) at ../../include/QtCore/../../../qtbase-7c6c0030cf80ef7b9ace42996b0e0c3a72f76860/src/corelib/global/qglobal.h:1143
#6  QAction::d_func() (this=this@entry=0x0) at /var/tmp/portage/dev-qt/qtwidgets-5.15.2-r12/work/qtbase-7c6c0030cf80ef7b9ace42996b0e0c3a72f76860/src/widgets/kernel/qaction.h:63
#7  QAction::setText(QString const&) (this=this@entry=0x0, text=...) at /var/tmp/portage/dev-qt/qtwidgets-5.15.2-r12/work/qtbase-7c6c0030cf80ef7b9ace42996b0e0c3a72f76860/src/widgets/kernel/qaction.cpp:714
#8  0x000073421f0953f2 in KMMainWidget::updateFolderMenu() (this=0x734118106e60) at /var/tmp/portage/kde-apps/kmail-21.12.3/work/kmail-21.12.3/src/kmmainwidget.cpp:4043
#9  0x000073421f09fef1 in KMMainWidget::setupActions() (this=0x734118106e60) at /var/tmp/portage/kde-apps/kmail-21.12.3/work/kmail-21.12.3/src/kmmainwidget.cpp:3405
#10 0x000073421f0a5819 in KMMainWidget::KMMainWidget(QWidget*, KXMLGUIClient*, KActionCollection*, QExplicitlySharedDataPointer<KSharedConfig> const&) (this=this@entry=0x734118106e60, parent=parent@entry=0x652703b06800, aGUIClient=aGUIClient@entry=0x652703b06878, actionCollection=actionCollection@entry=0x652702bf35b0, config=...) at /var/tmp/portage/kde-apps/kmail-21.12.3/work/kmail-21.12.3/src/kmmainwidget.cpp:251
#11 0x000073421f04e5aa in KMMainWin::KMMainWin(QWidget*) (this=this@entry=0x652703b06800, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /var/tmp/portage/kde-apps/kmail-21.12.3/work/kmail-21.12.3/src/kmmainwin.cpp:49
#12 0x000073421f060607 in KMKernel::openReader(bool, bool) (this=<optimized out>, onlyCheck=<optimized out>, startInTray=<optimized out>) at /var/tmp/portage/kde-apps/kmail-21.12.3/work/kmail-21.12.3/src/kmkernel.cpp:565
#13 0x000073421f06597f in KMKernel::action(bool, bool, bool, QString const&, QString const&, QString const&, QString const&, QString const&, QUrl const&, QList<QUrl> const&, QStringList const&, QString const&, QString const&, QString const&) (this=0x7ffe4e06dbe0, mailto=<optimized out>, check=<optimized out>, startInTray=<optimized out>, to=..., cc=..., bcc=..., subj=..., body=..., messageFile=..., attachURLs=..., customHeaders=..., replyTo=..., inReplyTo=..., identity=...) at /var/tmp/portage/kde-apps/kmail-21.12.3/work/kmail-21.12.3/src/kmkernel.cpp:1276
#14 0x000073421f06729b in KMKernel::handleCommandLine(bool, QStringList const&, QString const&) (this=<optimized out>, noArgsOpensReader=noArgsOpensReader@entry=true, args=..., workingDir=...) at /var/tmp/portage/kde-apps/kmail-21.12.3/work/kmail-21.12.3/src/kmkernel.cpp:476
#15 0x0000652701705842 in KMailApplication::activate(QStringList const&, QString const&) (this=<optimized out>, args=..., workingDir=...) at /var/tmp/portage/kde-apps/kmail-21.12.3/work/kmail-21.12.3/src/main.cpp:100
#16 0x000073421f1ae123 in KontactInterface::PimUniqueApplication::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7ffe4e06d0e0, _o=<optimized out>) at /var/tmp/portage/kde-apps/kontactinterface-21.12.3/work/kontactinterface-21.12.3_build/src/KF5KontactInterface_autogen/EWIEGA46WW/moc_pimuniqueapplication.cpp:87
#17 KontactInterface::PimUniqueApplication::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x7ffe4e06d0e0) at /var/tmp/portage/kde-apps/kontactinterface-21.12.3/work/kontactinterface-21.12.3_build/src/KF5KontactInterface_autogen/EWIEGA46WW/moc_pimuniqueapplication.cpp:79
#18 0x000073421f1ae3d3 in KontactInterface::PimUniqueApplication::qt_metacall(QMetaObject::Call, int, void**) (this=0x7ffe4e06dbc0, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7ffe4e06d0e0) at /var/tmp/portage/kde-apps/kontactinterface-21.12.3/work/kontactinterface-21.12.3_build/src/KF5KontactInterface_autogen/EWIEGA46WW/moc_pimuniqueapplication.cpp:124
#19 0x0000734215895d1b in QDBusConnectionPrivate::deliverCall(QObject*, int, QDBusMessage const&, QVector<int> const&, int) (this=<optimized out>, object=<optimized out>, msg=<optimized out>, metaTypes=<optimized out>, slotIdx=<optimized out>) at ../../include/QtCore/../../../qtbase-a4f9e56975fa6ab4a1f63a9b34a4d77b1cfe4acd/src/corelib/tools/qvarlengtharray.h:190
#20 0x0000734215899863 in QDBusConnectionPrivate::activateCall(QObject*, int, QDBusMessage const&) (this=this@entry=0x73419c003a00, object=0x7ffe4e06dbc0, flags=81, msg=...) at /var/tmp/portage/dev-qt/qtdbus-5.15.2-r10/work/qtbase-a4f9e56975fa6ab4a1f63a9b34a4d77b1cfe4acd/src/dbus/qdbusintegrator.cpp:904
#21 0x000073421589a11e in QDBusConnectionPrivate::activateCall(QObject*, int, QDBusMessage const&) (msg=..., flags=<optimized out>, object=<optimized out>, this=0x73419c003a00) at /var/tmp/portage/dev-qt/qtdbus-5.15.2-r10/work/qtbase-a4f9e56975fa6ab4a1f63a9b34a4d77b1cfe4acd/src/dbus/qdbusintegrator.cpp:853
#22 QDBusConnectionPrivate::activateObject(QDBusConnectionPrivate::ObjectTreeNode&, QDBusMessage const&, int) (this=0x73419c003a00, node=..., msg=..., pathStartPos=<optimized out>) at /var/tmp/portage/dev-qt/qtdbus-5.15.2-r10/work/qtbase-a4f9e56975fa6ab4a1f63a9b34a4d77b1cfe4acd/src/dbus/qdbusintegrator.cpp:1521
#23 0x000073421589c698 in QDBusActivateObjectEvent::placeMetaCall(QObject*) (this=0x6527027efce0) at /var/tmp/portage/dev-qt/qtdbus-5.15.2-r10/work/qtbase-a4f9e56975fa6ab4a1f63a9b34a4d77b1cfe4acd/src/dbus/qdbusintegrator.cpp:1617
#24 0x00007342161e7426 in QObject::event(QEvent*) (this=0x7ffe4e06dbc0, e=0x6527027efce0) at /var/tmp/portage/dev-qt/qtcore-5.15.2-r14/work/qtbase-f4ac0b55c37f2b594ffbe639db43dac365825c7c/src/corelib/kernel/qobject.cpp:1314
#25 0x0000734216b8d96f in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x7ffe4e06dbc0, e=0x6527027efce0) at /var/tmp/portage/dev-qt/qtwidgets-5.15.2-r12/work/qtbase-7c6c0030cf80ef7b9ace42996b0e0c3a72f76860/src/widgets/kernel/qapplication.cpp:3632
#26 0x00007342161bbb78 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x7ffe4e06dbc0, event=0x6527027efce0) at /var/tmp/portage/dev-qt/qtcore-5.15.2-r14/work/qtbase-f4ac0b55c37f2b594ffbe639db43dac365825c7c/src/corelib/kernel/qcoreapplication.cpp:1064
#27 0x00007342161bf1e5 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=0x0, event_type=0, data=0x6527023c2950) at /var/tmp/portage/dev-qt/qtcore-5.15.2-r14/work/qtbase-f4ac0b55c37f2b594ffbe639db43dac365825c7c/src/corelib/kernel/qcoreapplication.cpp:1821
#28 0x000073421620e203 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x6527024cf570) at /var/tmp/portage/dev-qt/qtcore-5.15.2-r14/work/qtbase-f4ac0b55c37f2b594ffbe639db43dac365825c7c/src/corelib/kernel/qeventdispatcher_glib.cpp:277
#29 0x000073420fe7a16b in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#30 0x000073420fe7a428 in  () at /usr/lib64/libglib-2.0.so.0
#31 0x000073420fe7a4df in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#32 0x000073421620dc94 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x6527024d5d40, flags=...) at /var/tmp/portage/dev-qt/qtcore-5.15.2-r14/work/qtbase-f4ac0b55c37f2b594ffbe639db43dac365825c7c/src/corelib/kernel/qeventdispatcher_glib.cpp:423
#33 0x00007342161ba56b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffe4e06d690, flags=..., flags@entry=...) at ../../include/QtCore/../../../qtbase-f4ac0b55c37f2b594ffbe639db43dac365825c7c/src/corelib/global/qflags.h:69
#34 0x00007342161c2b9d in QCoreApplication::exec() () at ../../include/QtCore/../../../qtbase-f4ac0b55c37f2b594ffbe639db43dac365825c7c/src/corelib/global/qflags.h:121
#35 0x00007342165a429c in QGuiApplication::exec() () at /var/tmp/portage/dev-qt/qtgui-5.15.2-r16/work/qtbase-38ad2f39daec09168728033969265834b6a2d924/src/gui/kernel/qguiapplication.cpp:1867
#36 0x0000734216b8d8e5 in QApplication::exec() () at /var/tmp/portage/dev-qt/qtwidgets-5.15.2-r12/work/qtbase-7c6c0030cf80ef7b9ace42996b0e0c3a72f76860/src/widgets/kernel/qapplication.cpp:2824
#37 0x00006527017054d5 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/kde-apps/kmail-21.12.3/work/kmail-21.12.3/src/main.cpp:173
[Inferior 1 (process 302016) detached]

Possible duplicates by query: bug 449514, bug 448024, bug 447360, bug 443988, bug 443958.

Reported using DrKonqi
Comment 1 Erik Quaeghebeur 2022-04-19 12:17:38 UTC
Created attachment 148237 [details]
New crash information added by DrKonqi

kmail (5.19.3 (21.12.3)) using Qt 5.15.3

- What I was doing when the application crashed:
Loading of content of a mailbox stalled, so I wanted to restart kmail. It crashed on quitting (Ctrl-Q).

As compared to the previous bugreport, this one shows it is still present in the more recent version 21.12.3 of kmail.

-- Backtrace (Reduced):
#4  0x00007218c32707d8 in QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::operator->() const (this=0x8) at /var/tmp/portage/dev-qt/qtwidgets-5.15.3/work/qtbase-everywhere-src-5.15.3/include/QtCore/../../src/corelib/tools/qscopedpointer.h:118
[...]
#7  QAction::setText(QString const&) (this=this@entry=0x0, text=...) at /var/tmp/portage/dev-qt/qtwidgets-5.15.3/work/qtbase-everywhere-src-5.15.3/src/widgets/kernel/qaction.cpp:714
#8  0x00007218cb7953f2 in KMMainWidget::updateFolderMenu() (this=0x6279476bff20) at /var/tmp/portage/kde-apps/kmail-21.12.3/work/kmail-21.12.3/src/kmmainwidget.cpp:4043
#9  0x00007218cb79fef1 in KMMainWidget::setupActions() (this=0x6279476bff20) at /var/tmp/portage/kde-apps/kmail-21.12.3/work/kmail-21.12.3/src/kmmainwidget.cpp:3405
#10 0x00007218cb7a5819 in KMMainWidget::KMMainWidget(QWidget*, KXMLGUIClient*, KActionCollection*, QExplicitlySharedDataPointer<KSharedConfig> const&) (this=this@entry=0x6279476bff20, parent=parent@entry=0x62793c5f5da0, aGUIClient=aGUIClient@entry=0x62793c5f5e18, actionCollection=actionCollection@entry=0x62793cac7fd0, config=...) at /var/tmp/portage/kde-apps/kmail-21.12.3/work/kmail-21.12.3/src/kmmainwidget.cpp:251
Comment 2 Erik Quaeghebeur 2022-05-20 10:01:31 UTC
Created attachment 149017 [details]
New crash information added by DrKonqi

kmail (5.19.3 (21.12.3)) using Qt 5.15.3

- What I was doing when the application crashed:
Closing/Restarting KMail after restarting akonadi. The trace seems to be more complete.

-- Backtrace (Reduced):
#4  0x00007131ac3ef7d8 in QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::operator->() const (this=0x8) at /var/tmp/portage/dev-qt/qtwidgets-5.15.3/work/qtbase-everywhere-src-5.15.3/include/QtCore/../../src/corelib/tools/qscopedpointer.h:118
[...]
#7  QAction::setText(QString const&) (this=this@entry=0x0, text=...) at /var/tmp/portage/dev-qt/qtwidgets-5.15.3/work/qtbase-everywhere-src-5.15.3/src/widgets/kernel/qaction.cpp:714
#8  0x00007131b49193f2 in KMMainWidget::updateFolderMenu() (this=0x71311c623240) at /var/tmp/portage/kde-apps/kmail-21.12.3/work/kmail-21.12.3/src/kmmainwidget.cpp:4043
#9  0x00007131b4923ef1 in KMMainWidget::setupActions() (this=0x71311c623240) at /var/tmp/portage/kde-apps/kmail-21.12.3/work/kmail-21.12.3/src/kmmainwidget.cpp:3405
#10 0x00007131b4929819 in KMMainWidget::KMMainWidget(QWidget*, KXMLGUIClient*, KActionCollection*, QExplicitlySharedDataPointer<KSharedConfig> const&) (this=this@entry=0x71311c623240, parent=parent@entry=0x5dfd13c5b600, aGUIClient=aGUIClient@entry=0x5dfd13c5b678, actionCollection=actionCollection@entry=0x5dfd13a4e070, config=...) at /var/tmp/portage/kde-apps/kmail-21.12.3/work/kmail-21.12.3/src/kmmainwidget.cpp:251
Comment 3 Christopher Yeleighton 2022-10-11 17:59:21 UTC
Created attachment 152714 [details]
New crash information added by DrKonqi

kmail (5.21.1 (22.08.1)) using Qt 5.15.6

I updated the packages.  Mail was unable to read messages.  I closed Kontact.  I stopped Kontact.  I stopped Akonadi server.  I opened Kontact.  Akonadi server crashed.  I opened Kontact again.  Kontact crashed with NPE.

-- Backtrace (Reduced):
#4  0x00007fd44692e3e4 in QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::operator-> (this=0x8) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:118
[...]
#7  QAction::setText (this=this@entry=0x0, text=...) at kernel/qaction.cpp:714
#8  0x00007fd44ec6fa2a in KMMainWidget::updateFolderMenu (this=0x55e06ad3abc0) at /usr/src/debug/kmail-22.08.1-1.1.x86_64/src/kmmainwidget.cpp:4045
#9  0x00007fd44ec66d4d in KMMainWidget::setupActions (this=<optimized out>) at /usr/src/debug/kmail-22.08.1-1.1.x86_64/src/kmmainwidget.cpp:3405
#10 0x00007fd44ec57531 in KMMainWidget::KMMainWidget (this=<optimized out>, parent=<optimized out>, aGUIClient=<optimized out>, actionCollection=<optimized out>, config=..., this=<optimized out>, parent=<optimized out>, aGUIClient=<optimized out>, actionCollection=<optimized out>, config=...) at /usr/src/debug/kmail-22.08.1-1.1.x86_64/src/kmmainwidget.cpp:242
Comment 4 Christopher Yeleighton 2022-10-11 22:58:39 UTC
Created attachment 152724 [details]
New crash information added by DrKonqi

kmail (5.21.1 (22.08.1)) using Qt 5.15.6

I opened Kontact.  It opened KMail in a separate window and crashed.

-- Backtrace (Reduced):
#4  0x00007f25c6ede3e4 in QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::operator-> (this=0x8) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:118
[...]
#7  QAction::setText (this=this@entry=0x0, text=...) at kernel/qaction.cpp:714
#8  0x00007f25cf21fa2a in KMMainWidget::updateFolderMenu (this=0x560de89d3070) at /usr/src/debug/kmail-22.08.1-1.1.x86_64/src/kmmainwidget.cpp:4045
#9  0x00007f25cf216d4d in KMMainWidget::setupActions (this=<optimized out>) at /usr/src/debug/kmail-22.08.1-1.1.x86_64/src/kmmainwidget.cpp:3405
#10 0x00007f25cf207531 in KMMainWidget::KMMainWidget (this=<optimized out>, parent=<optimized out>, aGUIClient=<optimized out>, actionCollection=<optimized out>, config=..., this=<optimized out>, parent=<optimized out>, aGUIClient=<optimized out>, actionCollection=<optimized out>, config=...) at /usr/src/debug/kmail-22.08.1-1.1.x86_64/src/kmmainwidget.cpp:242
Comment 5 Erik Quaeghebeur 2022-10-26 07:23:17 UTC
Created attachment 153212 [details]
New crash information added by DrKonqi

kmail (5.20.3 (22.04.3)) using Qt 5.15.5

KMail was not responsive (gear icon shown for a mailbox but nothing happening), so I closed it upon restarting, it crashed.

-- Backtrace (Reduced):
#4  0x00007772fca428a8 in QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::operator->() const (this=0x8) at /var/tmp/portage/dev-qt/qtwidgets-5.15.5-r1/work/qtbase-everywhere-src-5.15.5/include/QtCore/../../src/corelib/tools/qscopedpointer.h:118
[...]
#7  QAction::setText(QString const&) (this=this@entry=0x0, text=...) at /var/tmp/portage/dev-qt/qtwidgets-5.15.5-r1/work/qtbase-everywhere-src-5.15.5/src/widgets/kernel/qaction.cpp:714
#8  0x0000777304f5b0c2 in KMMainWidget::updateFolderMenu() (this=0x5d0267b605b0) at /var/tmp/portage/kde-apps/kmail-22.04.3/work/kmail-22.04.3/src/kmmainwidget.cpp:4037
#9  0x0000777304f65ccd in KMMainWidget::setupActions() (this=0x5d0267b605b0) at /var/tmp/portage/kde-apps/kmail-22.04.3/work/kmail-22.04.3/src/kmmainwidget.cpp:3399
#10 0x0000777304f6b789 in KMMainWidget::KMMainWidget(QWidget*, KXMLGUIClient*, KActionCollection*, QExplicitlySharedDataPointer<KSharedConfig> const&) (this=this@entry=0x5d0267b605b0, parent=parent@entry=0x5d0253428bc0, aGUIClient=aGUIClient@entry=0x5d0253428c38, actionCollection=actionCollection@entry=0x5d0254402670, config=...) at /var/tmp/portage/kde-apps/kmail-22.04.3/work/kmail-22.04.3/src/kmmainwidget.cpp:242