--===============1728946960== Content-Type: multipart/signed; boundary="nextPart2414293.rqUyNivrLb"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart2414293.rqUyNivrLb Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, since KDE 4.5 beta1 (before I used 4.4.3) I see that kmail frequently (ever= y few minutes) starts to use 100% CPU for a minute or so. I attached with gdb and got the following bt: #0 0xb3b551eb in clock_gettime () from /lib/librt.so.1 #1 0xb5c75ffc in qt_gettime () at kernel/qcore_unix.cpp:111 #2 0xb5c7b446 in QTimerInfoList::updateCurrentTime (this=3D0x809c83c) at k= ernel/qeventdispatcher_unix.cpp:340 #3 0xb5c7d085 in QTimerInfoList::registerTimer (this=3D0x809c83c, timerId= =3D16777237, interval=3D0, object=3D0x95bf6e8) at kernel/qeventdispatcher_unix.cpp:476 #4 0xb5c78f9c in QEventDispatcherGlib::registerTimer (this=3D0x82c7480, ti= merId=3D16777237, interval=3D0, object=3D0x95bf6e8) at kernel/qeventdispatcher_glib.cpp:513 #5 0xb5c3d761 in QAbstractEventDispatcher::registerTimer (this=3D0x82c7480= , interval=3D0, object=3D0x95bf6e8) at kernel/qabstracteventdispatcher.cpp:312 #6 0xb5c5c98c in QObject::startTimer (this=3D0xbf8ecb68, interval=3D-12799= 42668) at kernel/qobject.cpp:1630 #7 0xb5c683ce in QTimer::start (this=3D0x95bf6e8) at kernel/qtimer.cpp:215 #8 0xb5250714 in KIO::ConnectedSlaveQueue::startRunnableJobs (this=3D0x95b= f6d8) at /usr/src/debug/kdelibs-4.4.85/kio/kio/scheduler.cpp:331 #9 0xb5250af6 in KIO::ConnectedSlaveQueue::qt_metacall (this=3D0x95bf6d8, = _c=3DQMetaObject::InvokeMetaMethod, _id=3D4, _a=3D 0xbf8ecdec) at /usr/src/debug/kdelibs-4.4.85/build/kio/scheduler_p.moc:= 131 #10 0xb5c5199d in QMetaObject::metacall (object=3D0x95bf6d8, cl=3D321380644= 0, idx=3D4, argv=3D0xbf8ecdec) at kernel/qmetaobject.cpp:237 #11 0xb5c60bb0 in QMetaObject::activate (sender=3D0x95bf6e8, m=3D0xb5d645a4= , local_signal_index=3D0, argv=3D0x0) at kernel/qobject.cpp:3287 #12 0xb5cb4cc5 in QTimer::timeout (this=3D0x95bf6e8) at .moc/release-shared= /moc_qtimer.cpp:134 Checking with strace, I see that during normal operation the poll() call ha= s a large timeout value (last arg), e.g. poll([{fd=3D3, events=3DPOLLIN}, {fd=3D9, events=3DPOLLIN}, {fd=3D8, events= =3DPOLLIN}, {fd=3D10, events=3DPOLLIN}, {fd=3D5, events=3DPOLLIN}, {fd=3D12= , events=3DPOLLIN}, {fd=3D18, events=3DPOLLIN}], 7, 5283) =3D 0 (Timeout) But when kmail goes wild, the timeout value of poll() is 0 leading to a bus= y loop: poll([{fd=3D3, events=3DPOLLIN}, {fd=3D9, events=3DPOLLIN}, {fd=3D8, events= =3DPOLLIN}, {fd=3D10, events=3DPOLLIN}, {fd=3D5, events=3DPOLLIN}, {fd=3D12= , events=3DPOLLIN}, {fd=3D18, events=3DPOLLIN}, {fd=3D11, events=3DPOLLIN}]= , 8, 0) =3D 0 (Timeout) read(8, 0x80a2ae8, 4096) =3D -1 EAGAIN (Resource temporarily= unavailable) clock_gettime(CLOCK_MONOTONIC, {2964649, 636195762}) =3D 0 clock_gettime(CLOCK_MONOTONIC, {2964649, 636222721}) =3D 0 Immediately before that, I see in strace something like the start of a job = which checks for mail, e.g. socket(PF_FILE, SOCK_STREAM, 0) =3D 11 bind(11, {sa_family=3DAF_FILE, path=3D"/tmp/ksocket-koller/kmailv28750.slav= e-socket"}, 47) =3D 0 listen(11, 5) =3D 0 =2E.. writev(5, [{"l\1\0\1\26\0\0\0'\6\0\0\207\0\0\0\1\1o\0\25\0\0\0/org/fre"...,= 152}, {"\21\0\0\0org.kde.klauncher\0", 22}], 2) =3D 174 So now the question is: where does that poll() come from and where to fix t= hat timeout ? Any ideas ? As I do not see any kmail code in the bt, I assume it's some KDE global pro= blem or kmail using a KDE functionality in the wrong way. =2D-=20 Best regards/Sch=F6ne Gr=FC=DFe Martin () ascii ribbon campaign - against html e-mail=20 /\ www.asciiribbon.org - against proprietary attachments Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at --nextPart2414293.rqUyNivrLb Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) iD8DBQBMEkXEHmdPoI37D4YRAv+hAKDFldM4E6773XJz/7/5BG5SV5ZcLQCfVzWK Rsfpl7WiyspCIXaadreR87U= =ItfG -----END PGP SIGNATURE----- --nextPart2414293.rqUyNivrLb-- --===============1728946960== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ KDE PIM mailing list kde-pim@kde.org https://mail.kde.org/mailman/listinfo/kde-pim KDE PIM home page at http://pim.kde.org/ --===============1728946960==--