Using master KMail crashes when I try to send emails with this backtrace: #0 0x00007f759872fb78 in std::__shared_ptr<_gpgme_key, (__gnu_cxx::_Lock_policy)2>::__shared_ptr(std::__shared_ptr<_gpgme_key, (__gnu_cxx::_Lock_policy)2> const&) (this=0x7ffd5ba9eb18) at /usr/bin/../lib64/gcc/x86_64-suse-linux/11/../../../../include/c++/11/bits/shared_ptr_base.h:1152 #1 0x00007f759872fb4d in std::shared_ptr<_gpgme_key>::shared_ptr(std::shared_ptr<_gpgme_key> const&) (this=0x7ffd5ba9eb18) at /usr/bin/../lib64/gcc/x86_64-suse-linux/11/../../../../include/c++/11/bits/shared_ptr.h:150 #2 0x00007f759872fb1d in GpgME::Key::Key(GpgME::Key const&) (this=0x7ffd5ba9eb18) at /usr/include/gpgme++/key.h:60 #3 0x00007f7598752e7e in MessageComposer::Composer::setSenderEncryptionKey(GpgME::Key const&) (this=0xa9ecc80, senderKey=...) at /data/kde/src/messagelib/messagecomposer/src/composer/composer.cpp:602 #4 0x00007f759876189b in MessageComposer::ComposerViewBase::generateCryptoMessages(bool&) (this=0x28ba690, wasCanceled=@0x7ffd5ba9f5bf: false) at /data/kde/src/messagelib/messagecomposer/src/composer/composerviewbase.cpp:821 #5 0x00007f759875fd31 in MessageComposer::ComposerViewBase::slotEmailAddressResolved(KJob*) (this=0x28ba690, job=0x27cfda0) at /data/kde/src/messagelib/messagecomposer/src/composer/composerviewbase.cpp:508 #6 0x00007f75987734c6 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<KJob*>, void, void (MessageComposer::ComposerViewBase::*)(KJob*)>::call(void (MessageComposer::ComposerViewBase::*)(KJob*), MessageComposer::ComposerViewBase*, void**) (f=(void (MessageComposer::ComposerViewBase::*)(MessageComposer::ComposerViewBase * const, KJob *)) 0x7f759875ea10 <MessageComposer::ComposerViewBase::slotEmailAddressResolved(KJob*)>, o=0x28ba690, arg=0x7ffd5ba9fa10) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:152 #7 0x00007f759877342d in QtPrivate::FunctionPointer<void (MessageComposer::ComposerViewBase::*)(KJob*)>::call<QtPrivate::List<KJob*>, void>(void (MessageComposer::ComposerViewBase::*)(KJob*), MessageComposer::ComposerViewBase*, void**) (f=(void (MessageComposer::ComposerViewBase::*)(MessageComposer::ComposerViewBase * const, KJob *)) 0x7f759875ea10 <MessageComposer::ComposerViewBase::slotEmailAddressResolved(KJob*)>, o=0x28ba690, arg=0x7ffd5ba9fa10) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:185 #8 0x00007f7598773372 in QtPrivate::QSlotObject<void (MessageComposer::ComposerViewBase::*)(KJob*), QtPrivate::List<KJob*>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (which=1, this_=0x66823b0, r=0x28ba690, a=0x7ffd5ba9fa10, ret=0x0) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:418 #9 0x00007f7599861043 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffd5ba9fa10, r=0x28ba690, this=0x66823b0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398 #10 doActivate<false>(QObject*, int, void**) (sender=0x27cfda0, signal_index=6, argv=0x7ffd5ba9fa10) at kernel/qobject.cpp:3886 #11 0x00007f759ae0aa53 in KJob::result(KJob*, KJob::QPrivateSignal) (this=0x27cfda0, _t1=0x27cfda0, _t2=...) at src/lib/KF5CoreAddons_autogen/include/moc_kjob.cpp:633 #12 0x00007f759ae0a9cc in KJob::finishJob(bool) (this=0x27cfda0, emitResult=true) at /data/kde/src/kcoreaddons/src/lib/jobs/kjob.cpp:98 #13 0x00007f759ae0bca4 in KJob::emitResult() (this=0x27cfda0) at /data/kde/src/kcoreaddons/src/lib/jobs/kjob.cpp:337 #14 0x00007f759873dd87 in MessageComposer::EmailAddressResolveJob::start() (this=0x27cfda0) at /data/kde/src/messagelib/messagecomposer/src/job/emailaddressresolvejob.cpp:109 #15 0x00007f759875e8da in MessageComposer::ComposerViewBase::readyForSending() (this=0x28ba690) at /data/kde/src/messagelib/messagecomposer/src/composer/composerviewbase.cpp:400 #16 0x00007f759875e257 in MessageComposer::ComposerViewBase::send(MessageComposer::MessageSender::SendMethod, MessageComposer::MessageSender::SaveIn, bool) (this=0x28ba690, method=MessageComposer::MessageSender::SendImmediate, saveIn=MessageComposer::MessageSender::SaveInNone, checkMailDispatcher=false) at /data/kde/src/messagelib/messagecomposer/src/composer/composerviewbase.cpp:365 #17 0x00007f75a4a85da9 in KMComposerWin::doDelayedSend(MessageComposer::MessageSender::SendMethod, MessageComposer::MessageSender::SaveIn) (this=0x26936e0, method=MessageComposer::MessageSender::SendImmediate, saveIn=MessageComposer::MessageSender::SaveInNone) at /data/kde/src/kmail/src/editor/kmcomposerwin.cpp:2927 #18 0x00007f75a4a858b0 in KMComposerWin::slotDoDelayedSend(KJob*) (this=0x26936e0, job=0xa0f0f40) at /data/kde/src/kmail/src/editor/kmcomposerwin.cpp:2879 #19 0x00007f75a4a9a416 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<KJob*>, void, void (KMComposerWin::*)(KJob*)>::call(void (KMComposerWin::*)(KJob*), KMComposerWin*, void**) (f=(void (KMComposerWin::*)(KMComposerWin * const, KJob *)) 0x7f75a4a85720 <KMComposerWin::slotDoDelayedSend(KJob*)>, o=0x26936e0, arg=0x7ffd5baa0610) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:152 #20 0x00007f75a4a9a37d in QtPrivate::FunctionPointer<void (KMComposerWin::*)(KJob*)>::call<QtPrivate::List<KJob*>, void>(void (KMComposerWin::*)(KJob*), KMComposerWin*, void**) (f=(void (KMComposerWin::*)(KMComposerWin * const, KJob *)) 0x7f75a4a85720 <KMComposerWin::slotDoDelayedSend(KJob*)>, o=0x26936e0, arg=0x7ffd5baa0610) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:185 #21 0x00007f75a4a9a2c2 in QtPrivate::QSlotObject<void (KMComposerWin::*)(KJob*), QtPrivate::List<KJob*>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (which=1, this_=0x8ccf710, r=0x26936e0, a=0x7ffd5baa0610, ret=0x0) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:418 #22 0x00007f7599861043 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffd5baa0610, r=0x26936e0, this=0x8ccf710) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398 #23 doActivate<false>(QObject*, int, void**) (sender=0xa0f0f40, signal_index=6, argv=0x7ffd5baa0610) at kernel/qobject.cpp:3886 #24 0x00007f759ae0aa53 in KJob::result(KJob*, KJob::QPrivateSignal) (this=0xa0f0f40, _t1=0xa0f0f40, _t2=...) at src/lib/KF5CoreAddons_autogen/include/moc_kjob.cpp:633 #25 0x00007f759ae0a9cc in KJob::finishJob(bool) (this=0xa0f0f40, emitResult=true) at /data/kde/src/kcoreaddons/src/lib/jobs/kjob.cpp:98 #26 0x00007f759ae0bca4 in KJob::emitResult() (this=0xa0f0f40) at /data/kde/src/kcoreaddons/src/lib/jobs/kjob.cpp:337 #27 0x00007f75a4abd817 in AddressValidationJob::slotAliasExpansionDone(KJob*) (this=0xa0f0f40, job=0x8ccf7d0) at /data/kde/src/kmail/src/job/addressvalidationjob.cpp:91 #28 0x00007f75a4abdda6 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<KJob*>, void, void (AddressValidationJob::*)(KJob*)>::call(void (AddressValidationJob::*)(KJob*), AddressValidationJob*, void**) (f=(void (AddressValidationJob::*)(AddressValidationJob * const, KJob *)) 0x7f75a4abd1a0 <AddressValidationJob::slotAliasExpansionDone(KJob*)>, o=0xa0f0f40, arg=0x7ffd5baa0a90) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:152 #29 0x00007f75a4abdd0d in QtPrivate::FunctionPointer<void (AddressValidationJob::*)(KJob*)>::call<QtPrivate::List<KJob*>, void>(void (AddressValidationJob::*)(KJob*), AddressValidationJob*, void**) (f=(void (AddressValidationJob::*)(AddressValidationJob * const, KJob *)) 0x7f75a4abd1a0 <AddressValidationJob::slotAliasExpansionDone(KJob*)>, o=0xa0f0f40, arg=0x7ffd5baa0a90) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:185 #30 0x00007f75a4abdc52 in QtPrivate::QSlotObject<void (AddressValidationJob::*)(KJob*), QtPrivate::List<KJob*>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (which=1, this_=0x8ae6110, r=0xa0f0f40, a=0x7ffd5baa0a90, ret=0x0) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:418 #31 0x00007f7599861043 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffd5baa0a90, r=0xa0f0f40, this=0x8ae6110) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398 #32 doActivate<false>(QObject*, int, void**) (sender=0x8ccf7d0, signal_index=6, argv=0x7ffd5baa0a90) at kernel/qobject.cpp:3886 #33 0x00007f759ae0aa53 in KJob::result(KJob*, KJob::QPrivateSignal) (this=0x8ccf7d0, _t1=0x8ccf7d0, _t2=...) at src/lib/KF5CoreAddons_autogen/include/moc_kjob.cpp:633 #34 0x00007f759ae0a9cc in KJob::finishJob(bool) (this=0x8ccf7d0, emitResult=true) at /data/kde/src/kcoreaddons/src/lib/jobs/kjob.cpp:98 #35 0x00007f759ae0bca4 in KJob::emitResult() (this=0x8ccf7d0) at /data/kde/src/kcoreaddons/src/lib/jobs/kjob.cpp:337 #36 0x00007f759873a0bd in MessageComposer::AliasesExpandJob::start() (this=0x8ccf7d0) at /data/kde/src/messagelib/messagecomposer/src/job/aliasesexpandjob.cpp:58 #37 0x00007f75a4abd17c in AddressValidationJob::start() (this=0xa0f0f40) at /data/kde/src/kmail/src/job/addressvalidationjob.cpp:40 #38 0x00007f75a4a851dd in KMComposerWin::doSend(MessageComposer::MessageSender::SendMethod, MessageComposer::MessageSender::SaveIn, bool) (this=0x26936e0, method=MessageComposer::MessageSender::SendImmediate, saveIn=MessageComposer::MessageSender::SaveInNone, willSendItWithoutReediting=false) at /data/kde/src/kmail/src/editor/kmcomposerwin.cpp:2844 #39 0x00007f75a4a66908 in KMComposerWin::slotCheckSendNowStep2() (this=0x26936e0) at /data/kde/src/kmail/src/editor/kmcomposerwin.cpp:3072 #40 0x00007f75a4a86da7 in KMComposerWin::slotPotentialPhishingEmailsFound(QStringList const&) (this=0x26936e0, list=...) at /data/kde/src/kmail/src/editor/kmcomposerwin.cpp:3110 #41 0x00007f75a4aa2953 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<QStringList const&>, void, void (KMComposerWin::*)(QStringList const&)>::call(void (KMComposerWin::*)(QStringList const&), KMComposerWin*, void**) (f=(void (KMComposerWin::*)(KMComposerWin * const, const QStringList &)) 0x7f75a4a86d70 <KMComposerWin::slotPotentialPhishingEmailsFound(QStringList const&)>, o=0x26936e0, arg=0x7ffd5baa1490) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:152 #42 0x00007f75a4aa28bd in QtPrivate::FunctionPointer<void (KMComposerWin::*)(QStringList const&)>::call<QtPrivate::List<QStringList const&>, void>(void (KMComposerWin::*)(QStringList const&), KMComposerWin*, void**) (f=(void (KMComposerWin::*)(KMComposerWin * const, const QStringList &)) 0x7f75a4a86d70 <KMComposerWin::slotPotentialPhishingEmailsFound(QStringList const&)>, o=0x26936e0, arg=0x7ffd5baa1490) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:185 #43 0x00007f75a4aa2802 in QtPrivate::QSlotObject<void (KMComposerWin::*)(QStringList const&), QtPrivate::List<QStringList const&>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (which=1, this_=0x8c39e80, r=0x26936e0, a=0x7ffd5baa1490, ret=0x0) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:418 #44 0x00007f7599861043 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffd5baa1490, r=0x26936e0, this=0x8c39e80) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398 #45 doActivate<false>(QObject*, int, void**) (sender=0x8da5200, signal_index=3, argv=0x7ffd5baa1490) at kernel/qobject.cpp:3886 #46 0x00007f75a4985ef3 in PotentialPhishingEmailJob::potentialPhishingEmailsFound(QStringList const&) (this=0x8da5200, _t1=...) at src/kmailprivate_autogen/TBYJBUIOY7/moc_potentialphishingemailjob.cpp:133 #47 0x00007f75a4ab2ca8 in PotentialPhishingEmailJob::start() (this=0x8da5200) at /data/kde/src/kmail/src/editor/potentialphishingemail/potentialphishingemailjob.cpp:85 #48 0x00007f75a4a86790 in KMComposerWin::slotCheckSendNow() (this=0x26936e0) at /data/kde/src/kmail/src/editor/kmcomposerwin.cpp:3101 #49 0x00007f75a4a862f3 in KMComposerWin::sendNow(bool) (this=0x26936e0, shortcutUsed=false) at /data/kde/src/kmail/src/editor/kmcomposerwin.cpp:3026 #50 0x00007f75a4a869c7 in KMComposerWin::slotSendNow() (this=0x26936e0) at /data/kde/src/kmail/src/editor/kmcomposerwin.cpp:3037 #51 0x00007f75a4a9651b in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (KMComposerWin::*)()>::call(void (KMComposerWin::*)(), KMComposerWin*, void**) (f=&virtual KMComposerWin::slotSendNow(), o=0x26936e0, arg=0x7ffd5baa1aa0) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:152 #52 0x00007f75a4a9648d in QtPrivate::FunctionPointer<void (KMComposerWin::*)()>::call<QtPrivate::List<>, void>(void (KMComposerWin::*)(), KMComposerWin*, void**) (f=&virtual KMComposerWin::slotSendNow(), o=0x26936e0, arg=0x7ffd5baa1aa0) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:185 #53 0x00007f75a4a963d2 in QtPrivate::QSlotObject<void (KMComposerWin::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (which=1, this_=0x3024d90, r=0x26936e0, a=0x7ffd5baa1aa0, ret=0x0) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:418 #54 0x00007f7599861043 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffd5baa1aa0, r=0x26936e0, this=0x3024d90) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398 #55 doActivate<false>(QObject*, int, void**) (sender=0x3022380, signal_index=4, argv=0x7ffd5baa1aa0) at kernel/qobject.cpp:3886 #56 0x00007f759a61f182 in QAction::triggered(bool) () at /usr/lib64/libQt5Widgets.so.5 #57 0x00007f759a621db4 in QAction::activate(QAction::ActionEvent) () at /usr/lib64/libQt5Widgets.so.5 #58 0x00007f759a71aa0a in () at /usr/lib64/libQt5Widgets.so.5 #59 0x00007f759a71ab63 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () at /usr/lib64/libQt5Widgets.so.5 #60 0x00007f759a81339a in QToolButton::mouseReleaseEvent(QMouseEvent*) () at /usr/lib64/libQt5Widgets.so.5 #61 0x00007f759a66776e in QWidget::event(QEvent*) () at /usr/lib64/libQt5Widgets.so.5 #62 0x00007f759a625a7f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5 #63 0x00007f759a62d584 in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5 #64 0x00007f759982a9fa in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x33c5f00, event=0x7ffd5baa2040) at kernel/qcoreapplication.cpp:1064 #65 0x00007f759a62c093 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () at /usr/lib64/libQt5Widgets.so.5 #66 0x00007f759a68083c in () at /usr/lib64/libQt5Widgets.so.5 #67 0x00007f759a683c55 in () at /usr/lib64/libQt5Widgets.so.5 #68 0x00007f759a625a7f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5 #69 0x00007f759982a9fa in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x349d330, event=0x7ffd5baa2310) at kernel/qcoreapplication.cpp:1064 #70 0x00007f7599d1d5c7 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) (e=0x9764700) at kernel/qguiapplication.cpp:2282 #71 0x00007f7599cf378c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1169 #72 0x00007f758b569d0a in xcbSourceDispatch(GSource*, GSourceFunc, gpointer) (source=<optimized out>) at qxcbeventdispatcher.cpp:105 #73 0x00007f7593652d4f in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0 #74 0x00007f75936530d8 in () at /usr/lib64/libglib-2.0.so.0 #75 0x00007f759365318f in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0 #76 0x00007f7599881ed4 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x224c960, flags=...) at kernel/qeventdispatcher_glib.cpp:423 #77 0x00007f75998293fb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffd5baa2640, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69 #78 0x00007f75998316e0 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121 #79 0x0000000000403d07 in main(int, char**) (argc=1, argv=0x7ffd5baa2a18) at /data/kde/src/kmail/src/main.cpp:173