Bug 295001

Summary: Akonadi IMAP agent crash when trying to stop it after network interruption [@ SessionPool::killSession]
Product: [Frameworks and Libraries] Akonadi Reporter: Nick Leverton <nick>
Component: IMAP resourceAssignee: Kevin Ottens <ervin>
Status: RESOLVED DUPLICATE    
Severity: crash CC: bruno, con.hennessy, dreibh, Ekkehard.Blanz, kdepim-bugs, vkrause
Priority: NOR    
Version: 4.9   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi

Description Nick Leverton 2012-02-28 14:53:52 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.0.0-16-generic-pae i686
Distribution: Ubuntu 11.10

-- Information about the crash:
The IMAP connection had been interrupted by a network outage and I was getting floods of IMAP connection unavailable notifications from KDE notification manager (literally, piling up as fast as I could acknowledge them).  Closed kmail but the floods continued, even after IMAP connection was available again.  I used akonadiconsole to try to restart my IMAP agent with no change.  Then selected "Abort" for the IMAP agent and it crashed.

I've not experienced these symptoms (message floods or akonadi agent crash) before, despite the network being interrupted twice per day as I take the laptop between home and work.  What was unusual this time was that the local LAN connection remained up (as the outage was caused by IT department breaking stuff elsewhere).

-- Backtrace:
Application: AceAxis of type IMAP E-Mail Server (akonadi_imap_resource), signal: Segmentation fault
[Current thread is 1 (Thread 0xb4c18710 (LWP 17045))]

Thread 9 (Thread 0xb23ffb70 (LWP 1940)):
#0  0xb570dd10 in __GI_clock_gettime (clock_id=1, tp=0xb23ff028) at ../sysdeps/unix/clock_gettime.c:116
#1  0xb73d17d5 in do_gettime (frac=0xb23ff020, sec=0xb23ff018) at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0xb74a44b6 in QTimerInfoList::updateCurrentTime (this=0x8aefbc4) at kernel/qeventdispatcher_unix.cpp:339
#4  0xb74a480a in QTimerInfoList::timerWait (this=0x8aefbc4, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0xb74a3053 in timerSourcePrepareHelper (src=<optimized out>, timeout=0xb23ff12c) at kernel/qeventdispatcher_glib.cpp:136
#6  0xb74a30ed in timerSourcePrepare (source=0x8aefb90, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#7  0xb565388c in g_main_context_prepare (context=0x8af36b0, priority=0xb23ff188) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:2762
#8  0xb5654637 in g_main_context_iterate (context=0x8af36b0, block=1, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3069
#9  0xb5654c2a in g_main_context_iteration (context=0x8af36b0, may_block=1) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3152
#10 0xb74a3b37 in QEventDispatcherGlib::processEvents (this=0x88668d0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#11 0xb74741dd in QEventLoop::processEvents (this=0xb23ff2b0, flags=...) at kernel/qeventloop.cpp:149
#12 0xb7474421 in QEventLoop::exec (this=0xb23ff2b0, flags=...) at kernel/qeventloop.cpp:201
#13 0xb737790b in QThread::exec (this=0x8b59d68) at thread/qthread.cpp:498
#14 0xb7454e2d in QInotifyFileSystemWatcherEngine::run (this=0x8b59d68) at io/qfilesystemwatcher_inotify.cpp:248
#15 0xb737a7b3 in QThreadPrivate::start (arg=0x8b59d68) at thread/qthread_unix.cpp:331
#16 0xb57c4d31 in start_thread (arg=0xb23ffb70) at pthread_create.c:304
#17 0xb59060ce in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 8 (Thread 0xb383fb70 (LWP 23228)):
#0  0xb57c7d44 in __pthread_mutex_unlock_usercnt (mutex=0x8affa54, decr=1) at pthread_mutex_unlock.c:52
#1  0xb5913f54 in pthread_mutex_unlock (mutex=0x8affa54) at forward.c:184
#2  0xb5653f1f in g_main_context_check (context=0x8affa50, max_priority=2147483647, fds=0xb240bda8, n_fds=1) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:2957
#3  0xb56548f0 in g_main_context_iterate (context=0x8affa50, block=-1251593440, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3086
#4  0xb5654c2a in g_main_context_iteration (context=0x8affa50, may_block=1) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3152
#5  0xb74a3b37 in QEventDispatcherGlib::processEvents (this=0x8e24b98, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#6  0xb74741dd in QEventLoop::processEvents (this=0xb383f2d0, flags=...) at kernel/qeventloop.cpp:149
#7  0xb7474421 in QEventLoop::exec (this=0xb383f2d0, flags=...) at kernel/qeventloop.cpp:201
#8  0xb737790b in QThread::exec (this=0x8b34758) at thread/qthread.cpp:498
#9  0xb66d64d0 in KIMAP::SessionThread::run (this=0x8b34758) at ../../kimap/sessionthread.cpp:169
#10 0xb737a7b3 in QThreadPrivate::start (arg=0x8b34758) at thread/qthread_unix.cpp:331
#11 0xb57c4d31 in start_thread (arg=0xb383fb70) at pthread_create.c:304
#12 0xb59060ce in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 7 (Thread 0xb07dab70 (LWP 6624)):
#0  g_main_context_iteration (context=0x891db50, may_block=1) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3153
#1  0xb74a3b37 in QEventDispatcherGlib::processEvents (this=0x8d96e60, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#2  0xb74741dd in QEventLoop::processEvents (this=0xb07da2d0, flags=...) at kernel/qeventloop.cpp:149
#3  0xb7474421 in QEventLoop::exec (this=0xb07da2d0, flags=...) at kernel/qeventloop.cpp:201
#4  0xb737790b in QThread::exec (this=0x8e0f9b8) at thread/qthread.cpp:498
#5  0xb66d64d0 in KIMAP::SessionThread::run (this=0x8e0f9b8) at ../../kimap/sessionthread.cpp:169
#6  0xb737a7b3 in QThreadPrivate::start (arg=0x8e0f9b8) at thread/qthread_unix.cpp:331
#7  0xb57c4d31 in start_thread (arg=0xb07dab70) at pthread_create.c:304
#8  0xb59060ce in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 6 (Thread 0xb2effb70 (LWP 24225)):
#0  0xb57c6dbd in __pthread_mutex_lock (mutex=0x8b733bc) at pthread_mutex_lock.c:61
#1  0xb5913f14 in pthread_mutex_lock (mutex=0x8b733bc) at forward.c:182
#2  0xb565370b in g_main_context_prepare (context=0x8b733b8, priority=0xb2eff1a8) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:2690
#3  0xb5654637 in g_main_context_iterate (context=0x8b733b8, block=1, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3069
#4  0xb5654c2a in g_main_context_iteration (context=0x8b733b8, may_block=1) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3152
#5  0xb74a3b37 in QEventDispatcherGlib::processEvents (this=0x8c36be8, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#6  0xb74741dd in QEventLoop::processEvents (this=0xb2eff2d0, flags=...) at kernel/qeventloop.cpp:149
#7  0xb7474421 in QEventLoop::exec (this=0xb2eff2d0, flags=...) at kernel/qeventloop.cpp:201
#8  0xb737790b in QThread::exec (this=0x8d2e4c0) at thread/qthread.cpp:498
#9  0xb66d64d0 in KIMAP::SessionThread::run (this=0x8d2e4c0) at ../../kimap/sessionthread.cpp:169
#10 0xb737a7b3 in QThreadPrivate::start (arg=0x8d2e4c0) at thread/qthread_unix.cpp:331
#11 0xb57c4d31 in start_thread (arg=0xb2effb70) at pthread_create.c:304
#12 0xb59060ce in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 5 (Thread 0xaefd7b70 (LWP 11149)):
#0  0xb57c6dbd in __pthread_mutex_lock (mutex=0x8b163dc) at pthread_mutex_lock.c:61
#1  0xb5913f14 in pthread_mutex_lock (mutex=0x8b163dc) at forward.c:182
#2  0xb56538bb in g_main_context_prepare (context=0x8b163d8, priority=0xaefd71a8) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:2764
#3  0xb5654637 in g_main_context_iterate (context=0x8b163d8, block=1, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3069
#4  0xb5654c2a in g_main_context_iteration (context=0x8b163d8, may_block=1) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3152
#5  0xb74a3b37 in QEventDispatcherGlib::processEvents (this=0x8c17ff8, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#6  0xb74741dd in QEventLoop::processEvents (this=0xaefd72d0, flags=...) at kernel/qeventloop.cpp:149
#7  0xb7474421 in QEventLoop::exec (this=0xaefd72d0, flags=...) at kernel/qeventloop.cpp:201
#8  0xb737790b in QThread::exec (this=0x8b084d0) at thread/qthread.cpp:498
#9  0xb66d64d0 in KIMAP::SessionThread::run (this=0x8b084d0) at ../../kimap/sessionthread.cpp:169
#10 0xb737a7b3 in QThreadPrivate::start (arg=0x8b084d0) at thread/qthread_unix.cpp:331
#11 0xb57c4d31 in start_thread (arg=0xaefd7b70) at pthread_create.c:304
#12 0xb59060ce in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 4 (Thread 0xaf7d8b70 (LWP 16851)):
#0  0xb570dd10 in __GI_clock_gettime (clock_id=1, tp=0xaf7d8048) at ../sysdeps/unix/clock_gettime.c:116
#1  0xb73d17d5 in do_gettime (frac=0xaf7d8040, sec=0xaf7d8038) at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0xb74a44b6 in QTimerInfoList::updateCurrentTime (this=0x892b63c) at kernel/qeventdispatcher_unix.cpp:339
#4  0xb74a480a in QTimerInfoList::timerWait (this=0x892b63c, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0xb74a3053 in timerSourcePrepareHelper (src=<optimized out>, timeout=0xaf7d814c) at kernel/qeventdispatcher_glib.cpp:136
#6  0xb74a30ed in timerSourcePrepare (source=0x892b608, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#7  0xb565388c in g_main_context_prepare (context=0x8d95598, priority=0xaf7d81a8) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:2762
#8  0xb5654637 in g_main_context_iterate (context=0x8d95598, block=1, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3069
#9  0xb5654c2a in g_main_context_iteration (context=0x8d95598, may_block=1) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3152
#10 0xb74a3b37 in QEventDispatcherGlib::processEvents (this=0x8e05910, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#11 0xb74741dd in QEventLoop::processEvents (this=0xaf7d82d0, flags=...) at kernel/qeventloop.cpp:149
#12 0xb7474421 in QEventLoop::exec (this=0xaf7d82d0, flags=...) at kernel/qeventloop.cpp:201
#13 0xb737790b in QThread::exec (this=0x8b298b8) at thread/qthread.cpp:498
#14 0xb66d64d0 in KIMAP::SessionThread::run (this=0x8b298b8) at ../../kimap/sessionthread.cpp:169
#15 0xb737a7b3 in QThreadPrivate::start (arg=0x8b298b8) at thread/qthread_unix.cpp:331
#16 0xb57c4d31 in start_thread (arg=0xaf7d8b70) at pthread_create.c:304
#17 0xb59060ce in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 3 (Thread 0xaffd9b70 (LWP 28327)):
#0  0xb565463b in g_main_context_iterate (context=0x8adaf30, block=1, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3069
#1  0xb5654c2a in g_main_context_iteration (context=0x8adaf30, may_block=1) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3152
#2  0xb74a3b37 in QEventDispatcherGlib::processEvents (this=0x89295b0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#3  0xb74741dd in QEventLoop::processEvents (this=0xaffd92d0, flags=...) at kernel/qeventloop.cpp:149
#4  0xb7474421 in QEventLoop::exec (this=0xaffd92d0, flags=...) at kernel/qeventloop.cpp:201
#5  0xb737790b in QThread::exec (this=0x8ca0a28) at thread/qthread.cpp:498
#6  0xb66d64d0 in KIMAP::SessionThread::run (this=0x8ca0a28) at ../../kimap/sessionthread.cpp:169
#7  0xb737a7b3 in QThreadPrivate::start (arg=0x8ca0a28) at thread/qthread_unix.cpp:331
#8  0xb57c4d31 in start_thread (arg=0xaffd9b70) at pthread_create.c:304
#9  0xb59060ce in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 2 (Thread 0xadfd5b70 (LWP 24921)):
#0  0xb570dd10 in __GI_clock_gettime (clock_id=1, tp=0xadfd5048) at ../sysdeps/unix/clock_gettime.c:116
#1  0xb73d17d5 in do_gettime (frac=0xadfd5040, sec=0xadfd5038) at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0xb74a44b6 in QTimerInfoList::updateCurrentTime (this=0x8b1abc4) at kernel/qeventdispatcher_unix.cpp:339
#4  0xb74a480a in QTimerInfoList::timerWait (this=0x8b1abc4, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0xb74a3053 in timerSourcePrepareHelper (src=<optimized out>, timeout=0xadfd514c) at kernel/qeventdispatcher_glib.cpp:136
#6  0xb74a30ed in timerSourcePrepare (source=0x8b1ab90, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#7  0xb565388c in g_main_context_prepare (context=0x8b34938, priority=0xadfd51a8) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:2762
#8  0xb5654637 in g_main_context_iterate (context=0x8b34938, block=1, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3069
#9  0xb5654c2a in g_main_context_iteration (context=0x8b34938, may_block=1) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3152
#10 0xb74a3b37 in QEventDispatcherGlib::processEvents (this=0x8ae2bd8, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#11 0xb74741dd in QEventLoop::processEvents (this=0xadfd52d0, flags=...) at kernel/qeventloop.cpp:149
#12 0xb7474421 in QEventLoop::exec (this=0xadfd52d0, flags=...) at kernel/qeventloop.cpp:201
#13 0xb737790b in QThread::exec (this=0x8d935e0) at thread/qthread.cpp:498
#14 0xb66d64d0 in KIMAP::SessionThread::run (this=0x8d935e0) at ../../kimap/sessionthread.cpp:169
#15 0xb737a7b3 in QThreadPrivate::start (arg=0x8d935e0) at thread/qthread_unix.cpp:331
#16 0xb57c4d31 in start_thread (arg=0xadfd5b70) at pthread_create.c:304
#17 0xb59060ce in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 1 (Thread 0xb4c18710 (LWP 17045)):
[KCrash Handler]
#7  0xb748a1f1 in QObject::disconnect (sender=0x8eaa958, signal=0x80aba94 "2connectionLost()", receiver=0x89962c8, method=0x80aba7b "1onEarlyConnectionLost()") at kernel/qobject.cpp:2728
#8  0x08099257 in SessionPool::killSession (this=0x89962c8, session=0x8eaa958, termination=SessionPool::CloseSession) at ../../../resources/imap/sessionpool.cpp:177
#9  0x08099880 in SessionPool::disconnect (this=0x89962c8, termination=SessionPool::CloseSession) at ../../../resources/imap/sessionpool.cpp:119
#10 0x0805a8e6 in ImapResource::abortActivity (this=0x889a080) at ../../../resources/imap/imapresource.cpp:578
#11 0x0805dbc4 in ImapResource::qt_metacall (this=0x889a080, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0xbfb37c2c) at ./imapresource.moc:124
#12 0xb747bb7d in metacall (argv=0xbfb37c2c, idx=57, cl=QMetaObject::InvokeMetaMethod, object=0x889a080) at kernel/qmetaobject.cpp:237
#13 QMetaObject::metacall (object=0x889a080, cl=QMetaObject::InvokeMetaMethod, idx=57, argv=0xbfb37c2c) at kernel/qmetaobject.cpp:232
#14 0xb747d670 in QMetaMethod::invoke (this=0xbfb37d8c, object=0x889a080, connectionType=Qt::DirectConnection, returnValue=..., val0=..., val1=..., val2=..., val3=..., val4=..., val5=..., val6=..., val7=..., val8=..., val9=...) at kernel/qmetaobject.cpp:1597
#15 0xb747fb57 in QMetaObject::invokeMethod (obj=0x889a080, member=0xb77eb757 "abortActivity", type=Qt::AutoConnection, ret=..., val0=..., val1=..., val2=..., val3=..., val4=..., val5=..., val6=..., val7=..., val8=..., val9=...) at kernel/qmetaobject.cpp:1151
#16 0xb776243f in invokeMethod (val9=<optimized out>, val8=<optimized out>, val7=<optimized out>, val6=<optimized out>, val5=<optimized out>, val4=<optimized out>, val3=<optimized out>, val2=<optimized out>, val1=<optimized out>, val0=<optimized out>, member=0xb77eb757 "abortActivity", obj=0x889a080) at /usr/include/qt4/QtCore/qobjectdefs.h:426
#17 Akonadi::ResourceBasePrivate::slotAbortRequested (this=0x8969138) at ../../akonadi/resourcebase.cpp:403
#18 0xb7767cb9 in Akonadi::ResourceBase::qt_metacall (this=0x889a080, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbfb38144) at ./moc_resourcebase.cpp:135
#19 0x0805db07 in ImapResource::qt_metacall (this=0x889a080, _c=QMetaObject::InvokeMetaMethod, _id=32, _a=0xbfb38144) at ./imapresource.moc:112
#20 0xb747bb7d in metacall (argv=0xbfb38144, idx=32, cl=QMetaObject::InvokeMetaMethod, object=0x889a080) at kernel/qmetaobject.cpp:237
#21 QMetaObject::metacall (object=0x889a080, cl=QMetaObject::InvokeMetaMethod, idx=32, argv=0xbfb38144) at kernel/qmetaobject.cpp:232
#22 0xb748aa6a in QMetaObject::activate (sender=0x889a080, m=0xb784cf74, local_signal_index=7, argv=0x0) at kernel/qobject.cpp:3278
#23 0xb7688b25 in Akonadi::AgentBase::abortRequested (this=0x889a080) at ./agentbase.moc:181
#24 0xb7688b4b in Akonadi::AgentBase::abort (this=0x889a080) at ../../akonadi/agentbase.cpp:787
#25 0xb77d9661 in Akonadi__ControlAdaptor::abort (this=0x896b5b0) at controladaptor.cpp:39
#26 0xb77d988c in Akonadi__ControlAdaptor::qt_metacall (this=0x896b5b0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0xbfb382cc) at controladaptor.moc:100
#27 0xb75cfd87 in QDBusConnectionPrivate::deliverCall (this=0x8890218, object=0x896b5b0, msg=..., metaTypes=..., slotIdx=6488098) at qdbusintegrator.cpp:942
#28 0xb75d0eb6 in QDBusConnectionPrivate::activateCall (this=0x8890218, object=0x896b5b0, flags=273, msg=...) at qdbusintegrator.cpp:845
#29 0xb75d1804 in QDBusConnectionPrivate::activateObject (this=0x8890218, node=..., msg=..., pathStartPos=-1078754288) at qdbusintegrator.cpp:1430
#30 0xb75d1a18 in QDBusActivateObjectEvent::placeMetaCall (this=0x8b07ee8) at qdbusintegrator.cpp:1524
#31 0xb748db52 in QObject::event (this=0x889a080, e=0x8b07ee8) at kernel/qobject.cpp:1217
#32 0xb69a0d84 in notify_helper (e=0x8b07ee8, receiver=0x889a080, this=0x882be18) at kernel/qapplication.cpp:4486
#33 QApplicationPrivate::notify_helper (this=0x882be18, receiver=0x889a080, e=0x8b07ee8) at kernel/qapplication.cpp:4458
#34 0xb69a6133 in QApplication::notify (this=0x8b07ee8, receiver=0x889a080, e=0x8b07ee8) at kernel/qapplication.cpp:3886
#35 0xb5f69971 in KApplication::notify (this=0xbfb38b20, receiver=0x889a080, event=0x8b07ee8) at ../../kdeui/kernel/kapplication.cpp:311
#36 0xb747519e in QCoreApplication::notifyInternal (this=0xbfb38b20, receiver=0x889a080, event=0x8b07ee8) at kernel/qcoreapplication.cpp:787
#37 0xb7478f93 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#38 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x880ed60) at kernel/qcoreapplication.cpp:1428
#39 0xb74790ec in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1321
#40 0xb74a36a4 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#41 postEventSourceDispatch (s=0x882e200) at kernel/qeventdispatcher_glib.cpp:277
#42 0xb565425f in g_main_dispatch (context=0x882e5a0) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:2441
#43 g_main_context_dispatch (context=0x882e5a0) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3011
#44 0xb5654990 in g_main_context_iterate (context=0x882e5a0, block=-1251593440, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3089
#45 0xb5654c2a in g_main_context_iteration (context=0x882e5a0, may_block=1) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3152
#46 0xb74a3ada in QEventDispatcherGlib::processEvents (this=0x880fc68, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#47 0xb6a58e7a in QGuiEventDispatcherGlib::processEvents (this=0x880fc68, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#48 0xb74741dd in QEventLoop::processEvents (this=0xbfb38a84, flags=...) at kernel/qeventloop.cpp:149
#49 0xb7474421 in QEventLoop::exec (this=0xbfb38a84, flags=...) at kernel/qeventloop.cpp:201
#50 0xb747919d in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#51 0xb699e924 in QApplication::exec () at kernel/qapplication.cpp:3760
#52 0xb7762311 in Akonadi::ResourceBase::init (r=0x889a080) at ../../akonadi/resourcebase.cpp:393
#53 0x0805e147 in Akonadi::ResourceBase::init<ImapResource> (argc=3, argv=0xbfb38bf4) at /usr/include/akonadi/resourcebase.h:188
#54 0x0805859b in main (argc=3, argv=0xbfb38bf4) at ../../../resources/imap/imapresource.cpp:599

This bug may be a duplicate of or related to bug 288268.

Possible duplicates by query: bug 294401, bug 293165, bug 290773, bug 289767, bug 289052.

Reported using DrKonqi
Comment 1 Bruno Friedmann 2012-05-07 16:13:39 UTC
Created attachment 70927 [details]
New crash information added by DrKonqi

akonadi_imap_resource (4.8) on KDE Platform 4.8.3 (4.8.3) "release 501" using Qt 4.8.1

- What I was doing when the application crashed: A network connection was restart by NetworkManager for no reason, then kmail goes to offline (grayed out) 
I've tried to restart akonadi, and everything was in state offline. Okay for me.
Then I try to reboot the workstation. and goes that crash

-- Backtrace (Reduced):
#6  0x00007ff8f5068972 in QObject::disconnect (sender=0x927a60, signal=0x89a069 "stateChanged(KIMAP::Session::State,KIMAP::Session::State)", receiver=0x84ac90, method=0x86b449 "onSessionStateChanged(KIMAP::Session::State,KIMAP::Session::State)") at kernel/qobject.cpp:2900
#7  0x0000000000455715 in SessionPool::killSession (this=0x84ac90, session=0x927a60, termination=SessionPool::LogoutSession) at /usr/src/debug/kdepim-runtime-4.8.3/resources/imap/sessionpool.cpp:176
#8  0x0000000000455acd in SessionPool::disconnect (this=0x84ac90, termination=SessionPool::LogoutSession) at /usr/src/debug/kdepim-runtime-4.8.3/resources/imap/sessionpool.cpp:117
#9  0x0000000000455c17 in SessionPool::~SessionPool (this=0x84ac90, __in_chrg=<optimized out>) at /usr/src/debug/kdepim-runtime-4.8.3/resources/imap/sessionpool.cpp:54
#10 0x0000000000455d29 in SessionPool::~SessionPool (this=0x84ac90, __in_chrg=<optimized out>) at /usr/src/debug/kdepim-runtime-4.8.3/resources/imap/sessionpool.cpp:55
Comment 2 Thomas Dreibholz 2012-08-17 12:49:43 UTC
Created attachment 73255 [details]
New crash information added by DrKonqi

akonadi_imap_resource (4.9) on KDE Platform 4.9.00 using Qt 4.8.1

- What I was doing when the application crashed:

akonadi_imap_resource has crashed, probably caused by unreliable and interrupted Internet connection.

-- Backtrace (Reduced):
#6  0x00007f6aef2f9b02 in QObject::disconnect (sender=0x21c8380, signal=0x21bce19 "stateChanged(KIMAP::Session::State,KIMAP::Session::State)", receiver=0x21cc0c0, method=0x220edb9 "onSessionStateChanged(KIMAP::Session::State,KIMAP::Session::State)") at kernel/qobject.cpp:2891
#7  0x0000000000455625 in SessionPool::killSession (this=0x21cc0c0, session=0x21c8380, termination=SessionPool::LogoutSession) at ../../../resources/imap/sessionpool.cpp:176
#8  0x00000000004559dd in SessionPool::disconnect (this=0x21cc0c0, termination=SessionPool::LogoutSession) at ../../../resources/imap/sessionpool.cpp:117
#9  0x00000000004187cb in ImapResource::doSetOnline (this=0x217c740, online=false) at ../../../resources/imap/imapresource.cpp:456
#10 0x00007f6aef93faa8 in Akonadi::AgentBase::setOnline (this=0x217c740, state=false) at ../../akonadi/agentbase.cpp:617
Comment 3 Con Hennessy 2012-08-18 10:06:11 UTC
I also see this on a newly installed openSuSE 12.2 (rc2) with KDE 4.9 added. It does not always happen - I'll see if I can notice the pattern.
Comment 4 Myriam Schweingruber 2012-09-02 06:49:53 UTC
Confirmed by duplicates.
Comment 5 Myriam Schweingruber 2012-09-02 06:51:11 UTC
*** Bug 294401 has been marked as a duplicate of this bug. ***
Comment 6 Myriam Schweingruber 2012-09-02 06:57:53 UTC

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