[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
Mon Dec 28 05:53:48 GMT 2009


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





--- Comment #62 from  <honda math sci hokudai ac jp>  2009-12-28 06:53:44 ---
For me, a fix in 4.3.4 completely solve the problem. However I doubt if some
racing conditions exist. In fact, before the fix, the order is
mSlave->kill() -> mSlave = NULL -> disconnectSlave(mSlave),
after the fix,
disconnectSlave(mSlave) -> mSlave->kill() -> mSlave = NULL.

The problem here is that all the other routines in kmail 
determines their behaviors by checking if mSlave is NULL.
So before mSlave becoming null, there is a slightly
big period where a race occures. 
Therefore it might be better to make mSlave NULL first!, I think.

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