Bug 462917 - KMail SEGFAULT when starting while an email window is still open
Summary: KMail SEGFAULT when starting while an email window is still open
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-12-11 16:57 UTC by Marc Joliet
Modified: 2023-01-04 07:03 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.22.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Joliet 2022-12-11 16:57:44 UTC
Application: kmail (5.22.0 (22.12.0))

Qt Version: 5.15.7
Frameworks Version: 5.100.0
Operating System: Linux 6.0.12-1-default x86_64
Windowing System: X11
Distribution: openSUSE Tumbleweed
DrKonqi: 5.26.4 [KCrashBackend]

-- Information about the crash:
I've noticed that KMail consistantly crashes when I have en email window open (for editing) and I close the main KMail window (out of habit), then open it again.  Thankfully, I don't appear to actually lose any data when that happens, but it's incredibly annoying and disruptive.

Furthermore, this has been a bug for a while now (at least a year?), but the circumstances that cause it are usually accidental (start writing a new email, take a break to go do something else, close KMail to reduce clutter, then open it again with the email window still open), so I'm only now getting around to reporting it.

(I'm not 100% certain if it's *always* reproducible, so I set reproducibility to "sometimes", but I think it's reproducible *most* of the time.)

The crash can be reproduced sometimes.

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

[KCrash Handler]
#4  0x00007faf53fa13e4 in QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::operator-> (this=0x8) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:118
#5  qGetPtrHelper<QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> > > (ptr=...) at ../../include/QtCore/../../src/corelib/global/qglobal.h:1143
#6  QAction::d_func (this=this@entry=0x0) at kernel/qaction.h:63
#7  QAction::setText (this=this@entry=0x0, text=...) at kernel/qaction.cpp:714
#8  0x00007faf5c3ec08a in KMMainWidget::updateFolderMenu (this=0x55f78a57c730) at /usr/src/debug/kmail-22.12.0/src/kmmainwidget.cpp:4053
#9  0x00007faf5c3e330d in KMMainWidget::setupActions (this=<optimized out>) at /usr/src/debug/kmail-22.12.0/src/kmmainwidget.cpp:3413
#10 0x00007faf5c3cfc81 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.12.0/src/kmmainwidget.cpp:242
#11 0x00007faf5c397664 in KMMainWin::KMMainWin (this=<optimized out>, this=<optimized out>) at /usr/src/debug/kmail-22.12.0/src/kmmainwin.cpp:53
#12 0x00007faf5c3a7837 in KMKernel::openReader (this=<optimized out>, onlyCheck=<optimized out>, startInTray=<optimized out>) at /usr/src/debug/kmail-22.12.0/src/kmkernel.cpp:562
#13 0x00007faf5c3ad28f in KMKernel::action (this=0x7ffeb4fa3a80, mailto=<optimized out>, check=<optimized out>, startInTray=<optimized out>, to=..., cc=..., bcc=..., subj=..., body=..., messageFile=..., attachURLs=..., customHeaders=..., replyTo=..., inReplyTo=..., identity=...) at /usr/src/debug/kmail-22.12.0/src/kmkernel.cpp:1280
#14 0x00007faf5c3a61fa in KMKernel::handleCommandLine (this=<optimized out>, noArgsOpensReader=noArgsOpensReader@entry=true, args=..., workingDir=...) at /usr/src/debug/kmail-22.12.0/src/kmkernel.cpp:473
#15 0x000055f785e90849 in KMailApplication::activate (this=<optimized out>, args=..., workingDir=...) at /usr/src/debug/kmail-22.12.0/src/main.cpp:107
#16 0x00007faf5c58f553 in ?? () from /lib64/libKF5KontactInterface.so.5
#17 0x00007faf5c58f633 in KontactInterface::PimUniqueApplication::qt_metacall(QMetaObject::Call, int, void**) () from /lib64/libKF5KontactInterface.so.5
#18 0x00007faf52f9255b in ?? () from /lib64/libQt5DBus.so.5
#19 0x00007faf52f96120 in ?? () from /lib64/libQt5DBus.so.5
#20 0x00007faf52f9697e in ?? () from /lib64/libQt5DBus.so.5
#21 0x00007faf52f98db8 in ?? () from /lib64/libQt5DBus.so.5
#22 0x00007faf53307c40 in QObject::event (this=0x7ffeb4fa3a60, e=0x55f78a6b22e0) at kernel/qobject.cpp:1347
#23 0x00007faf53fa53fe in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x7ffeb4fa3a60, e=0x55f78a6b22e0) at kernel/qapplication.cpp:3637
#24 0x00007faf532dc128 in QCoreApplication::notifyInternal2 (receiver=0x7ffeb4fa3a60, event=0x55f78a6b22e0) at kernel/qcoreapplication.cpp:1064
#25 0x00007faf532df0c1 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x55f786de6990) at kernel/qcoreapplication.cpp:1821
#26 0x00007faf53334353 in postEventSourceDispatch (s=0x55f786f663d0) at kernel/qeventdispatcher_glib.cpp:277
#27 0x00007faf4f329a90 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#28 0x00007faf4f329e48 in ?? () from /lib64/libglib-2.0.so.0
#29 0x00007faf4f329edc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#30 0x00007faf53333b56 in QEventDispatcherGlib::processEvents (this=0x55f786f5ffe0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#31 0x00007faf532dab9b in QEventLoop::exec (this=this@entry=0x7ffeb4fa3540, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#32 0x00007faf532e2d06 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#33 0x000055f785e8f701 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kmail-22.12.0/src/main.cpp:184
[Inferior 1 (process 14191) detached]

The reporter indicates this bug may be a duplicate of or related to bug 346177, bug 452444.

Reported using DrKonqi