threads/121343: pthread_cond_wait hanging in libthr

David Xu davidxu at
Tue Mar 4 08:50:02 UTC 2008

The following reply was made to PR threads/121343; it has been noted by GNATS.

From: David Xu <davidxu at>
To: Josh Carroll <josh.carroll at>
Cc: freebsd-gnats-submit at
Subject: Re: threads/121343: pthread_cond_wait hanging in libthr
Date: Tue, 04 Mar 2008 16:42:33 +0800

 Josh Carroll wrote:
 >> Number:         121343
 > The call to ithread_cond_wait (#defined to pthread_cond_wait) hangs
 > indefinitely, causing ushare to never listen on the UPnP port. It only
 > does this when ushare is run with the -D option, indicating it should
 > daemonize. If I run it without -D, it works fine.
 > Here is the tail end of a truss of ushare when run with -D, at which
 > point it hangs and subsequently does not listen on the UPnP socket.
 Can you attach to the process and see all threads info and backtrace ?
 for example:
 gdb /usr/local/bin/ushare 13323
 (gdb) info threads

More information about the freebsd-threads mailing list