Bug 240721 - crash after each restart: ASSERT: "item.parentCollection() == destination" in file resources/imap/imapresource.cpp, line 480
Summary: crash after each restart: ASSERT: "item.parentCollection() == destination" in...
Status: RESOLVED FIXED
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: 2010-06-04 14:33 UTC by Christophe Marin
Modified: 2010-06-24 10:14 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 Christophe Marin 2010-06-04 14:33:04 UTC
Using trunk (rev. 1134376)

I'm not sure yet of how to reproduce, I think it happened after deleting a message in KMail while the IMAP resource was offline.

After restarting Akonadi I get this each time the resource is restarted:

ProcessControl: Application '/d/kde/inst/kdepim-runtime/bin/akonadi_imap_resource' returned with exit code 253 (Unknown error)
[/d/kde/inst/kdepim-runtime/bin/akonadi_imap_resource] akonadi_imap_resource_0(18134)/libakonadi Akonadi::SessionPrivate::init: "akonadi_imap_resource_0"
[/d/kde/inst/kdepim-runtime/bin/akonadi_imap_resource] akonadi_imap_resource_0(18134)/libakonadi Akonadi::SessionPrivate::reconnect: connectToServer "/home/krop/.local/share/akonadi/akonadiserver.socket"
[/d/kde/inst/kdepim-runtime/bin/akonadi_imap_resource] akonadi_imap_resource_0(18134)/libakonadi Akonadi::SessionPrivate::dataReceived: Server protocol version is: 26
[/d/kde/inst/kdepim-runtime/bin/akonadi_imap_resource] akonadi_imap_resource_0(18134)/kdeui (Wallet) KWallet::Wallet::openWallet: Pass a valid window to KWallet::Wallet::openWallet().
[akonadiserver] Database "akonadi" opened using driver "QPSQL"
[/d/kde/inst/kdepim-runtime/bin/akonadi_imap_resource] akonadi_imap_resource_0(18134)/libakonadi Akonadi::PluginRegistry::PluginRegistry: ItemSerializerPluginLoader:  found 10 plugins.
[/d/kde/inst/kdepim-runtime/bin/akonadi_imap_resource] ASSERT: "item.parentCollection() == destination" in file /d/kde/src/KDE/kdepim-runtime/resources/imap/imapresource.cpp, line 480
[akonadiserver] Lost connection to resource "org.freedesktop.Akonadi.Resource.akonadi_imap_resource_0" , discarding cached interface
[/d/kde/inst/kdepim-runtime/bin/akonadi_imap_resource] KCrash: Application 'akonadi_imap_resource' crashing...



Application: Akonadi Resource (akonadi_imap_resource), signal: Aborted
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7fd876371760 (LWP 18134))]

Thread 2 (Thread 0x7fd863c75710 (LWP 18136)):
#0  0x00007fd87581504b in QEventDispatcherUNIXPrivate::doSelect (this=0x7fd85c0008d0, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:206
#1  0x00007fd87581602f in QEventDispatcherUNIX::processEvents (this=0x7fd85c0008b0, flags=...) at kernel/qeventdispatcher_unix.cpp:934
#2  0x00007fd8757e9ca2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#3  0x00007fd8757e9ea5 in QEventLoop::exec (this=0x7fd863c74df0, flags=...) at kernel/qeventloop.cpp:201
#4  0x00007fd875700e2f in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#5  0x00007fd8744efe64 in KIMAP::SessionThread::run (this=0x71a4b0) at /d/kde/src/KDE/kdepimlibs/kimap/sessionthread.cpp:167
#6  0x00007fd875703755 in QThreadPrivate::start (arg=0x71a4b0) at thread/qthread_unix.cpp:248
#7  0x00007fd871849a4f in start_thread (arg=0x7fd863c75710) at pthread_create.c:297
#8  0x00007fd871f9482d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fd876371760 (LWP 18134)):
[KCrash Handler]
#6  0x00007fd871ef69e5 in raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007fd871ef7ee6 in abort () at abort.c:92
#8  0x00007fd8756fb4e4 in qt_message_output (msgType=<value optimized out>, buf=<value optimized out>) at global/qglobal.cpp:2248
#9  0x00007fd8756fb6ad in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7fd875846c28 "ASSERT: \"%s\" in file %s, line %d", ap=0x7fff9e4dafd0)
    at global/qglobal.cpp:2294
#10 0x00007fd8756fb845 in qFatal (msg=<value optimized out>) at global/qglobal.cpp:2477
#11 0x00007fd8756fb88a in qt_assert (assertion=0x46d6 <Address 0x46d6 out of bounds>, file=0x6 <Address 0x6 out of bounds>, line=-1) at global/qglobal.cpp:2011
#12 0x000000000042978e in ImapResource::itemMoved (this=0x7d6dc0, item=..., source=..., destination=...) at /d/kde/src/KDE/kdepim-runtime/resources/imap/imapresource.cpp:480
#13 0x00007fd875dfa8e3 in Akonadi::AgentBasePrivate::itemMoved (this=0x7f02b0, item=..., source=..., dest=...) at /d/kde/src/KDE/kdepimlibs/akonadi/agentbase.cpp:287
#14 0x00007fd875dfd8b4 in Akonadi::AgentBasePrivate::qt_metacall (this=0x7f02b0, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7fff9e4db400) at /d/kde/build/KDE/kdepimlibs/akonadi/agentbase_p.moc:101
#15 0x00007fd875eb2d53 in Akonadi::ResourceBasePrivate::qt_metacall (this=0x7f02b0, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x7fff9e4db400)
    at /d/kde/build/KDE/kdepimlibs/akonadi/resourcebase.moc:70
#16 0x00007fd8757fe40f in QMetaObject::activate (sender=0x7dfba0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff9e4db400) at kernel/qobject.cpp:3287
#17 0x00007fd875ea0f63 in Akonadi::Monitor::itemMoved (this=0x7dfba0, _t1=..., _t2=..., _t3=...) at /d/kde/build/KDE/kdepimlibs/akonadi/monitor.moc:167
#18 0x00007fd875ea3cbc in Akonadi::MonitorPrivate::emitItemNotification (this=0x7e64a0, msg=..., item=..., collection=..., collectionDest=...) at /d/kde/src/KDE/kdepimlibs/akonadi/monitor_p.cpp:362
#19 0x00007fd875ea2cc3 in Akonadi::MonitorPrivate::emitNotification (this=0x7e64a0, msg=...) at /d/kde/src/KDE/kdepimlibs/akonadi/monitor_p.cpp:212
#20 0x00007fd875ea2de0 in Akonadi::MonitorPrivate::dataAvailable (this=0x7e64a0) at /d/kde/src/KDE/kdepimlibs/akonadi/monitor_p.cpp:224
#21 0x00007fd875ea0e67 in Akonadi::Monitor::qt_metacall (this=0x7dfba0, _c=QMetaObject::InvokeMetaMethod, _id=21, _a=0x7fff9e4db720) at /d/kde/build/KDE/kdepimlibs/akonadi/monitor.moc:148
#22 0x00007fd875e19795 in Akonadi::ChangeRecorder::qt_metacall (this=0x7dfba0, _c=QMetaObject::InvokeMetaMethod, _id=25, _a=0x7fff9e4db720)
    at /d/kde/build/KDE/kdepimlibs/akonadi/changerecorder.moc:72
#23 0x00007fd8757fe40f in QMetaObject::activate (sender=0x7e6528, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3287
#24 0x00007fd875e50a77 in Akonadi::EntityCacheBase::dataAvailable (this=0x7e6528) at /d/kde/build/KDE/kdepimlibs/akonadi/entitycache_p.moc:88
#25 0x00007fd875e1e072 in Akonadi::EntityCache<Akonadi::Item, Akonadi::ItemFetchJob, Akonadi::ItemFetchScope>::fetchResult(KJob*) () from /d/kde/inst/kdepimlibs/lib64/libakonadi-kde.so.4
#26 0x00007fd875e50a3c in Akonadi::EntityCacheBase::qt_metacall (this=0x7e6528, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fff9e4db8e0) at /d/kde/build/KDE/kdepimlibs/akonadi/entitycache_p.moc:77
#27 0x00007fd8757fe40f in QMetaObject::activate (sender=0x734ef0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff9e4db8e0) at kernel/qobject.cpp:3287
#28 0x00007fd87286b7a2 in KJob::result (this=<value optimized out>, _t1=0x734ef0) at /usr/src/debug/kdelibs-4.4.82svn1133690/build/kdecore/kjob.moc:194
#29 0x00007fd87286b7e0 in KJob::emitResult (this=0x734ef0) at /usr/src/debug/kdelibs-4.4.82svn1133690/kdecore/jobs/kjob.cpp:312
#30 0x00007fd875e94fda in Akonadi::JobPrivate::delayedEmitResult (this=0x735060) at /d/kde/src/KDE/kdepimlibs/akonadi/job.cpp:143
#31 0x00007fd875e96038 in Akonadi::Job::qt_metacall (this=0x734ef0, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x7fff9e4dba20) at /d/kde/build/KDE/kdepimlibs/akonadi/job.moc:91
#32 0x00007fd875e84057 in Akonadi::ItemFetchJob::qt_metacall (this=0x734ef0, _c=QMetaObject::InvokeMetaMethod, _id=34, _a=0x7fff9e4dba20) at /d/kde/build/KDE/kdepimlibs/akonadi/itemfetchjob.moc:73
#33 0x00007fd8757fe40f in QMetaObject::activate (sender=0x703850, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3287
#34 0x00007fd8758037af in QSingleShotTimer::timerEvent (this=0x703850) at kernel/qtimer.cpp:308
#35 0x00007fd8757fbc1e in QObject::event (this=0x703850, e=0x7fff9e4dc1c0) at kernel/qobject.cpp:1204
#36 0x00007fd874c03fd4 in QApplicationPrivate::notify_helper (this=0x6975a0, receiver=0x703850, e=0x7fff9e4dc1c0) at kernel/qapplication.cpp:4302
#37 0x00007fd874c0c5ca in QApplication::notify (this=<value optimized out>, receiver=0x703850, e=0x7fff9e4dc1c0) at kernel/qapplication.cpp:4185
#38 0x00007fd872e012d6 in KApplication::notify (this=0x7fff9e4dc650, receiver=0x703850, event=0x7fff9e4dc1c0) at /usr/src/debug/kdelibs-4.4.82svn1133690/kdeui/kernel/kapplication.cpp:302
#39 0x00007fd8757ea85c in QCoreApplication::notifyInternal (this=0x7fff9e4dc650, receiver=0x703850, event=0x7fff9e4dc1c0) at kernel/qcoreapplication.cpp:726
#40 0x00007fd875815a29 in sendEvent (this=0x698000) at kernel/qcoreapplication.h:215
#41 QTimerInfoList::activateTimers (this=0x698000) at kernel/qeventdispatcher_unix.cpp:617
#42 0x00007fd875816040 in QEventDispatcherUNIX::processEvents (this=0x67db30, flags=...) at kernel/qeventdispatcher_unix.cpp:938
#43 0x00007fd874ca545c in QEventDispatcherX11::processEvents (this=0x67db30, flags=...) at kernel/qeventdispatcher_x11.cpp:152
#44 0x00007fd8757e9ca2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#45 0x00007fd8757e9ea5 in QEventLoop::exec (this=0x7fff9e4dc5c0, flags=...) at kernel/qeventloop.cpp:201
#46 0x00007fd8757ee29b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#47 0x00007fd875eaf9a1 in Akonadi::ResourceBase::init (r=0x7d6dc0) at /d/kde/src/KDE/kdepimlibs/akonadi/resourcebase.cpp:240
#48 0x000000000043c38b in Akonadi::ResourceBase::init<ImapResource> (argc=3, argv=0x7fff9e4dc7a8) at /d/kde/inst/kdepimlibs/include/akonadi/resourcebase.h:186
#49 0x0000000000436d3f in main (argc=3, argv=0x7fff9e4dc7a8) at /d/kde/src/KDE/kdepim-runtime/resources/imap/imapresource.cpp:1972
Comment 1 Christophe Marin 2010-06-05 23:17:13 UTC
I think I found how to reproduce: set up an IMAP resource (I reproduce the crash with imap.free.fr)
- let Akonadi sync the messages,
- run akonadiconsole, edit the properties for this resource and press the autodetect button,
- click ok, the resource then crashes.


(using r1134949 now)
Comment 2 Volker Krause 2010-06-24 10:14:37 UTC
Will be fixed in Akonadi server 1.4.