Bug 328030

Summary: IMAP resource sometimes crashes if there is no internet connection
Product: [Frameworks and Libraries] Akonadi Reporter: Knut Hildebrandt <knut.hildebrandt>
Component: IMAP resourceAssignee: Christian Mollekopf <chrigi_1>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kdepim-bugs, mollekopf, vkrause
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Knut Hildebrandt 2013-11-24 21:22:53 UTC
Application: akonadi_imap_resource (4.11)
KDE Platform Version: 4.11.2
Qt Version: 4.8.4
Operating System: Linux 3.11.0-13-generic i686
Distribution: Ubuntu 13.10

-- Information about the crash:
I regularly get crashes of Aconadi resources when my internet connection fails while kmail or kontact is running. Got this problem for a while even with older installation of KDE than this one. Right now I'm running Kubuntu 13.10 Saucy with KDE 4.11.2

Knut

-- Backtrace:
Application: 1.gmx.de de tipo Servidor de correo IMAP (akonadi_imap_resource), signal: Segmentation fault
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0xb49f1740 (LWP 2575))]

Thread 3 (Thread 0xb077ab40 (LWP 5268)):
#0  0xb7702424 in __kernel_vsyscall ()
#1  0xb575a4d2 in clock_gettime (clock_id=1, tp=0xb0779ff8) at ../sysdeps/unix/clock_gettime.c:115
#2  0xb71e63ec in do_gettime (frac=0xb0779ff0, sec=0xb0779fe8) at tools/qelapsedtimer_unix.cpp:123
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#4  0xb72cbfd2 in updateCurrentTime (this=0xb0a09a1c) at kernel/qeventdispatcher_unix.cpp:354
#5  QTimerInfoList::timerWait (this=0xb0a09a1c, tm=...) at kernel/qeventdispatcher_unix.cpp:461
#6  0xb72ca67b in timerSourcePrepareHelper (src=<optimized out>, timeout=0xb077a0ec) at kernel/qeventdispatcher_glib.cpp:136
#7  0xb72ca70d in timerSourcePrepare (source=0xb0a099e8, timeout=0xb077a0ec) at kernel/qeventdispatcher_glib.cpp:169
#8  0xb5467143 in g_main_context_prepare () from /lib/i386-linux-gnu/libglib-2.0.so.0
#9  0xb5467a5f in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#10 0xb5467ca8 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#11 0xb72ca8df in QEventDispatcherGlib::processEvents (this=0xb0a0d590, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#12 0xb72999f3 in QEventLoop::processEvents (this=this@entry=0xb077a258, flags=...) at kernel/qeventloop.cpp:149
#13 0xb7299d19 in QEventLoop::exec (this=this@entry=0xb077a258, flags=...) at kernel/qeventloop.cpp:204
#14 0xb7188e3d in QThread::exec (this=this@entry=0x98d1958) at thread/qthread.cpp:542
#15 0xb7188f8b in QThread::run (this=0x98d1958) at thread/qthread.cpp:609
#16 0xb718b72f in QThreadPrivate::start (arg=0x98d1958) at thread/qthread_unix.cpp:338
#17 0xb5596d78 in start_thread (arg=0xb077ab40) at pthread_create.c:311
#18 0xb574701e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:131

Thread 2 (Thread 0xaff79b40 (LWP 6690)):
#0  0xb5599c54 in __pthread_mutex_unlock_usercnt (mutex=0xaf600558, decr=1) at pthread_mutex_unlock.c:49
#1  0xb5754c04 in pthread_mutex_unlock (mutex=0xaf600558) at forward.c:194
#2  0xb54aabf0 in g_mutex_unlock () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb546754f in g_main_context_check () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb5467afa in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb5467ca8 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#6  0xb72ca8df in QEventDispatcherGlib::processEvents (this=0xaf600468, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#7  0xb72999f3 in QEventLoop::processEvents (this=this@entry=0xaff79258, flags=...) at kernel/qeventloop.cpp:149
#8  0xb7299d19 in QEventLoop::exec (this=this@entry=0xaff79258, flags=...) at kernel/qeventloop.cpp:204
#9  0xb7188e3d in QThread::exec (this=this@entry=0x96efce0) at thread/qthread.cpp:542
#10 0xb7188f8b in QThread::run (this=0x96efce0) at thread/qthread.cpp:609
#11 0xb718b72f in QThreadPrivate::start (arg=0x96efce0) at thread/qthread_unix.cpp:338
#12 0xb5596d78 in start_thread (arg=0xaff79b40) at pthread_create.c:311
#13 0xb574701e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:131

Thread 1 (Thread 0xb49f1740 (LWP 2575)):
[KCrash Handler]
#7  check_parent_thread (parent=parent@entry=0x97752a8, parentThreadData=<optimized out>, currentThreadData=0x9579f48) at kernel/qobject.cpp:695
#8  0xb72b53a2 in check_parent_thread (currentThreadData=<optimized out>, parentThreadData=<optimized out>, parent=0x97752a8) at kernel/qobject.cpp:737
#9  QObject::QObject (this=0x98b73d8, parent=0x97752a8) at kernel/qobject.cpp:728
#10 0xb5a15475 in KJob::KJob (this=0x98b73d8, parent=0x97752a8) at ../../kdecore/jobs/kjob.cpp:50
#11 0xb64d73b8 in KIMAP::Job::Job (this=0x98b73d8, dd=...) at ../../kimap/job.cpp:36
#12 0xb64d8b34 in KIMAP::AppendJob::AppendJob (this=0x98b73d8, session=0x97752a8) at ../../kimap/appendjob.cpp:47
#13 0x0807cf80 in AddItemTask::doStart (this=0x97e4a78, session=0x97752a8) at ../../../resources/imap/additemtask.cpp:64
#14 0x0808eb4b in ResourceTask::onSessionRequested (this=this@entry=0x97e4a78, requestId=358, session=0x97752a8, errorCode=0) at ../../../resources/imap/resourcetask.cpp:118
#15 0x0808edf5 in ResourceTask::qt_static_metacall (_o=_o@entry=0x97e4a78, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbf854a0c) at ./resourcetask.moc:70
#16 0xb72affc7 in QMetaObject::activate (sender=sender@entry=0x9759b88, m=m@entry=0x80b13d4 <SessionPool::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0xbf854a0c) at kernel/qobject.cpp:3539
#17 0x0809d99f in SessionPool::sessionRequestDone (this=this@entry=0x9759b88, _t1=358, _t2=_t2@entry=0x97752a8, _t3=_t3@entry=0, _t4=...) at ./sessionpool.moc:154
#18 0x0809facc in SessionPool::processPendingRequests (this=this@entry=0x9759b88) at ../../../resources/imap/sessionpool.cpp:258
#19 0x080a0734 in SessionPool::qt_static_metacall (_o=0x9759b88, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0x97b9ed8) at ./sessionpool.moc:93
#20 0xb72ac77a in QMetaCallEvent::placeMetaCall (this=0x9764330, object=0x9759b88) at kernel/qobject.cpp:524
#21 0xb72b458b in QObject::event (this=0x9759b88, e=0x9764330) at kernel/qobject.cpp:1194
#22 0xb67ac744 in QApplicationPrivate::notify_helper (this=0x95a0ad0, receiver=0x9759b88, e=0x9764330) at kernel/qapplication.cpp:4567
#23 0xb67b3223 in QApplication::notify (this=0xbf8550d4, receiver=receiver@entry=0x9759b88, e=e@entry=0x9764330) at kernel/qapplication.cpp:4353
#24 0xb5d97ff4 in KApplication::notify (this=0xbf8550d4, receiver=0x9759b88, event=0x9764330) at ../../kdeui/kernel/kapplication.cpp:311
#25 0xb729aeda in QCoreApplication::notifyInternal (this=0xbf8550d4, receiver=receiver@entry=0x9759b88, event=event@entry=0x9764330) at kernel/qcoreapplication.cpp:946
#26 0xb729e6ad in sendEvent (event=0x9764330, receiver=0x9759b88) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#27 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x9579f48) at kernel/qcoreapplication.cpp:1570
#28 0xb729ebbc in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1463
#29 0xb72caf6e in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#30 postEventSourceDispatch (s=0x959e928) at kernel/qeventdispatcher_glib.cpp:279
#31 0xb546783e in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#32 0xb5467be8 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#33 0xb5467ca8 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#34 0xb72ca8bf in QEventDispatcherGlib::processEvents (this=this@entry=0x957ae00, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#35 0xb686132e in QGuiEventDispatcherGlib::processEvents (this=0x957ae00, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#36 0xb72999f3 in QEventLoop::processEvents (this=this@entry=0xbf855048, flags=...) at kernel/qeventloop.cpp:149
#37 0xb7299d19 in QEventLoop::exec (this=this@entry=0xbf855048, flags=...) at kernel/qeventloop.cpp:204
#38 0xb729f89e in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#39 0xb67aa974 in QApplication::exec () at kernel/qapplication.cpp:3828
#40 0xb75c9a78 in Akonadi::ResourceBase::init (r=r@entry=0x96efbc0) at ../../akonadi/resourcebase.cpp:548
#41 0x080614ed in Akonadi::ResourceBase::init<ImapResource> (argc=argc@entry=3, argv=argv@entry=0xbf8551b4) at /usr/include/akonadi/resourcebase.h:192
#42 0x080594ab in main (argc=3, argv=0xbf8551b4) at ../../../resources/imap/imapresource.cpp:749

Possible duplicates by query: bug 322400, bug 296319.

Reported using DrKonqi
Comment 1 Christian Mollekopf 2013-12-09 21:24:42 UTC

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