Bug 278756

Summary: IMAP resource crash
Product: [Frameworks and Libraries] Akonadi Reporter: Thomas Tanghus <thomas>
Component: IMAP resourceAssignee: Kevin Ottens <ervin>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kdepim-bugs, martin.tlustos, vkrause
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Thomas Tanghus 2011-07-29 07:23:04 UTC
Application: akonadi_imap_resource (0.1)
KDE Platform Version: 4.6.5 (4.6.5)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-11-generic i686
Distribution: Ubuntu 11.04

-- Information about the crash:
- What I was doing when the application crashed:

Kontact/KMail was running in the background so it took a while for me to notice the crash handler in the taskbar, but I guess it was fetching mail (Gmail account)

-- Backtrace:
Application: Akonadi Resource (akonadi_imap_resource), signal: Aborted
[Current thread is 1 (Thread 0xb76ed710 (LWP 29157))]

Thread 5 (Thread 0xb41feb70 (LWP 29240)):
#0  0x00495d41 in clock_gettime (clock_id=1, tp=0xb41fe020) at ../sysdeps/unix/clock_gettime.c:116
#1  0x0077edd8 in do_gettime () at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0x0084b4f2 in updateCurrentTime (this=0x8a33174, tm=...) at kernel/qeventdispatcher_unix.cpp:339
#4  QTimerInfoList::timerWait (this=0x8a33174, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0x00849d32 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xb41fe0fc) at kernel/qeventdispatcher_glib.cpp:136
#6  0x00849dcd in timerSourcePrepare (source=0x8a33140, timeout=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#7  0x041c4fd4 in g_main_context_prepare () from /lib/i386-linux-gnu/libglib-2.0.so.0
#8  0x041c5e63 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#9  0x041c6524 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#10 0x0084a577 in QEventDispatcherGlib::processEvents (this=0x8a33380, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#11 0x0081c289 in QEventLoop::processEvents (this=0xb41fe2b0, flags=...) at kernel/qeventloop.cpp:149
#12 0x0081c522 in QEventLoop::exec (this=0xb41fe2b0, flags=...) at kernel/qeventloop.cpp:201
#13 0x007262a0 in QThread::exec (this=0x8a35ec8) at thread/qthread.cpp:492
#14 0x0037cd52 in KIMAP::SessionThread::run (this=0x8a35ec8) at ../../kimap/sessionthread.cpp:166
#15 0x00728da2 in QThreadPrivate::start (arg=0x8a35ec8) at thread/qthread_unix.cpp:320
#16 0x05538e99 in start_thread (arg=0xb41feb70) at pthread_create.c:304
#17 0x03db073e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 4 (Thread 0xb39fdb70 (LWP 4360)):
#0  0x001a8416 in __kernel_vsyscall ()
#1  0x03dbe753 in __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/lowlevellock.S:95
#2  0x03d51b94 in _L_lock_10338 () from /lib/i386-linux-gnu/libc.so.6
#3  0x03d50416 in __libc_free (mem=0x89efc98) at malloc.c:3736
#4  0x064d54d1 in operator delete(void*) () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#5  0x0084a98e in QEventDispatcherGlib::unregisterSocketNotifier (this=0x8b2aaa0, notifier=0x8ae81d0) at kernel/qeventdispatcher_glib.cpp:503
#6  0x00838db9 in QSocketNotifier::setEnabled (this=0x8ae81d0, enable=false) at kernel/qsocketnotifier.cpp:298
#7  0x00849f94 in socketNotifierSourceCheck (source=0x8b64058) at kernel/qeventdispatcher_glib.cpp:92
#8  0x041c571d in g_main_context_check () from /lib/i386-linux-gnu/libglib-2.0.so.0
#9  0x041c603a in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#10 0x041c6524 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#11 0x0084a53c in QEventDispatcherGlib::processEvents (this=0x8b2aaa0, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#12 0x0081c289 in QEventLoop::processEvents (this=0xb39fd2b0, flags=...) at kernel/qeventloop.cpp:149
#13 0x0081c522 in QEventLoop::exec (this=0xb39fd2b0, flags=...) at kernel/qeventloop.cpp:201
#14 0x007262a0 in QThread::exec (this=0x8b61c28) at thread/qthread.cpp:492
#15 0x0037cd52 in KIMAP::SessionThread::run (this=0x8b61c28) at ../../kimap/sessionthread.cpp:166
#16 0x00728da2 in QThreadPrivate::start (arg=0x8b61c28) at thread/qthread_unix.cpp:320
#17 0x05538e99 in start_thread (arg=0xb39fdb70) at pthread_create.c:304
#18 0x03db073e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 3 (Thread 0xb49ffb70 (LWP 4361)):
#0  0x001a8416 in __kernel_vsyscall ()
#1  0x03dbe753 in __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/lowlevellock.S:95
#2  0x03d51b94 in _L_lock_10338 () from /lib/i386-linux-gnu/libc.so.6
#3  0x03d50416 in __libc_free (mem=0x8a38960) at malloc.c:3736
#4  0x041ccc86 in g_free () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0x041c1a6b in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#6  0x0084aa15 in QEventDispatcherGlib::~QEventDispatcherGlib (this=0x8b6b4c8, __in_chrg=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:373
#7  0x0084ab52 in QEventDispatcherGlib::~QEventDispatcherGlib (this=0x8b6b4c8, __in_chrg=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:401
#8  0x0072800a in QThreadPrivate::finish (arg=0xb4c04e90) at thread/qthread_unix.cpp:356
#9  0x00728daa in ~__pthread_cleanup_class (arg=0xb4c04e90) at /usr/include/pthread.h:545
#10 QThreadPrivate::start (arg=0xb4c04e90) at thread/qthread_unix.cpp:279
#11 0x05538e99 in start_thread (arg=0xb49ffb70) at pthread_create.c:304
#12 0x03db073e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xb55a0b70 (LWP 4362)):
#0  0x001a8416 in __kernel_vsyscall ()
#1  0x03dbe753 in __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/lowlevellock.S:95
#2  0x03d51b94 in _L_lock_10338 () from /lib/i386-linux-gnu/libc.so.6
#3  0x03d50416 in __libc_free (mem=0x8a00e78) at malloc.c:3736
#4  0x064d54d1 in operator delete(void*) () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#5  0x002a7775 in cleanup (this=0x8b69830, __in_chrg=<value optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:62
#6  ~QScopedPointer (this=0x8b69830, __in_chrg=<value optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:100
#7  QHostAddress::~QHostAddress (this=0x8b69830, __in_chrg=<value optimized out>) at kernel/qhostaddress.cpp:563
#8  0x002b8ecd in ~QAbstractSocketEnginePrivate (this=0x8b697c0, __in_chrg=<value optimized out>) at ../../include/QtNetwork/private/../../../src/network/socket/qabstractsocketengine_p.h:187
#9  ~QNativeSocketEnginePrivate (this=0x8b697c0, __in_chrg=<value optimized out>) at socket/qnativesocketengine.cpp:171
#10 QNativeSocketEnginePrivate::~QNativeSocketEnginePrivate (this=0x8b697c0, __in_chrg=<value optimized out>) at socket/qnativesocketengine.cpp:173
#11 0x008353f0 in cleanup (this=0x8bb96a0, __in_chrg=<value optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:62
#12 ~QScopedPointer (this=0x8bb96a0, __in_chrg=<value optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:100
#13 QObject::~QObject (this=0x8bb96a0, __in_chrg=<value optimized out>) at kernel/qobject.cpp:818
#14 0x002bacf0 in ~QAbstractSocketEngine (this=0x8bb96a0, __in_chrg=<value optimized out>) at ../../include/QtNetwork/private/../../../src/network/socket/qabstractsocketengine_p.h:79
#15 QNativeSocketEngine::~QNativeSocketEngine (this=0x8bb96a0, __in_chrg=<value optimized out>) at socket/qnativesocketengine.cpp:325
#16 0x002bad42 in QNativeSocketEngine::~QNativeSocketEngine (this=0x8bb96a0, __in_chrg=<value optimized out>) at socket/qnativesocketengine.cpp:328
#17 0x002c6c60 in QAbstractSocketPrivate::resetSocketLayer (this=0x8a47bf0) at socket/qabstractsocket.cpp:510
#18 0x002cc485 in QAbstractSocketPrivate::readFromSocket (this=0x8a47bf0) at socket/qabstractsocket.cpp:1179
#19 0x002cc7ed in QAbstractSocketPrivate::canReadNotification (this=0x8a47bf0) at socket/qabstractsocket.cpp:614
#20 0x002b823b in QAbstractSocketEngine::readNotification (this=0x8bb96a0) at socket/qabstractsocketengine.cpp:154
#21 0x002b8e93 in QReadNotifier::event (this=0x8a36c90, e=0xb55a0084) at socket/qnativesocketengine.cpp:1103
#22 0x00a87d24 in QApplicationPrivate::notify_helper (this=0x89814a8, receiver=0x8a36c90, e=0xb55a0084) at kernel/qapplication.cpp:4462
#23 0x00a8c8ce in QApplication::notify (this=0xbf91bc70, receiver=0x8a36c90, e=0xb55a0084) at kernel/qapplication.cpp:3862
#24 0x04d6d32a in KApplication::notify (this=0xbf91bc70, receiver=0x8a36c90, event=0xb55a0084) at ../../kdeui/kernel/kapplication.cpp:311
#25 0x0081d0bb in QCoreApplication::notifyInternal (this=0xbf91bc70, receiver=0x8a36c90, event=0xb55a0084) at kernel/qcoreapplication.cpp:731
#26 0x00849ec7 in sendEvent (source=0x8b5caa0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#27 socketNotifierSourceDispatch (source=0x8b5caa0) at kernel/qeventdispatcher_glib.cpp:110
#28 0x041c5aa8 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#29 0x041c6270 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#30 0x041c6524 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#31 0x0084a53c in QEventDispatcherGlib::processEvents (this=0x8a04008, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#32 0x0081c289 in QEventLoop::processEvents (this=0xb55a02b0, flags=...) at kernel/qeventloop.cpp:149
#33 0x0081c522 in QEventLoop::exec (this=0xb55a02b0, flags=...) at kernel/qeventloop.cpp:201
#34 0x007262a0 in QThread::exec (this=0x8b7dee0) at thread/qthread.cpp:492
#35 0x0037cd52 in KIMAP::SessionThread::run (this=0x8b7dee0) at ../../kimap/sessionthread.cpp:166
#36 0x00728da2 in QThreadPrivate::start (arg=0x8b7dee0) at thread/qthread_unix.cpp:320
#37 0x05538e99 in start_thread (arg=0xb55a0b70) at pthread_create.c:304
#38 0x03db073e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb76ed710 (LWP 29157)):
[KCrash Handler]
#7  0x001a8416 in __kernel_vsyscall ()
#8  0x03d0ae71 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#9  0x03d0e34e in abort () at abort.c:92
#10 0x03d41577 in __libc_message (do_abort=2, fmt=0x3e1a8ac "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#11 0x03d4b961 in malloc_printerr (action=<value optimized out>, str=<value optimized out>, ptr=0x8a271d8) at malloc.c:6283
#12 0x03d4d28b in _int_free (av=<value optimized out>, p=0x8a271d0) at malloc.c:4795
#13 0x03d5041d in __libc_free (mem=0x8a271d8) at malloc.c:3738
#14 0x064d54d1 in operator delete(void*) () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#15 0x080a1486 in node_destruct (this=0x8a6c5c8, session=0x8b2a0b8) at /usr/include/qt4/QtCore/qlist.h:375
#16 erase (this=0x8a6c5c8, session=0x8b2a0b8) at /usr/include/qt4/QtCore/qlist.h:452
#17 removeFirst (this=0x8a6c5c8, session=0x8b2a0b8) at /usr/include/qt4/QtCore/qlist.h:273
#18 takeFirst (this=0x8a6c5c8, session=0x8b2a0b8) at /usr/include/qt4/QtCore/qlist.h:477
#19 SessionPool::declareSessionReady (this=0x8a6c5c8, session=0x8b2a0b8) at ../../../resources/imap/sessionpool.cpp:207
#20 0x080a2e14 in SessionPool::onLoginDone (this=0x8a6c5c8, job=0x8b66f18) at ../../../resources/imap/sessionpool.cpp:348
#21 0x080a3174 in SessionPool::qt_metacall (this=0x8a6c5c8, _c=QMetaObject::InvokeMetaMethod, _id=10, _a=0xbf91b348) at ./sessionpool.moc:118
#22 0x008236ba in QMetaObject::metacall (object=0x8a6c5c8, cl=QMetaObject::InvokeMetaMethod, idx=14, argv=0xbf91b348) at kernel/qmetaobject.cpp:237
#23 0x008334ff in QMetaObject::activate (sender=0x8b66f18, m=0x8032548, local_signal_index=3, argv=0xbf91b348) at kernel/qobject.cpp:3287
#24 0x07edde93 in KJob::result (this=0x8b66f18, _t1=0x8b66f18) at ./kjob.moc:194
#25 0x07eddee8 in KJob::emitResult (this=0x8b66f18) at ../../kdecore/jobs/kjob.cpp:312
#26 0x0036ef87 in KIMAP::LoginJob::connectionLost (this=0x8b66f18) at ../../kimap/loginjob.cpp:496
#27 0x00379ff1 in KIMAP::SessionPrivate::socketDisconnected (this=0x8b807d8) at ../../kimap/session.cpp:344
#28 0x0037a128 in KIMAP::SessionPrivate::socketError (this=0x8b807d8) at ../../kimap/session.cpp:352
#29 0x0037bcf6 in KIMAP::Session::qt_metacall (this=0x8b2a0b8, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xb4c0a388) at ./session.moc:109
#30 0x008236ba in QMetaObject::metacall (object=0x8b2a0b8, cl=QMetaObject::InvokeMetaMethod, idx=12, argv=0xb4c0a388) at kernel/qmetaobject.cpp:237
#31 0x0082de16 in QMetaCallEvent::placeMetaCall (this=0xb4c10fe0, object=0x8b2a0b8) at kernel/qobject.cpp:535
#32 0x008323b7 in QObject::event (this=0x8b2a0b8, e=0xb4c10fe0) at kernel/qobject.cpp:1226
#33 0x00a87d24 in QApplicationPrivate::notify_helper (this=0x89814a8, receiver=0x8b2a0b8, e=0xb4c10fe0) at kernel/qapplication.cpp:4462
#34 0x00a8c8ce in QApplication::notify (this=0xbf91bc70, receiver=0x8b2a0b8, e=0xb4c10fe0) at kernel/qapplication.cpp:3862
#35 0x04d6d32a in KApplication::notify (this=0xbf91bc70, receiver=0x8b2a0b8, event=0xb4c10fe0) at ../../kdeui/kernel/kapplication.cpp:311
#36 0x0081d0bb in QCoreApplication::notifyInternal (this=0xbf91bc70, receiver=0x8b2a0b8, event=0xb4c10fe0) at kernel/qcoreapplication.cpp:731
#37 0x00820c79 in sendEvent (receiver=0x0, event_type=0, data=0x8948f50) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#38 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x8948f50) at kernel/qcoreapplication.cpp:1372
#39 0x00820e0d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1265
#40 0x0084a3c4 in sendPostedEvents (s=0x8984570) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#41 postEventSourceDispatch (s=0x8984570) at kernel/qeventdispatcher_glib.cpp:277
#42 0x041c5aa8 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#43 0x041c6270 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#44 0x041c6524 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#45 0x0084a53c in QEventDispatcherGlib::processEvents (this=0x8948aa8, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#46 0x00b3e1e5 in QGuiEventDispatcherGlib::processEvents (this=0x8948aa8, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#47 0x0081c289 in QEventLoop::processEvents (this=0xbf91bbc4, flags=...) at kernel/qeventloop.cpp:149
#48 0x0081c522 in QEventLoop::exec (this=0xbf91bbc4, flags=...) at kernel/qeventloop.cpp:201
#49 0x00820ecc in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#50 0x00a858e7 in QApplication::exec () at kernel/qapplication.cpp:3736
#51 0x005d55a8 in Akonadi::ResourceBase::init (r=0x8a0ca38) at ../../akonadi/resourcebase.cpp:390
#52 0x08063e83 in init<ImapResource> (argc=) at /usr/include/akonadi/resourcebase.h:188
#53 main (argc=) at ../../../resources/imap/imapresource.cpp:597

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

Possible duplicates by query: bug 278689, bug 278599, bug 277371, bug 277138, bug 275788.

Reported using DrKonqi
Comment 1 Christophe Marin 2011-08-28 17:16:44 UTC

*** This bug has been marked as a duplicate of bug 242698 ***
Comment 2 Martin Tlustos 2011-10-28 16:19:08 UTC
Created attachment 64988 [details]
New crash information added by DrKonqi

akonadi_imap_resource (4.7) on KDE Platform 4.7.2 (4.7.2) using Qt 4.7.4

- What I was doing when the application crashed:
I had started kontact and read emails, then switched to another application. Kontact was running in the background. The I got he error message.
- Custom settings of the application:
3 IMAP resources, Google Addressbook, Google Calendar via Caldav, local folder, local addressbook, 2 mbox backup files etc. set up

-- Backtrace (Reduced):
#15 0x08099f87 in node_destruct (n=0x9ad8e4c, this=<optimized out>) at /usr/include/qt4/QtCore/qlist.h:375
#16 erase (it=<optimized out>, this=<optimized out>) at /usr/include/qt4/QtCore/qlist.h:452
#17 removeFirst (this=0x9af4df4) at /usr/include/qt4/QtCore/qlist.h:273
#18 takeFirst (this=0x9af4df4) at /usr/include/qt4/QtCore/qlist.h:477
#19 SessionPool::declareSessionReady (this=0x9af4dd0, session=0x9c1fec8) at ../../../resources/imap/sessionpool.cpp:207