Bug 342815 - reply to a message crashes kmail
Summary: reply to a message crashes kmail
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kontact
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2015-01-13 22:07 UTC by Michi
Modified: 2018-02-01 09:47 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 Michi 2015-01-13 22:07:14 UTC
Application: kontact (4.73 pre)

Qt Version: 5.4.1
Operating System: Linux 3.18.0-2.g2b473fc-desktop x86_64
Distribution: "(none)"

-- Information about the crash:
- What I was doing when the application crashed:

Currently the only way to reply to an email is to open the message and use the toolbar button to reply to the sender. But whenever I do the whole application (kontact/kmail) crashes

The crash can be reproduced every time.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f66fd022800 (LWP 23353))]

Thread 11 (Thread 0x7f66ded4a700 (LWP 23354)):
#0  0x00007f66f994c4ad in poll () at /lib64/libc.so.6
#1  0x00007f66f11f2322 in  () at /usr/lib64/libxcb.so.1
#2  0x00007f66f11f3def in xcb_wait_for_event () at /usr/lib64/libxcb.so.1
#3  0x00007f66e0a95bb9 in  () at /usr/lib64/qt5/plugins/platforms/libqxcb.so
#4  0x00007f66fa1e794f in  () at /usr/lib64/libQt5Core.so.5
#5  0x00007f66f0dd03a4 in start_thread () at /lib64/libpthread.so.0
#6  0x00007f66f9954a4d in clone () at /lib64/libc.so.6

Thread 10 (Thread 0x7f66dcd9f700 (LWP 23355)):
#0  0x00007f66f0dd485f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f66f86374d3 in  () at /usr/lib64/libQt5WebKit.so.5
#2  0x00007f66f86374f9 in  () at /usr/lib64/libQt5WebKit.so.5
#3  0x00007f66f0dd03a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f66f9954a4d in clone () at /lib64/libc.so.6

Thread 9 (Thread 0x7f6694220700 (LWP 23356)):
#0  0x00007f66f994857d in read () at /lib64/libc.so.6
#1  0x00007f66f08f3cd0 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f66f08b29c9 in g_main_context_check () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f66f08b2e28 in  () at /usr/lib64/libglib-2.0.so.0
#4  0x00007f66f08b2fac in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#5  0x00007f66fa4191fb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#6  0x00007f66fa3bfd9b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#7  0x00007f66fa1e2d1a in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#8  0x00007f66fa1e794f in  () at /usr/lib64/libQt5Core.so.5
#9  0x00007f66f0dd03a4 in start_thread () at /lib64/libpthread.so.0
#10 0x00007f66f9954a4d in clone () at /lib64/libc.so.6

Thread 8 (Thread 0x7f66926d4700 (LWP 23357)):
#0  0x00007f66f0dd485f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f66f8342d7d in  () at /usr/lib64/libQt5WebKit.so.5
#2  0x00007f66f8665de1 in  () at /usr/lib64/libQt5WebKit.so.5
#3  0x00007f66f0dd03a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f66f9954a4d in clone () at /lib64/libc.so.6

Thread 7 (Thread 0x7f6691ed3700 (LWP 23358)):
#0  0x00007f66f0dd485f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f66f8343d53 in  () at /usr/lib64/libQt5WebKit.so.5
#2  0x00007f66f8665de1 in  () at /usr/lib64/libQt5WebKit.so.5
#3  0x00007f66f0dd03a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f66f9954a4d in clone () at /lib64/libc.so.6

Thread 6 (Thread 0x7f66916d2700 (LWP 23359)):
#0  0x00007f66f0dd485f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f66f8343d53 in  () at /usr/lib64/libQt5WebKit.so.5
#2  0x00007f66f8665de1 in  () at /usr/lib64/libQt5WebKit.so.5
#3  0x00007f66f0dd03a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f66f9954a4d in clone () at /lib64/libc.so.6

Thread 5 (Thread 0x7f6690ed1700 (LWP 23360)):
#0  0x00007f66f0dd485f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f66f8343d53 in  () at /usr/lib64/libQt5WebKit.so.5
#2  0x00007f66f8665de1 in  () at /usr/lib64/libQt5WebKit.so.5
#3  0x00007f66f0dd03a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f66f9954a4d in clone () at /lib64/libc.so.6

Thread 4 (Thread 0x7f6683fff700 (LWP 23361)):
#0  0x00007f66f0dd485f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f66f8343d53 in  () at /usr/lib64/libQt5WebKit.so.5
#2  0x00007f66f8665de1 in  () at /usr/lib64/libQt5WebKit.so.5
#3  0x00007f66f0dd03a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f66f9954a4d in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7f66837fe700 (LWP 23362)):
#0  0x00007f66f0dd485f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f66f8343d53 in  () at /usr/lib64/libQt5WebKit.so.5
#2  0x00007f66f8665de1 in  () at /usr/lib64/libQt5WebKit.so.5
#3  0x00007f66f0dd03a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f66f9954a4d in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7f6682ffd700 (LWP 23363)):
#0  0x00007f66f0dd485f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f66f8343d53 in  () at /usr/lib64/libQt5WebKit.so.5
#2  0x00007f66f8665de1 in  () at /usr/lib64/libQt5WebKit.so.5
#3  0x00007f66f0dd03a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f66f9954a4d in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7f66fd022800 (LWP 23353)):
[KCrash Handler]
#5  0x00007f66f9c07978 in main_arena () at /lib64/libc.so.6
#6  0x00007f66fc4ec951 in KLocale::formatDate(QDate const&, KLocale::DateFormat) const () at /usr/lib64/libKF5KDELibs4Support.so.5
#7  0x00007f666c3cb363 in TemplateParser::TemplateParser::processWithTemplate(QString const&) () at /usr/lib64/libtemplateparser.so.5
#8  0x00007f666c3bd214 in TemplateParser::TemplateParser::process(boost::shared_ptr<KMime::Message> const&, Akonadi::Collection const&) () at /usr/lib64/libtemplateparser.so.5
#9  0x00007f666c8dadff in MessageComposer::MessageFactory::createReply() () at /usr/lib64/libmessagecomposer.so.5
#10 0x00007f666d9e24ea in KMReplyCommand::execute() () at /usr/lib64/libkmailprivate.so.5
#11 0x00007f666d9daff1 in KMCommand::slotPostTransfer(KMCommand::Result) () at /usr/lib64/libkmailprivate.so.5
#12 0x00007f66fa3f113f in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib64/libQt5Core.so.5
#13 0x00007f666daf798e in KMCommand::messagesTransfered(KMCommand::Result) () at /usr/lib64/libkmailprivate.so.5
#14 0x00007f666d9ddb63 in KMCommand::slotJobFinished() () at /usr/lib64/libkmailprivate.so.5
#15 0x00007f66fa3f113f in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib64/libQt5Core.so.5
#16 0x00007f66f57c9ff2 in KJob::result(KJob*, KJob::QPrivateSignal) () at /usr/lib64/libKF5CoreAddons.so.5
#17 0x00007f66f57ca82c in KJob::emitResult() () at /usr/lib64/libKF5CoreAddons.so.5
#18 0x00007f66f4cf33a9 in  () at /usr/lib64/libKF5AkonadiCore.so.5
#19 0x00007f66fa3f24c6 in QObject::event(QEvent*) () at /usr/lib64/libQt5Core.so.5
#20 0x00007f66fb51db5c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#21 0x00007f66fb522bc0 in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#22 0x00007f66fa3c1e45 in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /usr/lib64/libQt5Core.so.5
#23 0x00007f66fa3c3cdf in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib64/libQt5Core.so.5
#24 0x00007f66fa419d63 in  () at /usr/lib64/libQt5Core.so.5
#25 0x00007f66f08b2cb4 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#26 0x00007f66f08b2f08 in  () at /usr/lib64/libglib-2.0.so.0
#27 0x00007f66f08b2fac in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#28 0x00007f66fa4191dc in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#29 0x00007f66fa3bfd9b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#30 0x00007f66fa3c7426 in QCoreApplication::exec() () at /usr/lib64/libQt5Core.so.5
#31 0x00000000004041eb in main ()

Reported using DrKonqi
Comment 1 Laurent Montel 2015-01-14 06:29:28 UTC
Hi
This version is not release yet and will not release in 2015 perhaps in 2016.

So it's really not
Comment 2 Laurent Montel 2015-01-14 06:30:06 UTC
Hi
This version is not release yet and will not release in 2015 perhaps in 2016.

So it's really not a good idea to use it.

But if you use please add full debug package so I will able to debug it.

Thanks
Comment 3 Michi 2015-01-14 07:28:37 UTC
is that better?

[KCrash Handler]
#5  0x00007f3184e39968 in main_arena () at /lib64/libc.so.6
#6  0x00007f318771e951 in KLocale::formatDate(QDate const&, KLocale::DateFormat) const () at /usr/lib64/libKF5KDELibs4Support.so.5
#7  0x00007f30f3477363 in TemplateParser::TemplateParser::processWithTemplate(QString const&) (this=0x7fffe1c05480, tmpl=...) at /usr/src/debug/kdepim-4.99.40/templateparser/templateparser.cpp:1041
#8  0x00007f30f3469214 in TemplateParser::TemplateParser::process(boost::shared_ptr<KMime::Message> const&, Akonadi::Collection const&) (this=this@entry=0x7fffe1c05480, aorig_msg=..., afolder=...) at /usr/src/debug/kdepim-4.99.40/templateparser/templateparser.cpp:273
#9  0x00007f30f3986dff in MessageComposer::MessageFactory::createReply() (this=this@entry=0x7fffe1c05620) at /usr/src/debug/kdepim-4.99.40/messagecomposer/helper/messagefactory.cpp:326
#10 0x00007f30f4a8e4ea in KMReplyCommand::execute() (this=0x5ed21b0) at /usr/src/debug/kdepim-4.99.40/kmail/kmcommands.cpp:845
#11 0x00007f30f4a86ff1 in KMCommand::slotPostTransfer(KMCommand::Result) (this=0x5ed21b0, result=KMCommand::OK) at /usr/src/debug/kdepim-4.99.40/kmail/kmcommands.cpp:261
#12 0x00007f318562313f in QMetaObject::activate(QObject*, int, int, void**) (a=0x7fffe1c05840, r=0x5ed21b0, this=0x49fa8e0) at ../../src/corelib/kernel/qobject_impl.h:124
#13 0x00007f318562313f in QMetaObject::activate(QObject*, int, int, void**) (sender=sender@entry=0x5ed21b0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fffe1c05840) at kernel/qobject.cpp:3702
#14 0x00007f3185623ce7 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=sender@entry=0x5ed21b0, m=m@entry=0x7f30f4e4f940 <KMCommand::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fffe1c05840) at kernel/qobject.cpp:3582
#15 0x00007f30f4ba398e in KMCommand::messagesTransfered(KMCommand::Result) (this=this@entry=0x5ed21b0, _t1=_t1@entry=KMCommand::OK) at /usr/src/debug/kdepim-4.99.40/build/kmail/moc_kmcommands.cpp:185
#16 0x00007f30f4a89b63 in KMCommand::slotJobFinished() (this=0x5ed21b0) at /usr/src/debug/kdepim-4.99.40/kmail/kmcommands.cpp:370
#17 0x00007f318562313f in QMetaObject::activate(QObject*, int, int, void**) (a=0x7fffe1c059f0, r=0x5ed21b0, this=0x389ad60) at ../../src/corelib/kernel/qobject_impl.h:124
#18 0x00007f318562313f in QMetaObject::activate(QObject*, int, int, void**) (sender=0x3f4b190, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffe1c059f0) at kernel/qobject.cpp:3702
#19 0x00007f31809fbff2 in KJob::result(KJob*, KJob::QPrivateSignal) () at /usr/lib64/libKF5CoreAddons.so.5
#20 0x00007f31809fc82c in KJob::emitResult() () at /usr/lib64/libKF5CoreAddons.so.5
#21 0x00007f317ff253a9 in  () at /usr/lib64/libKF5AkonadiCore.so.5
#22 0x00007f31856244c6 in QObject::event(QEvent*) (this=0x3f4b190, e=<optimized out>) at kernel/qobject.cpp:1245
#23 0x00007f318674fb5c in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x1ff86d0, receiver=receiver@entry=0x3f4b190, e=e@entry=0x49fb340) at kernel/qapplication.cpp:3722
#24 0x00007f3186754bc0 in QApplication::notify(QObject*, QEvent*) (this=0x7fffe1c06400, receiver=0x3f4b190, e=0x49fb340) at kernel/qapplication.cpp:3505
#25 0x00007f31855f3e45 in QCoreApplication::notifyInternal(QObject*, QEvent*) (this=0x7fffe1c06400, receiver=0x3f4b190, event=event@entry=0x49fb340) at kernel/qcoreapplication.cpp:930
#26 0x00007f31855f5cdf in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (event=0x49fb340, receiver=<optimized out>) at kernel/qcoreapplication.h:228
#27 0x00007f31855f5cdf in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x1fdaaa0) at kernel/qcoreapplication.cpp:1534
#28 0x00007f31855f6318 in QCoreApplication::sendPostedEvents(QObject*, int) (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1392
#29 0x00007f318564bd13 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x2056c00) at kernel/qeventdispatcher_glib.cpp:271
#30 0x00007f317bae4cb4 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#31 0x00007f317bae4f08 in  () at /usr/lib64/libglib-2.0.so.0
#32 0x00007f317bae4fac in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#33 0x00007f318564b18c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x204a640, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#34 0x00007f31855f1d9b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fffe1c06040, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#35 0x00007f31855f9426 in QCoreApplication::exec() () at kernel/qcoreapplication.cpp:1183
#36 0x00000000004041eb in main ()
Comment 4 Laurent Montel 2015-01-14 08:54:02 UTC
What is your template  ?
Comment 5 Michi 2015-01-14 09:23:50 UTC
(In reply to Laurent Montel from comment #4)
> What is your template  ?

the default? I did not change anything in that regard.
Comment 6 Dmitry 2015-01-14 11:04:17 UTC
I got the same problem.
Tried to remove %ODATE and %OTIMELONG from the default reply template and the problem is gone.
Surely it's not a fix
Comment 7 Denis Kurz 2017-06-23 19:37:06 UTC
This bug has never been confirmed for a Kontact version that is based on KDE Frameworks (5.x). Those versions differ significantly from the old 4.x series. Therefore, I plan to close it in around two or three months. In the meantime, it is set to WAITINGFORINFO to give reporters the oportunity to check if it is still valid. As soon as someone confirms it for a recent version (at least 5.1, ideally even more recent), I'll gladly reopen it.

Please understand that we lack the manpower to triage bugs reported for versions almost two years beyond their end of life.
Comment 8 Denis Kurz 2018-02-01 09:47:30 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.1 aka 15.12; preferably much more recent), please open a new one unless it already exists. Thank you for all your input.