Bug 289929

Summary: IMAP crash
Product: [Frameworks and Libraries] Akonadi Reporter: Chris <crglasoe>
Component: IMAP resourceAssignee: Kevin Ottens <ervin>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kdepim-bugs, vkrause
Priority: NOR    
Version: 4.7   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Chris 2011-12-27 15:55:48 UTC
Application: akonadi_imap_resource (4.7)
KDE Platform Version: 4.7.2 (4.7.2)
Qt Version: 4.7.4
Operating System: Linux 3.1.0-1.2-desktop x86_64
Distribution: "openSUSE 12.1 (x86_64)"

-- Information about the crash:
I don't know what is happening.  This really is getting annoying.  I fire Kontact/Kmail and without any prompting I receive this crash.  Can I repeat it?  No.  Does it repeat? Yes.  Randomly.  This is not the place to add rants, I know.  But this implementation of Kmail or Akonadi really is poor.  It casts a very bad light on all of the Open Source community.  It makes all of us lobbying and supporting Open Source look like fools for using something that simply does not work.

The crash can be reproduced every time.

-- Backtrace:
Application: Doxa-CRG of type IMAP E-Mail Server (akonadi_imap_resource), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f7ce5daa760 (LWP 2515))]

Thread 4 (Thread 0x7f7ccfde8700 (LWP 2630)):
#0  0x00007fff6734e8de in ?? ()
#1  0x00007f7ce047be91 in clock_gettime () from /lib64/librt.so.1
#2  0x00007f7ce51ac114 in do_gettime (frac=0x7f7ccfde7b88, sec=0x7f7ccfde7b80) at tools/qelapsedtimer_unix.cpp:123
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#4  0x00007f7ce526dd1d in QTimerInfoList::updateCurrentTime (this=0x7f7cc40020d0) at kernel/qeventdispatcher_unix.cpp:339
#5  0x00007f7ce526e053 in QTimerInfoList::timerWait (this=0x7f7cc40020d0, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#6  0x00007f7ce526cabc in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7f7ccfde7c6c) at kernel/qeventdispatcher_glib.cpp:136
#7  0x00007f7ce526cb65 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#8  0x00007f7ce01c6b22 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#9  0x00007f7ce01c792d in ?? () from /usr/lib64/libglib-2.0.so.0
#10 0x00007f7ce01c7f59 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#11 0x00007f7ce526d576 in QEventDispatcherGlib::processEvents (this=0x7f7cc40008c0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#12 0x00007f7ce5241a22 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#13 0x00007f7ce5241c1f in QEventLoop::exec (this=0x7f7ccfde7e00, flags=...) at kernel/qeventloop.cpp:201
#14 0x00007f7ce51595df in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#15 0x00007f7ce3ec5b93 in ?? () from /usr/lib64/libkimap.so.4
#16 0x00007f7ce515c025 in QThreadPrivate::start (arg=0x83a0c0) at thread/qthread_unix.cpp:331
#17 0x00007f7ce1132f05 in start_thread () from /lib64/libpthread.so.0
#18 0x00007f7ce187d53d in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f7cd49ba700 (LWP 20321)):
#0  0x00007f7ce113611f in __pthread_mutex_unlock_usercnt () from /lib64/libpthread.so.0
#1  0x00007f7ce01c71aa in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f7ce01c7ab2 in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f7ce01c7f59 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f7ce526d576 in QEventDispatcherGlib::processEvents (this=0x7f7cc800d100, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007f7ce5241a22 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f7ce5241c1f in QEventLoop::exec (this=0x7f7cd49b9e00, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007f7ce51595df in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#8  0x00007f7ce3ec5b93 in ?? () from /usr/lib64/libkimap.so.4
#9  0x00007f7ce515c025 in QThreadPrivate::start (arg=0x896df0) at thread/qthread_unix.cpp:331
#10 0x00007f7ce1132f05 in start_thread () from /lib64/libpthread.so.0
#11 0x00007f7ce187d53d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f7cce048700 (LWP 22904)):
#0  0x00007f7ce1874423 in poll () from /lib64/libc.so.6
#1  0x00007f7ce01c7a98 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f7ce01c7f59 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f7ce526d576 in QEventDispatcherGlib::processEvents (this=0x7f7cbc005400, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007f7ce5241a22 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f7ce5241c1f in QEventLoop::exec (this=0x7f7cce047e00, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007f7ce51595df in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#7  0x00007f7ce3ec5b93 in ?? () from /usr/lib64/libkimap.so.4
#8  0x00007f7ce515c025 in QThreadPrivate::start (arg=0x887ce0) at thread/qthread_unix.cpp:331
#9  0x00007f7ce1132f05 in start_thread () from /lib64/libpthread.so.0
#10 0x00007f7ce187d53d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f7ce5daa760 (LWP 2515)):
[KCrash Handler]
#6  0x00007f7ce354d004 in KMime::Content::hasContent() const () from /usr/lib64/libkmime.so.4
#7  0x00007f7ccf3e30c7 in Akonadi::SerializerPluginMail::parts (this=<optimized out>, item=...) at /usr/src/debug/kdepim-runtime-4.7.2/plugins/akonadi_serializer_mail.cpp:196
#8  0x00007f7ce58f9b19 in ?? () from /usr/lib64/libakonadi-kde.so.4
#9  0x00007f7ce58f9b79 in Akonadi::Item::loadedPayloadParts() const () from /usr/lib64/libakonadi-kde.so.4
#10 0x00007f7ce58f9f03 in Akonadi::ItemModifyJob::ItemModifyJob(Akonadi::Item const&, QObject*) () from /usr/lib64/libakonadi-kde.so.4
#11 0x00007f7ce58fb348 in Akonadi::ItemSync::Private::processItems() () from /usr/lib64/libakonadi-kde.so.4
#12 0x00007f7ce58fb47a in Akonadi::ItemSync::Private::execute() () from /usr/lib64/libakonadi-kde.so.4
#13 0x00007f7ce58fc77c in Akonadi::ItemSync::setFullSyncItems(QList<Akonadi::Item> const&) () from /usr/lib64/libakonadi-kde.so.4
#14 0x00007f7ce58fc897 in Akonadi::ResourceBase::itemsRetrieved(QList<Akonadi::Item> const&) () from /usr/lib64/libakonadi-kde.so.4
#15 0x00000000004536a2 in RetrieveItemsTask::onHeadersReceived (this=0x86cb10, mailBox=<optimized out>, uids=..., sizes=..., flags=..., messages=...) at /usr/src/debug/kdepim-runtime-4.7.2/resources/imap/retrieveitemstask.cpp:361
#16 0x0000000000453ef0 in RetrieveItemsTask::qt_metacall (this=0x86cb10, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff6726e450) at /usr/src/debug/kdepim-runtime-4.7.2/build/resources/imap/retrieveitemstask.moc:90
#17 0x00007f7ce525559a in QMetaObject::activate (sender=0xbbb700, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff6726e450) at kernel/qobject.cpp:3287
#18 0x00007f7ce3ec75f4 in KIMAP::FetchJob::headersReceived(QString const&, QMap<long long, long long> const&, QMap<long long, long long> const&, QMap<long long, QList<QByteArray> > const&, QMap<long long, boost::shared_ptr<KMime::Message> > const&) () from /usr/lib64/libkimap.so.4
#19 0x00007f7ce3eea528 in ?? () from /usr/lib64/libkimap.so.4
#20 0x00007f7ce3ed7ebf in KIMAP::FetchJob::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libkimap.so.4
#21 0x00007f7ce525559a in QMetaObject::activate (sender=0xad1a30, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3287
#22 0x00007f7ce5258e79 in QObject::event (this=0xad1a30, e=<optimized out>) at kernel/qobject.cpp:1190
#23 0x00007f7ce4611c34 in notify_helper (e=0x7fff6726ec70, receiver=0xad1a30, this=0x6aa430) at kernel/qapplication.cpp:4481
#24 QApplicationPrivate::notify_helper (this=0x6aa430, receiver=0xad1a30, e=0x7fff6726ec70) at kernel/qapplication.cpp:4453
#25 0x00007f7ce4616ac1 in QApplication::notify (this=0x7fff6726eff0, receiver=0xad1a30, e=0x7fff6726ec70) at kernel/qapplication.cpp:4360
#26 0x00007f7ce2772e36 in KApplication::notify (this=0x7fff6726eff0, receiver=0xad1a30, event=0x7fff6726ec70) at /usr/src/debug/kdelibs-4.7.2/kdeui/kernel/kapplication.cpp:311
#27 0x00007f7ce524281c in QCoreApplication::notifyInternal (this=0x7fff6726eff0, receiver=0xad1a30, event=0x7fff6726ec70) at kernel/qcoreapplication.cpp:787
#28 0x00007f7ce526f398 in sendEvent (event=0x7fff6726ec70, receiver=<optimized out>) at kernel/qcoreapplication.h:215
#29 QTimerInfoList::activateTimers (this=0x6af160) at kernel/qeventdispatcher_unix.cpp:618
#30 0x00007f7ce526cb84 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#31 0x00007f7ce01c758d in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#32 0x00007f7ce01c7d88 in ?? () from /usr/lib64/libglib-2.0.so.0
#33 0x00007f7ce01c7f59 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#34 0x00007f7ce526d50f in QEventDispatcherGlib::processEvents (this=0x686560, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#35 0x00007f7ce46b4f9e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#36 0x00007f7ce5241a22 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#37 0x00007f7ce5241c1f in QEventLoop::exec (this=0x7fff6726ef70, flags=...) at kernel/qeventloop.cpp:201
#38 0x00007f7ce5245de7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#39 0x00007f7ce5878a27 in Akonadi::ResourceBase::init(Akonadi::ResourceBase*) () from /usr/lib64/libakonadi-kde.so.4
#40 0x000000000041bc46 in Akonadi::ResourceBase::init<ImapResource> (argc=<optimized out>, argv=<optimized out>) at /usr/include/akonadi/resourcebase.h:188
#41 0x00007f7ce17c523d in __libc_start_main () from /lib64/libc.so.6
#42 0x0000000000416725 in _start () at ../sysdeps/x86_64/elf/start.S:113

Possible duplicates by query: bug 289692, bug 275275.

Reported using DrKonqi
Comment 1 Christophe Marin 2011-12-28 00:01:14 UTC

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