[Libreoffice] gdb: info mutex

Michael Stahl mstahl at redhat.com
Tue Oct 18 03:44:58 PDT 2011


have just found a great python command for GDB by Tom Tromey called 
"info mutex":

http://www.cygwin.com/ml/archer/2010-q3/msg00024.html

looks very helpful for debugging a deadlock:

> (gdb) info mutex
> Mutex 0x264fbb0:
> *  Owned by thread 25481
>    Thread 27391
>
> Mutex 0xbd4370:
>    Owned by thread 27391
> *  Thread 25481
>
> Threads not waiting for a lock:
>    Thread 25499
>    Thread 25504
>    Thread 25505
>    Thread 25535
>    Thread 25536
>    Thread 27620

the original script didn't run for me, but with a trivial tweak it does 
(attached).

regards,
  michael
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gdbcmd.py
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20111018/c845852c/attachment.ksh>


More information about the LibreOffice mailing list