threads/121343: pthread_cond_wait hanging in libthr

David Xu davidxu at FreeBSD.org
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 FreeBSD.org>
To: Josh Carroll <josh.carroll at gmail.com>
Cc: freebsd-gnats-submit at FreeBSD.org
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