Bug 263922 - kontact crashed while clicking on email
Summary: kontact crashed while clicking on email
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.8
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-21 22:28 UTC by S. Burmeister
Modified: 2013-10-19 21:17 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description S. Burmeister 2011-01-21 22:28:36 UTC
Application: kontact (4.6 beta4)
KDE Platform Version: 4.5.95 (4.6 RC2)
Qt Version: 4.7.1
Operating System: Linux 2.6.37-default i686
Distribution: "openSUSE 11.4 Milestone 5 of 6 (i586)"

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

I was reading emails and clicking on emails and folders when kontact crashed.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[Current thread is 1 (Thread 0xb2e71930 (LWP 4071))]

Thread 3 (Thread 0xb088cb70 (LWP 4074)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb4214105 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb626492c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libc.so.6
#3  0xb5b4ed27 in ?? () from /usr/lib/libQtWebKit.so.4
#4  0xb420fb05 in start_thread () from /lib/libpthread.so.0
#5  0xb6256b7e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xa9b6cb70 (LWP 6464)):
#0  0xb417322b in clock_gettime () from /lib/librt.so.1
#1  0xb6f51ac5 in do_gettime () at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0xb70246f6 in updateCurrentTime (this=0x90ea014, tm=...) at kernel/qeventdispatcher_unix.cpp:339
#4  QTimerInfoList::timerWait (this=0x90ea014, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0xb7022f3b in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xa9b6c11c) at kernel/qeventdispatcher_glib.cpp:136
#6  0xb7022fdd in timerSourcePrepare (source=0x90e9fe0, timeout=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#7  0xb40c0ac0 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#8  0xb40c1932 in ?? () from /lib/libglib-2.0.so.0
#9  0xb40c201e in g_main_context_iteration () from /lib/libglib-2.0.so.0
#10 0xb7023787 in QEventDispatcherGlib::processEvents (this=0x90db9c8, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#11 0xb6ff429d in QEventLoop::processEvents (this=0xa9b6c2b0, flags=...) at kernel/qeventloop.cpp:149
#12 0xb6ff44c9 in QEventLoop::exec (this=0xa9b6c2b0, flags=...) at kernel/qeventloop.cpp:201
#13 0xb6ef57b9 in QThread::exec (this=0x90e9ea8) at thread/qthread.cpp:490
#14 0xb6fd422d in QInotifyFileSystemWatcherEngine::run (this=0x90e9ea8) at io/qfilesystemwatcher_inotify.cpp:248
#15 0xb6ef83aa in QThreadPrivate::start (arg=0x90e9ea8) at thread/qthread_unix.cpp:285
#16 0xb420fb05 in start_thread () from /lib/libpthread.so.0
#17 0xb6256b7e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb2e71930 (LWP 4071)):
[KCrash Handler]
#7  KMime::Headers::Base::is (this=0x0, t=0xb3d4114b "References") at /usr/src/debug/kdepimlibs-4.5.95svn.rev1215367/kmime/kmime_headers.cpp:208
#8  0xb3d1f3dc in KMime::Content::headerByType (this=0x8c185e0, type=0xb3d4114b "References") at /usr/src/debug/kdepimlibs-4.5.95svn.rev1215367/kmime/kmime_content.cpp:669
#9  0xb3d3b353 in KMime::Message::headerByType (this=0x8c185e0, type=0xb3d4114b "References") at /usr/src/debug/kdepimlibs-4.5.95svn.rev1215367/kmime/kmime_message.cpp:83
#10 0xb3d3c4ea in KMime::Content::header<KMime::Headers::References> (this=0x8c185e0, create=true) at /usr/src/debug/kdepimlibs-4.5.95svn.rev1215367/kmime/kmime_content.h:784
#11 0xb3d3b7d4 in KMime::Message::references (this=0x8c185e0, create=true) at /usr/src/debug/kdepimlibs-4.5.95svn.rev1215367/kmime/kmime_message.cpp:162
#12 0xaed05a8c in MessageList::StorageModel::fillMessageItemThreadingData (this=0x0, mi=0x8a15fc0, row=0, subset=3214107964) at /usr/src/debug/kdepim-4.6.40.git.1295453417/messagelist/storagemodel.cpp:291
#13 0xaecbae64 in MessageList::Core::ModelPrivate::viewItemJobStepInternalForJobPass1Fill (this=0x846a928, job=0x87a7580, tStart=...) at /usr/src/debug/kdepim-4.6.40.git.1295453417/messagelist/core/model.cpp:2755
#14 0xaecbcbd8 in MessageList::Core::ModelPrivate::viewItemJobStepInternalForJob (this=0x846a928, job=0x87a7580, tStart=...) at /usr/src/debug/kdepim-4.6.40.git.1295453417/messagelist/core/model.cpp:3359
#15 0xaecbd31a in MessageList::Core::ModelPrivate::viewItemJobStepInternal (this=0x846a928) at /usr/src/debug/kdepim-4.6.40.git.1295453417/messagelist/core/model.cpp:3746
#16 0xaecbdf8d in MessageList::Core::ModelPrivate::viewItemJobStep (this=0x846a928) at /usr/src/debug/kdepim-4.6.40.git.1295453417/messagelist/core/model.cpp:3961
#17 0xaecbf0e4 in MessageList::Core::Model::setStorageModel (this=0x846a1c8, storageModel=0x0, preSelectionMode=MessageList::Core::PreSelectNone) at /usr/src/debug/kdepim-4.6.40.git.1295453417/messagelist/core/model.cpp:870
#18 0xaecdd28c in MessageList::Core::View::setStorageModel (this=0x845ae08, storageModel=0x8897b38, preSelectionMode=MessageList::Core::PreSelectLastSelected) at /usr/src/debug/kdepim-4.6.40.git.1295453417/messagelist/core/view.cpp:220
#19 0xaececb22 in MessageList::Core::Widget::setStorageModel (this=0x84549c8, storageModel=0x8897b38, preSelectionMode=MessageList::Core::PreSelectLastSelected) at /usr/src/debug/kdepim-4.6.40.git.1295453417/messagelist/core/widgetbase.cpp:408
#20 0xaecffb3a in MessageList::Pane::setCurrentFolder (this=0x844f778, preSelectionMode=MessageList::Core::PreSelectLastSelected, overrideLabel=...) at /usr/src/debug/kdepim-4.6.40.git.1295453417/messagelist/pane.cpp:439
#21 0xaf05871d in KMMainWidget::slotShowSelectedForderInPane (this=0x8437ba8) at /usr/src/debug/kdepim-4.6.40.git.1295453417/kmail/kmmainwidget.cpp:555
#22 0xaf07a71d in KMMainWidget::qt_metacall (this=0x8437ba8, _c=QMetaObject::InvokeMetaMethod, _id=50, _a=0x91facb0) at /usr/src/debug/kdepim-4.6.40.git.1295453417/build/kmail/kmmainwidget.moc:392
#23 0xb6ffb8ad in QMetaObject::metacall (object=0x8437ba8, cl=QMetaObject::InvokeMetaMethod, idx=77, argv=0x91facb0) at kernel/qmetaobject.cpp:237
#24 0xb7006375 in QMetaCallEvent::placeMetaCall (this=0x892fa28, object=0x8437ba8) at kernel/qobject.cpp:534
#25 0xb700a57f in QObject::event (this=0x8437ba8, e=0x892fa28) at kernel/qobject.cpp:1211
#26 0xb657814c in QWidget::event (this=0x8437ba8, event=0x892fa28) at kernel/qwidget.cpp:8659
#27 0xb651d434 in QApplicationPrivate::notify_helper (this=0x80779a0, receiver=0x8437ba8, e=0x892fa28) at kernel/qapplication.cpp:4445
#28 0xb6526184 in QApplication::notify (this=0xbf937494, receiver=0x8437ba8, e=0x892fa28) at kernel/qapplication.cpp:4324
#29 0xb7513221 in KApplication::notify (this=0xbf937494, receiver=0x8437ba8, event=0x892fa28) at /usr/src/debug/kdelibs-4.5.95/kdeui/kernel/kapplication.cpp:311
#30 0xb6ff4fbe in QCoreApplication::notifyInternal (this=0xbf937494, receiver=0x8437ba8, event=0x892fa28) at kernel/qcoreapplication.cpp:732
#31 0xb6ff8d4c in sendEvent (receiver=0x0, event_type=0, data=0x80531c8) at kernel/qcoreapplication.h:215
#32 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x80531c8) at kernel/qcoreapplication.cpp:1373
#33 0xb6ff8e9c in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1266
#34 0xb70235b4 in sendPostedEvents (s=0x807af08) at kernel/qcoreapplication.h:220
#35 postEventSourceDispatch (s=0x807af08) at kernel/qeventdispatcher_glib.cpp:277
#36 0xb40c1559 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#37 0xb40c1d60 in ?? () from /lib/libglib-2.0.so.0
#38 0xb40c201e in g_main_context_iteration () from /lib/libglib-2.0.so.0
#39 0xb702373b in QEventDispatcherGlib::processEvents (this=0x8074d50, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#40 0xb65d353a in QGuiEventDispatcherGlib::processEvents (this=0x8074d50, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#41 0xb6ff429d in QEventLoop::processEvents (this=0xbf9373f4, flags=...) at kernel/qeventloop.cpp:149
#42 0xb6ff44c9 in QEventLoop::exec (this=0xbf9373f4, flags=...) at kernel/qeventloop.cpp:201
#43 0xb6ff8f70 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#44 0xb651b124 in QApplication::exec () at kernel/qapplication.cpp:3719
#45 0x0804b847 in _start ()

Reported using DrKonqi
Comment 1 Christophe Marin 2011-04-07 14:46:26 UTC
Is the crash reproducible ? with one mail in particular ?
Comment 2 Tobias Koenig 2011-06-04 12:21:28 UTC
Any updates?
Comment 3 S. Burmeister 2011-06-04 12:57:24 UTC
This happens from time to time when kmail2 is busy creating folders' indexes while one continues to other folders or starts filtering etc.
Comment 4 Christophe Marin 2011-09-24 22:46:26 UTC
Just got this after reading a few messages then marking the folder as read. Not sure if it's related

(gdb) bt
#0  0x00007f771f7f4d05 in __GI_raise (sig=11) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007f7721b795f9 in KCrash::defaultCrashHandler (sig=11) at /usr/src/debug/kdelibs-4.7.42_20110922/kdeui/util/kcrash.cpp:346
#2  <signal handler called>
#3  0x00007f77220d340b in KMime::Headers::Base::is (this=0x2b106c0, t=0x7f77220efefc "To") at /kde/src/kdepimlibs/kmime/kmime_headers.cpp:209
#4  0x00007f77220cc59f in KMime::Content::headerByType (this=0x297bbe0, type=0x7f77220efefc "To") at /kde/src/kdepimlibs/kmime/kmime_content.cpp:669
#5  0x00007f77220e912d in KMime::Message::headerByType (this=0x297bbe0, type=0x7f77220efefc "To") at /kde/src/kdepimlibs/kmime/kmime_message.cpp:83
#6  0x00007f77220e9fc4 in KMime::Content::header<KMime::Headers::To> (this=0x297bbe0, create=true) at /kde/src/kdepimlibs/kmime/kmime_content.h:794
#7  0x00007f77220e9749 in KMime::Message::to (this=0x297bbe0, create=true) at /kde/src/kdepimlibs/kmime/kmime_message.cpp:159
#8  0x00007f771c0a25a3 in MessageList::StorageModel::initializeMessageItem (this=0x3097af0, mi=0x3049770, row=65, bUseReceiver=false) at /kde/src/kdepim/messagelist/storagemodel.cpp:236
#9  0x00007f771c04cc05 in MessageList::Core::ModelPrivate::viewItemJobStepInternalForJobPass1Fill (this=0x9e46b0, job=0x2d7efe0, tStart=00:42:21.618) at /kde/src/kdepim/messagelist/core/model.cpp:2728
#10 0x00007f771c04eb27 in MessageList::Core::ModelPrivate::viewItemJobStepInternalForJob (this=0x9e46b0, job=0x2d7efe0, tStart=00:42:21.618) at /kde/src/kdepim/messagelist/core/model.cpp:3377
#11 0x00007f771c04f576 in MessageList::Core::ModelPrivate::viewItemJobStepInternal (this=0x9e46b0) at /kde/src/kdepim/messagelist/core/model.cpp:3764
#12 0x00007f771c04ff73 in MessageList::Core::ModelPrivate::viewItemJobStep (this=0x9e46b0) at /kde/src/kdepim/messagelist/core/model.cpp:3979
#13 0x00007f771c05210d in MessageList::Core::Model::qt_metacall (this=0x95ce40, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7fff0b10a8e0) at /kde/build/kdepim/messagelist/model.moc:90
#14 0x00007f7720e813fa in QMetaObject::activate (sender=0x9e46e8, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3287
Comment 5 Christophe Marin 2011-11-27 14:01:53 UTC
Still valid in master

(gdb) bt
#0  0x00007f9f48d57d95 in raise () from /lib64/libc.so.6
#1  0x00007f9f4b061c78 in KCrash::defaultCrashHandler (sig=11) at /kde/src/kdelibs/kdeui/util/kcrash.cpp:346
#2  <signal handler called>
#3  0x00007f9f4b3efeff in KMime::Headers::Base::is (this=0x16840250, t=0x7f9f4b40c9fc "To") at /kde/src/pim/kdepimlibs/kmime/kmime_headers.cpp:209
#4  0x00007f9f4b3e8fbf in KMime::Content::headerByType (this=0x16aae420, type=0x7f9f4b40c9fc "To") at /kde/src/pim/kdepimlibs/kmime/kmime_content.cpp:676
#5  0x00007f9f4b405bdd in KMime::Message::headerByType (this=0x16aae420, type=0x7f9f4b40c9fc "To") at /kde/src/pim/kdepimlibs/kmime/kmime_message.cpp:83
#6  0x00007f9f4b406a74 in KMime::Content::header<KMime::Headers::To> (this=0x16aae420, create=true) at /kde/src/pim/kdepimlibs/kmime/kmime_content.h:794
#7  0x00007f9f4b4061f9 in KMime::Message::to (this=0x16aae420, create=true) at /kde/src/pim/kdepimlibs/kmime/kmime_message.cpp:159
#8  0x00007f9f45913657 in MessageList::StorageModel::initializeMessageItem (this=0x14a1ad10, mi=0x157e2cf0, row=687, bUseReceiver=false) at /kde/src/pim/kdepim/messagelist/storagemodel.cpp:236
#9  0x00007f9f458bd5f5 in MessageList::Core::ModelPrivate::viewItemJobStepInternalForJobPass1Fill (this=0x8b2d90, job=0x16e85510, tStart=...) at /kde/src/pim/kdepim/messagelist/core/model.cpp:2737
#10 0x00007f9f458bf50b in MessageList::Core::ModelPrivate::viewItemJobStepInternalForJob (this=0x8b2d90, job=0x16e85510, tStart=...) at /kde/src/pim/kdepim/messagelist/core/model.cpp:3388
#11 0x00007f9f458bff5a in MessageList::Core::ModelPrivate::viewItemJobStepInternal (this=0x8b2d90) at /kde/src/pim/kdepim/messagelist/core/model.cpp:3775
#12 0x00007f9f458c0941 in MessageList::Core::ModelPrivate::viewItemJobStep (this=0x8b2d90) at /kde/src/pim/kdepim/messagelist/core/model.cpp:3991
#13 0x00007f9f458b7ebd in MessageList::Core::Model::setStorageModel (this=0x8b3c00, storageModel=0x14a1ad10, preSelectionMode=MessageList::Core::PreSelectLastSelected)
    at /kde/src/pim/kdepim/messagelist/core/model.cpp:890
#14 0x00007f9f458e3c91 in MessageList::Core::View::setStorageModel (this=0x8f20b0, storageModel=0x14a1ad10, preSelectionMode=MessageList::Core::PreSelectLastSelected)
    at /kde/src/pim/kdepim/messagelist/core/view.cpp:220
#15 0x00007f9f458f3818 in MessageList::Core::Widget::setStorageModel (this=0x8f34a0, storageModel=0x14a1ad10, preSelectionMode=MessageList::Core::PreSelectLastSelected)
    at /kde/src/pim/kdepim/messagelist/core/widgetbase.cpp:408
#16 0x00007f9f4590f0f5 in MessageList::Pane::setCurrentFolder (this=0x8a9a60, preSelectionMode=MessageList::Core::PreSelectLastSelected, overrideLabel=...) at /kde/src/pim/kdepim/messagelist/pane.cpp:604
#17 0x00007f9f4a8ae86b in KMMainWidget::slotShowSelectedFolderInPane (this=0x5e4e10) at /kde/src/pim/kdepim/kmail/kmmainwidget.cpp:597
#18 0x00007f9f4a8abc10 in KMMainWidget::qt_static_metacall (_o=0x5e4e10, _c=QMetaObject::InvokeMetaMethod, _id=53, _a=0x1878ee90) at /kde/build/pim/kdepim/kmail/kmmainwidget.moc:380
#19 0x00007f9f49769f36 in QObject::event (this=0x5e4e10, e=<optimized out>) at kernel/qobject.cpp:1203
#20 0x00007f9f49cd4cbb in QWidget::event (this=0x5e4e10, event=0x170527b0) at kernel/qwidget.cpp:8809
#21 0x00007f9f49c84b74 in notify_helper (e=0x170527b0, receiver=0x5e4e10, this=0x576510) at kernel/qapplication.cpp:4518
#22 QApplicationPrivate::notify_helper (this=0x576510, receiver=0x5e4e10, e=0x170527b0) at kernel/qapplication.cpp:4490
#23 0x00007f9f49c899f3 in QApplication::notify (this=0x7fff364759e0, receiver=0x5e4e10, e=0x170527b0) at kernel/qapplication.cpp:4379
#24 0x00007f9f4afe2d9b in KApplication::notify (this=0x7fff364759e0, receiver=0x5e4e10, event=0x170527b0) at /kde/src/kdelibs/kdeui/kernel/kapplication.cpp:311
#25 0x00007f9f49750edc in QCoreApplication::notifyInternal (this=0x7fff364759e0, receiver=0x5e4e10, event=0x170527b0) at kernel/qcoreapplication.cpp:876
#26 0x00007f9f4975477a in sendEvent (event=0x170527b0, receiver=0x5e4e10) at kernel/qcoreapplication.h:231
#27 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x40b740) at kernel/qcoreapplication.cpp:1500
#28 0x00007f9f49782d80 in QEventDispatcherUNIX::processEvents (this=0x40b000, flags=...) at kernel/qeventdispatcher_unix.cpp:913
---Type <return> to continue, or q <return> to quit---
#29 0x00007f9f49d28c48 in QEventDispatcherX11::processEvents (this=0x40b000, flags=...) at kernel/qeventdispatcher_x11.cpp:152
#30 0x00007f9f4974fcc2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#31 0x00007f9f4974ff17 in QEventLoop::exec (this=0x7fff364758c0, flags=...) at kernel/qeventloop.cpp:204
#32 0x00007f9f49754a75 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#33 0x0000000000403416 in main (argc=1, argv=0x7fff36475b78) at /kde/src/pim/kdepim/kmail/main.cpp:145
Comment 6 Allen Winter 2011-11-29 22:47:21 UTC
I made the following commit. Might help with this crash but I don't know.
Please test with the next release. I will backport to 4.7.4
-------------------------------------------------------------------------
Git commit f48cfb60e73f91791d03110fdea90f779d5235cf by Allen Winter.
Committed on 29/11/2011 at 04:05.
Pushed by winterz into branch 'master'.

use the safer qstricmp() or qstrnicmp() functions in place of
strcasecmp() and strncasecmp(), respectively.
Comment 7 Christophe Marin 2011-11-30 15:41:40 UTC
Not sure if it's related to your commit but I just got this: 
kmail was trying to load a message (the 'please wait' message was displayed) and I selected a different directory

#3  0x00007fb3b6f2bea3 in __memcpy_sse2 () from /lib64/libc.so.6
#4  0x00007fb3b7823496 in QString::append (this=0x7fff7c125ca0, str=...) at /usr/include/bits/string3.h:52
#5  0x00007fb3b9565fe3 in QString::operator+= (this=0x7fff7c125ca0, s=...) at /usr/include/QtCore/qstring.h:274
#6  0x00007fb3b955e534 in KMime::Types::addr_spec_as_string (as=..., pretty=false)
    at /kde/src/pim/kdepimlibs/kmime/kmime_header_parsing.cpp:94
#7  0x00007fb3b955e5da in KMime::Types::AddrSpec::asString (this=0x12a6bd38)
    at /kde/src/pim/kdepimlibs/kmime/kmime_header_parsing.cpp:101
#8  0x00007fb3b955e674 in KMime::Types::Mailbox::address (this=0x12a6bd30)
    at /kde/src/pim/kdepimlibs/kmime/kmime_header_parsing.cpp:116
#9  0x00007fb3b955ea0e in KMime::Types::Mailbox::prettyAddress (this=0x12a6bd30, quoting=KMime::Types::Mailbox::QuoteNever)
    at /kde/src/pim/kdepimlibs/kmime/kmime_header_parsing.cpp:177
#10 0x00007fb3b955e9bc in KMime::Types::Mailbox::prettyAddress (this=0x12a6bd30)
    at /kde/src/pim/kdepimlibs/kmime/kmime_header_parsing.cpp:171
#11 0x00007fb3b9576ad4 in KMime::Headers::Generics::AddressList::prettyAddresses (this=0x13a46c50)
    at /kde/src/pim/kdepimlibs/kmime/kmime_headers.cpp:631
#12 0x00007fb3b9576394 in KMime::Headers::Generics::AddressList::asUnicodeString (this=0x13a46c50)
    at /kde/src/pim/kdepimlibs/kmime/kmime_headers.cpp:570
#13 0x00007fb3b3a93d24 in MessageList::StorageModel::initializeMessageItem (this=0x1844e410, mi=0x189b3ce0, row=235, 
    bUseReceiver=false) at /kde/src/pim/kdepim/messagelist/storagemodel.cpp:236
#14 0x00007fb3b3a3bf65 in MessageList::Core::ModelPrivate::viewItemJobStepInternalForJobPass1Fill (this=0xabc2f0, job=
    0x17361330, tStart=...) at /kde/src/pim/kdepim/messagelist/core/model.cpp:2736
#15 0x00007fb3b3a3de67 in MessageList::Core::ModelPrivate::viewItemJobStepInternalForJob (this=0xabc2f0, job=0x17361330, tStart=
    ...) at /kde/src/pim/kdepim/messagelist/core/model.cpp:3385
#16 0x00007fb3b3a40177 in MessageList::Core::ModelPrivate::viewItemJobStepInternal (this=0xabc2f0)
    at /kde/src/pim/kdepim/messagelist/core/model.cpp:3772
#17 0x00007fb3b3a40c0f in MessageList::Core::ModelPrivate::viewItemJobStep (this=0xabc2f0)
    at /kde/src/pim/kdepim/messagelist/core/model.cpp:3988
#18 0x00007fb3b3a3683d in MessageList::Core::Model::setStorageModel (this=0x9afd00, storageModel=0x1844e410, preSelectionMode=
    MessageList::Core::PreSelectLastSelected) at /kde/src/pim/kdepim/messagelist/core/model.cpp:890
#19 0x00007fb3b3a64191 in MessageList::Core::View::setStorageModel (this=0xa39730, storageModel=0x1844e410, preSelectionMode=
    MessageList::Core::PreSelectLastSelected) at /kde/src/pim/kdepim/messagelist/core/view.cpp:220
#20 0x00007fb3b3a73d18 in MessageList::Core::Widget::setStorageModel (this=0xa61590, storageModel=0x1844e410, preSelectionMode=
    MessageList::Core::PreSelectLastSelected) at /kde/src/pim/kdepim/messagelist/core/widgetbase.cpp:408
#21 0x00007fb3b3a8f5f5 in MessageList::Pane::setCurrentFolder (this=0xa69bd0, preSelectionMode=
    MessageList::Core::PreSelectLastSelected, overrideLabel=...) at /kde/src/pim/kdepim/messagelist/pane.cpp:604
#22 0x00007fb3b8a3137b in KMMainWidget::slotShowSelectedFolderInPane (this=0x923f60)
    at /kde/src/pim/kdepim/kmail/kmmainwidget.cpp:599
#23 0x00007fb3b8a2e6e8 in KMMainWidget::qt_static_metacall (_o=0x923f60, _c=QMetaObject::InvokeMetaMethod, _id=53, _a=0x18849430)
    at /kde/build/pim/kdepim/kmail/kmmainwidget.moc:382
Comment 8 Allen Winter 2011-12-01 00:15:18 UTC
I commited b2dd6557a457a26fbb071493d88133b66128ebbb to master that might help fix this.  I can't know for sure since I was unable to reproduce.
WIll also backport the fix for the 4.74. release.

so please retest in the next release and see if my commit helps at all.
Comment 9 Christophe Marin 2011-12-01 10:18:08 UTC
sorry, it didn't change :(

#3  0x00007f35bd470a57 in QString::at (this=0xd86fd30, i=0) at /usr/include/QtCore/qstring.h:699
#4  0x00007f35bd47c3dd in KMime::Types::addr_spec_as_string (as=..., pretty=false) at /kde/src/pim/kdepimlibs/kmime/kmime_header_parsing.cpp:75
#5  0x00007f35bd47c6ce in KMime::Types::AddrSpec::asString (this=0xd86fd30) at /kde/src/pim/kdepimlibs/kmime/kmime_header_parsing.cpp:101
#6  0x00007f35bd4979a5 in KMime::Headers::Generics::SingleIdent::identifier (this=0xd86fcb0) at /kde/src/pim/kdepimlibs/kmime/kmime_headers.cpp:1095
#7  0x00007f35b79b34aa in MessageList::StorageModel::fillMessageItemThreadingData (this=0xd8fe570, mi=0xe1458e0, row=40, subset=
    MessageList::Core::StorageModel::PerfectThreadingReferencesAndSubject) at /kde/src/pim/kdepim/messagelist/storagemodel.cpp:296
#8  0x00007f35b795b1dc in MessageList::Core::ModelPrivate::viewItemJobStepInternalForJobPass1Fill (this=0xa71d60, job=0xe1132a0, tStart=...)
    at /kde/src/pim/kdepim/messagelist/core/model.cpp:2783
#9  0x00007f35b795ce67 in MessageList::Core::ModelPrivate::viewItemJobStepInternalForJob (this=0xa71d60, job=0xe1132a0, tStart=...)
    at /kde/src/pim/kdepim/messagelist/core/model.cpp:3385
#10 0x00007f35b795f177 in MessageList::Core::ModelPrivate::viewItemJobStepInternal (this=0xa71d60) at /kde/src/pim/kdepim/messagelist/core/model.cpp:3772
#11 0x00007f35b795fc0f in MessageList::Core::ModelPrivate::viewItemJobStep (this=0xa71d60) at /kde/src/pim/kdepim/messagelist/core/model.cpp:3988
Comment 10 Allen Winter 2011-12-01 17:07:21 UTC
you found another code-path where crashes can happen.
I just made commit b2dd6557a457a26fbb071493d88133b66128ebbb in master that might help. please try again.

also backported that commit to 4.7
Comment 11 Christophe Marin 2011-12-10 00:44:02 UTC
Short feedback: looks better now, thanks!

I didn't see any kmime related crash this week
Comment 12 Sandro Knauß 2013-10-19 21:17:16 UTC
No news for over a year now, so I think the bug is fixed.