Bug 258959

Summary: Akonadi IMAP crashes in background
Product: [Frameworks and Libraries] Akonadi Reporter: Andrew <andrew>
Component: IMAP resourceAssignee: Kevin Ottens <ervin>
Status: RESOLVED WORKSFORME    
Severity: crash CC: andrew, kdepim-bugs, 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 Andrew 2010-12-06 01:13:02 UTC
Application: akonadi_imap_resource (0.1)
KDE Platform Version: 4.5.80 (4.6 Beta1)
Qt Version: 4.7.0
Operating System: Linux 2.6.37-020637rc2-generic i686
Distribution: Ubuntu 10.10

-- Information about the crash:
I have Kmail set to display in the system tray so it's running in the background with interval mail checking. Every now and then it crashes with the backtrace.

The crash can be reproduced some of the time.

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

Thread 3 (Thread 0xb2349b70 (LWP 3598)):
#0  0xb5823e36 in clock_gettime (clock_id=-1249738764, tp=0xb2348fb0) at ../sysdeps/unix/clock_gettime.c:100
#1  0xb73bb50b in do_gettime () at tools/qelapsedtimer_unix.cpp:105
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:119
#3  0xb74926e5 in QTimerInfoList::updateCurrentTime (this=0x8e7af34) at kernel/qeventdispatcher_unix.cpp:339
#4  0xb749272a in QTimerInfoList::timerWait (this=0x8e7af34, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0xb74907a8 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xb23490dc) at kernel/qeventdispatcher_glib.cpp:136
#6  0xb749083d in timerSourcePrepare (source=0x0, timeout=0xb5827ff4) at kernel/qeventdispatcher_glib.cpp:169
#7  0xb5791e6a in g_main_context_prepare () from /lib/libglib-2.0.so.0
#8  0xb5792279 in ?? () from /lib/libglib-2.0.so.0
#9  0xb5792848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#10 0xb749059f in QEventDispatcherGlib::processEvents (this=0x8e68770, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#11 0xb7460609 in QEventLoop::processEvents (this=0xb23492b0, flags=) at kernel/qeventloop.cpp:149
#12 0xb7460a8a in QEventLoop::exec (this=0xb23492b0, flags=...) at kernel/qeventloop.cpp:201
#13 0xb735cb7e in QThread::exec (this=0x8e38f98) at thread/qthread.cpp:490
#14 0xb66d81d2 in KIMAP::SessionThread::run (this=0x8e38f98) at ../../kimap/sessionthread.cpp:166
#15 0xb735fdf9 in QThreadPrivate::start (arg=0x8e38f98) at thread/qthread_unix.cpp:266
#16 0xb584dcc9 in start_thread (arg=0xb2349b70) at pthread_create.c:304
#17 0xb59ce6be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xb11a9b70 (LWP 3601)):
#0  0xb5823e36 in clock_gettime (clock_id=-1249738764, tp=0xb11a8fb0) at ../sysdeps/unix/clock_gettime.c:100
#1  0xb73bb50b in do_gettime () at tools/qelapsedtimer_unix.cpp:105
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:119
#3  0xb74926e5 in QTimerInfoList::updateCurrentTime (this=0x8e989c4) at kernel/qeventdispatcher_unix.cpp:339
#4  0xb749272a in QTimerInfoList::timerWait (this=0x8e989c4, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0xb74907a8 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xb11a90dc) at kernel/qeventdispatcher_glib.cpp:136
#6  0xb749083d in timerSourcePrepare (source=0x0, timeout=0xb5827ff4) at kernel/qeventdispatcher_glib.cpp:169
#7  0xb5791e6a in g_main_context_prepare () from /lib/libglib-2.0.so.0
#8  0xb5792279 in ?? () from /lib/libglib-2.0.so.0
#9  0xb5792848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#10 0xb749059f in QEventDispatcherGlib::processEvents (this=0x8fad310, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#11 0xb7460609 in QEventLoop::processEvents (this=0xb11a92b0, flags=) at kernel/qeventloop.cpp:149
#12 0xb7460a8a in QEventLoop::exec (this=0xb11a92b0, flags=...) at kernel/qeventloop.cpp:201
#13 0xb735cb7e in QThread::exec (this=0x8fbc180) at thread/qthread.cpp:490
#14 0xb66d81d2 in KIMAP::SessionThread::run (this=0x8fbc180) at ../../kimap/sessionthread.cpp:166
#15 0xb735fdf9 in QThreadPrivate::start (arg=0x8fbc180) at thread/qthread_unix.cpp:266
#16 0xb584dcc9 in start_thread (arg=0xb11a9b70) at pthread_create.c:304
#17 0xb59ce6be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb4785710 (LWP 3596)):
[KCrash Handler]
#7  0xb7841424 in __kernel_vsyscall ()
#8  0xb5928941 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#9  0xb592be42 in abort () at abort.c:92
#10 0xb5b26055 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6
#11 0xb5b23f35 in ?? () from /usr/lib/libstdc++.so.6
#12 0xb5b23f72 in std::terminate() () from /usr/lib/libstdc++.so.6
#13 0xb5b2414b in __cxa_rethrow () from /usr/lib/libstdc++.so.6
#14 0xb747ab35 in QMetaObject::activate (sender=0x8fc9aa8, m=0xb5e00568, local_signal_index=3, argv=<value optimized out>) at kernel/qobject.cpp:3290
#15 0xb5c80183 in KJob::result (this=0x8fc9aa8, _t1=0x8fc9aa8) at ./kjob.moc:194
#16 0xb5c804e8 in KJob::emitResult (this=0x8fc9aa8) at ../../kdecore/jobs/kjob.cpp:312
#17 0xb771fec9 in delayedEmitResult (this=0x8fc9aa8, _c=QMetaObject::InvokeMetaMethod, _id=34, _a=0x8fca560) at ../../akonadi/job.cpp:144
#18 Akonadi::Job::qt_metacall (this=0x8fc9aa8, _c=QMetaObject::InvokeMetaMethod, _id=34, _a=0x8fca560) at ./job.moc:91
#19 0xb770b5aa in Akonadi::ItemFetchJob::qt_metacall (this=0x8fc9aa8, _c=QMetaObject::InvokeMetaMethod, _id=34, _a=0x8fca560) at ./itemfetchjob.moc:73
#20 0xb74678ca in QMetaObject::metacall (object=0x8fc9aa8, cl=3596, idx=34, argv=0x8fca560) at kernel/qmetaobject.cpp:237
#21 0xb7472df6 in QMetaCallEvent::placeMetaCall (this=0x90f9bc0, object=0x8fc9aa8) at kernel/qobject.cpp:534
#22 0xb74746a2 in QObject::event (this=0x8fc9aa8, e=0x6) at kernel/qobject.cpp:1219
#23 0xb6960fdc in QApplicationPrivate::notify_helper (this=0x8db6018, receiver=0x8fc9aa8, e=0x90f9bc0) at kernel/qapplication.cpp:4396
#24 0xb696704e in QApplication::notify (this=0xbfe7aa50, receiver=0x8fc9aa8, e=0x90f9bc0) at kernel/qapplication.cpp:3798
#25 0xb600de6a in KApplication::notify (this=0xbfe7aa50, receiver=0x8fc9aa8, event=0x90f9bc0) at ../../kdeui/kernel/kapplication.cpp:311
#26 0xb7461b3b in QCoreApplication::notifyInternal (this=0xbfe7aa50, receiver=0x8fc9aa8, event=0x90f9bc0) at kernel/qcoreapplication.cpp:732
#27 0xb7464d8b in sendEvent (receiver=0x0, event_type=0, data=0x8d9dfd0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#28 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x8d9dfd0) at kernel/qcoreapplication.cpp:1373
#29 0xb7464f4d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1266
#30 0xb7490a74 in sendPostedEvents (s=0x8db8520) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#31 postEventSourceDispatch (s=0x8db8520) at kernel/qeventdispatcher_glib.cpp:277
#32 0xb578e855 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#33 0xb5792668 in ?? () from /lib/libglib-2.0.so.0
#34 0xb5792848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#35 0xb7490565 in QEventDispatcherGlib::processEvents (this=0x8db5ff8, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#36 0xb6a22be5 in QGuiEventDispatcherGlib::processEvents (this=0x8db5ff8, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#37 0xb7460609 in QEventLoop::processEvents (this=0xbfe7a9b4, flags=) at kernel/qeventloop.cpp:149
#38 0xb7460a8a in QEventLoop::exec (this=0xbfe7a9b4, flags=...) at kernel/qeventloop.cpp:201
#39 0xb746500f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#40 0xb695fe07 in QApplication::exec () at kernel/qapplication.cpp:3672
#41 0xb7741493 in Akonadi::ResourceBase::init (r=0x8e57180) at ../../akonadi/resourcebase.cpp:283
#42 0x080609c3 in init<ImapResource> (argc=3, argv=0xbfe7ab34) at /usr/include/akonadi/resourcebase.h:188
#43 main (argc=3, argv=0xbfe7ab34) at ../../../resources/imap/imapresource.cpp:1897

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

Possible duplicates by query: bug 257748, bug 256324, bug 256289, bug 256057, bug 255419.

Reported using DrKonqi
Comment 1 Andrew 2010-12-10 02:50:19 UTC
Created attachment 54376 [details]
New crash information added by DrKonqi

akonadi_imap_resource (0.1) on KDE Platform 4.5.85 (4.6 Beta2) using Qt 4.7.0

- What I was doing when the application crashed:

I added a disconnected IMAP account to Kmail. 
Using KDE 4.6 beta2

-- Backtrace (Reduced):
#14 0xb74a0776 in QObject::event (this=0x98e0858, e=0x98dfd00) at kernel/qobject.cpp:1222
#15 0xb698cfdc in QApplicationPrivate::notify_helper (this=0x956b078, receiver=0x98e0858, e=0x98dfd00) at kernel/qapplication.cpp:4396
#16 0xb699304e in QApplication::notify (this=0xbff2f360, receiver=0x98e0858, e=0x98dfd00) at kernel/qapplication.cpp:3798
#17 0xb603139a in KApplication::notify (this=0xbff2f360, receiver=0x98e0858, event=0x98dfd00) at ../../kdeui/kernel/kapplication.cpp:311
#18 0xb748db3b in QCoreApplication::notifyInternal (this=0xbff2f360, receiver=0x98e0858, event=0x98dfd00) at kernel/qcoreapplication.cpp:732
Comment 2 Kevin Ottens 2011-09-17 09:51:07 UTC
Is it still happening for you with 4.7.x? I've been unable to reproduce that one, it just works for me.

In case you still experience this please feel free to reopen. In such a case, we would need much more information like the actual IMAP server used and so on.