[Nepomuk] [Kde-pim] nepomukqueryservice crash
David Faure
faure at kde.org
Mon Jul 9 13:48:30 UTC 2012
On Monday 09 July 2012 16:53:31 Vishesh Handa wrote:
> I don't think it's a threading problem cause m_initMutex is locked before
> deleting it, and before accessing it.
That doesn't help. MainModel::executeQuery gets a pointer to a ClientModel
inside the lock, and then return an iterator which keeps using that
ClientModel outside the lock (or its ClientConnection, more precisely).
So this opens the door for crashes, whenever the code that deletes the model
is run.
--
David Faure, faure at kde.org, http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. KDE Frameworks 5
More information about the Nepomuk
mailing list