Multiple QRegExp crashes when multithreading in KRunner

Aaron J. Seigo aseigo at kde.org
Thu Jan 13 23:08:06 GMT 2011


On Thursday, January 13, 2011, Thiago Macieira wrote:
> On Thursday, 13 de January de 2011 22:43:28 Matthias Fuchs wrote:
> > Hi,
> > 
> > There are some crashes related to QRegExp and multithreading, so they
> > appear when using KRunner.
> 
> There should be no crashes related to QRegExp and threading since Qt 4.4.
> If you find something, it's usually because you used the same QRegExp
> object to conduct searches at the same time.

yes, that's exactly what's happening :) Matthias already fixed one krunner 
plugin that was doing this, but not he's faced with the 
Nepomuk::Query::QueryParser bits.

as it is internal to Nepomuk and it is using static members internal to the 
library (meaning krunner or any other app can't just use a "different Nepomuk 
object") QThreadStorage seems the easiest solution here.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20110113/e57ed2d5/attachment.sig>


More information about the kde-core-devel mailing list