Bug 301717

Summary: kmail crashes immediately if I want to display a message
Product: [Applications] kmail2 Reporter: Tamás Németh <nt1277>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: critical CC: montel
Priority: NOR    
Version: 4.8.4   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Tamás Németh 2012-06-12 09:20:18 UTC
Since updating to KDE SC 4.8.4, kmail is able to display the message list and even download new messages, but upon trying to display any message or compose a new one, it immediately crashes:

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

Thread 3 (Thread 0x7f57fee8f700 (LWP 4674)):
#0  0x00007f5818d3ae6c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f580f3d5c12 in ?? () from /usr/lib64/libQtWebKit.so.4
#2  0x00007f580f3d5c49 in ?? () from /usr/lib64/libQtWebKit.so.4
#3  0x00007f5818d36f05 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f581af3210d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f57fe576700 (LWP 4675)):
#0  0x00007f581af28ff3 in poll () from /lib64/libc.so.6
#1  0x00007f58130eda98 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f58130edf59 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f581c590e36 in QEventDispatcherGlib::processEvents (this=0x7f57f80008c0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f581c560842 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f581c560a97 in QEventLoop::exec (this=0x7f57fe575e00, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f581c4605f7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f581c46361b in QThreadPrivate::start (arg=0xa81c60) at thread/qthread_unix.cpp:307
#8  0x00007f5818d36f05 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f581af3210d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f581dc02780 (LWP 4667)):
[KCrash Handler]
#6  deref (this=0x7f580ca2fa18) at /usr/include/QtCore/qatomic_x86_64.h:133
#7  ~KSharedPtr (this=0xb61020, __in_chrg=<optimized out>) at /usr/src/debug/kdelibs-4.8.4/kdecore/util/ksharedptr.h:90
#8  ~ParsingData (this=0xb61020, __in_chrg=<optimized out>) at /usr/src/debug/kdelibs-4.8.4/kdecore/services/ktraderparse.cpp:40
#9  qThreadStorage_deleteData<KTraderParse::ParsingData> (d=0xb61020) at /usr/include/QtCore/qthreadstorage.h:97
#10 QThreadStorage<KTraderParse::ParsingData*>::deleteData (x=0xb61020) at /usr/include/QtCore/qthreadstorage.h:140
#11 0x00007f581c4615ed in QThreadStorageData::set (this=0x768fe50, p=0x78d81a0) at thread/qthreadstorage.cpp:165
#12 0x00007f581d082d77 in qThreadStorage_setLocalData<KTraderParse::ParsingData> (d=<optimized out>, t=<optimized out>) at /usr/include/QtCore/qthreadstorage.h:92
#13 setLocalData (t=0x78d81a0, this=<optimized out>) at /usr/include/QtCore/qthreadstorage.h:155
#14 KTraderParse::parseConstraints (_constr=...) at /usr/src/debug/kdelibs-4.8.4/kdecore/services/ktraderparse.cpp:55
#15 0x00007f581d0822e2 in applyConstraints (constraint=<optimized out>, lst=...) at /usr/src/debug/kdelibs-4.8.4/kdecore/services/kservicetypetrader.cpp:59
#16 KServiceTypeTrader::applyConstraints (lst=..., constraint=<optimized out>) at /usr/src/debug/kdelibs-4.8.4/kdecore/services/kservicetypetrader.cpp:53
#17 0x00007f581d0824ce in KServiceTypeTrader::defaultOffers (this=<optimized out>, serviceType=<optimized out>, constraint=...) at /usr/src/debug/kdelibs-4.8.4/kdecore/services/kservicetypetrader.cpp:127
#18 0x00007f581d082c21 in KServiceTypeTrader::query (this=0x6e90e0, serviceType=..., constraint=...) at /usr/src/debug/kdelibs-4.8.4/kdecore/services/kservicetypetrader.cpp:141
#19 0x00007f580ce699de in KEmoticonsPrivate::loadServiceList (this=0xf76c70) at /usr/src/debug/kdelibs-4.8.4/kutils/kemoticons/kemoticons.cpp:71
#20 0x00007f580ce69b3a in KEmoticons::KEmoticons (this=0x791a710) at /usr/src/debug/kdelibs-4.8.4/kutils/kemoticons/kemoticons.cpp:121
#21 0x00007f58147a8502 in operator-> (this=<optimized out>) at /usr/src/debug/kdepimlibs-4.8.4/kpimutils/linklocator.cpp:56
#22 KPIMUtils::LinkLocator::convertToHtml (plainText=<optimized out>, flags=<optimized out>, maxUrlLen=<optimized out>, maxAddressLen=<optimized out>) at /usr/src/debug/kdepimlibs-4.8.4/kpimutils/linklocator.cpp:426
#23 0x00007f58142c7d04 in MessageViewer::strToHtml (str=<optimized out>, flags=<optimized out>) at /usr/src/debug/kdepim-4.8.4/messageviewer/headerstyle.cpp:84
#24 0x00007f58142c7fc0 in MessageViewer::subjectString (message=0x98324e0, flags=3) at /usr/src/debug/kdepim-4.8.4/messageviewer/headerstyle.cpp:111
#25 0x00007f58142d029c in MessageViewer::FancyHeaderStyle::format (this=0xaa94f0, message=0x98324e0) at /usr/src/debug/kdepim-4.8.4/messageviewer/headerstyle.cpp:612
#26 0x00007f581431f9df in MessageViewer::ViewerPrivate::writeMsgHeader (this=0xa74cc0, aMsg=0x98324e0, vCardNode=<optimized out>, topLevel=true) at /usr/src/debug/kdepim-4.8.4/messageviewer/viewer_p.cpp:968
#27 0x00007f581432c8bd in MessageViewer::ViewerPrivate::parseContent (this=0xa74cc0, content=0x98324e0) at /usr/src/debug/kdepim-4.8.4/messageviewer/viewer_p.cpp:907
#28 0x00007f581432dd1e in MessageViewer::ViewerPrivate::displayMessage (this=0xa74cc0) at /usr/src/debug/kdepim-4.8.4/messageviewer/viewer_p.cpp:790
#29 0x00007f581432e532 in MessageViewer::ViewerPrivate::updateReaderWin (this=0xa74cc0) at /usr/src/debug/kdepim-4.8.4/messageviewer/viewer_p.cpp:2084
#30 0x00007f5814335c5a in MessageViewer::ViewerPrivate::qt_static_metacall (_o=0xa74cc0, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /usr/src/debug/kdepim-4.8.4/build/messageviewer/viewer_p.moc:208
#31 0x00007f581c575c41 in QMetaObject::activate (sender=0xa74d48, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3556
#32 0x00007f581c57ab39 in QObject::event (this=0xa74d48, e=<optimized out>) at kernel/qobject.cpp:1166
#33 0x00007f581b8e4fe4 in notify_helper (e=0x7fffb3d5a030, receiver=0xa74d48, this=0x66a140) at kernel/qapplication.cpp:4551
#34 QApplicationPrivate::notify_helper (this=0x66a140, receiver=0xa74d48, e=0x7fffb3d5a030) at kernel/qapplication.cpp:4523
#35 0x00007f581b8e9db3 in QApplication::notify (this=0x7fffb3d5a460, receiver=0xa74d48, e=0x7fffb3d5a030) at kernel/qapplication.cpp:4412
#36 0x00007f581d618746 in KApplication::notify (this=0x7fffb3d5a460, receiver=0xa74d48, event=0x7fffb3d5a030) at /usr/src/debug/kdelibs-4.8.4/kdeui/kernel/kapplication.cpp:311
#37 0x00007f581c561d0c in QCoreApplication::notifyInternal (this=0x7fffb3d5a460, receiver=0xa74d48, event=0x7fffb3d5a030) at kernel/qcoreapplication.cpp:915
#38 0x00007f581c592be8 in sendEvent (event=0x7fffb3d5a030, receiver=<optimized out>) at kernel/qcoreapplication.h:231
#39 QTimerInfoList::activateTimers (this=0x66cde0) at kernel/qeventdispatcher_unix.cpp:626
#40 0x00007f581c59059d in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:186
#41 timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:180
#42 0x00007f58130ed58d in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#43 0x00007f58130edd88 in ?? () from /usr/lib64/libglib-2.0.so.0
#44 0x00007f58130edf59 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#45 0x00007f581c590dcf in QEventDispatcherGlib::processEvents (this=0x60b000, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#46 0x00007f581b98869e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#47 0x00007f581c560842 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#48 0x00007f581c560a97 in QEventLoop::exec (this=0x7fffb3d5a340, flags=...) at kernel/qeventloop.cpp:204
#49 0x00007f581c5658b5 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#50 0x0000000000402df3 in ?? ()
#51 0x00007f581ae7823d in __libc_start_main () from /lib64/libc.so.6
#52 0x00000000004032d5 in _start ()

Reproducible: Always

Steps to Reproduce:
1. Update to KDE SC on openSUSE 12.1 x86_64
2. start kmail
Actual Results:  
It crashes

Expected Results:  
It shouldn't crash

It's probably openSUSE's fault, since the repository at http://download.opensuse.org/repositories/KDE:/Release:/48/openSUSE_12.1 doesn't seem to be perfectly consistent :-(
Comment 1 Laurent Montel 2012-06-12 10:58:12 UTC

*** This bug has been marked as a duplicate of bug 301710 ***