[Bug 199375] Kontact/kmail crash during exit (QListData::shared_null, qDeleteAll<QList<KIO::Slave*>, ProtocolInfo, Scheduler related)

honda at math.sci.hokudai.ac.jp honda at math.sci.hokudai.ac.jp
Sun Nov 1 17:21:43 GMT 2009


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


honda at math.sci.hokudai.ac.jp changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |honda at math.sci.hokudai.ac.j
                   |                            |p




--- Comment #30 from  <honda math sci hokudai ac jp>  2009-11-01 18:21:34 ---
I have the same bug, and have found the reason.
The reason is as follows:
In the middle of the function killAllJobs() (in kmaacctimap.cpp),
if the following code were excuted
  if (mSlave && mapJobData.begin() != mapJobData.end())
  {
    mSlave->kill(); 
    mSlave = 0;
   }
then the last portion of this function
 if ( disconnectSlave && slave() ) {
    KIO::Scheduler::disconnectSlave( slave() );
    mSlave = 0;
  }
is not executed because of slave() == NULL.
This implies that slave() is never disconnected, which
causes crashes in the kio scheduler when kmail exists.
If you fix it so that slave() is disconnected, then the crash goes away,
at least, in my case.

-- 
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