Bug 220384 - Random akonadi_imap_resource crash [KIMAP::JobPrivate::sessionInternal KIMAP::Job::start ImapAccount::disconnect ImapAccount::onCapabilitiesTestDone]
Summary: Random akonadi_imap_resource crash [KIMAP::JobPrivate::sessionInternal KIMAP:...
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: akonadi-ports-regression
: 225697 226112 227011 (view as bug list)
Depends on:
Blocks: 223438
  Show dependency treegraph
 
Reported: 2009-12-28 12:49 UTC by Christophe Marin
Modified: 2010-06-29 16:05 UTC (History)
4 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 2009-12-28 12:49:55 UTC
Version:           0.1 (using Devel)
Compiler:          gcc 4.4 
OS:                Linux
Installed from:    Compiled sources

with svn. 1066930 and one of my test accounts, the imap resource randomly crashes.

Console output:

[/kde/inst/kdepim-runtime/bin/akonadi_imap_resource] akonadi_imap_resource_6(797)/kdepimlibs (kimap) ImapResource::onSelectDone: integrity:  "INBOX.Trash"  should be:  0  current:  0
[/kde/inst/kdepim-runtime/bin/akonadi_imap_resource] akonadi_imap_resource_6(797)/kdepimlibs (kimap) ImapResource::onSelectDone: All fine, asking for all message flags looking for changes
[/kde/inst/kdepim-runtime/bin/akonadi_imap_resource] QObject::connect: Cannot connect KIMAP::LogoutJob::result( KJob* ) to (null)::deleteLater()
[/kde/inst/kdepim-runtime/bin/akonadi_imap_resource] KCrash: Application 'akonadi_imap_resource' crashing...
[akonadiserver] Lost connection to resource "org.freedesktop.Akonadi.Resource.akonadi_imap_resource_3" , discarding cached interface
[/kde/inst/kdepim-runtime/bin/akonadi_imap_resource] akonadi_imap_resource_0(795)/kdepimlibs (kimap) ImapIdleManager::onIdleStopped: IDLE dropped maybe we should reconnect?
[/kde/inst/kdepim-runtime/bin/akonadi_imap_resource] akonadi_imap_resource_0(795)/kdepimlibs (kimap) ImapIdleManager::onIdleStopped: Reconnecting!
[/kde/inst/kdepim-runtime/bin/akonadi_imap_resource] akonadi_imap_resource_0(795)/kdepimlibs (kimap) KIMAP::SessionThread::sslConnected: TLS negotiation done.


bt:

Application: Akonadi Resource (akonadi_imap_resource), signal: Segmentation fault
[Current thread is 1 (Thread 0xb4950760 (LWP 796))]

Thread 2 (Thread 0xb2b87b70 (LWP 1023)):
#0  0xb58a61eb in clock_gettime () from /lib/librt.so.1
#1  0xb74dfa7c in qt_gettime () at kernel/qcore_unix.cpp:109
#2  0xb74e4ee6 in QTimerInfoList::updateCurrentTime (this=0x8250090) at kernel/qeventdispatcher_unix.cpp:340
#3  0xb74e4f2e in QTimerInfoList::timerWait (this=0x8250090, tm=...) at kernel/qeventdispatcher_unix.cpp:443
#4  0xb74e6a7e in QEventDispatcherUNIX::processEvents (this=0x819d278, flags=) at kernel/qeventdispatcher_unix.cpp:921
#5  0xb74b46cd in QEventLoop::processEvents (this=0xb2b87270, flags=) at kernel/qeventloop.cpp:149
#6  0xb74b4b19 in QEventLoop::exec (this=0xb2b87270, flags=...) at kernel/qeventloop.cpp:201
#7  0xb73ab070 in QThread::exec (this=0x8187f08) at thread/qthread.cpp:487
#8  0xb6773ff6 in KIMAP::SessionThread::run (this=0x8187f08) at /kde/src/KDE/kdepimlibs/kimap/sessionthread.cpp:160
#9  0xb73adebf in QThreadPrivate::start (arg=0x8187f08) at thread/qthread_unix.cpp:248
#10 0xb59596e5 in start_thread () from /lib/libpthread.so.0
#11 0xb5959600 in ?? () from /lib/libpthread.so.0

Thread 1 (Thread 0xb4950760 (LWP 796)):
[KCrash Handler]
#6  0xb675ae8b in KIMAP::JobPrivate::sessionInternal (this=0x816c978) at /kde/src/KDE/kdepimlibs/kimap/job_p.h:39
#7  0xb675a5fb in KIMAP::Job::start (this=0x816dc58) at /kde/src/KDE/kdepimlibs/kimap/job.cpp:56
#8  0x0805fcf5 in ImapAccount::disconnect (this=0x80f2140) at /kde/src/KDE/kdepim-runtime/resources/imap/imapaccount.cpp:385
#9  0x0805f433 in ImapAccount::onCapabilitiesTestDone (this=0x80f2140, job=0x8148ec0) at /kde/src/KDE/kdepim-runtime/resources/imap/imapaccount.cpp:297
#10 0x0805ff40 in ImapAccount::qt_metacall (this=0x80f2140, _c=InvokeMetaMethod, _id=3, _a=0xbfddc9c8) at /kde/build/KDE/kdepim-runtime/resources/imap/imapaccount.moc:99
#11 0xb74bb3cd in QMetaObject::metacall (object=0x80f2140, cl=3048407968, idx=7, argv=0xbfddc9c8) at kernel/qmetaobject.cpp:237
#12 0xb74ca1fa in QMetaObject::activate (sender=0x8148ec0, m=0xb5ed9c48, local_signal_index=3, argv=0xbfddc9c8) at kernel/qobject.cpp:3267
#13 0xb5d2ab65 in KJob::result(KJob*) () from /usr/lib/libkdecore.so.5
#14 0xb5d2af38 in KJob::emitResult() () from /usr/lib/libkdecore.so.5
#15 0xb675a6a1 in KIMAP::Job::connectionLost (this=0x8148ec0) at /kde/src/KDE/kdepimlibs/kimap/job.cpp:68
#16 0xb6771535 in KIMAP::SessionPrivate::socketDisconnected (this=0x8111850) at /kde/src/KDE/kdepimlibs/kimap/session.cpp:263
#17 0xb677154d in KIMAP::SessionPrivate::socketError (this=0x8111850) at /kde/src/KDE/kdepimlibs/kimap/session.cpp:270
#18 0xb6771920 in KIMAP::Session::qt_metacall (this=0x81a0980, _c=InvokeMetaMethod, _id=6, _a=0x819fa48) at /kde/build/KDE/kdepimlibs/kimap/session.moc:101
#19 0xb74bb3cd in QMetaObject::metacall (object=0x81a0980, cl=3048407968, idx=10, argv=0x819fa48) at kernel/qmetaobject.cpp:237
#20 0xb74c5d25 in QMetaCallEvent::placeMetaCall (this=0x81811c0, object=0x81a0980) at kernel/qobject.cpp:561
#21 0xb74c6ecf in QObject::event (this=0x81a0980, e=0x81811c0) at kernel/qobject.cpp:1240
#22 0xb6a0968c in QApplicationPrivate::notify_helper (this=0x80c3050, receiver=0x81a0980, e=0x81811c0) at kernel/qapplication.cpp:4293
#23 0xb6a104d0 in QApplication::notify (this=0xbfddd248, receiver=0x81a0980, e=0x81811c0) at kernel/qapplication.cpp:4176
#24 0xb60b45d1 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#25 0xb74b605e in QCoreApplication::notifyInternal (this=0xbfddd248, receiver=0x81a0980, event=0x81811c0) at kernel/qcoreapplication.cpp:704
#26 0xb74b8a63 in sendEvent (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.h:215
#27 QCoreApplicationPrivate::sendPostedEvents (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.cpp:1345
#28 0xb74b8bbc in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1238
#29 0xb6aca629 in sendPostedEvents () at ../../src/corelib/kernel/qcoreapplication.h:220
#30 QEventDispatcherX11::processEvents () at kernel/qeventdispatcher_x11.cpp:75
#31 0xb74b46cd in QEventLoop::processEvents (this=0xbfddd1b4, flags=) at kernel/qeventloop.cpp:149
#32 0xb74b4b19 in QEventLoop::exec (this=0xbfddd1b4, flags=...) at kernel/qeventloop.cpp:201
#33 0xb74b8c90 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#34 0xb6a09734 in QApplication::exec () at kernel/qapplication.cpp:3572
#35 0xb777f128 in Akonadi::ResourceBase::init (r=0x812e9f8) at /kde/src/KDE/kdepimlibs/akonadi/resourcebase.cpp:219
#36 0x08077e39 in Akonadi::ResourceBase::init<ImapResource> (argc=3, argv=0xbfddd334) at /kde/kdepim-trunk/kdepimlibs/include/akonadi/resourcebase.h:186
#37 0x08072d37 in main (argc=3, argv=0xbfddd334) at /kde/src/KDE/kdepim-runtime/resources/imap/imapresource.cpp:1915
Comment 1 Kevin Ottens 2010-01-25 18:06:13 UTC
Couldn't reproduce with latest trunk.
Comment 2 Christophe Marin 2010-01-28 10:17:12 UTC
reopen. my online imap resource crashed with the same bt during the night (kdepimlibs:1080743 kdepim:1080800).

This resource uses a 'free.fr' account.


Thread 2 (Thread 0xb2995b70 (LWP 4817)):
#0  0xb731837a in __i686.get_pc_thunk.bx () from /usr/lib/libQtCore.so.4
#1  0xb746ec00 in QTimerInfoList::updateCurrentTime (this=0x8235918) at kernel/qeventdispatcher_unix.cpp:339
#2  0xb746f2d7 in QEventDispatcherUNIXPrivate::doSelect (this=0x8235278, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:181
#3  0xb747071f in QEventDispatcherUNIX::processEvents (this=0x81c1ff0, flags=) at kernel/qeventdispatcher_unix.cpp:934
#4  0xb743e41d in QEventLoop::processEvents (this=0xb2995290, flags=) at kernel/qeventloop.cpp:149
#5  0xb743e869 in QEventLoop::exec (this=0xb2995290, flags=...) at kernel/qeventloop.cpp:201
#6  0xb7333350 in QThread::exec (this=0x81b0fb8) at thread/qthread.cpp:487
#7  0xb66f7d42 in KIMAP::SessionThread::run (this=0x81b0fb8) at /kde/src/KDE/kdepimlibs/kimap/sessionthread.cpp:160
#8  0xb733619f in QThreadPrivate::start (arg=0x81b0fb8) at thread/qthread_unix.cpp:248
#9  0xb58ba6e5 in start_thread () from /lib/libpthread.so.0
#10 0xb58ba600 in ?? () from /lib/libpthread.so.0

Thread 1 (Thread 0xb4766760 (LWP 4621)):
[KCrash Handler]
#6  0xb66ddb93 in KIMAP::JobPrivate::sessionInternal (this=0x81652f0) at /kde/src/KDE/kdepimlibs/kimap/job_p.h:39
#7  0xb66dd2d7 in KIMAP::Job::start (this=0x8164fb0) at /kde/src/KDE/kdepimlibs/kimap/job.cpp:56
#8  0x08065349 in ImapAccount::disconnect (this=0x81c2458) at /kde/src/KDE/kdepim-runtime/resources/imap/imapaccount.cpp:386
#9  0x080649e6 in ImapAccount::onCapabilitiesTestDone (this=0x81c2458, job=0x81ca890) at /kde/src/KDE/kdepim-runtime/resources/imap/imapaccount.cpp:298
#10 0x080655b7 in ImapAccount::qt_metacall (this=0x81c2458, _c=InvokeMetaMethod, _id=3, _a=0xbff865b8) at /kde/build/KDE/kdepim-runtime/resources/imap/imapaccount.moc:99
#11 0xb744511d in QMetaObject::metacall (object=0x81c2458, cl=3047756704, idx=7, argv=0xbff865b8) at kernel/qmetaobject.cpp:237
#12 0xb7453f4a in QMetaObject::activate (sender=0x81ca890, m=0xb5e33c48, local_signal_index=3, argv=0xbff865b8) at kernel/qobject.cpp:3285
#13 0xb5c82955 in KJob::result (this=0x81ca890, _t1=0x81ca890) at /usr/src/debug/kdelibs-4.4.60svn1077670/build/kdecore/kjob.moc:194
#14 0xb5c82d28 in KJob::emitResult (this=0x81ca890) at /usr/src/debug/kdelibs-4.4.60svn1077670/kdecore/jobs/kjob.cpp:312
#15 0xb66dd37d in KIMAP::Job::connectionLost (this=0x81ca890) at /kde/src/KDE/kdepimlibs/kimap/job.cpp:68
#16 0xb66f5698 in KIMAP::SessionPrivate::socketDisconnected (this=0x8234968) at /kde/src/KDE/kdepimlibs/kimap/session.cpp:266
#17 0xb66f56ad in KIMAP::SessionPrivate::socketError (this=0x8234968) at /kde/src/KDE/kdepimlibs/kimap/session.cpp:273
#18 0xb66f5ae3 in KIMAP::Session::qt_metacall (this=0x8219020, _c=InvokeMetaMethod, _id=6, _a=0x817d4c0) at /kde/build/KDE/kdepimlibs/kimap/session.moc:101
#19 0xb744511d in QMetaObject::metacall (object=0x8219020, cl=3047756704, idx=10, argv=0x817d4c0) at kernel/qmetaobject.cpp:237
#20 0xb744fa75 in QMetaCallEvent::placeMetaCall (this=0x8160be8, object=0x8219020) at kernel/qobject.cpp:561
#21 0xb7450c1f in QObject::event (this=0x8219020, e=0x8160be8) at kernel/qobject.cpp:1240
#22 0xb698f77c in QApplicationPrivate::notify_helper (this=0x80cfae8, receiver=0x8219020, e=0x8160be8) at kernel/qapplication.cpp:4298
#23 0xb69965c8 in QApplication::notify (this=0xbff86e28, receiver=0x8219020, e=0x8160be8) at kernel/qapplication.cpp:4181
#24 0xb600f3e1 in KApplication::notify (this=0xbff86e28, receiver=0x8219020, event=0x8160be8) at /usr/src/debug/kdelibs-4.4.60svn1077670/kdeui/kernel/kapplication.cpp:302
#25 0xb743fdae in QCoreApplication::notifyInternal (this=0xbff86e28, receiver=0x8219020, event=0x8160be8) at kernel/qcoreapplication.cpp:704
#26 0xb74427b3 in sendEvent (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.h:215
#27 QCoreApplicationPrivate::sendPostedEvents (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.cpp:1345
#28 0xb744290c in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1238
#29 0xb6a50819 in sendPostedEvents () at ../../src/corelib/kernel/qcoreapplication.h:220
#30 QEventDispatcherX11::processEvents () at kernel/qeventdispatcher_x11.cpp:75
#31 0xb743e41d in QEventLoop::processEvents (this=0xbff86d94, flags=) at kernel/qeventloop.cpp:149
#32 0xb743e869 in QEventLoop::exec (this=0xbff86d94, flags=...) at kernel/qeventloop.cpp:201
#33 0xb74429e0 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#34 0xb698f824 in QApplication::exec () at kernel/qapplication.cpp:3577
#35 0xb771021f in Akonadi::ResourceBase::init (r=0x8169dd0) at /kde/src/KDE/kdepimlibs/akonadi/resourcebase.cpp:219
#36 0x0807e3b0 in Akonadi::ResourceBase::init<ImapResource> (argc=3, argv=0xbff86f04) at /kde/inst/kdepimlibs/include/akonadi/resourcebase.h:186
#37 0x08079484 in main (argc=3, argv=0xbff86f04) at /kde/src/KDE/kdepim-runtime/resources/imap/imapresource.cpp:1899
Comment 3 Kevin Ottens 2010-02-08 16:10:06 UTC
SVN commit 1087128 by ervin:

Really no need to call disconnect() twice (as ImapResource does it on
error as well on ImapAccount when the connection is lost during the
capabilities check.

BUG: 220384


 M  +0 -2      imapaccount.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1087128
Comment 4 Kevin Ottens 2010-02-15 16:25:46 UTC
*** Bug 227011 has been marked as a duplicate of this bug. ***
Comment 5 Kevin Ottens 2010-02-15 16:26:11 UTC
*** Bug 226112 has been marked as a duplicate of this bug. ***
Comment 6 Dario Andres 2010-02-15 16:49:05 UTC
SVN commit 1090597 by darioandres:

- Backport to 4.4branch of:
SVN commit 1087128 by ervin:

Really no need to call disconnect() twice (as ImapResource does it on
error as well on ImapAccount when the connection is lost during the
capabilities check.

It will be fixed on KDE SC 4.4.1

CCBUG: 220384


 M  +0 -2      imapaccount.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1090597
Comment 7 Kevin Ottens 2010-06-29 16:05:15 UTC
*** Bug 225697 has been marked as a duplicate of this bug. ***