[Qt-interest] how to debug a deadlock

Matthias Pospiech matthias.pospiech at gmx.de
Wed Jul 14 13:48:33 CEST 2010


Matthias Pospiech schrieb:
> ...
> Now my idea was to use a
> QMutexLocker  locker( &mutex );
>
> in every function sending commands with the dll.
>
> This however leads to an immediate deadlock. QtCreator however does not 
> show where this deadlock happend.
> Now I wonder how to debug this?
>   
By putting a breakpoint at every locker (20+) I found the reason 
(calling a function with locking from a locked function).
However I still wonder if it would be possible to get to know otherwise 
in which line the deadlock was caused.

Matthias



More information about the Qt-interest-old mailing list