Bug 308070

Summary: Kmail crash on deleting "last search" folder
Product: [Applications] kontact Reporter: Nick Leverton <nick>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: 4.9.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: .xsession-errors around the time of the crash.

Description Nick Leverton 2012-10-08 11:40:30 UTC
Application: kontact (4.9.2)
KDE Platform Version: 4.9.2
Qt Version: 4.8.2
Operating System: Linux 3.2.0-31-generic-pae i686
Distribution: Ubuntu 12.04.1 LTS

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

Kontact/kmail was being incredibly slow in showing me existing mails from my supposedly cached dimap mailbox (even though it shouldn't have had to) so I quit and restarted it.  (not that a restart helps, this symptom has only arisen since upgrading to kdepim 4.9 but I haven't narrowed down yet whether it's kontact itself, the exchange connector or Exchange itself.  will bug the whole degraded performance issue in 4.9 separately when I have more info).

After the restart i did some more very slow browsing and then got fed up so tried to delete the last search. as i thought maybe kontact was still trying to refresh that.
Nothing happened so I deleted the last search folder again.

3 or 4 minutes later kontact crashed as attached

Nick

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0xb212f9c0 (LWP 8773))]

Thread 4 (Thread 0xafa83b40 (LWP 8774)):
#0  0xb7732424 in __kernel_vsyscall ()
#1  0xb393e96b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:169
#2  0xb605d85c in __pthread_cond_wait (cond=0xb5f07a30, mutex=0xb5f07a18) at forward.c:139
#3  0xb57d6263 in WTF::TCMalloc_PageHeap::scavengerThread (this=0xb5f02940) at wtf/FastMalloc.cpp:2495
#4  0xb57d637f in WTF::TCMalloc_PageHeap::runScavengerThread (context=0xb5f02940) at wtf/FastMalloc.cpp:1618
#5  0xb393ad4c in start_thread (arg=0xafa83b40) at pthread_create.c:308
#6  0xb604ff4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 3 (Thread 0xaf162b40 (LWP 8775)):
#0  0xb368cdcd in __GI_clock_gettime (clock_id=1, tp=0xaf162008) at ../sysdeps/unix/clock_gettime.c:116
#1  0xb62b73b5 in do_gettime (frac=0xaf162000, sec=0xaf161ff8) at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0xb63a16f6 in QTimerInfoList::updateCurrentTime (this=0xae802074) at kernel/qeventdispatcher_unix.cpp:343
#4  0xb63a1a4a in QTimerInfoList::timerWait (this=0xae802074, tm=...) at kernel/qeventdispatcher_unix.cpp:450
#5  0xb63a02f3 in timerSourcePrepareHelper (src=<optimized out>, timeout=0xaf1620ec) at kernel/qeventdispatcher_glib.cpp:136
#6  0xb3867872 in g_main_context_prepare (context=0xae8004e0, priority=0xaf162148) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:2836
#7  0xb3867faf in g_main_context_iterate (dispatch=1, block=1, context=0xae8004e0, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3126
#8  g_main_context_iterate (context=0xae8004e0, block=1, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3083
#9  0xb3868201 in g_main_context_iteration (context=0xae8004e0, may_block=1) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3207
#10 0xb63a0db7 in QEventDispatcherGlib::processEvents (this=0xae800468, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#11 0xb636c67d in QEventLoop::processEvents (this=0xaf162270, flags=...) at kernel/qeventloop.cpp:149
#12 0xb636c919 in QEventLoop::exec (this=0xaf162270, flags=...) at kernel/qeventloop.cpp:204
#13 0xb62559ec in QThread::exec (this=0xa04e320) at thread/qthread.cpp:501
#14 0xb6255adb in QThread::run (this=0xa04e320) at thread/qthread.cpp:568
#15 0xb6258e80 in QThreadPrivate::start (arg=0xa04e320) at thread/qthread_unix.cpp:307
#16 0xb393ad4c in start_thread (arg=0xaf162b40) at pthread_create.c:308
#17 0xb604ff4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xacba5b40 (LWP 8785)):
#0  0xb393dc64 in __pthread_mutex_unlock_usercnt (mutex=0xac200550, decr=1) at pthread_mutex_unlock.c:52
#1  0xb605dab4 in pthread_mutex_unlock (mutex=0xac200550) at forward.c:184
#2  0xb38a7410 in g_mutex_unlock (mutex=0xac2004e0) at /build/buildd/glib2.0-2.32.3/./glib/gthread-posix.c:227
#3  0xb3867f9f in g_main_context_iterate (dispatch=1, block=1, context=0xac2004e0, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3124
#4  g_main_context_iterate (context=0xac2004e0, block=1, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3083
#5  0xb3868201 in g_main_context_iteration (context=0xac2004e0, may_block=1) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3207
#6  0xb63a0db7 in QEventDispatcherGlib::processEvents (this=0xac200468, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#7  0xb636c67d in QEventLoop::processEvents (this=0xacba5240, flags=...) at kernel/qeventloop.cpp:149
#8  0xb636c919 in QEventLoop::exec (this=0xacba5240, flags=...) at kernel/qeventloop.cpp:204
#9  0xb62559ec in QThread::exec (this=0xa4bfd50) at thread/qthread.cpp:501
#10 0xb6349ccd in QInotifyFileSystemWatcherEngine::run (this=0xa4bfd50) at io/qfilesystemwatcher_inotify.cpp:248
#11 0xb6258e80 in QThreadPrivate::start (arg=0xa4bfd50) at thread/qthread_unix.cpp:307
#12 0xb393ad4c in start_thread (arg=0xacba5b40) at pthread_create.c:308
#13 0xb604ff4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb212f9c0 (LWP 8773)):
[KCrash Handler]
#7  QSharedDataPointer (o=..., this=0xbfc1c97c) at /usr/include/qt4/QtCore/qshareddata.h:93
#8  assignEntityPrivate (one=..., other=...) at ../../akonadi/entity.cpp:49
#9  0xb3f684cb in Akonadi::Entity::Entity (this=0xbfc1cad4, other=...) at ../../akonadi/entity.cpp:56
#10 0xb3f9e653 in Akonadi::Collection::Collection (this=0xbfc1cad4, other=...) at ../../akonadi/collection.cpp:72
#11 0xad70d55d in MailCommon::FolderCollection::collection (this=0x0) at ../../mailcommon/foldercollection.cpp:150
#12 0xad8ce222 in KMMainWidget::slotDelayedRemoveFolder (this=0xa3f4320, job=0xbfc1cad4) at ../../kmail/kmmainwidget.cpp:1861
#13 0xad8d7bf6 in KMMainWidget::qt_static_metacall (_o=0xa3f4320, _c=QMetaObject::InvokeMetaMethod, _id=50, _a=0xbfc1cc58) at ./kmmainwidget.moc:386
#14 0xb6384b81 in QMetaObject::activate (sender=0xade0928, m=0xb679848c, local_signal_index=3, argv=0xbfc1cc58) at kernel/qobject.cpp:3547
#15 0xb65e49f5 in KJob::result (this=0xade0928, _t1=0xade0928) at ./kjob.moc:208
#16 0xb65e4a48 in KJob::emitResult (this=0xade0928) at ../../kdecore/jobs/kjob.cpp:318
#17 0xb403dfee in Akonadi::JobPrivate::delayedEmitResult (this=0xae08c10) at ../../akonadi/job.cpp:144
#18 0xb63800d1 in QMetaCallEvent::placeMetaCall (this=0xa5d6f10, object=0xade0928) at kernel/qobject.cpp:525
#19 0xb638914b in QObject::event (this=0xade0928, e=0xa5d6f10) at kernel/qobject.cpp:1195
#20 0xb68dadf4 in notify_helper (e=0xa5d6f10, receiver=0xade0928, this=0x9f19e68) at kernel/qapplication.cpp:4556
#21 QApplicationPrivate::notify_helper (this=0x9f19e68, receiver=0xade0928, e=0xa5d6f10) at kernel/qapplication.cpp:4528
#22 0xb68e015d in QApplication::notify (this=0xa5d6f10, receiver=0xade0928, e=0xa5d6f10) at kernel/qapplication.cpp:4285
#23 0xb7460541 in KApplication::notify (this=0xbfc1d494, receiver=0xade0928, event=0xa5d6f10) at ../../kdeui/kernel/kapplication.cpp:311
#24 0xb636ddde in QCoreApplication::notifyInternal (this=0xbfc1d494, receiver=0xade0928, event=0xa5d6f10) at kernel/qcoreapplication.cpp:915
#25 0xb6371f38 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#26 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x9ef2ab8) at kernel/qcoreapplication.cpp:1539
#27 0xb637226c in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1432
#28 0xb63a0964 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#29 postEventSourceDispatch (s=0x9f214b0) at kernel/qeventdispatcher_glib.cpp:279
#30 0xb3867d86 in g_main_dispatch (context=0x9ef3880) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:2539
#31 g_main_context_dispatch (context=0x9ef3880) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3075
#32 0xb3868125 in g_main_context_iterate (dispatch=1, block=-1282975152, context=0x9ef3880, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3146
#33 g_main_context_iterate (context=0x9ef3880, block=-1282975152, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3083
#34 0xb3868201 in g_main_context_iteration (context=0x9ef3880, may_block=1) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3207
#35 0xb63a0d57 in QEventDispatcherGlib::processEvents (this=0x9f1d040, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#36 0xb6993a1a in QGuiEventDispatcherGlib::processEvents (this=0x9f1d040, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#37 0xb636c67d in QEventLoop::processEvents (this=0xbfc1d3f4, flags=...) at kernel/qeventloop.cpp:149
#38 0xb636c919 in QEventLoop::exec (this=0xbfc1d3f4, flags=...) at kernel/qeventloop.cpp:204
#39 0xb637231a in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#40 0xb68d89c4 in QApplication::exec () at kernel/qapplication.cpp:3817
#41 0x0804ac51 in main (argc=-1382287096, argv=0xa3f3bc0) at ../../../kontact/src/main.cpp:219

Possible duplicates by query: bug 306740, bug 301647, bug 301110, bug 299330, bug 295546.

Reported using DrKonqi
Comment 1 Nick Leverton 2012-10-08 11:46:27 UTC
Created attachment 74420 [details]
.xsession-errors around the time of the crash.
Comment 2 Myriam Schweingruber 2012-10-11 09:59:15 UTC

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