I don't use these two myself, but: valgrind, and clang annotations.  Also
some locking primitives include code that can be turned on in debugging
mode to alert that a lock is taken twice.

I on't have any specific examples (all the ones I know of are on the inside
of the black hole).

I found this and a few other potentially useful links after using the
public interface to the black hole for "detecting deadlocks gcc" though :)
http://kloobok.com/index.php?option=com_content&view=article&id=115&Itemid=167

On 18 January 2012 22:36, Erik de Castro Lopo <mle+s...@mega-nerd.com>wrote:

> Hi all,
>
> I have a trivial little C program using pthreads that deadlocks.
>
> What do people use to find deadlocks?
>
> Erik
> --
> ----------------------------------------------------------------------
> Erik de Castro Lopo
> http://www.mega-nerd.com/
> _______________________________________________
> coders mailing list
> coders@slug.org.au
> http://lists.slug.org.au/listinfo/coders
>
_______________________________________________
coders mailing list
coders@slug.org.au
http://lists.slug.org.au/listinfo/coders

Reply via email to