Bug 459341 - Kmail crash when trying to write recipent address in the new mail window
Summary: Kmail crash when trying to write recipent address in the new mail window
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-09-18 17:29 UTC by Sławek
Modified: 2022-10-11 21:31 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (4.51 KB, text/plain)
2022-10-01 16:00 UTC, Akseli Lahtinen
Details
New crash information added by DrKonqi (6.03 KB, text/plain)
2022-10-01 16:41 UTC, Akseli Lahtinen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sławek 2022-09-18 17:29:23 UTC
Application: kmail (5.20.1 (22.04.1))

Qt Version: 5.15.5
Frameworks Version: 5.97.0
Operating System: Linux 5.19.9-200.fc36.x86_64 x86_64
Windowing System: X11
Distribution: Fedora Linux 36 (KDE Plasma)
DrKonqi: 5.25.5 [KCrashBackend]

-- Information about the crash:
Every time I open new mail composer window and try to write recipent's email address, kmail crashes.

The crash can be reproduced every time.

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

[KCrash Handler]
#4  0x00007f1bd54550a4 in QString::QString(QString const&) () from /lib64/libqgpgme.so.7
#5  0x00007f1bd5455231 in QGpgME::QGpgMEAddUserIDJob::start(GpgME::Key const&, QString const&, QString const&, QString const&) () from /lib64/libqgpgme.so.7
#6  0x00007f1bdfca8e11 in KMComposerWin::slotRecipientAdded(MessageComposer::RecipientLineNG*) () from /lib64/libkmailprivate.so.5
#7  0x00007f1bd6b338b6 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#8  0x00007f1bd5c39541 in MessageComposer::RecipientLineNG::analyzeLine(QString const&) () from /lib64/libKF5MessageComposer.so.5
#9  0x00007f1bd6b338b6 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#10 0x00007f1bd7706416 in QLineEdit::textChanged(QString const&) () from /lib64/libQt5Widgets.so.5
#11 0x00007f1bd6b33a3f in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#12 0x00007f1bd770dcd9 in QWidgetLineControl::textChanged(QString const&) () from /lib64/libQt5Widgets.so.5
#13 0x00007f1bd77114e0 in QWidgetLineControl::finishChange(int, bool, bool) () from /lib64/libQt5Widgets.so.5
#14 0x00007f1bd7714264 in QWidgetLineControl::processKeyEvent(QKeyEvent*) () from /lib64/libQt5Widgets.so.5
#15 0x00007f1bd7706603 in QLineEdit::keyPressEvent(QKeyEvent*) () from /lib64/libQt5Widgets.so.5
#16 0x00007f1bd46150bc in KLineEdit::keyPressEvent(QKeyEvent*) () from /lib64/libKF5Completion.so.5
#17 0x00007f1bd5340a1d in PimCommon::AddresseeLineEdit::keyPressEvent(QKeyEvent*) () from /lib64/libKF5PimCommonAkonadi.so.5
#18 0x00007f1bd75ff630 in QWidget::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#19 0x00007f1bd75bbd22 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#20 0x00007f1bd75c3d17 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#21 0x00007f1bd6b00218 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#22 0x00007f1bd761af92 in QWidgetWindow::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#23 0x00007f1bd75bbd22 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#24 0x00007f1bd6b00218 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#25 0x00007f1bd6f3a43d in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) () from /lib64/libQt5Gui.so.5
#26 0x00007f1bd6f1cfbc in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Gui.so.5
#27 0x00007f1bc06d7e6e in xcbSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5XcbQpa.so.5
#28 0x00007f1bd01c3faf in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#29 0x00007f1bd02192c8 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#30 0x00007f1bd01c1940 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#31 0x00007f1bd6b50f4a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#32 0x00007f1bd6afec6a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#33 0x00007f1bd6b06d32 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#34 0x0000559b8b194c8f in main ()
[Inferior 1 (process 6392) detached]

Reported using DrKonqi
Comment 1 Sławek 2022-09-18 17:56:25 UTC
I just found out that problem is fixed when I downgraded libs:

gpgme-1.17.0-4.fc36.x86_64 to gpgme-1.15.1-6.fc36.x86_64
gpgme-devel-1.17.0-4.fc36.x86_64 to gpgme-devel-1.15.1-6.fc36.x86_64
gpgmepp-1.17.0-4.fc36.x86_64  to gpgmepp-1.15.1-6.fc36.x86_64
gpgmepp-devel-1.17.0-4.fc36.x86_64 to qgpgme-devel-1.15.1-6.fc36.x86_64
python3-gpg-1.17.0-4.fc36.x86_64 to python3-gpg-1.15.1-6.fc36.x86_64
qgpgme-1.17.0-4.fc36.x86_64 to qgpgme-1.15.1-6.fc36.x86_64
gpgmepp-devel-1.17.0-4.fc36.x86_64 to gpgmepp-devel-1.15.1-6.fc36.x86_64

So bug is probably in one of those packages in 1.17 version
Comment 2 Akseli Lahtinen 2022-10-01 16:00:46 UTC
Created attachment 152539 [details]
New crash information added by DrKonqi

kmail (5.20.1 (22.04.1)) using Qt 5.15.6

Every time I try to type anything in the To: field in the new mail window, the application crashes.
Same happens when trying to reply to someone as well.

-- Backtrace (Reduced):
#4  0x00007fe56cae60a4 in QString::QString(QString const&) () from /lib64/libqgpgme.so.7
#5  0x00007fe56cae6231 in QGpgME::QGpgMEAddUserIDJob::start(GpgME::Key const&, QString const&, QString const&, QString const&) () from /lib64/libqgpgme.so.7
#6  0x00007fe57718fe11 in KMComposerWin::slotRecipientAdded(MessageComposer::RecipientLineNG*) () from /lib64/libkmailprivate.so.5
#7  0x00007fe56e1c59a6 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#8  0x00007fe56d2ca541 in MessageComposer::RecipientLineNG::analyzeLine(QString const&) () from /lib64/libKF5MessageComposer.so.5
Comment 3 Akseli Lahtinen 2022-10-01 16:41:40 UTC
Created attachment 152540 [details]
New crash information added by DrKonqi

kmail (5.20.1 (22.04.1)) using Qt 5.15.6

Here is the same crash as before but (hopefully) with debug data

-- Backtrace (Reduced):
#4  0x00007fe391dba0a4 in QString::QString (this=<optimized out>, other=..., this=<optimized out>, other=...) at /usr/include/qt5/QtCore/qstring.h:1093
#5  0x00007fe391dba231 in std::_Head_base<4ul, QString, false>::_Head_base (__h=..., this=0x7ffc433b9978) at /usr/include/c++/12/tuple:192
#6  std::_Tuple_impl<4ul, QString>::_Tuple_impl (__head=..., this=0x7ffc433b9978) at /usr/include/c++/12/tuple:435
#7  std::_Tuple_impl<3ul, QString, QString>::_Tuple_impl (__tail#0=..., __head=..., this=0x7ffc433b9978) at /usr/include/c++/12/tuple:284
#8  std::_Tuple_impl<2ul, QString, QString, QString>::_Tuple_impl (__tail#1=..., __tail#0=..., __head=..., this=0x7ffc433b9978) at /usr/include/c++/12/tuple:284
Comment 4 Ingo Klöcker 2022-10-01 16:55:43 UTC
qgpgme 1.17.0 was binary incompatible. Please file a bug with Fedora that they need to skip 1.17.0 and use at least 1.17.1. See https://dev.gnupg.org/T5872.
Comment 5 David 2022-10-11 21:31:40 UTC
(In reply to Ingo Klöcker from comment #4)
> qgpgme 1.17.0 was binary incompatible. Please file a bug with Fedora that
> they need to skip 1.17.0 and use at least 1.17.1. See
> https://dev.gnupg.org/T5872.

yup, can confirm `sudo dnf downgrade qgpgme` solves the issue.