Bug 233538 - IMAP agent strange behaviour and crash
Summary: IMAP agent strange behaviour and crash
Status: RESOLVED DUPLICATE of bug 233206
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: libakonadi (show other bugs)
Version: 4.4
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Volker Krause
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-06 21:20 UTC by Matthew Leach
Modified: 2010-04-07 13:13 UTC (History)
1 user (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 Matthew Leach 2010-04-06 21:20:17 UTC
Version:            (using Devel)
Compiler:          g++ 4.4.3 20100127 used the debugfull cmake parameter.
OS:                Linux
Installed from:    Compiled sources

I first noticed the collections weren't being populated, specifically an IMAP resource that I had created to connect to my IMAP server. I opened up akonadiconsole to check the status of the sync. It had halted at 44% in a certain folder. After this I tried to abort the sync, however, whenever I tried to abort I got this error:

"akonadiconsole(13995)/libakonadi Akonadi::AgentInstance::abortCurrentTask: Unable to obtain agent interface".

After a restart of Akonadi (which took a good two minutes), I restarted the sync on the IMAP agent. It then got to a different folder, and the job progress began to count down from 23% back down to 1%. I again tried to abort the job, no errors and no change in the progress of the agent. I finally tried to click on the 'configure' button but the agent crashed and I got the following backtrace;

Application: Akonadi Resource (akonadi_imap_resource), signal: Segmentation fault
41	  int result = INLINE_SYSCALL (wait4, 4, pid, stat_loc, options, NULL);
[Current thread is 1 (Thread 0x7f2bc49b2760 (LWP 14072))]

Thread 3 (Thread 0x7f2bba601710 (LWP 14124)):
#0  0x000000377f008de1 in __pthread_mutex_lock (mutex=0x7f2bb40009b8) at pthread_mutex_lock.c:61
#1  0x0000003feaa3c485 in IA__g_main_context_prepare (context=0x7f2bb40009b0, priority=<value optimized out>) at gmain.c:2282
#2  0x0000003feaa3c821 in g_main_context_iterate (context=0x7f2bb40009b0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2571
#3  0x0000003feaa3cd4a in IA__g_main_context_iteration (context=0x7f2bb40009b0, may_block=1) at gmain.c:2654
#4  0x00007f2bca4d3542 in QEventDispatcherGlib::processEvents (this=0x7f2bb40008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#5  0x00007f2bca498db0 in QEventLoop::processEvents (this=0x7f2bba600d90, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f2bca498f06 in QEventLoop::exec (this=0x7f2bba600d90, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007f2bca37c713 in QThread::exec (this=0x14b38a0) at thread/qthread.cpp:487
#8  0x00007f2bc8df8c51 in KIMAP::SessionThread::run (this=0x14b38a0) at /home/kde-devel/kde/src/trunk/KDE/kdepimlibs/kimap/sessionthread.cpp:160
#9  0x00007f2bca37ef25 in QThreadPrivate::start (arg=0x14b38a0) at thread/qthread_unix.cpp:248
#10 0x000000377f006a3a in start_thread (arg=<value optimized out>) at pthread_create.c:297
#11 0x000000377e8de67d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f2bb907b710 (LWP 14127)):
#0  0x000000377e8d51e3 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x0000003feaa3ca0c in g_main_context_poll (context=0x7f2bac0009b0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2904
#2  g_main_context_iterate (context=0x7f2bac0009b0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2586
#3  0x0000003feaa3cd4a in IA__g_main_context_iteration (context=0x7f2bac0009b0, may_block=1) at gmain.c:2654
#4  0x00007f2bca4d3542 in QEventDispatcherGlib::processEvents (this=0x7f2bac0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#5  0x00007f2bca498db0 in QEventLoop::processEvents (this=0x7f2bb907ad90, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f2bca498f06 in QEventLoop::exec (this=0x7f2bb907ad90, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007f2bca37c713 in QThread::exec (this=0x14872e0) at thread/qthread.cpp:487
#8  0x00007f2bc8df8c51 in KIMAP::SessionThread::run (this=0x14872e0) at /home/kde-devel/kde/src/trunk/KDE/kdepimlibs/kimap/sessionthread.cpp:160
#9  0x00007f2bca37ef25 in QThreadPrivate::start (arg=0x14872e0) at thread/qthread_unix.cpp:248
#10 0x000000377f006a3a in start_thread (arg=<value optimized out>) at pthread_create.c:297
#11 0x000000377e8de67d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f2bc49b2760 (LWP 14072)):
[KCrash Handler]
#4  0x00007f2bc958e2e4 in QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::data (this=0x8) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:135
#5  0x00007f2bc9a242d0 in qGetPtrHelper<QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> > > (p=...) at ../../include/QtCore/../../src/corelib/global/qglobal.h:2317
#6  0x00007f2bc9a2432c in QAbstractButton::d_func (this=0x0) at widgets/qabstractbutton.h:171
#7  0x00007f2bc9a22d62 in QAbstractButton::setChecked (this=0x0, checked=true) at widgets/qabstractbutton.cpp:736
#8  0x0000000000414ddd in SetupServer::readSettings (this=0x7fff7249f720) at /home/kde-devel/kde/src/trunk/KDE/kdepim/runtime/resources/imap/setupserver.cpp:241
#9  0x00000000004138dd in SetupServer::SetupServer (this=0x7fff7249f720, parentResource=0x13b8740, parent=88080493)
    at /home/kde-devel/kde/src/trunk/KDE/kdepim/runtime/resources/imap/setupserver.cpp:119
#10 0x00000000004263fc in ImapResource::configure (this=0x13b8740, windowId=88080493) at /home/kde-devel/kde/src/trunk/KDE/kdepim/runtime/resources/imap/imapresource.cpp:235
#11 0x00007f2bcac2c354 in Akonadi__ControlAdaptor::configure (this=0x12f8440, windowId=88080493) at /home/kde-devel/kde/build/trunk/KDE/kdepimlibs/akonadi/controladaptor.cpp:51
#12 0x00007f2bcac2c4fc in Akonadi__ControlAdaptor::qt_metacall (this=0x12f8440, _c=InvokeMetaMethod, _id=4, _a=0x7fff7249f850)
    at /home/kde-devel/kde/build/trunk/KDE/kdepimlibs/akonadi/controladaptor.moc:102
#13 0x00007f2bca82ecf1 in QDBusConnectionPrivate::deliverCall (this=0x12ea930, object=0x12f8440, msg=..., metaTypes=..., slotIdx=8) at qdbusintegrator.cpp:904
#14 0x00007f2bca82e430 in QDBusConnectionPrivate::activateCall (this=0x12ea930, object=0x12f8440, flags=273, msg=...) at qdbusintegrator.cpp:809
#15 0x00007f2bca832773 in QDBusConnectionPrivate::activateObject (this=0x12ea930, node=..., msg=..., pathStartPos=1) at qdbusintegrator.cpp:1364
#16 0x00007f2bca8330fe in QDBusActivateObjectEvent::placeMetaCall (this=0x1500120) at qdbusintegrator.cpp:1477
#17 0x00007f2bca4b2e8b in QObject::event (this=0x13b8740, e=0x1500120) at kernel/qobject.cpp:1240
#18 0x00007f2bc959c716 in QApplicationPrivate::notify_helper (this=0x127e360, receiver=0x13b8740, e=0x1500120) at kernel/qapplication.cpp:4300
#19 0x00007f2bc9599bb4 in QApplication::notify (this=0x7fff724a0a90, receiver=0x13b8740, e=0x1500120) at kernel/qapplication.cpp:3704
#20 0x00007f2bc74955c6 in KApplication::notify (this=0x7fff724a0a90, receiver=0x13b8740, event=0x1500120) at /home/kde-devel/kde/src/trunk/KDE/kdelibs/kdeui/kernel/kapplication.cpp:302
#21 0x00007f2bca49b37a in QCoreApplication::notifyInternal (this=0x7fff724a0a90, receiver=0x13b8740, event=0x1500120) at kernel/qcoreapplication.cpp:704
#22 0x00007f2bca49f2ed in QCoreApplication::sendEvent (receiver=0x13b8740, event=0x1500120) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#23 0x00007f2bca49c5f2 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x12654a0) at kernel/qcoreapplication.cpp:1345
#24 0x00007f2bca49c20d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1238
#25 0x00007f2bca4d3c75 in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#26 0x00007f2bca4d2c39 in postEventSourceDispatch (s=0x1281ea0) at kernel/qeventdispatcher_glib.cpp:276
#27 0x0000003feaa3923e in g_main_dispatch (context=0x1281120) at gmain.c:1960
#28 IA__g_main_context_dispatch (context=0x1281120) at gmain.c:2513
#29 0x0000003feaa3cc28 in g_main_context_iterate (context=0x1281120, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2591
#30 0x0000003feaa3cd4a in IA__g_main_context_iteration (context=0x1281120, may_block=1) at gmain.c:2654
#31 0x00007f2bca4d351f in QEventDispatcherGlib::processEvents (this=0x1264b90, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#32 0x00007f2bc96726ee in QGuiEventDispatcherGlib::processEvents (this=0x1264b90, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#33 0x00007f2bca498db0 in QEventLoop::processEvents (this=0x7fff724a09f0, flags=...) at kernel/qeventloop.cpp:149
#34 0x00007f2bca498f06 in QEventLoop::exec (this=0x7fff724a09f0, flags=...) at kernel/qeventloop.cpp:201
#35 0x00007f2bca49ba7c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#36 0x00007f2bc9599726 in QApplication::exec () at kernel/qapplication.cpp:3579
#37 0x00007f2bcabe6d3c in Akonadi::ResourceBase::init (r=0x13b8740) at /home/kde-devel/kde/src/trunk/KDE/kdepimlibs/akonadi/resourcebase.cpp:219
#38 0x000000000043c157 in Akonadi::ResourceBase::init<ImapResource> (argc=3, argv=0x7fff724a0bf8) at /home/kde-devel/kde/include/akonadi/resourcebase.h:186
#39 0x0000000000436812 in main (argc=3, argv=0x7fff724a0bf8) at /home/kde-devel/kde/src/trunk/KDE/kdepim/runtime/resources/imap/imapresource.cpp:1955
Comment 1 Thomas McGuire 2010-04-07 13:13:41 UTC
See also bug 224034 and bug 233206.
Resolving as duplicate for now.

*** This bug has been marked as a duplicate of bug 233206 ***