Bug 322594

Summary: KMail crashed during importing of large mailbox
Product: [Applications] kontact Reporter: jpriceelvis+kdebugs
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: christian_bay, rasasi78
Priority: NOR    
Version: 4.10.5   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description jpriceelvis+kdebugs 2013-07-19 22:11:11 UTC
Application: kontact (4.10.5)
KDE Platform Version: 4.10.5
Qt Version: 4.8.4
Operating System: Linux 3.9.0-030900-generic x86_64
Distribution: Ubuntu 13.04

-- Information about the crash:
- What I was doing when the application crashed:
I imported a large (12GB) mbox file and was attempting to select some emails.  Kontact went to full (100%) CPU usage and then crashed.

-- Backtrace:
Application: Kontact (kontact), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fd455370800 (LWP 3582))]

Thread 5 (Thread 0x7fd434c0b700 (LWP 3583)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fd451afe585 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007fd451afe5d9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007fd44c553f8e in start_thread (arg=0x7fd434c0b700) at pthread_create.c:311
#4  0x00007fd4528f6e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 4 (Thread 0x7fd3f4408700 (LWP 3584)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fd451844a09 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007fd451b2ccee in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007fd44c553f8e in start_thread (arg=0x7fd3f4408700) at pthread_create.c:311
#4  0x00007fd4528f6e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7fd3e6365700 (LWP 3610)):
#0  __libc_enable_asynccancel () at ../nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S:65
#1  0x00007fd4528ea3c2 in poll () at ../sysdeps/unix/syscall-template.S:81
#2  0x00007fd44be911dc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fd44be91304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fd453d1c036 in QEventDispatcherGlib::processEvents (this=0x7fd3d80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007fd453cec38f in QEventLoop::processEvents (this=this@entry=0x7fd3e6364d50, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007fd453cec618 in QEventLoop::exec (this=this@entry=0x7fd3e6364d50, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007fd453bee410 in QThread::exec (this=this@entry=0x20e4320) at thread/qthread.cpp:542
#8  0x00007fd453ccdedf in QInotifyFileSystemWatcherEngine::run (this=0x20e4320) at io/qfilesystemwatcher_inotify.cpp:256
#9  0x00007fd453bf0bec in QThreadPrivate::start (arg=0x20e4320) at thread/qthread_unix.cpp:338
#10 0x00007fd44c553f8e in start_thread (arg=0x7fd3e6365700) at pthread_create.c:311
#11 0x00007fd4528f6e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7fd3e4ad4700 (LWP 3614)):
#0  0x00007fd44bed0359 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fd44bed05b9 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fd44be9090b in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fd44be910fe in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fd44be91304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fd453d1c036 in QEventDispatcherGlib::processEvents (this=0x7fd3d00008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007fd453cec38f in QEventLoop::processEvents (this=this@entry=0x7fd3e4ad3d80, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007fd453cec618 in QEventLoop::exec (this=this@entry=0x7fd3e4ad3d80, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007fd453bee410 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#9  0x00007fd453bf0bec in QThreadPrivate::start (arg=0x1b02230) at thread/qthread_unix.cpp:338
#10 0x00007fd44c553f8e in start_thread (arg=0x7fd3e4ad4700) at pthread_create.c:311
#11 0x00007fd4528f6e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7fd455370800 (LWP 3582)):
[KCrash Handler]
#6  0x00007fd452834037 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#7  0x00007fd452837698 in __GI_abort () at abort.c:90
#8  0x00007fd453be65c2 in qt_message_output (msgType=msgType@entry=QtFatalMsg, buf=0x465becc8 "Fatal Error: Accessed global static 'KernelPrivate *sInstance()' after destruction. Defined at ../../mailcommon/mailkernel.cpp:55") at global/qglobal.cpp:2347
#9  0x00007fd453be6938 in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=msgType@entry=QtFatalMsg, msg=msg@entry=0x7fd3ebdb6e18 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d", ap=ap@entry=0x7fffe4a2bd88) at global/qglobal.cpp:2393
#10 0x00007fd453be6ac4 in qFatal (msg=msg@entry=0x7fd3ebdb6e18 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d") at global/qglobal.cpp:2576
#11 0x00007fd3ebd69cb7 in operator-> (this=<optimized out>) at ../../mailcommon/mailkernel.cpp:55
#12 MailCommon::Kernel::self () at ../../mailcommon/mailkernel.cpp:71
#13 0x00007fd3ebd5b419 in MailCommon::FolderCollection::writeConfig (this=this@entry=0x277a2a0) at ../../mailcommon/foldercollection.cpp:209
#14 0x00007fd3ebd5beea in MailCommon::FolderCollection::~FolderCollection (this=0x277a2a0, __in_chrg=<optimized out>) at ../../mailcommon/foldercollection.cpp:84
#15 0x00007fd3ebd5bf69 in MailCommon::FolderCollection::~FolderCollection (this=0x277a2a0, __in_chrg=<optimized out>) at ../../mailcommon/foldercollection.cpp:86
#16 0x00007fd3ebd5a2e4 in deref (value=0x277a2a0, d=0x2774ed0) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:342
#17 deref (this=<optimized out>) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:336
#18 ~ExternalRefCount (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:401
#19 ~QSharedPointer (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:466
#20 QMap<long long, QSharedPointer<MailCommon::FolderCollection> >::freeData (x=0x2755e90, this=<optimized out>) at /usr/include/qt4/QtCore/qmap.h:652
#21 0x00007fd452839121 in __run_exit_handlers (status=255, listp=0x7fd452bbe6a8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:77
#22 0x00007fd4528391a5 in __GI_exit (status=<optimized out>) at exit.c:99
#23 0x00007fd454180262 in KCmdLineArgs::isSet (this=this@entry=0x247a09e0, _opt=...) at ../../kdecore/kernel/kcmdlineargs.cpp:1520
#24 0x0000000000403d67 in KontactApp::newInstance (this=0x7fffe4a2eab0) at ../../../kontact/src/main.cpp:130
#25 0x00007fd454739442 in KUniqueApplicationAdaptor::newInstance (this=0x1b2a4d0, asn_id=..., args=...) at ../../kdeui/kernel/kuniqueapplication.cpp:442
#26 0x00007fd4547394c4 in qt_static_metacall (_a=0x7fffe4a2c5e0, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at ./kuniqueapplication_p.moc:58
#27 KUniqueApplicationAdaptor::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x7fffe4a2c5e0) at ./kuniqueapplication_p.moc:52
#28 0x00007fd4547395fb in KUniqueApplicationAdaptor::qt_metacall (this=0x1b2a4d0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fffe4a2c5e0) at ./kuniqueapplication_p.moc:102
#29 0x00007fd44f25f063 in QDBusConnectionPrivate::deliverCall (this=this@entry=0x19ab6f0, object=object@entry=0x1b2a4d0, msg=..., metaTypes=..., slotIdx=4) at qdbusintegrator.cpp:951
#30 0x00007fd44f25f955 in QDBusConnectionPrivate::activateCall (this=this@entry=0x19ab6f0, object=0x1b2a4d0, flags=flags@entry=337, msg=...) at qdbusintegrator.cpp:863
#31 0x00007fd44f2602cf in QDBusConnectionPrivate::activateObject (this=0x19ab6f0, node=..., msg=..., pathStartPos=<optimized out>) at qdbusintegrator.cpp:1427
#32 0x00007fd44f2603ab in QDBusActivateObjectEvent::placeMetaCall (this=0x305d0470) at qdbusintegrator.cpp:1541
#33 0x00007fd453d075be in QObject::event (this=this@entry=0x7fffe4a2eab0, e=e@entry=0x305d0470) at kernel/qobject.cpp:1194
#34 0x00007fd453cf1f8c in QCoreApplication::event (this=this@entry=0x7fffe4a2eab0, e=e@entry=0x305d0470) at kernel/qcoreapplication.cpp:1758
#35 0x00007fd45309b314 in QApplication::event (this=0x7fffe4a2eab0, e=0x305d0470) at kernel/qapplication.cpp:2549
#36 0x00007fd4530938ec in QApplicationPrivate::notify_helper (this=this@entry=0x19cb8c0, receiver=receiver@entry=0x7fffe4a2eab0, e=e@entry=0x305d0470) at kernel/qapplication.cpp:4567
#37 0x00007fd45309625b in QApplication::notify (this=this@entry=0x7fffe4a2eab0, receiver=receiver@entry=0x7fffe4a2eab0, e=e@entry=0x305d0470) at kernel/qapplication.cpp:4428
#38 0x00007fd4547361a6 in KApplication::notify (this=0x7fffe4a2eab0, receiver=0x7fffe4a2eab0, event=0x305d0470) at ../../kdeui/kernel/kapplication.cpp:311
#39 0x00007fd453ced63e in QCoreApplication::notifyInternal (this=0x7fffe4a2eab0, receiver=receiver@entry=0x7fffe4a2eab0, event=event@entry=0x305d0470) at kernel/qcoreapplication.cpp:946
#40 0x00007fd453cf1171 in sendEvent (event=0x305d0470, receiver=0x7fffe4a2eab0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#41 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x19006a0) at kernel/qcoreapplication.cpp:1570
#42 0x00007fd453cf14a3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1463
#43 0x00007fd453d1be83 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#44 postEventSourceDispatch (s=0x19c5b80) at kernel/qeventdispatcher_glib.cpp:279
#45 0x00007fd44be90f05 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#46 0x00007fd44be91248 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#47 0x00007fd44be91304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#48 0x00007fd453d1c016 in QEventDispatcherGlib::processEvents (this=0x1901b60, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#49 0x00007fd4531391ae in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#50 0x00007fd453cec38f in QEventLoop::processEvents (this=this@entry=0x7fffe4a2d220, flags=...) at kernel/qeventloop.cpp:149
#51 0x00007fd453cec618 in QEventLoop::exec (this=this@entry=0x7fffe4a2d220, flags=...) at kernel/qeventloop.cpp:204
#52 0x00007fd4534d0c65 in QMenu::exec (this=0x50389b90, p=..., action=action@entry=0x0) at widgets/qmenu.cpp:2125
#53 0x00007fd44eef0237 in Akonadi::EntityTreeView::contextMenuEvent (this=<optimized out>, event=0x7fffe4a2de00) at ../../akonadi/entitytreeview.cpp:281
#54 0x00007fd4530e07de in QWidget::event (this=this@entry=0x1fb12a0, event=event@entry=0x7fffe4a2de00) at kernel/qwidget.cpp:8553
#55 0x00007fd453493316 in QFrame::event (this=0x1fb12a0, e=0x7fffe4a2de00) at widgets/qframe.cpp:557
#56 0x00007fd4535a98bb in QAbstractItemView::viewportEvent (this=this@entry=0x1fb12a0, event=event@entry=0x7fffe4a2de00) at itemviews/qabstractitemview.cpp:1644
#57 0x00007fd4535e9561 in QTreeView::viewportEvent (this=0x1fb12a0, event=0x7fffe4a2de00) at itemviews/qtreeview.cpp:1257
#58 0x00007fd453ced7a6 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=this@entry=0x19cb8c0, receiver=receiver@entry=0x1ef3d20, event=event@entry=0x7fffe4a2de00) at kernel/qcoreapplication.cpp:1056
#59 0x00007fd4530938bc in QApplicationPrivate::notify_helper (this=this@entry=0x19cb8c0, receiver=receiver@entry=0x1ef3d20, e=e@entry=0x7fffe4a2de00) at kernel/qapplication.cpp:4563
#60 0x00007fd453096735 in QApplication::notify (this=this@entry=0x7fffe4a2eab0, receiver=receiver@entry=0x1ef3d20, e=e@entry=0x7fffe4a2de00) at kernel/qapplication.cpp:4189
#61 0x00007fd4547361a6 in KApplication::notify (this=0x7fffe4a2eab0, receiver=0x1ef3d20, event=0x7fffe4a2de00) at ../../kdeui/kernel/kapplication.cpp:311
#62 0x00007fd453ced63e in QCoreApplication::notifyInternal (this=0x7fffe4a2eab0, receiver=receiver@entry=0x1ef3d20, event=event@entry=0x7fffe4a2de00) at kernel/qcoreapplication.cpp:946
#63 0x00007fd45310ef21 in sendSpontaneousEvent (event=0x7fffe4a2de00, receiver=0x1ef3d20) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#64 QETWidget::translateMouseEvent (this=this@entry=0x22077e0, event=event@entry=0x7fffe4a2e550) at kernel/qapplication_x11.cpp:4636
#65 0x00007fd45310def1 in QApplication::x11ProcessEvent (this=0x7fffe4a2eab0, event=event@entry=0x7fffe4a2e550) at kernel/qapplication_x11.cpp:3746
#66 0x00007fd4531390b2 in x11EventSourceDispatch (s=0x19cc800, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#67 0x00007fd44be90f05 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#68 0x00007fd44be91248 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#69 0x00007fd44be91304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#70 0x00007fd453d1c016 in QEventDispatcherGlib::processEvents (this=0x1901b60, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#71 0x00007fd4531391ae in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#72 0x00007fd453cec38f in QEventLoop::processEvents (this=this@entry=0x7fffe4a2e920, flags=...) at kernel/qeventloop.cpp:149
#73 0x00007fd453cec618 in QEventLoop::exec (this=this@entry=0x7fffe4a2e920, flags=...) at kernel/qeventloop.cpp:204
#74 0x00007fd453cf1cf6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#75 0x00007fd453091ffc in QApplication::exec () at kernel/qapplication.cpp:3828
#76 0x00000000004033a9 in main (argc=1, argv=0x7fffe4a2ebf8) at ../../../kontact/src/main.cpp:219

Possible duplicates by query: bug 321981, bug 321414, bug 317216, bug 315113, bug 313084.

Reported using DrKonqi
Comment 1 Christian Bayer 2013-08-12 18:09:28 UTC
Created attachment 81675 [details]
New crash information added by DrKonqi

kontact (4.10.5) on KDE Platform 4.10.5 using Qt 4.8.4

- What I was doing when the application crashed:

Nothing. Kontact was idle or doing background indexing (couldn't tell).

-- Backtrace (Reduced):
#6  0x00007fc5b2481037 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#7  0x00007fc5b2484698 in __GI_abort () at abort.c:90
[...]
#11 0x00007fc54c66acb7 in operator-> (this=<optimized out>) at ../../mailcommon/mailkernel.cpp:55
#12 MailCommon::Kernel::self () at ../../mailcommon/mailkernel.cpp:71
#13 0x00007fc54c65c419 in MailCommon::FolderCollection::writeConfig (this=this@entry=0x2943f00) at ../../mailcommon/foldercollection.cpp:209
Comment 2 Jekyll Wu 2013-10-17 02:32:11 UTC

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