Bug 292338

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

Description Chris 2012-01-24 17:03:36 UTC
Application: akonadi_imap_resource (4.7)
KDE Platform Version: 4.7.4 (4.7.4)
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:
This is annoying.  The IMAP account really isn't new.  It was an existing account that started giving errors about "unable to fetch backend . . ."  I deleted the account, rebooted and then added the account back.

The crash can be reproduced every time.

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

Thread 4 (Thread 0x7f931e7ca700 (LWP 3775)):
#0  0x00007f932990d87f in ?? () from /usr/lib64/libglib-2.0.so.0
#1  0x00007f932990df59 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f932e9b6586 in QEventDispatcherGlib::processEvents (this=0x7f93180008c0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#3  0x00007f932e98aa32 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#4  0x00007f932e98ac2f in QEventLoop::exec (this=0x7f931e7c9e00, flags=...) at kernel/qeventloop.cpp:201
#5  0x00007f932e8a25df in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#6  0x00007f932d60eb93 in KIMAP::SessionThread::run (this=0x85c820) at /usr/src/debug/kdepimlibs-4.7.4/kimap/sessionthread.cpp:169
#7  0x00007f932e8a5025 in QThreadPrivate::start (arg=0x85c820) at thread/qthread_unix.cpp:331
#8  0x00007f932a878f05 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f932afc363d in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f9317fff700 (LWP 3866)):
#0  0x00007f932a87c11f in __pthread_mutex_unlock_usercnt () from /lib64/libpthread.so.0
#1  0x00007f932990cb14 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f932990d92d in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f932990df59 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f932e9b6586 in QEventDispatcherGlib::processEvents (this=0x7f930c0008c0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007f932e98aa32 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f932e98ac2f in QEventLoop::exec (this=0x7f9317ffee00, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007f932e8a25df in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#8  0x00007f932d60eb93 in KIMAP::SessionThread::run (this=0x85f900) at /usr/src/debug/kdepimlibs-4.7.4/kimap/sessionthread.cpp:169
#9  0x00007f932e8a5025 in QThreadPrivate::start (arg=0x85f900) at thread/qthread_unix.cpp:331
#10 0x00007f932a878f05 in start_thread () from /lib64/libpthread.so.0
#11 0x00007f932afc363d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f93177fe700 (LWP 3875)):
#0  0x00007fff1a3ff8de in ?? ()
#1  0x00007f9329bc1e91 in clock_gettime () from /lib64/librt.so.1
#2  0x00007f932e8f5114 in do_gettime (frac=0x7f93177fdb88, sec=0x7f93177fdb80) at tools/qelapsedtimer_unix.cpp:123
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#4  0x00007f932e9b6d2d in QTimerInfoList::updateCurrentTime (this=0x7f93040020d0) at kernel/qeventdispatcher_unix.cpp:339
#5  0x00007f932e9b7063 in QTimerInfoList::timerWait (this=0x7f93040020d0, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#6  0x00007f932e9b5acc in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7f93177fdc6c) at kernel/qeventdispatcher_glib.cpp:136
#7  0x00007f932e9b5b75 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#8  0x00007f932990cb22 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#9  0x00007f932990d92d in ?? () from /usr/lib64/libglib-2.0.so.0
#10 0x00007f932990df59 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#11 0x00007f932e9b6586 in QEventDispatcherGlib::processEvents (this=0x7f93040008c0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#12 0x00007f932e98aa32 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#13 0x00007f932e98ac2f in QEventLoop::exec (this=0x7f93177fde00, flags=...) at kernel/qeventloop.cpp:201
#14 0x00007f932e8a25df in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#15 0x00007f932d60eb93 in KIMAP::SessionThread::run (this=0xc31e60) at /usr/src/debug/kdepimlibs-4.7.4/kimap/sessionthread.cpp:169
#16 0x00007f932e8a5025 in QThreadPrivate::start (arg=0xc31e60) at thread/qthread_unix.cpp:331
#17 0x00007f932a878f05 in start_thread () from /lib64/libpthread.so.0
#18 0x00007f932afc363d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f932f4f1760 (LWP 3772)):
[KCrash Handler]
#6  KMime::Content::hasContent (this=0x0) at /usr/src/debug/kdepimlibs-4.7.4/kmime/kmime_content.cpp:101
#7  0x00007f9316df90c7 in Akonadi::SerializerPluginMail::parts (this=<optimized out>, item=...) at /usr/src/debug/kdepim-runtime-4.7.4/plugins/akonadi_serializer_mail.cpp:196
#8  0x00007f932f043709 in Akonadi::ItemSerializer::parts (item=...) at /usr/src/debug/kdepimlibs-4.7.4/akonadi/itemserializer.cpp:160
#9  0x00007f932f043769 in Akonadi::Item::loadedPayloadParts (this=<optimized out>) at /usr/src/debug/kdepimlibs-4.7.4/akonadi/item.cpp:195
#10 0x00007f932f044ad5 in Akonadi::ItemCreateJob::ItemCreateJob (this=0x20d6c00, item=..., collection=..., parent=0x20d8230) at /usr/src/debug/kdepimlibs-4.7.4/akonadi/itemcreatejob.cpp:59
#11 0x00007f932f044c46 in Akonadi::ItemSync::Private::createLocalItem (this=0x8ff890, item=...) at /usr/src/debug/kdepimlibs-4.7.4/akonadi/itemsync.cpp:114
#12 0x00007f932f044d05 in Akonadi::ItemSync::Private::processItems (this=0x8ff890) at /usr/src/debug/kdepimlibs-4.7.4/akonadi/itemsync.cpp:335
#13 0x00007f932f04506a in Akonadi::ItemSync::Private::execute (this=0x8ff890) at /usr/src/debug/kdepimlibs-4.7.4/akonadi/itemsync.cpp:291
#14 0x00007f932f04636c in Akonadi::ItemSync::setFullSyncItems (this=0x825be0, items=<optimized out>) at /usr/src/debug/kdepimlibs-4.7.4/akonadi/itemsync.cpp:153
#15 0x00007f932f046487 in Akonadi::ResourceBase::itemsRetrieved (this=<optimized out>, items=...) at /usr/src/debug/kdepimlibs-4.7.4/akonadi/resourcebase.cpp:871
#16 0x00000000004536a2 in RetrieveItemsTask::onHeadersReceived (this=0x8ddb70, mailBox=<optimized out>, uids=..., sizes=..., flags=..., messages=...) at /usr/src/debug/kdepim-runtime-4.7.4/resources/imap/retrieveitemstask.cpp:361
#17 0x0000000000453ef0 in RetrieveItemsTask::qt_metacall (this=0x8ddb70, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff1a3a0c10) at /usr/src/debug/kdepim-runtime-4.7.4/build/resources/imap/retrieveitemstask.moc:90
#18 0x00007f932e99e5aa in QMetaObject::activate (sender=0xb90cc0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff1a3a0c10) at kernel/qobject.cpp:3287
#19 0x00007f932d6105f4 in KIMAP::FetchJob::headersReceived (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>, _t3=<optimized out>, _t4=<optimized out>, _t5=<optimized out>) at /usr/src/debug/kdepimlibs-4.7.4/build/kimap/fetchjob.moc:101
#20 0x00007f932d633648 in KIMAP::FetchJobPrivate::emitPendings (this=0x85d0f0) at /usr/src/debug/kdepimlibs-4.7.4/kimap/fetchjob.cpp:57
#21 0x00007f932d620c4f in KIMAP::FetchJob::qt_metacall (this=0xb90cc0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff1a3a0d30) at /usr/src/debug/kdepimlibs-4.7.4/build/kimap/fetchjob.moc:89
#22 0x00007f932e99e5aa in QMetaObject::activate (sender=0x85d140, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3287
#23 0x00007f932e9a1e89 in QObject::event (this=0x85d140, e=<optimized out>) at kernel/qobject.cpp:1190
#24 0x00007f932dd5ac34 in notify_helper (e=0x7fff1a3a1430, receiver=0x85d140, this=0x6aa580) at kernel/qapplication.cpp:4481
#25 QApplicationPrivate::notify_helper (this=0x6aa580, receiver=0x85d140, e=0x7fff1a3a1430) at kernel/qapplication.cpp:4453
#26 0x00007f932dd5fac1 in QApplication::notify (this=0x7fff1a3a17b0, receiver=0x85d140, e=0x7fff1a3a1430) at kernel/qapplication.cpp:4360
#27 0x00007f932beb9186 in KApplication::notify (this=0x7fff1a3a17b0, receiver=0x85d140, event=0x7fff1a3a1430) at /usr/src/debug/kdelibs-4.7.4/kdeui/kernel/kapplication.cpp:311
#28 0x00007f932e98b82c in QCoreApplication::notifyInternal (this=0x7fff1a3a17b0, receiver=0x85d140, event=0x7fff1a3a1430) at kernel/qcoreapplication.cpp:787
#29 0x00007f932e9b83a8 in sendEvent (event=0x7fff1a3a1430, receiver=<optimized out>) at kernel/qcoreapplication.h:215
#30 QTimerInfoList::activateTimers (this=0x6ae460) at kernel/qeventdispatcher_unix.cpp:618
#31 0x00007f932e9b5b94 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#32 0x00007f932990d58d in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#33 0x00007f932990dd88 in ?? () from /usr/lib64/libglib-2.0.so.0
#34 0x00007f932990df59 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#35 0x00007f932e9b651f in QEventDispatcherGlib::processEvents (this=0x686560, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#36 0x00007f932ddfdf9e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#37 0x00007f932e98aa32 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#38 0x00007f932e98ac2f in QEventLoop::exec (this=0x7fff1a3a1730, flags=...) at kernel/qeventloop.cpp:201
#39 0x00007f932e98edf7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#40 0x00007f932efc1e27 in Akonadi::ResourceBase::init (r=0x80f470) at /usr/src/debug/kdepimlibs-4.7.4/akonadi/resourcebase.cpp:393
#41 0x000000000041bc46 in Akonadi::ResourceBase::init<ImapResource> (argc=<optimized out>, argv=<optimized out>) at /usr/include/akonadi/resourcebase.h:188
#42 0x00007f932af0b23d in __libc_start_main () from /lib64/libc.so.6
#43 0x0000000000416725 in _start () at ../sysdeps/x86_64/elf/start.S:113

Possible duplicates by query: bug 291902, bug 275275.

Reported using DrKonqi
Comment 1 Laurent Montel 2012-01-24 17:18:33 UTC
Fixed in 4.8.1