Bug 449872 - Kontact crashed while trying to reply to email
Summary: Kontact crashed while trying to reply to email
Status: CONFIRMED
Alias: None
Product: kontact
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-02-09 16:06 UTC by Adam Jimerson
Modified: 2022-02-13 08:36 UTC (History)
5 users (show)

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


Attachments
New crash information added by DrKonqi (16.10 KB, text/plain)
2022-02-10 07:33 UTC, Sven Eden
Details
Stacktrace from just launching Kmail (8.14 KB, text/vnd.kde.kcrash-report)
2022-02-10 12:40 UTC, Adam Jimerson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Jimerson 2022-02-09 16:06:08 UTC
Application: kontact (5.19.2 (21.12.2))

Qt Version: 5.15.2
Frameworks Version: 5.90.0
Operating System: Linux 5.16.7-arch1-1 x86_64
Windowing System: X11
Distribution: "Arch Linux"
DrKonqi: 5.24.0 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:

When trying to reply to an email with the "a" keyboard shortcut Kontact crashed and continunally crashes when trying to restart the application.

The crash can be reproduced every time.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault

[KCrash Handler]
#4  std::__atomic_base<int>::load(std::memory_order) const (__m=std::memory_order_relaxed, this=0x8) at /usr/include/qt/QtCore/qrefcount.h:54
#5  QAtomicOps<int>::loadRelaxed<int>(std::atomic<int> const&) (_q_value=...) at /usr/include/qt/QtCore/qatomic_cxx11.h:239
#6  QBasicAtomicInteger<int>::loadRelaxed() const (this=0x8) at /usr/include/qt/QtCore/qbasicatomic.h:107
#7  QtPrivate::RefCount::ref() (this=0x8) at /usr/include/qt/QtCore/qrefcount.h:55
#8  QString::QString(QString const&) (this=0x7ffcc1136340, other=..., this=<optimized out>, other=<optimized out>) at /usr/include/qt/QtCore/qstring.h:1094
#9  0x00007f7009c03b86 in std::_Head_base<3ul, QString, false>::_Head_base(QString const&) (__h=..., this=0x7ffcc1136340, this=<optimized out>, __h=<optimized out>) at /usr/include/c++/11.1.0/tuple:182
#10 std::_Tuple_impl<3ul, QString, QString>::_Tuple_impl(QString const&, QString const&) (__tail#0=<optimized out>, __head=..., this=0x7ffcc1136338) at /usr/include/c++/11.1.0/tuple:270
#11 std::_Tuple_impl<2ul, QString, QString, QString>::_Tuple_impl(QString const&, QString const&, QString const&) (__tail#1=<optimized out>, __tail#0=..., __head=..., this=0x7ffcc1136338) at /usr/include/c++/11.1.0/tuple:270
#12 std::_Tuple_impl<1ul, GpgME::Key, QString, QString, QString>::_Tuple_impl(GpgME::Key const&, QString const&, QString const&, QString const&) (__tail#2=<optimized out>, __tail#1=..., __tail#0=..., __head=..., this=0x7ffcc1136338) at /usr/include/c++/11.1.0/tuple:270
#13 std::_Tuple_impl<0ul, std::_Placeholder<1>, GpgME::Key, QString, QString, QString>::_Tuple_impl(std::_Placeholder<1> const&, GpgME::Key const&, QString const&, QString const&, QString const&) (__tail#3=<optimized out>, __tail#2=..., __tail#1=..., __tail#0=..., __head=<optimized out>, this=0x7ffcc1136338) at /usr/include/c++/11.1.0/tuple:270
#14 std::tuple<std::_Placeholder<1>, GpgME::Key, QString, QString, QString>::tuple<true, true>(std::_Placeholder<1> const&, GpgME::Key const&, QString const&, QString const&, QString const&) (__elements#4=<optimized out>, __elements#3=..., __elements#2=..., __elements#1=..., __elements#0=<optimized out>, this=0x7ffcc1136338) at /usr/include/c++/11.1.0/tuple:719
#15 std::_Bind<std::tuple<GpgME::Error, QString, GpgME::Error> (*(std::_Placeholder<1>, GpgME::Key, QString, QString, QString))(GpgME::Context*, GpgME::Key const&, QString const&, QString const&, QString const&)>::_Bind<std::_Placeholder<1> const&, GpgME::Key const&, QString const&, QString const&, QString const&>(std::tuple<GpgME::Error, QString, GpgME::Error> (*&&)(GpgME::Context*, GpgME::Key const&, QString const&, QString const&, QString const&), std::_Placeholder<1> const&, GpgME::Key const&, QString const&, QString const&, QString const&) (__f=<optimized out>, this=<optimized out>) at /usr/include/c++/11.1.0/functional:490
#16 std::bind<std::tuple<GpgME::Error, QString, GpgME::Error> (*)(GpgME::Context*, GpgME::Key const&, QString const&, QString const&, QString const&), std::_Placeholder<1> const&, GpgME::Key const&, QString const&, QString const&, QString const&>(std::tuple<GpgME::Error, QString, GpgME::Error> (*&&)(GpgME::Context*, GpgME::Key const&, QString const&, QString const&, QString const&), std::_Placeholder<1> const&, GpgME::Key const&, QString const&, QString const&, QString const&) (__f=<optimized out>) at /usr/include/c++/11.1.0/functional:793
#17 QGpgME::QGpgMEAddUserIDJob::start(GpgME::Key const&, QString const&, QString const&, QString const&) (this=0x562d32e9f830, key=..., name=..., email=..., comment=<optimized out>) at /build/gpgme/src/gpgme-1.17.0/lang/qt/src/qgpgmeadduseridjob.cpp:82
#18 0x00007f70098fe059 in KMComposerWin::slotRecipientAdded(MessageComposer::RecipientLineNG*) (this=0x562d31d2fe70, line=<optimized out>) at /usr/src/debug/kmail-21.12.2/src/editor/kmcomposerwin.cpp:3776
#19 0x00007f707abfad93 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffcc11365a0, r=<optimized out>, this=0x562d32e41f50, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#20 doActivate<false>(QObject*, int, void**) (sender=0x562d32808940, signal_index=15, argv=0x7ffcc11365a0) at kernel/qobject.cpp:3886
#21 0x00007f700927e364 in MessageComposer::RecipientLineNG::analyzeLine(QString const&) (this=0x562d32808940, text=<optimized out>) at /usr/src/debug/messagelib-21.12.2/messagecomposer/src/recipient/recipientline.cpp:120
#22 0x00007f707abfad93 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffcc11366f0, r=<optimized out>, this=0x562d32823f00, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#23 doActivate<false>(QObject*, int, void**) (sender=0x562d3280a1e0, signal_index=7, argv=0x7ffcc11366f0) at kernel/qobject.cpp:3886
#24 0x00007f707b7c1ef7 in QLineEdit::textChanged(QString const&) (this=<optimized out>, _t1=<optimized out>) at .moc/moc_qlineedit.cpp:447
#25 0x00007f707abfaddf in doActivate<false>(QObject*, int, void**) (sender=0x562d31de3fb0, signal_index=6, argv=0x7ffcc11367f0) at kernel/qobject.cpp:3898
#26 0x00007f707b7cd1fa in QWidgetLineControl::textChanged(QString const&) (this=this@entry=0x562d31de3fb0, _t1=...) at .moc/moc_qwidgetlinecontrol_p.cpp:273
#27 0x00007f707b7d0eb1 in QWidgetLineControl::finishChange(int, bool, bool) (this=0x562d31de3fb0, validateFromState=-1055692752, update=<optimized out>, edited=<optimized out>) at widgets/qwidgetlinecontrol.cpp:736
#28 0x00007f707b7d1199 in QWidgetLineControl::internalSetText(QString const&, int, bool) (this=0x562d31de3fb0, txt=..., pos=-1, edited=<optimized out>) at widgets/qwidgetlinecontrol.cpp:772
#29 0x00007f7008e6bc39 in PimCommon::AddresseeLineEdit::setText(QString const&) (this=0x562d3280a1e0, text=...) at /usr/src/debug/pimcommon-21.12.2/src/pimcommonakonadi/addressline/addresslineedit/addresseelineedit.cpp:249
#30 0x00007f700927b8af in MessageComposer::RecipientLineNG::fieldsFromData() (this=0x562d32808940) at /usr/src/debug/messagelib-21.12.2/messagecomposer/src/recipient/recipientline.cpp:169
#31 0x00007f700927b9de in MessageComposer::RecipientLineNG::setData(QSharedPointer<KPIM::MultiplyingLineData> const&) (this=0x562d32808940, data=<optimized out>) at /usr/src/debug/messagelib-21.12.2/messagecomposer/src/recipient/recipientline.cpp:135
#32 0x00007f707a3d7235 in KPIM::MultiplyingLineEditor::addData(QSharedPointer<KPIM::MultiplyingLineData> const&, bool) (this=this@entry=0x562d327f1590, data=..., showDialogBox=showDialogBox@entry=false) at /usr/src/debug/libkdepim-21.12.2/src/libkdepim/multiplyingline/multiplyinglineeditor.cpp:50
#33 0x00007f700927c133 in MessageComposer::RecipientsEditor::addRecipient(QString const&, MessageComposer::Recipient::Type) (this=0x562d327f1590, recipient=..., type=MessageComposer::Recipient::To) at /usr/src/debug/messagelib-21.12.2/messagecomposer/src/recipient/recipientseditor.cpp:102
#34 0x00007f7009280cd5 in MessageComposer::RecipientsEditor::setRecipientString(QVector<KMime::Types::Mailbox> const&, MessageComposer::Recipient::Type) (this=0x562d327f1590, mailboxes=..., type=MessageComposer::Recipient::To) at /usr/src/debug/messagelib-21.12.2/messagecomposer/src/recipient/recipientseditor.cpp:124
#35 0x00007f7009258d5a in MessageComposer::ComposerViewBase::setMessage(QSharedPointer<KMime::Message> const&, bool) (this=0x562d31ea2d70, msg=..., allowDecryption=allowDecryption@entry=false) at /usr/src/debug/messagelib-21.12.2/messagecomposer/src/composer/composerviewbase.cpp:115
#36 0x00007f70098ef180 in KMComposerWin::setMessage(QSharedPointer<KMime::Message> const&, bool, bool, bool, bool, bool) (this=0x562d31d2fe70, newMsg=..., lastSignState=<optimized out>, lastEncryptState=<optimized out>, mayAutoSign=<optimized out>, allowDecryption=<optimized out>, isModified=false) at /usr/src/debug/kmail-21.12.2/src/editor/kmcomposerwin.cpp:1777
#37 0x00007f70098df1a5 in KMComposerWin::KMComposerWin(QSharedPointer<KMime::Message> const&, bool, bool, KMail::Composer::TemplateContext, unsigned int, QString const&, QString const&) (this=0x562d31d2fe70, aMsg=..., lastSignState=<optimized out>, lastEncryptState=<optimized out>, context=<optimized out>, id=<optimized out>, textSelection=..., customTemplate=..., this=<optimized out>, aMsg=<optimized out>, lastSignState=<optimized out>, lastEncryptState=<optimized out>, context=<optimized out>, id=<optimized out>, textSelection=<optimized out>, customTemplate=<optimized out>) at /usr/src/debug/kmail-21.12.2/src/editor/kmcomposerwin.cpp:506
#38 0x00007f70098d3d96 in KMComposerWin::create(QSharedPointer<KMime::Message> const&, bool, bool, KMail::Composer::TemplateContext, unsigned int, QString const&, QString const&) (customTemplate=..., textSelection=<optimized out>, identity=0, context=KMail::Composer::ReplyToAll, lastEncryptState=<optimized out>, lastSignState=false, msg=...) at /usr/src/debug/kmail-21.12.2/src/editor/kmcomposerwin.cpp:223
#39 KMail::makeComposer(QSharedPointer<KMime::Message> const&, bool, bool, KMail::Composer::TemplateContext, unsigned int, QString const&, QString const&) (msg=..., lastSignState=<optimized out>, lastEncryptState=<optimized out>, context=KMail::Composer::ReplyToAll, identity=0, textSelection=..., customTemplate=...) at /usr/src/debug/kmail-21.12.2/src/editor/kmcomposerwin.cpp:212
#40 0x00007f700990fd18 in CreateReplyMessageJob::slotCreateReplyDone(MessageComposer::MessageFactoryNG::MessageReply const&) (this=0x562d31c90140, reply=...) at /usr/src/debug/kmail-21.12.2/src/job/createreplymessagejob.cpp:70
#41 0x00007f707abfad93 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffcc11379c0, r=<optimized out>, this=0x562d31c6f720, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#42 doActivate<false>(QObject*, int, void**) (sender=0x562d2f753cb0, signal_index=3, argv=0x7ffcc11379c0) at kernel/qobject.cpp:3886
#43 0x00007f700922edd7 in MessageComposer::MessageFactoryNG::createReplyDone(MessageComposer::MessageFactoryNG::MessageReply const&) (this=<optimized out>, _t1=<optimized out>) at /usr/src/debug/build/messagecomposer/src/KF5MessageComposer_autogen/UDLBVYHCV3/moc_messagefactoryng.cpp:196
#44 0x00007f70092a6e95 in MessageComposer::MessageFactoryNG::slotCreateReplyDone(QSharedPointer<KMime::Message> const&, bool) (this=0x562d2f753cb0, msg=..., replyAll=<optimized out>) at /usr/src/debug/messagelib-21.12.2/messagecomposer/src/helper/messagefactoryng.cpp:119
#45 0x00007f707abfad93 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffcc1137b40, r=<optimized out>, this=0x562d31e19f20, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#46 doActivate<false>(QObject*, int, void**) (sender=0x562d2f71fa50, signal_index=3, argv=0x7ffcc1137b40) at kernel/qobject.cpp:3886
#47 0x00007f70092a8ac4 in MessageComposer::MessageFactoryReplyJob::replyDone(QSharedPointer<KMime::Message> const&, bool) (_t2=<optimized out>, _t1=..., this=0x562d2f71fa50) at /usr/src/debug/build/messagecomposer/src/KF5MessageComposer_autogen/UDLBVYHCV3/moc_messagefactoryreplyjob.cpp:147
#48 MessageComposer::MessageFactoryReplyJob::slotReplyDone() (this=0x562d2f71fa50) at /usr/src/debug/messagelib-21.12.2/messagecomposer/src/helper/messagefactoryreplyjob.cpp:45
#49 0x00007f707abfad93 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffcc1137c50, r=<optimized out>, this=0x562d31e1c6c0, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#50 doActivate<false>(QObject*, int, void**) (sender=0x562d2eec3150, signal_index=3, argv=0x7ffcc1137c50) at kernel/qobject.cpp:3886
#51 0x00007f7009180a24 in TemplateParser::TemplateParserJob::parsingDone(bool) (this=this@entry=0x562d2eec3150, _t1=<optimized out>) at /usr/src/debug/build/templateparser/src/KF5TemplateParser_autogen/EWIEGA46WW/moc_templateparserjob.cpp:145
#52 0x00007f7009184e2d in TemplateParser::TemplateParserJob::slotExtractInfoDone(TemplateParserExtractHtmlInfoResult const&) (this=<optimized out>, result=<optimized out>) at /usr/src/debug/messagelib-21.12.2/templateparser/src/templateparserjob.cpp:1076
#53 0x00007f707abfad93 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffcc1137ed0, r=<optimized out>, this=0x562d2efe7d20, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#54 doActivate<false>(QObject*, int, void**) (sender=0x562d2f0ec240, signal_index=3, argv=0x7ffcc1137ed0) at kernel/qobject.cpp:3886
#55 0x00007f70091971f1 in TemplateParser::TemplateParserExtractHtmlInfo::finished(TemplateParserExtractHtmlInfoResult const&) (_t1=..., this=0x562d2f0ec240) at /usr/src/debug/build/templateparser/src/KF5TemplateParser_autogen/EWIEGA46WW/moc_templateparserextracthtmlinfo.cpp:146
#56 TemplateParser::TemplateParserExtractHtmlInfo::slotExtractHtmlElementFinished(bool) (this=0x562d2f0ec240, success=<optimized out>) at /usr/src/debug/messagelib-21.12.2/templateparser/src/templateparserextracthtmlinfo.cpp:87
#57 0x00007f707abfad93 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffcc1138030, r=<optimized out>, this=0x562d2f7003a0, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#58 doActivate<false>(QObject*, int, void**) (sender=0x562d2dc06380, signal_index=3, argv=0x7ffcc1138030) at kernel/qobject.cpp:3886
#59 0x00007f7009197cfe in TemplateParser::TemplateExtractHtmlElementFromMail::loadContentDone(bool) (_t1=true, this=0x562d2dc06380) at /usr/src/debug/build/templateparser/src/KF5TemplateParser_autogen/EWIEGA46WW/moc_templateextracthtmlelementfrommail.cpp:133
#60 TemplateParser::TemplateExtractHtmlElementFromMail::handleHtmlInfo(QVariant const&) (this=0x562d2dc06380, result=<optimized out>) at /usr/src/debug/messagelib-21.12.2/templateparser/src/templateextracthtmlelementfrommail.cpp:84
#61 0x00007f7079fed2e6 in QtWebEngineCore::CallbackDirectory::invokeInternal<QVariant const&>(unsigned long long, QVariant const&) (result=..., callbackId=<optimized out>, this=<optimized out>) at /usr/src/debug/qtwebengine/src/core/api/qwebenginecallback_p.h:182
#62 QtWebEngineCore::CallbackDirectory::invoke(unsigned long long, QVariant const&) (result=..., callbackId=140723547766960, this=<optimized out>) at /usr/src/debug/qtwebengine/src/core/api/qwebenginecallback_p.h:111
#63 QWebEnginePagePrivate::didRunJavaScript(unsigned long long, QVariant const&) (this=this@entry=0x562d2d9af460, requestId=requestId@entry=5, result=...) at /usr/src/debug/qtwebengine/src/webenginewidgets/api/qwebenginepage.cpp:381
#64 0x00007f7072e1d459 in QtWebEngineCore::callbackOnEvaluateJS (result=Python Exception <class 'gdb.MemoryError'>: Cannot access memory at address 0x5
#65 QtWebEngineCore::callbackOnEvaluateJS(QtWebEngineCore::WebContentsAdapterClient*, quint64, base::Value) (adapterClient=0x562d2d9af460, requestId=5, result=...) at /usr/src/debug/qtwebengine/src/core/web_contents_adapter.cpp:221
#66 0x00007f7072e272b3 in base::internal::FunctorTraits<void (*)(QtWebEngineCore::WebContentsAdapterClient*, unsigned long long, base::Value), void>::Invoke<void (*)(QtWebEngineCore::WebContentsAdapterClient*, unsigned long long, base::Value), QtWebEngineCore::WebContentsAdapterClient*, unsigned long long, base::Value>(void (*&&)(QtWebEngineCore::WebContentsAdapterClient*, unsigned long long, base::Value), QtWebEngineCore::WebContentsAdapterClient*&&, unsigned long long&&, base::Value&&) (function=<optimized out>, function=@0x7f7034086da0: 0x7f7072e1d410 <QtWebEngineCore::callbackOnEvaluateJS(QtWebEngineCore::WebContentsAdapterClient*, quint64, base::Value)>) at release/../../../../qtwebengine/src/3rdparty/chromium/base/bind_internal.h:393
#67 base::internal::InvokeHelper<false, void>::MakeItSo<void (*)(QtWebEngineCore::WebContentsAdapterClient*, unsigned long long, base::Value), QtWebEngineCore::WebContentsAdapterClient*, unsigned long long, base::Value>(void (*&&)(QtWebEngineCore::WebContentsAdapterClient*, unsigned long long, base::Value), QtWebEngineCore::WebContentsAdapterClient*&&, unsigned long long&&, base::Value&&) (functor=@0x7f7034086da0: 0x7f7072e1d410 <QtWebEngineCore::callbackOnEvaluateJS(QtWebEngineCore::WebContentsAdapterClient*, quint64, base::Value)>) at release/../../../../qtwebengine/src/3rdparty/chromium/base/bind_internal.h:637
#68 base::internal::Invoker<base::internal::BindState<void (*)(QtWebEngineCore::WebContentsAdapterClient*, unsigned long long, base::Value), QtWebEngineCore::WebContentsAdapterClient*, unsigned long long>, void (base::Value)>::RunImpl<void (*)(QtWebEngineCore::WebContentsAdapterClient*, unsigned long long, base::Value), std::tuple<QtWebEngineCore::WebContentsAdapterClient*, unsigned long long>, 0ul, 1ul>(void (*&&)(QtWebEngineCore::WebContentsAdapterClient*, unsigned long long, base::Value), std::tuple<QtWebEngineCore::WebContentsAdapterClient*, unsigned long long>&&, std::integer_sequence<unsigned long, 0ul, 1ul>, base::Value&&) (unbound_args#0=<optimized out>, bound=..., functor=@0x7f7034086da0: 0x7f7072e1d410 <QtWebEngineCore::callbackOnEvaluateJS(QtWebEngineCore::WebContentsAdapterClient*, quint64, base::Value)>) at release/../../../../qtwebengine/src/3rdparty/chromium/base/bind_internal.h:711
#69 base::internal::Invoker<base::internal::BindState<void (*)(QtWebEngineCore::WebContentsAdapterClient*, unsigned long long, base::Value), QtWebEngineCore::WebContentsAdapterClient*, unsigned long long>, void (base::Value)>::RunOnce(base::internal::BindStateBase*, base::Value&&) (base=0x7f7034086d80, unbound_args#0=<optimized out>) at release/../../../../qtwebengine/src/3rdparty/chromium/base/bind_internal.h:679
#70 0x00007f707388edd5 in base::OnceCallback<void (base::Value)>::Run(base::Value) && () at ../../../../qtwebengine/src/3rdparty/chromium/base/callback.h:100
#71 content::mojom::FrameNavigationControl_JavaScriptExecuteRequestInIsolatedWorld_ForwardToCallback::Accept(mojo::Message*) () at gen/content/common/frame.mojom.cc:2724
#72 0x00007f70755e1267 in mojo::InterfaceEndpointClient::HandleValidatedMessage(mojo::Message*) () at ../../../../qtwebengine/src/3rdparty/chromium/mojo/public/cpp/bindings/lib/interface_endpoint_client.cc:549
#73 0x00007f70756235f3 in AcceptOnProxyThread() () at ../../../../qtwebengine/src/3rdparty/chromium/ipc/ipc_mojo_bootstrap.cc:947
#74 0x00007f70756211b8 in Invoke<void (IPC::(anonymous namespace)::ChannelAssociatedGroupController::*)(mojo::Message), scoped_refptr<IPC::(anonymous namespace)::ChannelAssociatedGroupController>, mojo::Message> () at ../../../../qtwebengine/src/3rdparty/chromium/base/bind_internal.h:498
#75 MakeItSo<void (IPC::(anonymous namespace)::ChannelAssociatedGroupController::*)(mojo::Message), scoped_refptr<IPC::(anonymous namespace)::ChannelAssociatedGroupController>, mojo::Message> () at ../../../../qtwebengine/src/3rdparty/chromium/base/bind_internal.h:637
#76 RunImpl<void (IPC::(anonymous namespace)::ChannelAssociatedGroupController::*)(mojo::Message), std::tuple<scoped_refptr<IPC::(anonymous namespace)::ChannelAssociatedGroupController>, mojo::Message>, 0, 1> () at ../../../../qtwebengine/src/3rdparty/chromium/base/bind_internal.h:711
#77 RunOnce() () at ../../../../qtwebengine/src/3rdparty/chromium/base/bind_internal.h:679
#78 0x00007f7074f44607 in base::OnceCallback<void ()>::Run() && () at ../../../../qtwebengine/src/3rdparty/chromium/base/callback.h:100
#79 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) () at ./../../../../qtwebengine/src/3rdparty/chromium/base/task/common/task_annotator.cc:163
#80 0x00007f7074f57ea2 in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*) () at ./../../../../qtwebengine/src/3rdparty/chromium/base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:332
#81 0x00007f7074f5830c in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() () at ./../../../../qtwebengine/src/3rdparty/chromium/base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252
#82 0x00007f7072dac6ac in QtWebEngineCore::MessagePumpForUIQt::handleScheduledWork() (this=0x562d28c70cd0) at /usr/src/debug/qtwebengine/src/core/browser_main_parts_qt.cpp:208
#83 QtWebEngineCore::MessagePumpForUIQt::MessagePumpForUIQt()::{lambda()#1}::operator()() const (__closure=<optimized out>) at /usr/src/debug/qtwebengine/src/core/browser_main_parts_qt.cpp:121
#84 std::__invoke_impl<void, QtWebEngineCore::MessagePumpForUIQt::MessagePumpForUIQt()::{lambda()#1}&>(std::__invoke_other, QtWebEngineCore::MessagePumpForUIQt::MessagePumpForUIQt()::{lambda()#1}&) (__f=<optimized out>) at /usr/include/c++/11.1.0/bits/invoke.h:61
#85 std::__invoke_r<void, QtWebEngineCore::MessagePumpForUIQt::MessagePumpForUIQt()::{lambda()#1}&>(QtWebEngineCore::MessagePumpForUIQt::MessagePumpForUIQt()::{lambda()#1}&) (__fn=<optimized out>) at /usr/include/c++/11.1.0/bits/invoke.h:154
#86 std::_Function_handler<void (), QtWebEngineCore::MessagePumpForUIQt::MessagePumpForUIQt()::{lambda()#1}>::_M_invoke(std::_Any_data const&) (__functor=<optimized out>) at /usr/include/c++/11.1.0/bits/std_function.h:291
#87 0x00007f707abede06 in QObject::event(QEvent*) (this=0x562d28c70ce0, e=0x7f6f980261b0) at kernel/qobject.cpp:1291
#88 0x00007f707b68a1a6 in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x562d28c70ce0, e=0x7f6f980261b0) at kernel/qapplication.cpp:3632
#89 0x00007f707abca16a in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x562d28c70ce0, event=0x7f6f980261b0) at kernel/qcoreapplication.cpp:1064
#90 0x00007f707abcac69 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=0x0, event_type=0, data=0x562d285c0bb0) at kernel/qcoreapplication.cpp:1821
#91 0x00007f707ac11548 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x562d28686670) at kernel/qeventdispatcher_glib.cpp:277
#92 0x00007f70713f5f13 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#93 0x00007f707144c0d9 in  () at /usr/lib/libglib-2.0.so.0
#94 0x00007f70713f3485 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#95 0x00007f707ac1544a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x562d28697340, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#96 0x00007f707abc244b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7ffcc1138b10, flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#97 0x00007f707abcdb97 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#98 0x00007f707afe2162 in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1867
#99 0x00007f707b68852a in QApplication::exec() () at kernel/qapplication.cpp:2824
#100 0x0000562d281f796d in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kontact-21.12.2/src/main.cpp:215
[Inferior 1 (process 39501) detached]

Possible duplicates by query: bug 443784, bug 440840, bug 439645, bug 439597, bug 438659.

Reported using DrKonqi
Comment 1 Sven Eden 2022-02-10 07:33:20 UTC
Created attachment 146521 [details]
New crash information added by DrKonqi

kontact (5.19.2 (21.12.2)) using Qt 5.15.2

- What I was doing when the application crashed:
Pressed 'a' to reply to everybody on a selected E-Mail in kmail component.

Since then I can no longer start kontact, it immediately crashes. However, when I restart akonadi, I get notifications about new E-Mails, and KOrganizer works.
Starting kmail directly also crashes.

- Custom settings of the application:
Gentoo Linux with gcc-11.2.1 and Qt-5.15.2

I have rebuilt everything needed for kontact plus kontact itself and have restarted the computer several times.
The odd thing is, that Kontact worked just fine like every day.

However, I have removed ~/.local/share/akonadi/db_data a week ago and have had akonadi recreate it. Everything worked just fine, so I doubt this could be the issue.

-- Backtrace (Reduced):
#6  QString::QString(QString const&) (other=<optimized out>, this=<optimized out>) at /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/g++-v11/bits/move.h:104
#7  std::_Head_base<4ul, QString, false>::_Head_base(QString const&) (__h=<optimized out>, this=<optimized out>) at /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/g++-v11/tuple:193
#8  std::_Tuple_impl<4ul, QString>::_Tuple_impl(QString const&) (__head=<optimized out>, this=<optimized out>) at /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/g++-v11/tuple:435
#9  std::_Tuple_impl<3ul, QString, QString>::_Tuple_impl(QString const&, QString const&) (__tail#0=<optimized out>, __head=<optimized out>, this=<optimized out>) at /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/g++-v11/tuple:284
#10 std::_Tuple_impl<2ul, QString, QString, QString>::_Tuple_impl(QString const&, QString const&, QString const&) (__tail#1=<optimized out>, __tail#0=<optimized out>, __head=<optimized out>, this=<optimized out>) at /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/g++-v11/tuple:284
Comment 2 Sven Eden 2022-02-10 07:50:57 UTC
Interesting...
Adams and my crash happened about around the same time, yesterday...

Both go through
(Adam) KMComposerWin::slotRecipientAdded(MessageComposer::RecipientLineNG*) (this=0x562d31d2fe70, line=<optimized out>) at kmail-21.12.2/src/editor/kmcomposerwin.cpp:3776
( me )   KMComposerWin::slotRecipientAdded(MessageComposer::RecipientLineNG*) (this=0x556321561410, line=<optimized out>) at kmail-21.12.2/src/editor/kmcomposerwin.cpp:3776

Then
(Adam) QGpgME::QGpgMEAddUserIDJob::start(GpgME::Key const&, QString const&, QString const&, QString const&) (this=0x562d32e9f830, key=..., name=..., email=..., comment=<optimized out>) at qt/src/qgpgmeadduseridjob.cpp:82
( me )    QGpgME::QGpgMEAddUserIDJob::start(GpgME::Key const&, QString const&, QString const&, QString const&) (this=0x55632406a610, key=..., name=..., email=..., comment=...) at qgpgmeadduseridjob.cpp:82

Before that the stack consists of: (shortened)
#33 src/widgets/widgets/qlineedit.cpp:318
#34 src/klineedit.cpp:371
#35 src/pimcommonakonadi/addressline/addresslineedit/addresseelineedit.cpp:249
#36 src/recipient/recipientline.cpp:169
#37 src/recipient/recipientline.cpp:135
#38 src/libkdepim/multiplyingline/multiplyinglineeditor.cpp:50
#39 src/recipient/recipientseditor.cpp:102

I think that this is an odd stack for an application startup.

When I start KMail only, it also crashes and consists of this in the stack trace: (I have reformatted the lines to point at what DrKonqi presented me in red)

#20 0x00007f1649f142af in QMetaObject::activate(QObject*, QMetaObject const*, int, void**)
  (sender=sender@entry=0x560d43431dd0,
             m=m@entry=0x7f1649067800 <MessageComposer::RecipientLineNG::staticMetaObject>,
             local_signal_index=local_signal_index@entry=2,
             argv=argv@entry=0x0)                             <=== argv=0x0 ? marked red by DrKonqi
  at src/corelib/kernel/qobject.cpp:3946
#21 0x00007f1648f5be03 in MessageComposer::RecipientLineNG::countChanged()
  (this=this@entry=0x560d43431dd0)
  at messagecomposer/src/KF5MessageComposer_autogen/LXYSN6NNNG/moc_recipientline.cpp:481
#22 0x00007f1648fb4ffe in MessageComposer::RecipientLineNG::analyzeLine(QString const&)
  (this=0x560d43431dd0, text=<optimized out>)
at messagecomposer/src/recipient/recipientline.cpp:120

Why does starting kmail call the message composer at all?
Comment 3 Sven Eden 2022-02-10 07:58:21 UTC
I ran "akonadictl fsck" and it found some items to clean up and scheduled some re-indexing. When the indexing agent finished, another run of "akonadictl fsck" did not find any issues.

Kontact/Kmail are still crashing when starting.

Once thing I forgot to mention: The crash happens even before a window shows up.
Comment 4 Sven Eden 2022-02-10 12:18:14 UTC
I have resolved my issue:

Nothing I found on the internet worked. Then I stumbled about a several year old post, where someone on a Kubuntu system suggested to purge sonnet.

So I unmerged (deinstalled) kde-frameworks/sonnet-5.90.0 from my system.
As several other packages where linked against /usr/lib64/libKF5SonnetCore.so.5.90.0 and /usr/lib64/libKF5SonnetUi.so.5.90.0, the Gentoo build manager Portage kept those libraries nevertheless.
There is a special install target to rebuild those packages ("emerge @preserved-rebuild"), which I ran.

It did not only re-install sonnet, but also rebuilt
kde-frameworks/ktextwidgets-5.90.0
kde-apps/kpimtextedit-21.12.2
kde-apps/kanagram-21.12.2
kde-plasma/kdeplasma-addons-5.24.0
kde-plasma/kmenuedit-5.24.0
kde-plasma/plasma-desktop-5.24.0
kde-apps/libksieve-21.12.2
kde-apps/messagelib-21.12.2
kde-apps/ktp-text-ui-21.12.2
kde-apps/parley-21.12.2
kde-frameworks/khtml-5.90.0
kde-frameworks/ktexteditor-5.90.0

and finally:
kde-apps/kmail-21.12.2

The next time I tried to start Kontact, it showed up, and opened dozens of windows with an empty e-mail to the person I originally tried to reply to. After I had closed (and discarded) all these windows, everything seemed to be fine.

I am still testing, but it seems Kontact is back to normal.
Comment 5 Adam Jimerson 2022-02-10 12:39:52 UTC
Oh boy I did not realize that reporting this crash via drkonqi would put the whole stacktrace in the body instead of an attachment...

Either way I'll try and provide some additional information on top of the excellent work that Sven did.

> When I start KMail only, it also crashes and consists of this in the stack trace

After giving up on launching Kontact yesterday, I also tried just launching Kmail2 as a standalone and it crash as well. Both Kontact and Kmail2 segfaults before any window appears but after the launch feedback animation is triggered. So it must be happening very ealier in the execution of Kontact (or maybe even Kmail2 and it is killing Kontact with it).

Question for the devs: Between my testing and Sven's it sounds like I may have incorrectly reported this and the real issue is Kmail2 and Kontact is just an innocent by standard being brought down with Kmail?

>  However, when I restart akonadi, I get notifications about new E-Mails
Interestingly, the new E-Mail notification continued to work for me without having to restart akonadi, and it is working today after a full system reboot.

Note, I have not tried uninstalling Sonnet like Sven has.
Comment 6 Adam Jimerson 2022-02-10 12:40:42 UTC
Created attachment 146532 [details]
Stacktrace from just launching Kmail

This is the stacktrace I get when I just launch Kmail instead of Kontact.
Comment 7 lod 2022-02-10 14:17:31 UTC
If you want to start kmail/kontact again, you have to remove ~/.local/share/kmail2/autosave/

It saves the broken state and tries to restore it at start up. It's also not related to all email accounts, some just work like usual.
Comment 8 Adam Jimerson 2022-02-10 14:21:14 UTC
(In reply to lod from comment #7)
> If you want to start kmail/kontact again, you have to remove
> ~/.local/share/kmail2/autosave/
> 
> It saves the broken state and tries to restore it at start up. It's also not
> related to all email accounts, some just work like usual.

Confirmed, this does allow me to launch Kontact/Kmail again. Should there be a guard against this causing Kmail/Kontact from segfaulting if it is unable to restore from whatever is stored there?
Comment 9 lod 2022-02-11 22:04:08 UTC
Y'all have generated encryption keys in your “Identity”? If I set  "no key" in the cryptography tab of my Identity, I can replay to mails again.
Comment 10 Hauke 2022-02-12 11:03:47 UTC
This is probably the same bug as #449898
Comment 11 Schlaefer 2022-02-13 08:36:29 UTC
The issue just got fixed for me with a new Arch Kmail build: https://github.com/archlinux/svntogit-packages/commit/668bbeacd97d8f4cc0ec46a17198840e0fb39bc0