<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>175981</bug_id>
          
          <creation_ts>2008-11-24 14:21:40 +0000</creation_ts>
          <short_desc>Random crash KMail / IMAP</short_desc>
          <delta_ts>2009-03-19 00:35:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kmail</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Gentoo Packages</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>175584</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Simon">yodayado</reporter>
          <assigned_to name="kdepim bugs">pim-bugs-null</assigned_to>
          <cc>jtamate</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>670052</commentid>
    <comment_count>0</comment_count>
    <who name="Simon">yodayado</who>
    <bug_when>2008-11-24 14:21:40 +0000</bug_when>
    <thetext>Version:            (using KDE 4.1.3)
Compiler:          gcc (Gentoo 4.3.2 p1.0) 4.3.2 
OS:                Linux
Installed from:    Gentoo Packages

I experience reandom crash with kmail while doing nothing (I can leave the computer an find a crashed kmail when I come back).

I seems an loop is iterating after the end of a QVector

Console messages :

kmail(17143) KMail::PopAccount::slotJobFinished: stage == Quit
kmail(17143) KMail::PopAccount::saveUidList:
kmail(17143)/kio (KIOJob) KIO::Job::doKill: this= KIO::TransferJob(0x9fddcb0) KIO::TransferJob
kmail(17143) KMail::NetworkAccount::setCheckingMail: connections to server &quot;81.91.64.63&quot; now 0
kmail(17143) KMail::AccountManager::processNextCheck: processNextCheck, remaining 0
kmail(17143) KMail::AccountManager::processNextCheck: account &quot;Cythos&quot;  finished check
kmail(17143)/kio (KIOJob) KIO::SlaveInterface::dispatch: error  114   &quot;pop.tele2.fr: Unknown error&quot;
kmail(17143) KMail::PopAccount::processRemainingQueuedMessages:
kmail(17143) KMail::PopAccount::saveUidList:
kmail(17143) KMail::PopAccount::slotJobFinished: stage == Quit
kmail(17143) KMail::PopAccount::saveUidList:
kmail(17143)/kio (KIOJob) KIO::Job::doKill: this= KIO::TransferJob(0xa093388) KIO::TransferJob
kmail(17143) KMail::NetworkAccount::setCheckingMail: connections to server &quot;pop.tele2.fr&quot; now 0
kmail(17143) KMail::AccountManager::processNextCheck: processNextCheck, remaining 0
kmail(17143) KMail::AccountManager::processNextCheck: account &quot;Tele2&quot;  finished check
kmail(17143) KMFolderImap::slotCheckValidityResult: Of: &quot;INBOX&quot;
kmail(17143) KMFolderImap::reallyGetFolder: &quot;&quot;
kmail(17143) KMFolderImap::reallyGetFolder: listDir KUrl(&quot;imap://me@imap.myserver.net:143/INBOX/;SECTION=UID FLAGS&quot;) KIO::ListJob(0xa6f2780)
kmail(17143) KMFolderImap::slotListFolderResult: KIO::ListJob(0xa6f2780) 0
kmail(17143) KMFolderImap::slotListFolderResult: &quot;INBOX&quot;  download KUrl(&quot;imap://me@imap.myserver.net:143/INBOX/;UID=3130:3130;SECTION=ENVELOPE&quot;)
kmail(17143) KMFolderImap::getMessagesResult: KIO::TransferJob(0x98aae38) 0 true
kmail(17143) KMFolderImap::finishMailCheck: &quot;INBOX&quot;  finishMailCheck getMessage 3
kmail(17143) KMail::NetworkAccount::setCheckingMail: connections to server &quot;imap.laposte.net&quot; now 0
kmail(17143) KMail::AccountManager::processNextCheck: processNextCheck, remaining 0
kmail(17143) KMail::AccountManager::processNextCheck: account &quot;La Poste&quot;  finished check
kmail(17143) KMail::ImapJob::slotGetMessageResult: Retrieved part &quot;&quot;
kmail(17143) KMFolderImap::slotCheckValidityResult: Of: &quot;INBOX&quot;
kmail(17143) KMFolderImap::reallyGetFolder: &quot;&quot;
kmail(17143) KMFolderImap::reallyGetFolder: listDir KUrl(&quot;imap://me@imap.myserver.fr:143/INBOX/;SECTION=UID FLAGS&quot;) KIO::ListJob(0xa1032b8)
kmail(17143)/kio (KIOJob) KIO::SlaveInterface::dispatch: error  111   &quot;INBOX.Envoy�s&quot;
kmail(17143) KMFolderImap::slotListNamespaces:
kmail(17143) KMFolderImap::slotListFolderResult: KIO::ListJob(0xa1032b8) 0
kmail(17143) KMFolderImap::slotListFolderResult: &quot;INBOX&quot;  download KUrl(&quot;imap://me@imap.myserver.fr:143/INBOX/;UID=28231:28236;SECTION=ENVELOPE&quot;)
kmail(17143) KMail::ImapJob::slotGetMessageResult: Retrieved part &quot;&quot;
ASSERT failure in QVector&lt;T&gt;::operator[]: &quot;index out of range&quot;, file /usr/include/qt4/QtCore/qvector.h, line 331
*** KMail got signal 6 (Crashing)
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kmail path = &lt;unknown&gt; pid = 17143
sock_file=/home/simon/.kde4/socket-yoda/kdeinit4__0


----

Backtrace :

Application : KMail (kmail), signal SIGABRT
Using host libthread_db library &quot;/lib/libthread_db.so.1&quot;.
[Thread debugging using libthread_db enabled]
[New Thread 0xb488d6d0 (LWP 17143)]
[New Thread 0xb177cb90 (LWP 17369)]
[KCrash handler]
#6  0xb8038424 in __kernel_vsyscall ()
#7  0xb67ab45e in raise () from /lib/libc.so.6
#8  0xb68dfff4 in ?? () from /lib/libc.so.6
#9  0xbf854820 in ?? ()
#10 0xb67acfa8 in abort () from /lib/libc.so.6
#11 0xb68dfff4 in ?? () from /lib/libc.so.6
#12 0xbf8547c8 in ?? ()
#13 0xb67ef983 in ?? () from /lib/libc.so.6
#14 0xbf8547bc in ?? ()
#15 0xbf854880 in ?? ()
#16 0xbf85687e in ?? ()
#17 0xb67bffcb in vfprintf () from /lib/libc.so.6
#18 0xb7e521ee in qFatal () from /usr/lib/qt4/libQtCore.so.4
#19 0xb7e5223d in qt_assert_x () from /usr/lib/qt4/libQtCore.so.4
#20 0xb78dee93 in QVector&lt;KMMsgBase*&gt;::operator[] (this=0x9824040, i=-1)
    at /usr/include/qt4/QtCore/qvector.h:331
#21 0xb7910250 in KMFolderImap::take (this=0x9823ff0, idx=-1)
    at /var/tmp/portage_tmpfs/portage/kde-base/kmail-4.1.3/work/kmail-4.1.3/kmail/kmfolderimap.cpp:603
#22 0xb7864621 in KMFolder::take (this=0x97e67c0, idx=-1)
    at /var/tmp/portage_tmpfs/portage/kde-base/kmail-4.1.3/work/kmail-4.1.3/kmail/kmfolder.cpp:404
#23 0xb78ac7d4 in KMFilterMgr::endFiltering (this=0x985aff8, 
    msgBase=0xa0a4e20)
    at /var/tmp/portage_tmpfs/portage/kde-base/kmail-4.1.3/work/kmail-4.1.3/kmail/kmfiltermgr.cpp:132
#24 0xb78ad069 in KMFilterMgr::process (this=0x985aff8, msg=0xa0a4e20, 
    set=KMFilterMgr::Inbound, account=true, accountId=1056523421)
    at /var/tmp/portage_tmpfs/portage/kde-base/kmail-4.1.3/work/kmail-4.1.3/kmail/kmfiltermgr.cpp:258
#25 0xb78f3a82 in KMAcctImap::slotFilterMsg (this=0x9849d88, msg=0xa0a4e20)
    at /var/tmp/portage_tmpfs/portage/kde-base/kmail-4.1.3/work/kmail-4.1.3/kmail/kmacctimap.cpp:604
#26 0xb78f4e78 in KMAcctImap::qt_metacall (this=0x9849d88, 
    _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0xbf856b00)
    at /var/tmp/portage_tmpfs/portage/kde-base/kmail-4.1.3/work/kmail_build/kmail/kmacctimap.moc:88
#27 0xb7f630e5 in QMetaObject::activate () from /usr/lib/qt4/libQtCore.so.4
#28 0xb7f650a9 in QMetaObject::activate () from /usr/lib/qt4/libQtCore.so.4
#29 0xb7a06986 in KMail::FolderJob::messageRetrieved (this=0xa366bb0, 
    _t1=0xa0a4e20)
    at /var/tmp/portage_tmpfs/portage/kde-base/kmail-4.1.3/work/kmail_build/kmail/folderjob.moc:97
#30 0xb7a0f810 in KMail::ImapJob::slotGetMessageResult (this=0xa366bb0, 
    job=0x9fc4b80)
    at /var/tmp/portage_tmpfs/portage/kde-base/kmail-4.1.3/work/kmail-4.1.3/kmail/imapjob.cpp:460
#31 0xb7a1027e in KMail::ImapJob::qt_metacall (this=0xa366bb0, 
    _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbf856c90)
    at /var/tmp/portage_tmpfs/portage/kde-base/kmail-4.1.3/work/kmail_build/kmail/imapjob.moc:81
#32 0xb7f630e5 in QMetaObject::activate () from /usr/lib/qt4/libQtCore.so.4
#33 0xb7f650a9 in QMetaObject::activate () from /usr/lib/qt4/libQtCore.so.4
#34 0xb7d1ccfc in KJob::result (this=0x9fc4b80, _t1=0x9fc4b80)
    at /var/tmp/portage/kde-base/kdelibs-4.1.3-r1/work/kdelibs_build/kdecore/kjob.moc:186
#35 0xb7d1d171 in KJob::emitResult (this=0x9fc4b80)
    at /var/tmp/portage/kde-base/kdelibs-4.1.3-r1/work/kdelibs-4.1.3/kdecore/jobs/kjob.cpp:290
#36 0xb5882edb in KIO::SimpleJob::slotFinished (this=0x9fc4b80)
    at /var/tmp/portage/kde-base/kdelibs-4.1.3-r1/work/kdelibs-4.1.3/kio/kio/job.cpp:498
#37 0xb5883283 in KIO::TransferJob::slotFinished (this=0x9fc4b80)
    at /var/tmp/portage/kde-base/kdelibs-4.1.3-r1/work/kdelibs-4.1.3/kio/kio/job.cpp:967
#38 0xb588964f in KIO::TransferJob::qt_metacall (this=0x9fc4b80, 
    _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0xbf856ed8)
    at /var/tmp/portage/kde-base/kdelibs-4.1.3-r1/work/kdelibs_build/kio/jobclasses.moc:336
#39 0xb7f630e5 in QMetaObject::activate () from /usr/lib/qt4/libQtCore.so.4
#40 0xb7f650a9 in QMetaObject::activate () from /usr/lib/qt4/libQtCore.so.4
#41 0xb591a46e in KIO::SlaveInterface::finished (this=0x9fe1ba0)
    at /var/tmp/portage/kde-base/kdelibs-4.1.3-r1/work/kdelibs_build/kio/slaveinterface.moc:161
#42 0xb591c02a in KIO::SlaveInterface::dispatch (this=0x9fe1ba0, _cmd=104, 
    rawdata=@0xbf857034)
    at /var/tmp/portage/kde-base/kdelibs-4.1.3-r1/work/kdelibs-4.1.3/kio/kio/slaveinterface.cpp:175
#43 0xb591ca31 in KIO::SlaveInterface::dispatch (this=0x9fe1ba0)
    at /var/tmp/portage/kde-base/kdelibs-4.1.3-r1/work/kdelibs-4.1.3/kio/kio/slaveinterface.cpp:90
#44 0xb59103b2 in KIO::Slave::gotInput (this=0x9fe1ba0)
    at /var/tmp/portage/kde-base/kdelibs-4.1.3-r1/work/kdelibs-4.1.3/kio/kio/slave.cpp:322
#45 0xb591164a in KIO::Slave::qt_metacall (this=0x9fe1ba0, 
    _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbf857158)
    at /var/tmp/portage/kde-base/kdelibs-4.1.3-r1/work/kdelibs_build/kio/slave.moc:75
#46 0xb7f630e5 in QMetaObject::activate () from /usr/lib/qt4/libQtCore.so.4
#47 0xb7f650a9 in QMetaObject::activate () from /usr/lib/qt4/libQtCore.so.4
#48 0xb5858e50 in KIO::Connection::readyRead (this=0x9fde028)
    at /var/tmp/portage/kde-base/kdelibs-4.1.3-r1/work/kdelibs_build/kio/connection.moc:84
#49 0xb5859a69 in KIO::ConnectionPrivate::dequeue (this=0x97e6608)
    at /var/tmp/portage/kde-base/kdelibs-4.1.3-r1/work/kdelibs-4.1.3/kio/kio/connection.cpp:82
#50 0xb585a95d in KIO::Connection::qt_metacall (this=0x9fde028, 
    _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xa41af70)
    at /var/tmp/portage/kde-base/kdelibs-4.1.3-r1/work/kdelibs_build/kio/connection.moc:72
#51 0xb7f5b41d in QMetaCallEvent::placeMetaCall ()
   from /usr/lib/qt4/libQtCore.so.4
#52 0xb7f5ccad in QObject::event () from /usr/lib/qt4/libQtCore.so.4
#53 0xb6b14a4b in QApplicationPrivate::notify_helper ()
   from /usr/lib/qt4/libQtGui.so.4
#54 0xb6b1c3e7 in QApplication::notify () from /usr/lib/qt4/libQtGui.so.4
#55 0xb7479e5b in KApplication::notify (this=0xbf857968, receiver=0x9fde028, 
    event=0xa419158)
    at /var/tmp/portage/kde-base/kdelibs-4.1.3-r1/work/kdelibs-4.1.3/kdeui/kernel/kapplication.cpp:311
#56 0xb7f4ceca in QCoreApplication::notifyInternal ()
   from /usr/lib/qt4/libQtCore.so.4
#57 0xb7f4ddb9 in QCoreApplicationPrivate::sendPostedEvents ()
   from /usr/lib/qt4/libQtCore.so.4
#58 0xb7f4e026 in QCoreApplication::sendPostedEvents ()
   from /usr/lib/qt4/libQtCore.so.4
#59 0xb7f7818b in ?? () from /usr/lib/qt4/libQtCore.so.4
#60 0xb66c24f7 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#0  0xb8038424 in __kernel_vsyscall ()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>670986</commentid>
    <comment_count>1</comment_count>
    <who name="Jaime Torres">jtamate</who>
    <bug_when>2008-11-26 12:51:24 +0000</bug_when>
    <thetext>I&apos;m not sure, but this looks like a dup of bug 175584</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>671072</commentid>
    <comment_count>2</comment_count>
    <who name="Simon">yodayado</who>
    <bug_when>2008-11-26 17:19:44 +0000</bug_when>
    <thetext>Yes, after a look on both backtrace, it seems it is a dup.

Note that it no more happens to me. I think it disapear when I removed some mails in which there was one with weird characters in its subject (utf8/iso). I don&apos;t know if it is related.

In both bug, the crash seems to happen when filters are applied (ok, it is obvious when looking in the backtrace).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>671489</commentid>
    <comment_count>3</comment_count>
    <who name="Thomas McGuire">mcguire</who>
    <bug_when>2008-11-27 17:31:36 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 175584 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>