[Bug 258669] kmail/korganizer go into a tight loop, rapidly creating nearly empty emails in groupware/Calendar folder

Paul Millar paul at astro.gla.ac.uk
Mon Dec 6 15:56:54 GMT 2010


https://bugs.kde.org/show_bug.cgi?id=258669





--- Comment #2 from Paul Millar <paul astro gla ac uk>  2010-12-06 16:56:50 ---
The same problem again: kontact in a tight-loop.  Again, this time it was not
generating any additional emails.  The problem was triggered by moving an event
to a different day (click-and-drag).  The event was the problematic one
discussed above. 

vmstat reports that the two CPUs are (combined) busy roughly 55% of the time
with userland activity, 15% kernel/system and 30% idle.  The "top" command
shows CPU usage as: 66% kontact, 15% korgac, 11% dbus-daemon, plus some other
small things.

Again, kontact shows no indication of this activity: the progress bar at the
bottom right-hand corner of the window is absent.

I connected gdb to kontact to get a backtrace.  Again, there were two threads. 
One was "parked"

#0  0xb7705424 in __kernel_vsyscall ()
#1  0xb5ece011 in select () at ../sysdeps/unix/syscall-template.S:82
#2  0xb6c2f24c in QProcessManager::run (this=0xb6d6b390) at
io/qprocess_unix.cpp:245
#3  0xb6b57fbe in QThreadPrivate::start (arg=0xb6d6b390) at
thread/qthread_unix.cpp:248
#4  0xb4196955 in start_thread (arg=0xaeb63b70) at pthread_create.c:300
#5  0xb5ed4e7e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130


The other had the following backtrace, apparently in the process of sending a
dbus message.

#0  memmove () at ../sysdeps/i386/i686/memmove.S:94
#1  0xb3d92c1a in ?? () from /lib/libdbus-1.so.3
#2  0xb3d92f18 in ?? () from /lib/libdbus-1.so.3
#3  0xb3d930a5 in ?? () from /lib/libdbus-1.so.3
#4  0xb3d7b0f2 in ?? () from /lib/libdbus-1.so.3
#5  0xb3d7b653 in ?? () from /lib/libdbus-1.so.3
#6  0xb3d81b8b in ?? () from /lib/libdbus-1.so.3
#7  0xb3d82327 in dbus_message_iter_append_basic () from /lib/libdbus-1.so.3
#8  0xb5468ba3 in q_dbus_message_iter_append_basic (it=0x7, ba=<value optimized
out>, type=0, arg=0xbf984a48)
    at qdbus_symbols_p.h:217
#9  qIterAppend (it=0x7, ba=<value optimized out>, type=0, arg=0xbf984a48) at
qdbusmarshaller.cpp:53
#10 0xb5469ab4 in QDBusMarshaller::append (this=0xbf984c4c, arg=...) at
qdbusmarshaller.cpp:118
#11 0xb546cef1 in QDBusMarshaller::appendVariantInternal (this=0xbf984c4c,
arg=...) at qdbusmarshaller.cpp:434
#12 0xb5446f3e in QDBusMessagePrivate::toDBusMessage (message=...,
error=0xbf984d94) at qdbusmessage.cpp:185
#13 0xb5435d7c in QDBusConnectionPrivate::relaySignal (this=0x98fb138,
obj=0xa225020, mo=0xb00211c4, signalId=6, 
    args=...) at qdbusintegrator.cpp:1161
#14 0xb5478ad8 in QDBusConnectionPrivate::qt_metacall (this=0x98fb138,
_c=QMetaObject::InvokeMetaMethod, _id=11, 
    _a=0xbf984f1c) at .moc/release-shared/moc_qdbusconnection_p.cpp:102
#15 0xb6c597aa in QMetaObject::metacall (object=0x98fb138,
cl=QMetaObject::InvokeMetaMethod, idx=11, argv=0xbf984f1c)
    at kernel/qmetaobject.cpp:237
#16 0xb6c681bb in QMetaObject::activate (sender=0xab295d8, m=0xb548e884,
local_signal_index=2, argv=0xbf984f1c)
    at kernel/qobject.cpp:3295
#17 0xb545ba35 in QDBusAdaptorConnector::relaySignal (this=0xab295d8,
_t1=0xa225020, _t2=0xb00211c4, _t3=6, _t4=...)
    at qdbusabstractadaptor.cpp:377
#18 0xb545bc51 in QDBusAdaptorConnector::relay (this=0xab295d8,
senderObj=0x990f0a8, lastSignalIdx=6, argv=0xbf985110)
    at qdbusabstractadaptor.cpp:306
#19 0xb545bcfb in QDBusAdaptorConnector::relaySlot (this=0xab295d8,
argv=0xbf985110) at qdbusabstractadaptor.cpp:268
#20 0xb545c684 in QDBusAdaptorConnector::qt_metacall (this=0xab295d8,
_c=QMetaObject::InvokeMetaMethod, _id=4, 
    _a=0xbf985110) at qdbusabstractadaptor.cpp:364
#21 0xb6c597aa in QMetaObject::metacall (object=0xab295d8,
cl=QMetaObject::InvokeMetaMethod, idx=4, argv=0xbf985110)
    at kernel/qmetaobject.cpp:237
#22 0xb6c681bb in QMetaObject::activate (sender=0x990f0a8, m=0xb00211c4,
local_signal_index=2, argv=0xbf985110)
    at kernel/qobject.cpp:3295
#23 0xafdbe09f in GroupwareAdaptor::incidenceDeleted (this=0x990f0a8, _t1=...,
_t2=..., _t3=...)
    at groupwareadaptor.moc:268
#24 0xafdbe988 in GroupwareAdaptor::qt_metacall (this=0x990f0a8,
_c=QMetaObject::InvokeMetaMethod, _id=2, 
    _a=0xbf985290) at groupwareadaptor.moc:212
#25 0xb6c597aa in QMetaObject::metacall (object=0x990f0a8,
cl=QMetaObject::InvokeMetaMethod, idx=6, argv=0xbf985290)
    at kernel/qmetaobject.cpp:237
#26 0xb6c681bb in QMetaObject::activate (sender=0xa225020, m=0xb001b208,
local_signal_index=2, argv=0xbf985290)
    at kernel/qobject.cpp:3295
#27 0xafc9042f in KMailICalIfaceImpl::incidenceDeleted (this=0xa225020,
_t1=..., _t2=..., _t3=...)
    at ./kmailicalifaceimpl.moc:155
#28 0xafca5777 in KMailICalIfaceImpl::slotIncidenceDeleted (this=0xa225020,
folder=0xa8b2988, sernum=9771497)
    at ../../kmail/kmailicalifaceimpl.cpp:1232
#29 0xafca5d65 in KMailICalIfaceImpl::qt_metacall (this=0xa225020,
_c=QMetaObject::InvokeMetaMethod, _id=9, 
    _a=0xbf985494) at ./kmailicalifaceimpl.moc:121
#30 0xb6c597aa in QMetaObject::metacall (object=0xa225020,
cl=QMetaObject::InvokeMetaMethod, idx=13, argv=0xbf985494)
    at kernel/qmetaobject.cpp:237
#31 0xb6c681bb in QMetaObject::activate (sender=0xa8b2988, m=0xb0013280,
local_signal_index=8, argv=0xbf985494)
    at kernel/qobject.cpp:3295
#32 0xafa3cd69 in KMFolder::msgRemoved (this=0xa8b2988, _t1=0xa8b2988,
_t2=9771497) at ./kmfolder.moc:216
#33 0xafa3d425 in KMFolder::qt_metacall (this=0xa8b2988,
_c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbf9855b4)
    at ./kmfolder.moc:131
#34 0xb6c597aa in QMetaObject::metacall (object=0xa8b2988,
cl=QMetaObject::InvokeMetaMethod, idx=12, argv=0xbf9855b4)
    at kernel/qmetaobject.cpp:237
#35 0xb6c681bb in QMetaObject::activate (sender=0xa8cf698, m=0xb0013868,
local_signal_index=11, argv=0xbf9855b4)
    at kernel/qobject.cpp:3295
#36 0xafa6d539 in FolderStorage::msgRemoved (this=0xa8cf698, _t1=0xa8b2988,
_t2=9771497) at ./folderstorage.moc:238
#37 0xafa70703 in FolderStorage::removeMsg (this=0xa8cf698, idx=1314) at
../../kmail/folderstorage.cpp:399
#38 0xafb585b5 in KMFolderMaildir::removeMsg (this=0xa8cf698, idx=1314) at
../../kmail/kmfoldermaildir.cpp:908
#39 0xafb3849e in KMFolderCachedImap::removeMsg (this=0xa8cf698, idx=1314,
imapQuiet=7)
    at ../../kmail/kmfoldercachedimap.cpp:591
#40 0xafa3c0c6 in KMFolder::removeMsg (this=0xa8b2988, i=1314, imapQuiet=<value
optimized out>)
    at ../../kmail/kmfolder.cpp:468
#41 0xafc94e9b in KMailICalIfaceImpl::deleteMsg (this=0xa225020,
msg=0xa47e3ae8)
    at ../../kmail/kmailicalifaceimpl.cpp:1436
#42 0xafc9f0bb in KMailICalIfaceImpl::update (this=0xa225020, resource=...,
sernum=9771497, subject=..., 
    plainTextBody=..., customHeaders=..., attachmentURLs=...,
attachmentMimetypes=..., attachmentNames=..., 
    deletedAttachments=...) at ../../kmail/kmailicalifaceimpl.cpp:952
#43 0xafdbe8f2 in update (this=0x990f0a8, _c=QMetaObject::InvokeMetaMethod,
_id=19, _a=0xbf985998)
    at groupwareadaptor.cpp:117
#44 GroupwareAdaptor::qt_metacall (this=0x990f0a8,
_c=QMetaObject::InvokeMetaMethod, _id=19, _a=0xbf985998)
    at groupwareadaptor.moc:241
#45 0xb543aac1 in QDBusConnectionPrivate::deliverCall (this=0x98fb138,
object=0x990f0a8, msg=..., metaTypes=..., 
    slotIdx=23) at qdbusintegrator.cpp:904
#46 0xb543bd05 in QDBusConnectionPrivate::activateCall (this=0x98fb138,
object=0x990f0a8, flags=273, msg=...)
    at qdbusintegrator.cpp:816
#47 0xb543c740 in QDBusConnectionPrivate::activateObject (this=0x98fb138,
node=..., msg=..., pathStartPos=10)
    at qdbusintegrator.cpp:1364
#48 0xb543d15c in QDBusConnectionPrivate::handleObjectCall (this=0x98fb138,
msg=...) at qdbusintegrator.cpp:1456
#49 0xb543d5c2 in QDBusConnectionPrivate::handleMessage (this=0x98fb138,
amsg=...) at qdbusintegrator.cpp:548
#50 0xb543d8a4 in QDBusConnectionPrivate::sendWithReplyLocal (this=0x98fb138,
message=...) at qdbusintegrator.cpp:1869
#51 0xb543e979 in QDBusConnectionPrivate::sendWithReplyAsync (this=0x98fb138,
message=..., timeout=-1)
    at qdbusintegrator.cpp:1903
#52 0xb5429570 in QDBusConnection::asyncCall (this=0xb382ea8, message=...,
timeout=-1) at qdbusconnection.cpp:553
#53 0xb544a6e8 in QDBusAbstractInterface::asyncCallWithArgumentList
(this=0xadaa200, method=..., args=...)
    at qdbusabstractinterface.cpp:472
#54 0xaec55b47 in OrgKdeKmailGroupwareInterface::update(QString const&,
unsigned int, QString const&, QString const&, QList<KMail::CustomHeader>
const&, QStringList const&, QStringList const&, QStringList const&, QStringList
const&) ()
   from /usr/lib/libkcalkolab.so.4
#55 0xaec51eaa in Kolab::KMailConnection::kmailUpdate (this=0xb2c3620,
resource=..., sernum=@0xbf98644c, subject=..., 
    plainTextBody=..., customHeaders=..., attachmentURLs=...,
attachmentMimetypes=..., attachmentNames=..., 
    deletedAttachments=...) at
../../../../kresources/kolab/shared/kmailconnection.cpp:277
#56 0xaec4f31d in Kolab::ResourceKolabBase::kmailUpdate (this=0xb2c0d94,
resource=..., sernum=@0xbf98644c, xml=..., 
    mimetype=..., subject=..., _customHeaders=..., _attachmentURLs=...,
_attachmentMimetypes=..., 
    _attachmentNames=..., deletedAttachments=...) at
../../../../kresources/kolab/shared/resourcekolabbase.cpp:185
#57 0xaec70890 in KCal::ResourceKolab::sendKMailUpdate (this=0xb2c0d80,
incidencebase=0xbc85700, subresource=..., 
    sernum=9771497) at ../../../../kresources/kolab/kcal/resourcekolab.cpp:537
#58 0xaec71ae6 in KCal::ResourceKolab::incidenceUpdatedSilent (this=0xb2c0d80,
incidencebase=0xbc85700)
    at ../../../../kresources/kolab/kcal/resourcekolab.cpp:363
#59 0xaec71c34 in KCal::ResourceKolab::incidenceUpdated (this=0xb2c0d80,
incidencebase=0xbc85700)
    at ../../../../kresources/kolab/kcal/resourcekolab.cpp:375
#60 0xaec731a9 in KCal::ResourceKolab::addIncidence (this=0xb2c0d80,
incidence=0xa47d4e90, _subresource=..., 
    sernum=9771497) at ../../../../kresources/kolab/kcal/resourcekolab.cpp:681
#61 0xaec73eb7 in KCal::ResourceKolab::fromKMailAddIncidence (this=0xb2c0d80,
type=..., subResource=..., 
    sernum=9771497, format=0, data=...) at
../../../../kresources/kolab/kcal/resourcekolab.cpp:925
#62 0xaec4f946 in Kolab::KMailConnection::fromKMailAddIncidence
(this=0xb2c3620, type=..., folder=..., sernum=9771497, 
    format=0, data=...) at
../../../../kresources/kolab/shared/kmailconnection.cpp:144
#63 0xaec5054a in Kolab::KMailConnection::qt_metacall (this=0xb2c3620,
_c=QMetaObject::InvokeMetaMethod, _id=0, 
    _a=0xbf986888) at ./kmailconnection.moc:90
#64 0xb6c597aa in QMetaObject::metacall (object=0xb2c3620,
cl=QMetaObject::InvokeMetaMethod, idx=4, argv=0xbf986888)
    at kernel/qmetaobject.cpp:237
#65 0xb6c681bb in QMetaObject::activate (sender=0xadaa200, m=0xaec7e224,
local_signal_index=1, argv=0xbf986888)
    at kernel/qobject.cpp:3295
#66 0xaec77a65 in OrgKdeKmailGroupwareInterface::incidenceAdded
(this=0xadaa200, _t1=..., _t2=..., _t3=9771497, _t4=0, 
    _t5=...) at kmail_groupwareinterface.moc:183
#67 0xaec77f4a in OrgKdeKmailGroupwareInterface::qt_metacall (this=0xadaa200,
_c=QMetaObject::InvokeMetaMethod, _id=1, 
    _a=0xbf986ba8) at kmail_groupwareinterface.moc:132
#68 0xb543aac1 in QDBusConnectionPrivate::deliverCall (this=0x98fb138,
object=0xadaa200, msg=..., metaTypes=..., 
    slotIdx=6) at qdbusintegrator.cpp:904
#69 0xb5445877 in QDBusCallDeliveryEvent::placeMetaCall(QObject*) () from
/usr/lib/libQtDBus.so.4
#70 0xb6c64dfe in QObject::event (this=0xadaa200, e=0xa47dd7f0) at
kernel/qobject.cpp:1248
#71 0xb619c5cc in QApplicationPrivate::notify_helper (this=0x9903e20,
receiver=0xadaa200, e=0xa47dd7f0)
    at kernel/qapplication.cpp:4302
#72 0xb61a315e in QApplication::notify (this=0xbf9874f4, receiver=0xadaa200,
e=0xa47dd7f0)
    at kernel/qapplication.cpp:3706
#73 0xb71a3bfa in KApplication::notify (this=0xbf9874f4, receiver=0xadaa200,
event=0xa47dd7f0)
    at ../../kdeui/kernel/kapplication.cpp:302
#74 0xb6c544cb in QCoreApplication::notifyInternal (this=0xbf9874f4,
receiver=0xadaa200, event=0xa47dd7f0)
    at kernel/qcoreapplication.cpp:726
#75 0xb6c57f2c in sendEvent (receiver=0x0, event_type=0, data=0x98e3e00)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#76 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0,
data=0x98e3e00)
    at kernel/qcoreapplication.cpp:1367
#77 0xb6c580ad in QCoreApplication::sendPostedEvents (receiver=0x0,
event_type=0) at kernel/qcoreapplication.cpp:1260
#78 0xb6c8057f in sendPostedEvents (s=0x990b870)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#79 postEventSourceDispatch (s=0x990b870) at
kernel/qeventdispatcher_glib.cpp:276
#80 0xb40f0305 in g_main_dispatch (context=0x99134d8)
    at
/build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/glib/gmain.c:1960
#81 IA__g_main_context_dispatch (context=0x99134d8)
    at
/build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/glib/gmain.c:2513
#82 0xb40f3fe8 in g_main_context_iterate (context=0x99134d8, block=<value
optimized out>, dispatch=1, self=0x9911c70)
    at
/build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/glib/gmain.c:2591
#83 0xb40f41c8 in IA__g_main_context_iteration (context=0x99134d8, may_block=1)
    at
/build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/glib/gmain.c:2654
#84 0xb6c80075 in QEventDispatcherGlib::processEvents (this=0x98e38c8,
flags=...)
    at kernel/qeventdispatcher_glib.cpp:412
#85 0xb625aed5 in QGuiEventDispatcherGlib::processEvents (this=0x98e38c8,
flags=...)
    at kernel/qguieventdispatcher_glib.cpp:204
#86 0xb6c52ae9 in QEventLoop::processEvents (this=0xbf987454, flags=DWARF-2
expression error: DW_OP_reg operations must be used either alone or in
conjuction with DW_OP_piece or DW_OP_bit_piece.
) at kernel/qeventloop.cpp:149
#87 0xb6c52f3a in QEventLoop::exec (this=0xbf987454, flags=...) at
kernel/qeventloop.cpp:201
#88 0xb6c5816f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#89 0xb619c667 in QApplication::exec () at kernel/qapplication.cpp:3581
#90 0x0804b472 in main (argc=1, argv=0xbf987714) at
../../../kontact/src/main.cpp:224

Detached kontact from gdb and did Menu: File -> Quit.  This time kontact didn't
crash when shutting down.

This time, the file existed and has the correct, modified value.

Started kontact and switched to the Calendar view.  The event appears at the
correct time without being caught in a loop.

Changed view to "Mail" view and selected "Check Mail" button.  Kontact/kmail
was able to update the dimap account without any problem.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list