Summary: | KMail crashes when clicking on an unread email, while it is still starting up [DwHeaders::FindField, KMMessage::rawHeaderField, KMMessage::from, KMail::FancyHeaderStyle::format] | ||
---|---|---|---|
Product: | [Unmaintained] kmail | Reporter: | Panagiotis Papadopoulos <pano_90> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | alok, andresbajotierra, arne_bab, bderks, benoitg, bjoern, clemens.kol, dpbasti, drankinatty, fbianco, gtdev, kd75, kde-bug, kde, m.wege, marc, mechmg93, moabi2000, mtijink.bugs, nigel.cundy, paul.f.fee, pointa.bordeaux, s.dem, shawn.starr, stephen, toivo |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Kontact Backtrace |
Description
Panagiotis Papadopoulos
2009-05-24 15:09:04 UTC
SVN commit 972261 by winterz: mimelib doesn't know QByteArrays, but it does know char's. So don't pass a QByteArray to DwHeaders::FindField(), pass a char* instead. This might fix a crash. Panagiotis, please test and let us know if this helps fix the crash you are experiencing. CCBUG: 193891 M +10 -5 kmmessage.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=972261 Bug 180741 could be related. KMail just crashed again, with an identical backtrace as above. This happened with kdepim and kdepimlibs packages from 29. May Is it useful information if I tell you, that this happens with a POP3 account? I compiled KMail myself, and got the following backtrace: Application: KMail (kmail), signal: Segmentation fault [Current thread is 0 (LWP 11531)] Thread 3 (Thread 0xb02ddb70 (LWP 11542)): #0 0xb7ff6424 in __kernel_vsyscall () #1 0xb5c48f21 in select () from /lib/libc.so.6 #2 0xb6a42325 in ?? () from /usr/lib/libQtCore.so.4 #3 0xb697514e in ?? () from /usr/lib/libQtCore.so.4 #4 0xb69146bc in start_thread () from /lib/libpthread.so.0 #5 0xb5c4fffe in clone () from /lib/libc.so.6 Thread 2 (Thread 0xafadcb70 (LWP 11545)): #0 0xb7ff6424 in __kernel_vsyscall () #1 0xb6918f82 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #2 0xb69760ef in QWaitCondition::wait () from /usr/lib/libQtCore.so.4 #3 0xb696b86e in ?? () from /usr/lib/libQtCore.so.4 #4 0xb697514e in ?? () from /usr/lib/libQtCore.so.4 #5 0xb69146bc in start_thread () from /lib/libpthread.so.0 #6 0xb5c4fffe in clone () from /lib/libc.so.6 Thread 1 (Thread 0xb3b66930 (LWP 11531)): [KCrash Handler] #6 DwEntity::Headers (this=0xbff07f78) at /home/pano/test/kmail/kdepim/mimelib/entity.cpp:242 #7 0xb72e3445 in KMMessage::from (this=0x8c342f8) at /home/pano/test/kmail/kdepim/kmail/kmmessage.cpp:1709 #8 0xb7570328 in KMail::FancyHeaderStyle::format (this=0x8723e08, message=0x8c342f8, strategy=0x84ba5c8, vCardName=@0xbff0d814, printing=false, topLevel=true) at /home/pano/test/kmail/kdepim/kmail/headerstyle.cpp:457 #9 0xb73f2fa7 in KMReaderWin::writeMsgHeader (this=0x8692878, aMsg=0x8c342f8, hasVCard=false, topLevel=<value optimized out>) at /home/pano/test/kmail/kdepim/kmail/kmreaderwin.cpp:1771 #10 0xb73fa070 in KMReaderWin::parseMsg (this=0x8692878, aMsg=0x8c342f8) at /home/pano/test/kmail/kdepim/kmail/kmreaderwin.cpp:1655 #11 0xb73e77e9 in KMReaderWin::displayMessage (this=0x8692878) at /home/pano/test/kmail/kdepim/kmail/kmreaderwin.cpp:1592 #12 0xb73e79db in KMReaderWin::updateReaderWin (this=0x8692878) at /home/pano/test/kmail/kdepim/kmail/kmreaderwin.cpp:1532 #13 0xb73f4c94 in KMReaderWin::qt_metacall (this=0x8692878, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0xbff0dc2c) at /home/pano/test/kmail/kdepim/kmail/kmreaderwin.moc:165 #14 0xb6a7973c in QMetaObject::activate () from /usr/lib/libQtCore.so.4 #15 0xb6a7a362 in QMetaObject::activate () from /usr/lib/libQtCore.so.4 #16 0xb6ab3717 in QTimer::timeout () from /usr/lib/libQtCore.so.4 #17 0xb6a7edbe in QTimer::timerEvent () from /usr/lib/libQtCore.so.4 #18 0xb6a737ff in QObject::event () from /usr/lib/libQtCore.so.4 #19 0xb5f20534 in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4 #20 0xb5f27c2c in QApplication::notify () from /usr/lib/libQtGui.so.4 #21 0xb7e1307a in KApplication::notify () from /usr/lib/libkdeui.so.5 #22 0xb6a63a7b in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4 #23 0xb6a9135e in ?? () from /usr/lib/libQtCore.so.4 #24 0xb6a8e460 in ?? () from /usr/lib/libQtCore.so.4 #25 0xb42b6d98 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #26 0xb42ba3e0 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0 #27 0xb42ba513 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #28 0xb6a8e3ac in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4 #29 0xb5fbe205 in ?? () from /usr/lib/libQtGui.so.4 #30 0xb6a62029 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4 #31 0xb6a62472 in QEventLoop::exec () from /usr/lib/libQtCore.so.4 #32 0xb6a647cf in QCoreApplication::exec () from /usr/lib/libQtCore.so.4 #33 0xb5f203b7 in QApplication::exec () from /usr/lib/libQtGui.so.4 #34 0x0804a7d2 in main (argc=1, argv=0xbff0e654) at /home/pano/test/kmail/kdepim/kmail/main.cpp:146 *** Bug 193702 has been marked as a duplicate of this bug. *** *** Bug 197472 has been marked as a duplicate of this bug. *** *** Bug 181443 has been marked as a duplicate of this bug. *** *** Bug 183404 has been marked as a duplicate of this bug. *** *** Bug 199560 has been marked as a duplicate of this bug. *** *** Bug 199750 has been marked as a duplicate of this bug. *** *** Bug 204848 has been marked as a duplicate of this bug. *** *** Bug 204960 has been marked as a duplicate of this bug. *** *** Bug 207440 has been marked as a duplicate of this bug. *** bt from 207440: Thread 1 (Thread 0x7f3c7dc6b750 (LWP 5011)): [KCrash Handler] #5 DwStrcasecmp (aStr=@0x3733f7a, aCstr=0x378f7a8 "From") at /build/buildd/kdepim-4.3.1/mimelib/mimelib/string.h:627 #6 0x00007f3c6306a1ed in DwHeaders::FindField (this=<value optimized out>, aFieldName=0x378f7a8 "From") at /build/buildd/kdepim-4.3.1/mimelib/headers.cpp:289 #7 0x00007f3c64d891b3 in KMMessage::rawHeaderField (this=<value optimized out>, name=@0x7fff85ca6e50) at /build/buildd/kdepim-4.3.1/kmail/kmmessage.cpp:1959 #8 0x00007f3c64d8b4e5 in KMMessage::from (this=0x2fefff0) at /build/buildd/kdepim-4.3.1/kmail/kmmessage.cpp:1710 #9 0x00007f3c64fead20 in KMail::FancyHeaderStyle::format (this=<value optimized out>, message=0x2fefff0, strategy=0x1cedd00, vCardName=@0x7fff85cb1ab0, printing=152, topLevel=true) at /build/buildd/kdepim-4.3.1/kmail/headerstyle.cpp:457 #10 0x00007f3c64e8085a in KMReaderWin::writeMsgHeader (this=0x1fc8980, aMsg=0x2fefff0, hasVCard=false, topLevel=115) at /build/buildd/kdepim-4.3.1/kmail/kmreaderwin.cpp:1783 #11 0x00007f3c64e875a8 in KMReaderWin::parseMsg (this=0x1fc8980, aMsg=0x2fefff0) at /build/buildd/kdepim-4.3.1/kmail/kmreaderwin.cpp:1668 #12 0x00007f3c64e7651a in KMReaderWin::displayMessage (this=0x1fc8980) at /build/buildd/kdepim-4.3.1/kmail/kmreaderwin.cpp:1605 #13 0x00007f3c64e76705 in KMReaderWin::updateReaderWin (this=0x1fc8980) at /build/buildd/kdepim-4.3.1/kmail/kmreaderwin.cpp:1545 #14 0x00007f3c64e827e5 in KMReaderWin::qt_metacall (this=0x1fc8980, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff85cb2320) at /build/buildd/kdepim-4.3.1/obj-x86_64-linux-gnu/kmail/kmreaderwin.moc:168 #15 0x00007f3c78203ea2 in QMetaObject::activate (sender=0x1fc8a28, from_signal_index=<value optimized out>, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3113 #16 0x00007f3c781fe263 in QObject::event (this=0x1fc8a28, e=0x378f7a8) at kernel/qobject.cpp:1075 #17 0x00007f3c78d6ef4d in QApplicationPrivate::notify_helper (this=0x171a040, receiver=0x1fc8a28, e=0x7fff85cb29d0) at kernel/qapplication.cpp:4056 #18 0x00007f3c78d7718a in QApplication::notify (this=0x7fff85cb41c0, receiver=0x1fc8a28, e=0x7fff85cb29d0) at kernel/qapplication.cpp:4021 #19 0x00007f3c7a173deb in KApplication::notify (this=0x7fff85cb41c0, receiver=0x1fc8a28, event=0x7fff85cb29d0) at /build/buildd/kde4libs-4.3.1/kdeui/kernel/kapplication.cpp:302 #20 0x00007f3c781ee6ac in QCoreApplication::notifyInternal (this=0x7fff85cb41c0, receiver=0x1fc8a28, event=0x7fff85cb29d0) at kernel/qcoreapplication.cpp:610 #21 0x00007f3c7821b516 in QTimerInfoList::activateTimers (this=0x170ea20) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213 #22 0x00007f3c78217b2d in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:165 #23 0x00007f3c7193f20a in IA__g_main_context_dispatch (context=0x170d920) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:1814 #24 0x00007f3c719428e0 in g_main_context_iterate (context=0x170d920, block=1, dispatch=1, self=<value optimized out>) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2448 #25 0x00007f3c71942a7c in IA__g_main_context_iteration (context=0x170d920, may_block=1) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2511 #26 0x00007f3c78217a8f in QEventDispatcherGlib::processEvents (this=0x16e20a0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327 #27 0x00007f3c78e07bdf in QGuiEventDispatcherGlib::processEvents (this=0x3733f7a, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202 #28 0x00007f3c781ecf42 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -2050282432}) at kernel/qeventloop.cpp:149 #29 0x00007f3c781ed314 in QEventLoop::exec (this=0x7fff85cb2da0, flags={i = -2050281824}) at kernel/qeventloop.cpp:201 #30 0x00007f3c7a1fb7ee in KWallet::Wallet::openWallet (name=@0x7fff85cb2f20, w=<value optimized out>, ot=KWallet::Wallet::Synchronous) at /build/buildd/kde4libs-4.3.1/kdeui/util/kwallet.cpp:252 #31 0x00007f3c64f83a7c in KMKernel::wallet (this=0x1cd5a50) at /build/buildd/kdepim-4.3.1/kmail/kmkernel.cpp:2328 #32 0x00007f3c64f08b60 in KMail::NetworkAccount::readPassword (this=0x1f6add0) at /build/buildd/kdepim-4.3.1/kmail/networkaccount.cpp:338 #33 0x00007f3c64ea7c22 in KMail::AccountManager::readPasswords (this=<value optimized out>) at /build/buildd/kdepim-4.3.1/kmail/accountmanager.cpp:438 #34 0x00007f3c64f06449 in KMail::NetworkAccount::passwd (this=0x378f7a8) at /build/buildd/kdepim-4.3.1/kmail/networkaccount.cpp:95 #35 0x00007f3c64f763c3 in KMail::PopAccount::processNewMail (this=0x1f6add0, _interactive=true) at /build/buildd/kdepim-4.3.1/kmail/popaccount.cpp:143 #36 0x00007f3c64ea9694 in KMail::AccountManager::processNextCheck (this=0x1d475f0, _newMail=<value optimized out>) at /build/buildd/kdepim-4.3.1/kmail/accountmanager.cpp:230 #37 0x00007f3c64eaa142 in KMail::AccountManager::singleCheckMail (this=0x1d475f0, account=0x1f6add0, interactive=<value optimized out>) at /build/buildd/kdepim-4.3.1/kmail/accountmanager.cpp:157 #38 0x00007f3c64eaa571 in KMail::AccountManager::checkMail (this=0x1d475f0, _interactive=true) at /build/buildd/kdepim-4.3.1/kmail/accountmanager.cpp:352 #39 0x00007f3c6506e9ac in KMMainWidget::qt_metacall (this=0x1fb6ef0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff85cb37b0) at /build/buildd/kdepim-4.3.1/obj-x86_64-linux-gnu/kmail/kmmainwidget.moc:355 #40 0x00007f3c78203ea2 in QMetaObject::activate (sender=0x2d6e3a0, from_signal_index=<value optimized out>, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3113 #41 0x00007f3c7820914f in QSingleShotTimer::timerEvent (this=0x2d6e3a0) at kernel/qtimer.cpp:298 #42 0x00007f3c781fe263 in QObject::event (this=0x2d6e3a0, e=0x378f7a8) at kernel/qobject.cpp:1075 #43 0x00007f3c78d6ef4d in QApplicationPrivate::notify_helper (this=0x171a040, receiver=0x2d6e3a0, e=0x7fff85cb3e70) at kernel/qapplication.cpp:4056 #44 0x00007f3c78d7718a in QApplication::notify (this=0x7fff85cb41c0, receiver=0x2d6e3a0, e=0x7fff85cb3e70) at kernel/qapplication.cpp:4021 #45 0x00007f3c7a173deb in KApplication::notify (this=0x7fff85cb41c0, receiver=0x2d6e3a0, event=0x7fff85cb3e70) at /build/buildd/kde4libs-4.3.1/kdeui/kernel/kapplication.cpp:302 #46 0x00007f3c781ee6ac in QCoreApplication::notifyInternal (this=0x7fff85cb41c0, receiver=0x2d6e3a0, event=0x7fff85cb3e70) at kernel/qcoreapplication.cpp:610 #47 0x00007f3c7821b516 in QTimerInfoList::activateTimers (this=0x170ea20) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213 #48 0x00007f3c78217b2d in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:165 #49 0x00007f3c7193f20a in IA__g_main_context_dispatch (context=0x170d920) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:1814 #50 0x00007f3c719428e0 in g_main_context_iterate (context=0x170d920, block=1, dispatch=1, self=<value optimized out>) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2448 #51 0x00007f3c71942a7c in IA__g_main_context_iteration (context=0x170d920, may_block=1) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2511 #52 0x00007f3c78217a8f in QEventDispatcherGlib::processEvents (this=0x16e20a0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327 #53 0x00007f3c78e07bdf in QGuiEventDispatcherGlib::processEvents (this=0x3733f7a, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202 #54 0x00007f3c781ecf42 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -2050277152}) at kernel/qeventloop.cpp:149 #55 0x00007f3c781ed314 in QEventLoop::exec (this=0x7fff85cb4120, flags={i = -2050277072}) at kernel/qeventloop.cpp:201 #56 0x00007f3c781ef5e4 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888 #57 0x0000000000404945 in main (argc=3, argv=0x7fff85cb48a8) at /build/buildd/kdepim-4.3.1/kontact/src/main.cpp:218 *** Bug 208055 has been marked as a duplicate of this bug. *** I can't seem to reliably reproduce this anymore (kdelibs from trunk, KMail from 4.3.1) *** Bug 210289 has been marked as a duplicate of this bug. *** *** Bug 211139 has been marked as a duplicate of this bug. *** *** Bug 211436 has been marked as a duplicate of this bug. *** *** Bug 181328 has been marked as a duplicate of this bug. *** *** Bug 200437 has been marked as a duplicate of this bug. *** *** Bug 153545 has been marked as a duplicate of this bug. *** *** Bug 211887 has been marked as a duplicate of this bug. *** *** Bug 212359 has been marked as a duplicate of this bug. *** *** Bug 213142 has been marked as a duplicate of this bug. *** Bug 213956 seems to mention another situation and steps to experience the crash *** Bug 213956 has been marked as a duplicate of this bug. *** *** Bug 215453 has been marked as a duplicate of this bug. *** Created attachment 38524 [details]
Kontact Backtrace
An other backtrace of the same bug.
*** Bug 217964 has been marked as a duplicate of this bug. *** *** Bug 218659 has been marked as a duplicate of this bug. *** *** Bug 219602 has been marked as a duplicate of this bug. *** SVN commit 1064851 by winterz: in headerField() and headerFields() also make sure that the message hasHeaders() before trying to access headers. This might help fix some crashes. CCBUG: 193891 MERGE: 4.3 M +2 -2 kmmessage.cpp M +2 -0 kmreaderwin.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1064851 *** Bug 221771 has been marked as a duplicate of this bug. *** Please give feedback whether this still happens in KDE 4.4 I haven't noticed the problem with KDE 4.4, which I have been running for some time. No longuer happens for me either in KDE 4.4. Well, so Allen probably got it working. *** Bug 226001 has been marked as a duplicate of this bug. *** *** Bug 232535 has been marked as a duplicate of this bug. *** |