Bug 269910 - Akonadi crashes continuously after trying to delete a large number of IMAP emails
Summary: Akonadi crashes continuously after trying to delete a large number of IMAP em...
Status: RESOLVED WORKSFORME
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Kevin Ottens
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-02 02:03 UTC by dawan
Modified: 2011-09-17 12:51 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dawan 2011-04-02 02:03:42 UTC
Application: akonadi_imap_resource (0.1)
KDE Platform Version: 4.6.1 (4.6.1) (Compiled from sources)
Qt Version: 4.7.2
Operating System: Linux 2.6.37-gentoo-r1-dawierosque x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
Akonadi had been running fine for a few weeks, and the imap component for a few days; then I selected more than 700 messages and deleted them. They started disappearing slowly (as usual since kmail2, perhaps 10 per second), and halfway through, while I wasn't doing anything else involving akonadi, akonadi's imap resource crashed. Since then, each time I close the crash notification, another one pops out, until I stop akonadi. Same thing if I restart KDE.

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

Thread 3 (Thread 0x7f39f0fc6700 (LWP 11242)):
#0  QThreadData::current () at thread/qthread_unix.cpp:227
#1  0x00007f3a08640e59 in postEventSourcePrepare (s=0x0, timeout=0x7f3a085132b0) at kernel/qeventdispatcher_glib.cpp:254
#2  0x00007f3a03a1b920 in g_main_context_prepare (context=0x1007e90, priority=<value optimized out>) at gmain.c:2761
#3  0x00007f3a03a1bd78 in g_main_context_iterate (context=0x1007e90, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:3071
#4  0x00007f3a03a1c34c in g_main_context_iteration (context=0x1007e90, may_block=1) at gmain.c:3154
#5  0x00007f3a08640a76 in QEventDispatcherGlib::processEvents (this=0x1021eb0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#6  0x00007f3a08610292 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#7  0x00007f3a0861067d in QEventLoop::exec (this=0x7f39f0fc5e00, flags=) at kernel/qeventloop.cpp:201
#8  0x00007f3a08510e37 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#9  0x00007f3a071c49c4 in KIMAP::SessionThread::run (this=0xfee890) at /var/tmp/portage/kde-base/kdepimlibs-4.6.1/work/kdepimlibs-4.6.1/kimap/sessionthread.cpp:166
#10 0x00007f3a08513ada in QThreadPrivate::start (arg=0xfee890) at thread/qthread_unix.cpp:320
#11 0x00007f3a037bfbda in start_thread (arg=<value optimized out>) at pthread_create.c:301
#12 0x00007f3a04ae109d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7f39f07c5700 (LWP 11249)):
#0  pthread_cond_timedwait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:216
#1  0x00007f3a085146d1 in wait (this=<value optimized out>, mutex=0x12b4620, time=30000) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x12b4620, time=30000) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f3a08506fd1 in QThreadPoolThread::run (this=0xfdc330) at concurrent/qthreadpool.cpp:140
#4  0x00007f3a08513ada in QThreadPrivate::start (arg=0xfdc330) at thread/qthread_unix.cpp:320
#5  0x00007f3a037bfbda in start_thread (arg=<value optimized out>) at pthread_create.c:301
#6  0x00007f3a04ae109d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f3a091f0760 (LWP 11188)):
[KCrash Handler]
#6  0x00007f3a04a3e215 in raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f3a04a3f454 in abort () at abort.c:92
#8  0x00007f3a085088dc in qt_message_output (msgType=QtFatalMsg, buf=<value optimized out>) at global/qglobal.cpp:2282
#9  0x00007f3a08508a82 in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7f3a0867edd0 "ASSERT: \"%s\" in file %s, line %d", ap=0x7fffeee3eac0) at global/qglobal.cpp:2328
#10 0x00007f3a08508c25 in qFatal (msg=0x2bb4 <Address 0x2bb4 out of bounds>) at global/qglobal.cpp:2511
#11 0x0000000000424a4e in ?? ()
#12 0x00007f3a08c6f841 in Akonadi::AgentBasePrivate::itemMoved (this=0x10b9c50, item=<value optimized out>, source=..., dest=...) at /var/tmp/portage/kde-base/kdepimlibs-4.6.1/work/kdepimlibs-4.6.1/akonadi/agentbase.cpp:318
#13 0x00007f3a08c6fb80 in Akonadi::AgentBasePrivate::qt_metacall (this=0x10b9c50, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffeee3ee40) at /var/tmp/portage/kde-base/kdepimlibs-4.6.1/work/kdepimlibs-4.6.1_build/akonadi/agentbase_p.moc:105
#14 0x00007f3a08d11d38 in Akonadi::ResourceBasePrivate::qt_metacall (this=0x2bb4, _c=11188, _id=6, _a=0xffffffffffffffff) at /var/tmp/portage/kde-base/kdepimlibs-4.6.1/work/kdepimlibs-4.6.1_build/akonadi/resourcebase.moc:72
#15 0x00007f3a0862bc02 in QMetaObject::activate (sender=0xff11d0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3278
#16 0x00007f3a08d023df in Akonadi::Monitor::itemMoved (this=0x2bb4, _t1=<value optimized out>, _t2=<value optimized out>, _t3=<value optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-4.6.1/work/kdepimlibs-4.6.1_build/akonadi/monitor.moc:176
#17 0x00007f3a08d04b4a in Akonadi::MonitorPrivate::emitItemNotification (this=0x100d6d0, msg=..., item=<value optimized out>, collection=<value optimized out>, collectionDest=<value optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-4.6.1/work/kdepimlibs-4.6.1/akonadi/monitor_p.cpp:437
#18 0x00007f3a08d04f2e in Akonadi::MonitorPrivate::emitNotification (this=0x100d6d0, msg=...) at /var/tmp/portage/kde-base/kdepimlibs-4.6.1/work/kdepimlibs-4.6.1/akonadi/monitor_p.cpp:267
#19 0x00007f3a08c89bb1 in Akonadi::ChangeRecorderPrivate::emitNotification (this=0x2bb4, msg=...) at /var/tmp/portage/kde-base/kdepimlibs-4.6.1/work/kdepimlibs-4.6.1/akonadi/changerecorder_p.h:60
#20 0x00007f3a08d05731 in Akonadi::MonitorPrivate::dataAvailable (this=0x100d6d0) at /var/tmp/portage/kde-base/kdepimlibs-4.6.1/work/kdepimlibs-4.6.1/akonadi/monitor_p.cpp:281
#21 0x00007f3a08d024a5 in Akonadi::Monitor::qt_metacall (this=0xff11d0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffeee3f3b0) at /var/tmp/portage/kde-base/kdepimlibs-4.6.1/work/kdepimlibs-4.6.1_build/akonadi/monitor.moc:156
#22 0x00007f3a08c86f48 in Akonadi::ChangeRecorder::qt_metacall (this=0x2bb4, _c=11188, _id=6, _a=0xffffffffffffffff) at /var/tmp/portage/kde-base/kdepimlibs-4.6.1/work/kdepimlibs-4.6.1_build/akonadi/changerecorder.moc:72
#23 0x00007f3a0862bc02 in QMetaObject::activate (sender=0x100d758, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3278
#24 0x00007f3a08c8a319 in Akonadi::EntityCache<Akonadi::Item, Akonadi::ItemFetchJob, Akonadi::ItemFetchScope>::fetchResult (this=0x100d758, job=0x1332c40) at /var/tmp/portage/kde-base/kdepimlibs-4.6.1/work/kdepimlibs-4.6.1/akonadi/entitycache_p.h:189
#25 0x00007f3a08cb7883 in Akonadi::EntityCacheBase::qt_metacall (this=0x100d758, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffeee3f560) at /var/tmp/portage/kde-base/kdepimlibs-4.6.1/work/kdepimlibs-4.6.1_build/akonadi/entitycache_p.moc:77
#26 0x00007f3a0862bc02 in QMetaObject::activate (sender=0x1332c40, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3278
#27 0x00007f3a053eeb92 in KJob::result (this=0x2bb4, _t1=0x1332c40) at /var/tmp/portage/kde-base/kdelibs-4.6.1-r2/work/kdelibs-4.6.1_build/kdecore/kjob.moc:194
#28 0x00007f3a053eeef1 in KJob::emitResult (this=0x1332c40) at /var/tmp/portage/kde-base/kdelibs-4.6.1-r2/work/kdelibs-4.6.1/kdecore/jobs/kjob.cpp:312
#29 0x00007f3a08cf8a88 in Akonadi::Job::qt_metacall (this=0x1332c40, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x12c1950) at /var/tmp/portage/kde-base/kdepimlibs-4.6.1/work/kdepimlibs-4.6.1_build/akonadi/job.moc:91
#30 0x00007f3a08ce9385 in Akonadi::ItemFetchJob::qt_metacall (this=0x2bb4, _c=11188, _id=6, _a=0xffffffffffffffff) at /var/tmp/portage/kde-base/kdepimlibs-4.6.1/work/kdepimlibs-4.6.1_build/akonadi/itemfetchjob.moc:73
#31 0x00007f3a0862436e in QObject::event (this=0x1332c40, e=0x2bb4) at kernel/qobject.cpp:1217
#32 0x00007f3a0790b071 in QApplicationPrivate::notify_helper (this=0xf822d0, receiver=0x1332c40, e=0x1150cf0) at kernel/qapplication.cpp:4462
#33 0x00007f3a0791324f in QApplication::notify (this=0x7fffeee40030, receiver=0x1332c40, e=0x1150cf0) at kernel/qapplication.cpp:4341
#34 0x00007f3a059ee511 in KApplication::notify (this=0x7fffeee40030, receiver=0x1332c40, event=0x1150cf0) at /var/tmp/portage/kde-base/kdelibs-4.6.1-r2/work/kdelibs-4.6.1/kdeui/kernel/kapplication.cpp:311
#35 0x00007f3a0861165b in QCoreApplication::notifyInternal (this=0x7fffeee40030, receiver=0x1332c40, event=0x1150cf0) at kernel/qcoreapplication.cpp:731
#36 0x00007f3a08612b93 in sendEvent (receiver=0x0, event_type=<value optimized out>, data=0xf685c0) at kernel/qcoreapplication.h:215
#37 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0xf685c0) at kernel/qcoreapplication.cpp:1372
#38 0x00007f3a08640e23 in sendPostedEvents (s=0xf85120) at kernel/qcoreapplication.h:220
#39 postEventSourceDispatch (s=0xf85120) at kernel/qeventdispatcher_glib.cpp:277
#40 0x00007f3a03a17b41 in g_main_dispatch (context=0xf85040) at gmain.c:2440
#41 g_main_context_dispatch (context=0xf85040) at gmain.c:3013
#42 0x00007f3a03a1c198 in g_main_context_iterate (context=0xf85040, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:3091
#43 0x00007f3a03a1c34c in g_main_context_iteration (context=0xf85040, may_block=1) at gmain.c:3154
#44 0x00007f3a08640a23 in QEventDispatcherGlib::processEvents (this=0xf82230, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#45 0x00007f3a079c7d1e in QGuiEventDispatcherGlib::processEvents (this=0x2bb4, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#46 0x00007f3a08610292 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#47 0x00007f3a0861067d in QEventLoop::exec (this=0x7fffeee3ffc0, flags=) at kernel/qeventloop.cpp:201
#48 0x00007f3a08612e83 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#49 0x00007f3a08d15309 in Akonadi::ResourceBase::init (r=0x10b0ce0) at /var/tmp/portage/kde-base/kdepimlibs-4.6.1/work/kdepimlibs-4.6.1/akonadi/resourcebase.cpp:302
#50 0x0000000000427b18 in int Akonadi::ResourceBase::init<ImapResource>(int, char**) ()
#51 0x00007f3a04a2aefd in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fffeee40158) at libc-start.c:226
#52 0x0000000000419f09 in _start ()

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

Possible duplicates by query: bug 240721, bug 238768.

Reported using DrKonqi
Comment 1 Kevin Ottens 2011-09-17 12:51:31 UTC
Is it still happening for you with 4.7.x? I've been unable to reproduce that one, it just works for me. It really looks like a database corruption (so out of my control), to rule that out please start with a fresh database.

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.