Bug 245435 - IMAP Resource crash shortly after start with flaky internet
Summary: IMAP Resource crash shortly after start with flaky internet
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: 1.3.50
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Kevin Ottens
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-22 14:04 UTC by Leo Franchi
Modified: 2011-09-17 16:27 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 Leo Franchi 2010-07-22 14:04:25 UTC
Version:           1.3.50 (using Devel) 
OS:                Linux

I made Volker's recommended change to ItemSync (See bug 245265 which makes my syncing actually continue).

Now one of my imap resources continually segfaults on startup.

Seems to thing that it is going offline first?

[/home/leo/kde/bin/akonadi_imap_resource] akonadi_imap_resource_1(7022)/kdepimlibs (kimap) KIMAP::LoginJob::handleResponse: Capabilities after STARTTLS:  ("IMAP4rev1", "UNSELECT", "IDLE", "NAMESPACE", "QUOTA", "XLIST", "CHILDREN", "XYZZY", "SASL-IR", "AUTH=XOAUTH", "IMAP4rev1", "UNSELECT", "LITERAL+", "IDLE", "NAMESPACE", "QUOTA", "ID", "XLIST", "CHILDREN", "X-GM-EXT-1", "UIDPLUS", "COMPRESS=DEFLATE")
[/home/leo/kde/bin/akonadi_imap_resource] akonadi_imap_resource_0(7021)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
[/home/leo/kde/bin/akonadi_imap_resource] akonadi_imap_resource_1(7022) ImapResource::doSetOnline: online= true network.status= 0
[/home/leo/kde/bin/akonadi_imap_resource] ASSERT: "!isEmpty()" in file /home/leo/qt/4.7/include/QtCore/qlist.h, line 269


Thread 1 (Thread 0x7fc4e6703760 (LWP 7022)):
[KCrash Handler]
#6  0x00007fc4e13c9565 in raise () from /lib/libc.so.6
#7  0x00007fc4e13ca9e6 in abort () from /lib/libc.so.6
#8  0x00007fc4e59f7999 in qt_message_output (msgType=QtFatalMsg, buf=0x179c068 "ASSERT: \"!isEmpty()\" in file /home/leo/qt/4.7/include/QtCore/qlist.h, line 269") at global/qglobal.cpp:2259
#9  0x00007fc4e59f7a44 in qt_message (msgType=QtFatalMsg, msg=0x7fc4e5b7fc88 "ASSERT: \"%s\" in file %s, line %d", ap=0x7fffd191d6a0) at global/qglobal.cpp:2305
#10 0x00007fc4e59f813e in qFatal (msg=0x7fc4e5b7fc88 "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2488
#11 0x00007fc4e59f7599 in qt_assert (assertion=0x455098 "!isEmpty()", file=0x455070 "/home/leo/qt/4.7/include/QtCore/qlist.h", line=269) at global/qglobal.cpp:2004
#12 0x00000000004277a2 in QList<Akonadi::Collection>::first (this=0x7fffd191d830) at /home/leo/qt/4.7/include/QtCore/qlist.h:269
#13 0x0000000000424740 in ImapResource::onIdleCollectionFetchDone (this=0x15b2340, job=0x16b3650) at /home/leo/kde/src/kdepim/runtime/resources/imap/imapresource.cpp:1944
#14 0x00000000004257ab in ImapResource::qt_metacall (this=0x15b2340, _c=QMetaObject::InvokeMetaMethod, _id=36, _a=0x7fffd191da20)
    at /home/leo/kde/build/kdepim/runtime/resources/imap/imapresource.moc:205
#15 0x00007fc4e5b11ff5 in QMetaObject::metacall (object=0x15b2340, cl=QMetaObject::InvokeMetaMethod, idx=75, argv=0x7fffd191da20) at kernel/qmetaobject.cpp:237
#16 0x00007fc4e5b25067 in QMetaObject::activate (sender=0x16b3650, m=0x7fc4e23a2e20, local_signal_index=3, argv=0x7fffd191da20) at kernel/qobject.cpp:3269
#17 0x00007fc4e1fe4c47 in KJob::result (this=0x16b3650, _t1=0x16b3650) at /home/leo/kde/build/kdelibs/kdecore/kjob.moc:194
#18 0x00007fc4e1fe40b5 in KJob::emitResult (this=0x16b3650) at /home/leo/kde/src/kdelibs/kdecore/jobs/kjob.cpp:312
#19 0x00007fc4e6224ed0 in Akonadi::JobPrivate::delayedEmitResult (this=0x17ac750) at /home/leo/kde/src/kdepimlibs/akonadi/job.cpp:143
#20 0x00007fc4e6225eca in Akonadi::Job::qt_metacall (this=0x16b3650, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x15a62c0) at /home/leo/kde/build/kdepimlibs/akonadi/job.moc:91
#21 0x00007fc4e61bbaef in Akonadi::CollectionFetchJob::qt_metacall (this=0x16b3650, _c=QMetaObject::InvokeMetaMethod, _id=34, _a=0x15a62c0)
    at /home/leo/kde/build/kdepimlibs/akonadi/collectionfetchjob.moc:73
#22 0x00007fc4e5b11ff5 in QMetaObject::metacall (object=0x16b3650, cl=QMetaObject::InvokeMetaMethod, idx=34, argv=0x15a62c0) at kernel/qmetaobject.cpp:237
#23 0x00007fc4e5b1fe7a in QMetaCallEvent::placeMetaCall (this=0x1745d50, object=0x16b3650) at kernel/qobject.cpp:534
#24 0x00007fc4e5b20f37 in QObject::event (this=0x16b3650, e=0x1745d50) at kernel/qobject.cpp:1208
#25 0x00007fc4e4ace532 in QApplicationPrivate::notify_helper (this=0x1551a10, receiver=0x16b3650, e=0x1745d50) at kernel/qapplication.cpp:4392
#26 0x00007fc4e4acbc5c in QApplication::notify (this=0x7fffd191e900, receiver=0x16b3650, e=0x1745d50) at kernel/qapplication.cpp:3794
#27 0x00007fc4e2ad3c4d in KApplication::notify (this=0x7fffd191e900, receiver=0x16b3650, event=0x1745d50) at /home/leo/kde/src/kdelibs/kdeui/kernel/kapplication.cpp:309
#28 0x00007fc4e5b0ab03 in QCoreApplication::notifyInternal (this=0x7fffd191e900, receiver=0x16b3650, event=0x1745d50) at kernel/qcoreapplication.cpp:732
#29 0x00007fc4e5b0e157 in QCoreApplication::sendEvent (receiver=0x16b3650, event=0x1745d50) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#30 0x00007fc4e5b0bcbd in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1511720) at kernel/qcoreapplication.cpp:1370
#31 0x00007fc4e5b0b8df in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1266
#32 0x00007fc4e5b3f15d in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#33 0x00007fc4e5b3e1fe in postEventSourceDispatch (s=0x1555610) at kernel/qeventdispatcher_glib.cpp:277
#34 0x00007fc4e045db33 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#35 0x00007fc4e045e310 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#36 0x00007fc4e045e5ad in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#37 0x00007fc4e5b3ea05 in QEventDispatcherGlib::processEvents (this=0x1510dd0, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#38 0x00007fc4e4b9489a in QGuiEventDispatcherGlib::processEvents (this=0x1510dd0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#39 0x00007fc4e5b08a9a in QEventLoop::processEvents (this=0x7fffd191e870, flags=...) at kernel/qeventloop.cpp:149
#40 0x00007fc4e5b08bee in QEventLoop::exec (this=0x7fffd191e870, flags=...) at kernel/qeventloop.cpp:197
#41 0x00007fc4e5b0b1c2 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#42 0x00007fc4e4acb7d4 in QApplication::exec () at kernel/qapplication.cpp:3668
#43 0x00007fc4e6242a80 in Akonadi::ResourceBase::init (r=0x15b2340) at /home/leo/kde/src/kdepimlibs/akonadi/resourcebase.cpp:245
#44 0x000000000042ba53 in Akonadi::ResourceBase::init<ImapResource> (argc=3, argv=0x7fffd191ea58) at /home/leo/kde/include/akonadi/resourcebase.h:186
#45 0x00000000004250a8 in main (argc=3, argv=0x7fffd191ea58) at /home/leo/kde/src/kdepim/runtime/resources/imap/imapresource.cpp:2027



Reproducible: Always
Comment 1 Leo Franchi 2010-07-22 14:10:56 UTC
Rather, seems it is being told that it is online. Weird.
Comment 2 Leo Franchi 2010-07-22 14:22:30 UTC
Just crashed again, with a different backtrace:



Thread 4 (Thread 0x7f8a13f78710 (LWP 12847)):
[KCrash Handler]
#6  0x00007f8a2280e565 in raise () from /lib/libc.so.6
#7  0x00007f8a2280f9e6 in abort () from /lib/libc.so.6
#8  0x00007f8a26e3c999 in qt_message_output (msgType=QtFatalMsg, buf=0x1022918 "ASSERT: \"!isEmpty()\" in file /home/leo/qt/4.7/include/QtCore/qlist.h, line 271") at global/qglobal.cpp:2259
#9  0x00007f8a26e3ca44 in qt_message (msgType=QtFatalMsg, msg=0x7f8a26fc4c88 "ASSERT: \"%s\" in file %s, line %d", ap=0x7f8a13f76c60) at global/qglobal.cpp:2305
#10 0x00007f8a26e3d13e in qFatal (msg=0x7f8a26fc4c88 "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2488
#11 0x00007f8a26e3c599 in qt_assert (assertion=0x7f8a25783b70 "!isEmpty()", file=0x7f8a25783b48 "/home/leo/qt/4.7/include/QtCore/qlist.h", line=271) at global/qglobal.cpp:2004
#12 0x00007f8a257542fa in QList<QByteArray>::last (this=0x7f8a13f76f90) at /home/leo/qt/4.7/include/QtCore/qlist.h:271
#13 0x00007f8a257521e1 in KIMAP::ImapStreamParser::readParenthesizedList (this=0xeced20) at /home/leo/kde/src/kdepimlibs/kimap/imapstreamparser.cpp:239
#14 0x00007f8a2576e224 in KIMAP::SessionThread::readMessage (this=0xe6cac0) at /home/leo/kde/src/kdepimlibs/kimap/sessionthread.cpp:93
#15 0x00007f8a2576f188 in KIMAP::SessionThread::qt_metacall (this=0xe6cac0, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x41e6850) at /home/leo/kde/build/kdepimlibs/kimap/sessionthread_p.moc:99
#16 0x00007f8a26f56ff5 in QMetaObject::metacall (object=0xe6cac0, cl=QMetaObject::InvokeMetaMethod, idx=17, argv=0x41e6850) at kernel/qmetaobject.cpp:237
#17 0x00007f8a26f64e7a in QMetaCallEvent::placeMetaCall (this=0x44171e0, object=0xe6cac0) at kernel/qobject.cpp:534
#18 0x00007f8a26f65f37 in QObject::event (this=0xe6cac0, e=0x44171e0) at kernel/qobject.cpp:1208
#19 0x00007f8a25f13532 in QApplicationPrivate::notify_helper (this=0xc65a10, receiver=0xe6cac0, e=0x44171e0) at kernel/qapplication.cpp:4392
#20 0x00007f8a25f10c5c in QApplication::notify (this=0x7fff54299560, receiver=0xe6cac0, e=0x44171e0) at kernel/qapplication.cpp:3794
#21 0x00007f8a23f18c4d in KApplication::notify (this=0x7fff54299560, receiver=0xe6cac0, event=0x44171e0) at /home/leo/kde/src/kdelibs/kdeui/kernel/kapplication.cpp:309
#22 0x00007f8a26f4fb03 in QCoreApplication::notifyInternal (this=0x7fff54299560, receiver=0xe6cac0, event=0x44171e0) at kernel/qcoreapplication.cpp:732
#23 0x00007f8a26f53157 in QCoreApplication::sendEvent (receiver=0xe6cac0, event=0x44171e0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#24 0x00007f8a26f50cbd in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xe6ccf0) at kernel/qcoreapplication.cpp:1370
#25 0x00007f8a26f508df in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1266
#26 0x00007f8a26f8415d in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#27 0x00007f8a26f831fe in postEventSourceDispatch (s=0xe3e050) at kernel/qeventdispatcher_glib.cpp:277
#28 0x00007f8a218a2b33 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#29 0x00007f8a218a3310 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#30 0x00007f8a218a35ad in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#31 0x00007f8a26f83a05 in QEventDispatcherGlib::processEvents (this=0xdb6ee0, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#32 0x00007f8a26f4da9a in QEventLoop::processEvents (this=0x7f8a13f77d50, flags=...) at kernel/qeventloop.cpp:149
#33 0x00007f8a26f4dbee in QEventLoop::exec (this=0x7f8a13f77d50, flags=...) at kernel/qeventloop.cpp:197
#34 0x00007f8a26e444ba in QThread::exec (this=0xe6cac0) at thread/qthread.cpp:490
#35 0x00007f8a2576e941 in KIMAP::SessionThread::run (this=0xe6cac0) at /home/leo/kde/src/kdepimlibs/kimap/sessionthread.cpp:163
#36 0x00007f8a26e46a2f in QThreadPrivate::start (arg=0xe6cac0) at thread/qthread_unix.cpp:274
#37 0x00007f8a26b98cb0 in start_thread () from /lib/libpthread.so.0
#38 0x00007f8a228aa7ad in clone () from /lib/libc.so.6
#39 0x0000000000000000 in ?? ()
Comment 3 Kevin Ottens 2011-09-17 16:27:49 UTC
Is it still happening for you with 4.7.x? The code changed a lot since this report was created, none of the backtraces apply anymore.

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.