Bug 349637 - KMail crashes when filtering a large bunch of messages
Summary: KMail crashes when filtering a large bunch of messages
Status: RESOLVED UPSTREAM
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Andre Heinecke
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2015-06-26 16:23 UTC by micu
Modified: 2015-09-14 17:03 UTC (History)
3 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 micu 2015-06-26 16:23:38 UTC
Application: kmail (4.14.9)
KDE Platform Version: 4.14.9
Qt Version: 4.8.6
Operating System: Linux 4.0.5-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 was just manually filtering a large bunch of msgs, then KMail crashed.

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

Thread 4 (Thread 0x7faf03ffd700 (LWP 28694)):
#0  0x00000033f100c530 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x000000309238af61 in JSC::BlockAllocator::blockFreeingThreadMain() () at /lib64/libQtWebKit.so.4
#2  0x00000030926896d6 in WTF::wtfThreadEntryPoint(void*) () at /lib64/libQtWebKit.so.4
#3  0x00000033f1007555 in start_thread () at /lib64/libpthread.so.0
#4  0x00000033f0d01f3d in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7faf035f0700 (LWP 28695)):
#0  0x00000033f0cf666d in poll () at /lib64/libc.so.6
#1  0x00000033f2c49dbc in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#2  0x00000033f2c49ecc in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x0000003082dba4ee in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtCore.so.4
#4  0x0000003082d88791 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtCore.so.4
#5  0x0000003082d88b05 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtCore.so.4
#6  0x0000003082c78289 in QThread::exec() () at /lib64/libQtCore.so.4
#7  0x0000003082c7aaac in QThreadPrivate::start(void*) () at /lib64/libQtCore.so.4
#8  0x00000033f1007555 in start_thread () at /lib64/libpthread.so.0
#9  0x00000033f0d01f3d in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7faf009b3700 (LWP 29014)):
[KCrash Handler]
#6  0x0000003420e06540 in assuan_sendfd () at /lib64/libassuan.so.0
#7  0x0000003423e1c0e6 in gpgsm_set_fd () at /lib64/libgpgme-pthread.so.11
#8  0x0000003423e1cd2e in gpgsm_getauditlog () at /lib64/libgpgme-pthread.so.11
#9  0x0000003423e15809 in gpgme_op_getauditlog () at /lib64/libgpgme-pthread.so.11
#10 0x0000003098e1d420 in GpgME::Context::getAuditLog(GpgME::Data&, unsigned int) () at /lib64/libgpgme++-pthread.so.2
#11 0x0000003099a87ccc in Kleo::_detail::audit_log_as_html(GpgME::Context*, GpgME::Error&) () at /lib64/libkleo.so.4
#12 0x0000003099ad5e1c in verify_detached_qba(GpgME::Context*, QByteArray const&, QByteArray const&) () at /lib64/libkleo.so.4
#13 0x0000003099ad6e3a in boost::detail::function::function_obj_invoker0<boost::_bi::bind_t<boost::_bi::unspecified, boost::_bi::bind_t<boost::tuples::tuple<GpgME::VerificationResult, 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::null_type, boost::tuples::null_type>, boost::tuples::tuple<GpgME::VerificationResult, 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::null_type, boost::tuples::null_type> (*)(GpgME::Context*, QByteArray const&, QByteArray const&), boost::_bi::list3<boost::arg<1>, boost::_bi::value<QByteArray>, boost::_bi::value<QByteArray> > >, boost::_bi::list1<boost::_bi::value<GpgME::Context*> > >, boost::tuples::tuple<GpgME::VerificationResult, 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::null_type, boost::tuples::null_type> >::invoke(boost::detail::function::function_buffer&) () at /lib64/libkleo.so.4
#14 0x0000003099ad99ed in Kleo::_detail::Thread<boost::tuples::tuple<GpgME::VerificationResult, 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::null_type, boost::tuples::null_type> >::run() () at /lib64/libkleo.so.4
#15 0x0000003082c7aaac in QThreadPrivate::start(void*) () at /lib64/libQtCore.so.4
#16 0x00000033f1007555 in start_thread () at /lib64/libpthread.so.0
#17 0x00000033f0d01f3d in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7faf56183900 (LWP 28662)):
#0  0x00000033f100f54d in read () at /lib64/libpthread.so.0
#1  0x00000033f2c8db00 in g_wakeup_acknowledge () at /lib64/libglib-2.0.so.0
#2  0x00000033f2c498b4 in g_main_context_check () at /lib64/libglib-2.0.so.0
#3  0x00000033f2c49d60 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#4  0x00000033f2c49ecc in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#5  0x0000003082dba4ee in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtCore.so.4
#6  0x000000308506a626 in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtGui.so.4
#7  0x0000003082d88791 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtCore.so.4
#8  0x0000003082d88b05 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQtCore.so.4
#9  0x0000003082d8e6a9 in QCoreApplication::exec() () at /lib64/libQtCore.so.4
#10 0x000000000040305e in main ()

Possible duplicates by query: bug 347856.

Reported using DrKonqi
Comment 1 Andre Heinecke 2015-09-14 17:03:55 UTC
This is fixed in libassuan-2.3.0

KMail / kleopatra should also trigger this bug less frequently as they no longer call this function in case an error occured after commit (be886ddf9397ab1ee40a075a1ee34c5c42dea038)

But there are reports that it still can happen.