Bug 347856 - KMail crashes when decrypting an email
Summary: KMail crashes when decrypting an email
Status: RESOLVED FIXED
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
: 341324 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-05-17 20:18 UTC by Rene Richter
Modified: 2015-06-26 11:04 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.14.10


Attachments
New crash information added by DrKonqi (8.21 KB, text/plain)
2015-06-22 11:30 UTC, Alexander Potashev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rene Richter 2015-05-17 20:18:29 UTC
Application: kmail (4.14.7)
KDE Platform Version: 4.14.7
Qt Version: 4.8.6
Operating System: Linux 4.0.3-300.fc22.x86_64 x86_64
Distribution: "Fedora release 22 (Twenty Two)"

-- Information about the crash:
- What I was doing when the application crashed:
I pressed the "decrypt message" link in the email-preview. After that, KMail crashes.

The crash can be reproduced every time.

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fe6c74b4900 (LWP 25038))]

Thread 4 (Thread 0x7fe64d827700 (LWP 25054)):
#0  0x00007fe6c280b530 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fe6be883f61 in JSC::BlockAllocator::blockFreeingThreadMain() () at /lib64/libQtWebKit.so.4
#2  0x00007fe6beb826d6 in WTF::wtfThreadEntryPoint(void*) () at /lib64/libQtWebKit.so.4
#3  0x00007fe6c2806555 in start_thread () at /lib64/libpthread.so.0
#4  0x00007fe6c0d5bf3d in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7fe64cc26700 (LWP 25055)):
#0  0x00007fffddda3927 in  ()
#1  0x00007fffddda3cc1 in clock_gettime ()
#2  0x00007fe6c0d6a13d in clock_gettime () at /lib64/libc.so.6
#3  0x00007fe6c2af02f5 in qt_gettime() () at /lib64/libQtCore.so.4
#4  0x00007fe6c2bd6385 in QTimerInfoList::timerWait(timeval&) () at /lib64/libQtCore.so.4
#5  0x00007fe6c2bd4bbc in timerSourcePrepareHelper(GTimerSource*, int*) () at /lib64/libQtCore.so.4
#6  0x00007fe6c2bd4c85 in timerSourcePrepare(_GSource*, int*) () at /lib64/libQtCore.so.4
#7  0x00007fe6b2ebe35d in g_main_context_prepare () at /lib64/libglib-2.0.so.0
#8  0x00007fe6b2ebeceb in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#9  0x00007fe6b2ebeecc in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#10 0x00007fe6c2bd54ee in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtCore.so.4
#11 0x00007fe6c2ba3791 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtCore.so.4
#12 0x00007fe6c2ba3b05 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtCore.so.4
#13 0x00007fe6c2a93289 in QThread::exec() () at /lib64/libQtCore.so.4
#14 0x00007fe6c2a95aac in QThreadPrivate::start(void*) () at /lib64/libQtCore.so.4
#15 0x00007fe6c2806555 in start_thread () at /lib64/libpthread.so.0
#16 0x00007fe6c0d5bf3d in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7fe647026700 (LWP 25074)):
[KCrash Handler]
#6  0x00007fe6b1597540 in assuan_sendfd () at /lib64/libassuan.so.0
#7  0x00007fe6bfd3c0e6 in gpgsm_set_fd () at /lib64/libgpgme-pthread.so.11
#8  0x00007fe6bfd3cd2e in gpgsm_getauditlog () at /lib64/libgpgme-pthread.so.11
#9  0x00007fe6bfd35809 in gpgme_op_getauditlog () at /lib64/libgpgme-pthread.so.11
#10 0x00007fe6bff755b0 in GpgME::Context::getAuditLog(GpgME::Data&, unsigned int) () at /lib64/libgpgme++-pthread.so.2
#11 0x00007fe6bbea1f7c in Kleo::_detail::audit_log_as_html(GpgME::Context*, GpgME::Error&) () at /lib64/libkleo.so.4
#12 0x00007fe6bbf08a4d in decrypt_verify(GpgME::Context*, QThread*, boost::weak_ptr<QIODevice> const&, boost::weak_ptr<QIODevice> const&) () at /lib64/libkleo.so.4
#13 0x00007fe6bbf09b9f in decrypt_verify_qba(GpgME::Context*, QByteArray const&) () at /lib64/libkleo.so.4
#14 0x00007fe6bbf0a125 in boost::detail::function::function_obj_invoker0<boost::_bi::bind_t<boost::_bi::unspecified, boost::_bi::bind_t<boost::tuples::tuple<GpgME::DecryptionResult, GpgME::VerificationResult, QByteArray, QString, GpgME::Error, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>, boost::tuples::tuple<GpgME::DecryptionResult, GpgME::VerificationResult, QByteArray, QString, GpgME::Error, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type> (*)(GpgME::Context*, QByteArray const&), boost::_bi::list2<boost::arg<1>, boost::_bi::value<QByteArray> > >, boost::_bi::list1<boost::_bi::value<GpgME::Context*> > >, boost::tuples::tuple<GpgME::DecryptionResult, GpgME::VerificationResult, QByteArray, QString, GpgME::Error, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type> >::invoke(boost::detail::function::function_buffer&) () at /lib64/libkleo.so.4
#15 0x00007fe6bbf0d081 in Kleo::_detail::Thread<boost::tuples::tuple<GpgME::DecryptionResult, GpgME::VerificationResult, QByteArray, QString, GpgME::Error, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type> >::run() () at /lib64/libkleo.so.4
#16 0x00007fe6c2a95aac in QThreadPrivate::start(void*) () at /lib64/libQtCore.so.4
#17 0x00007fe6c2806555 in start_thread () at /lib64/libpthread.so.0
#18 0x00007fe6c0d5bf3d in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7fe6c74b4900 (LWP 25038)):
#0  0x00007fe6c280e54d in read () at /lib64/libpthread.so.0
#1  0x00007fe6b2f02b00 in g_wakeup_acknowledge () at /lib64/libglib-2.0.so.0
#2  0x00007fe6b2ebe8b4 in g_main_context_check () at /lib64/libglib-2.0.so.0
#3  0x00007fe6b2ebed60 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#4  0x00007fe6b2ebeecc in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#5  0x00007fe6c2bd54ce in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtCore.so.4
#6  0x00007fe6c1d7e626 in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtGui.so.4
#7  0x00007fe6c2ba3791 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtCore.so.4
#8  0x00007fe6c2ba3b05 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtCore.so.4
#9  0x00007fe6c2ba96a9 in QCoreApplication::exec() () at /lib64/libQtCore.so.4
#10 0x000000000040305e in main ()

Reported using DrKonqi
Comment 1 Alexander Potashev 2015-06-22 11:30:02 UTC
Created attachment 93290 [details]
New crash information added by DrKonqi

kmail (4.14.9) on KDE Platform 4.14.9 using Qt 4.8.6

- What I was doing when the application crashed:
1. Click on an encrypted email.
2. In the key password dialog, do not enter no password, but click Cancel instead.
3. KMail crashes.

- Custom settings of the application:
Automatic decryption when opening emails is enabled.

-- Backtrace (Reduced):
#6  assuan_sendfd (ctx=0x0, fd=21) at assuan-buffer.c:527
#7  0x00007f0d73d9e0e6 in gpgsm_set_fd (gpgsm=gpgsm@entry=0x7f0cf00052b0, fd_type=fd_type@entry=OUTPUT_FD, opt=opt@entry=0x0) at engine-gpgsm.c:698
#8  0x00007f0d73d9ed2e in gpgsm_getauditlog (engine=0x7f0cf00052b0, output=<optimized out>, flags=129) at engine-gpgsm.c:1854
#9  0x00007f0d73d97809 in gpgme_op_getauditlog (ctx=0x156ee00, output=0x7f0cf000b240, flags=129) at getauditlog.c:94
#10 0x00007f0d73fd7420 in GpgME::Context::getAuditLog (this=this@entry=0x13669d0, output=..., flags=flags@entry=129) at ../../gpgme++/context.cpp:962
Comment 2 Andre Heinecke 2015-06-25 13:59:51 UTC
*** Bug 341324 has been marked as a duplicate of this bug. ***
Comment 3 Rene Richter 2015-06-25 14:28:47 UTC
(In reply to Rene Richter from comment #0)
Maybe the information is useful: I did not have the correct S/MIME client-certificate installed on my machine at the time.
Comment 4 Andre Heinecke 2015-06-26 11:04:38 UTC
This was fixed Git commit be886ddf9397ab1ee40a075a1ee34c5c42dea038

It is also fixed upstream in libassuan:
http://git.gnupg.org/cgi-bin/gitweb.cgi?p=libassuan.git;a=commit;h=0da6afa864cfd68333941d6332d762c82928946c