Bug 279387 - Kmail2 crashes when forwarding S/MIME encrypted e-mails in-line
Summary: Kmail2 crashes when forwarding S/MIME encrypted e-mails in-line
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-04 15:07 UTC by Roland Wolters
Modified: 2011-08-30 14:44 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.7.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roland Wolters 2011-08-04 15:07:57 UTC
Version:           unspecified (using KDE 4.7.0) 
OS:                Linux

When I have a S/MIME encrypted e-mil and want to forward it, KMail2 crashes.

Reproducible: Always

Steps to Reproduce:
1. View an S/MIME encrypted e-mail (either preview or open it, doesn't matter)
2. Click on "Forward -> Inline" (or press Shift+F)
3. See Kmail2 crashing

Actual Results:  
Kmail2 crashes.

Expected Results:  
Kmail2 should create a new e-mail showing the content of the original e-mail.

This didn't happen with KMail1.
Comment 1 Roland Wolters 2011-08-04 15:10:54 UTC
Here is the backtrace:

Application: KMail (kmail), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f52957627a0 (LWP 6885))]

Thread 3 (Thread 0x7f52780b6700 (LWP 6889)):
#0  0x00007f52906f3bac in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f5287a6f832 in ?? () from /usr/lib/libQtWebKit.so.4
#2  0x00007f52906eed8c in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#3  0x00007f5292b3f04d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f5274bd0700 (LWP 6907)):
#0  0x00007f52906f3f2b in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f529337d79e in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f5293372218 in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007f529337d175 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f52906eed8c in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00007f5292b3f04d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f52957627a0 (LWP 6885)):
[KCrash Handler]
#6  0x0000000000000021 in ?? ()
#7  0x00007f528f9ae591 in KMime::Content::removeContent(KMime::Content*, bool) () from /usr/lib/libkmime.so.4
#8  0x00007f528e5c99d0 in TemplateParser::TemplateParser::addProcessedBodyToMessage(QString const&) () from /usr/lib/libtemplateparser.so.4
#9  0x00007f528e5cb97d in TemplateParser::TemplateParser::processWithTemplate(QString const&) () from /usr/lib/libtemplateparser.so.4
#10 0x00007f528e5c72dc in TemplateParser::TemplateParser::process(boost::shared_ptr<KMime::Message> const&, Akonadi::Collection const&) () from /usr/lib/libtemplateparser.so.4
#11 0x00007f528ee2f4c1 in MessageComposer::MessageFactory::createForward() () from /usr/lib/libmessagecomposer.so.4
#12 0x00007f5294543632 in KMForwardCommand::execute() () from /usr/lib/libkmailprivate.so.4
#13 0x00007f529453b351 in KMCommand::slotPostTransfer(KMCommand::Result) () from /usr/lib/libkmailprivate.so.4
#14 0x00007f52945422e3 in KMCommand::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkmailprivate.so.4
#15 0x00007f52934795f8 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#16 0x00007f529453b19e in KMCommand::messagesTransfered(KMCommand::Result) () from /usr/lib/libkmailprivate.so.4
#17 0x00007f529453fe78 in KMCommand::slotJobFinished() () from /usr/lib/libkmailprivate.so.4
#18 0x00007f52945422ac in KMCommand::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkmailprivate.so.4
#19 0x00007f52934795f8 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#20 0x00007f5294bb9db2 in KJob::result(KJob*) () from /usr/lib/libkdecore.so.5
#21 0x00007f5294bb9df0 in KJob::emitResult() () from /usr/lib/libkdecore.so.5
#22 0x00007f528f664acd in Akonadi::Job::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libakonadi-kde.so.4
#23 0x00007f528f6536f5 in Akonadi::ItemFetchJob::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libakonadi-kde.so.4
#24 0x00007f529347849a in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#25 0x00007f52939529f4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#26 0x00007f52939573ba in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#27 0x00007f529517f796 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#28 0x00007f529346449c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#29 0x00007f5293467c25 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#30 0x00007f529348f253 in ?? () from /usr/lib/libQtCore.so.4
#31 0x00007f528b3c6bcd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007f528b3c73a8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007f528b3c7639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007f529348f3ef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#35 0x00007f52939fc4de in ?? () from /usr/lib/libQtGui.so.4
#36 0x00007f5293463882 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#37 0x00007f5293463abc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#38 0x00007f5293467ecb in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#39 0x0000000000403008 in _start ()
Comment 2 Laurent Montel 2011-08-04 16:50:23 UTC
I can confirm it
Comment 3 Laurent Montel 2011-08-04 18:16:39 UTC
Fixed in 4.7.1/master