[Interest] Using valgrind to detect threading errors in qt5 code
Thiago Macieira
thiago.macieira at intel.com
Tue Apr 10 22:28:34 CEST 2012
On terça-feira, 10 de abril de 2012 21.44.49, Paul Floyd wrote:
> > As for Qt 5, since locking and unlocking is inlined into the user code,
> > valgrind might be completely unable to work.
>
> If the code is inline, then all I can think of would be to recognise the
> opcode sequence and proceed from there.
It's very hard to distinguish a "lock cmpxchg" sequence doing locking from the
same code sequence doing something else, like allocating a timer ID in the
lock-free QFreeList.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
Intel Sweden AB - Registration Number: 556189-6027
Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120410/3ce194ac/attachment.sig>
More information about the Interest
mailing list