Bug 467845 - Kmail crashes when clicking on mail which is gpg signed
Summary: Kmail crashes when clicking on mail which is gpg signed
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
: 472787 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-03-27 07:58 UTC by Charlemagne Lasse
Modified: 2023-08-23 22:52 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charlemagne Lasse 2023-03-27 07:58:01 UTC
Application: kmail (5.22.3 (22.12.3))

Qt Version: 5.15.8
Frameworks Version: 5.103.0
Operating System: Linux 6.1.0-6-amd64 x86_64
Windowing System: X11
Distribution: Debian GNU/Linux 12 (bookworm)
DrKonqi: 5.27.2 [KCrashBackend]

-- Information about the crash:
It seems to happen all the time that kmail crashes when clicking on any mail which is signed (not encrypted) via gpg. Sometimes it helped to just run `gpg --update-trustdb` but now it seems like it is crashing all the time.

I first see the message but something seems to happen when the signature is checked (which didn't finish when the mail is displayed first).


In the past, when it was not directly crashing then it was also not accepting signatures from subkeys (#465551). So it seems some rather recent changes caused a major regression in kmails gnupg integration.

The crash can be reproduced every time.

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

[KCrash Handler]
#4  0x00007f72c84f26b1 in KMime::Content::headerByType(char const*) const () from /lib/x86_64-linux-gnu/libKF5Mime.so.5abi1
#5  0x00007f72c84f3a2a in KMime::Content::contentTransferEncoding(bool) () from /lib/x86_64-linux-gnu/libKF5Mime.so.5abi1
#6  0x00007f72c84f43bd in ?? () from /lib/x86_64-linux-gnu/libKF5Mime.so.5abi1
#7  0x00007f72c84f4636 in KMime::Content::decodedText(bool, bool) () from /lib/x86_64-linux-gnu/libKF5Mime.so.5abi1
#8  0x00007f72c8c5bbe5 in MimeTreeParser::ObjectTreeParser::extractNodeInfos(KMime::Content*, bool) () from /lib/x86_64-linux-gnu/libKF5MimeTreeParser.so.5abi1
#9  0x00007f72c8c5c4a9 in MimeTreeParser::ObjectTreeParser::parseObjectTree(KMime::Content*, bool) () from /lib/x86_64-linux-gnu/libKF5MimeTreeParser.so.5abi1
#10 0x00007f72c9071258 in MessageViewer::ViewerPrivate::parseContent(KMime::Content*) () from /lib/x86_64-linux-gnu/libKF5MessageViewer.so.5abi1
#11 0x00007f72c9073974 in MessageViewer::ViewerPrivate::displayMessage() () from /lib/x86_64-linux-gnu/libKF5MessageViewer.so.5abi1
#12 0x00007f72c9074075 in MessageViewer::ViewerPrivate::updateReaderWin() () from /lib/x86_64-linux-gnu/libKF5MessageViewer.so.5abi1
#13 0x00007f72c9ee8f4f in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007f72c8c3d3be in MimeTreeParser::NodeHelper::update(MimeTreeParser::UpdateMode) () from /lib/x86_64-linux-gnu/libKF5MimeTreeParser.so.5abi1
#15 0x00007f72c9ee8f4f in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007f72c8c3d35e in ?? () from /lib/x86_64-linux-gnu/libKF5MimeTreeParser.so.5abi1
#17 0x00007f72c9ee8f4f in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007f72c86e1f4d in ?? () from /lib/x86_64-linux-gnu/libqgpgme.so.15
#19 0x00007f72c9edd6f0 in QObject::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007f72cab62fae in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007f72c9eb16f8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007f72c9eb4681 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007f72c9f0a153 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007f72c4ece7a9 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007f72c4ecea38 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007f72c4eceacc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007f72c9f09836 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007f72c9eb017b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x00007f72c9eb82d6 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x00005631c2ca7c0c in ?? ()
#31 0x00007f72c9a4618a in __libc_start_call_main (main=main@entry=0x5631c2ca6ad0, argc=argc@entry=3, argv=argv@entry=0x7ffc2aefad08) at ../sysdeps/nptl/libc_start_call_main.h:58
#32 0x00007f72c9a46245 in __libc_start_main_impl (main=0x5631c2ca6ad0, argc=3, argv=0x7ffc2aefad08, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc2aefacf8) at ../csu/libc-start.c:381
#33 0x00005631c2ca8211 in ?? ()
[Inferior 1 (process 11847) detached]

Reported using DrKonqi
Comment 1 4ngamboa 2023-07-30 01:40:16 UTC
*** Bug 472787 has been marked as a duplicate of this bug. ***