From owner-freebsd-bugs@FreeBSD.ORG Thu Oct 30 06:30:13 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB45D16A4CE for ; Thu, 30 Oct 2003 06:30:13 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 50D0E43FE1 for ; Thu, 30 Oct 2003 06:30:13 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h9UEUDFY076283 for ; Thu, 30 Oct 2003 06:30:13 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h9UEUC8B076282; Thu, 30 Oct 2003 06:30:13 -0800 (PST) (envelope-from gnats) Date: Thu, 30 Oct 2003 06:30:13 -0800 (PST) Message-Id: <200310301430.h9UEUC8B076282@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Jonathan Lennox Subject: Re: bin/58687: gethostbyname leaks kqueue file descriptors with pthreads and static linking X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jonathan Lennox List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2003 14:30:13 -0000 The following reply was made to PR bin/58687; it has been noted by GNATS. From: Jonathan Lennox To: Kris Kennaway Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: bin/58687: gethostbyname leaks kqueue file descriptors with pthreads and static linking Date: Thu, 30 Oct 2003 09:20:06 -0500 On Thursday, October 30 2003, Kris Kennaway wrote: > On Wed, Oct 29, 2003 at 11:31:45AM -0500, Jonathan Lennox wrote: > > > In -CURRENT, this problem does not occur if you use dynamic libc and libc_r, > > though it does in 5.1-RELEASE. > > I'm confused..are you saying the problem does not exist in -CURRENT, > or it still does in restricted circumstances? In -CURRENT it exists in restricted circumstances -- i.e. it only occurs if you're using a static libc and libc_r, because of the -pg or -static flags to gcc. In 5.1-RELEASE it occurs any time you're using libc_r. This was fixed by mp@FreeBSD.org with a patch on 2003-07-25, but the fix doesn't work for the static library case. My patch extends mp's fix so it covers the static library case as well.