From owner-freebsd-threads@FreeBSD.ORG Tue Mar 4 08:50:02 2008 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A77131065673 for ; Tue, 4 Mar 2008 08:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A4BEF8FC22 for ; Tue, 4 Mar 2008 08:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m248o2tS034160 for ; Tue, 4 Mar 2008 08:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m248o2g8034159; Tue, 4 Mar 2008 08:50:02 GMT (envelope-from gnats) Date: Tue, 4 Mar 2008 08:50:02 GMT Message-Id: <200803040850.m248o2g8034159@freefall.freebsd.org> To: freebsd-threads@FreeBSD.org From: David Xu Cc: Subject: Re: threads/121343: pthread_cond_wait hanging in libthr X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: David Xu List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Mar 2008 08:50:02 -0000 The following reply was made to PR threads/121343; it has been noted by GNATS. From: David Xu To: Josh Carroll Cc: freebsd-gnats-submit@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 ...