Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Dec 2003 11:30:40 +0100 (CET)
From:      Michal Mertl <mime@traveller.cz>
To:        Jonathan Lennox <lennox@cs.columbia.edu>
Cc:        freebsd-current@freebsd.org
Subject:   Re: file descriptor leak in 5.2-RC
Message-ID:  <20031219112603.O37433@prg.traveller.cz>
In-Reply-To: <16354.794.607812.829319@cnr.cs.columbia.edu>
References:  <20031217110353.U94352@prg.traveller.cz> <16354.794.607812.829319@cnr.cs.columbia.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 18 Dec 2003, Jonathan Lennox wrote:
> Michal Mertl writes:
> > For several weeks now I see my -current (now RELENG_5_2 to help test the
> > release) machine seems to be leaking file descriptors. After some time all
> > files (up to kern.maxfiles) are consumed.
>
> Do you have any statically-linked programs that use pthreads?  There's a FD
> leak in gethostbyname(3) in multithreaded programs (actually, in the uthread
> wrapper for kevent(2), but gethostbyname(3) is the most common reason you'd
> see it) which was fixed in -CURRENT for programs linked with libc_r.so, but
> not for those linked with libc_r.a.

I'm afraid this is different. When your program terminates the descriptors
are freed. You found a bug but it's not that serious as what I'm seeing -
even when I go to single-user I see large openfiles.

>
> See PR bin/58687 <http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/58687>.
> This has a patch available.
>
> --
> Jonathan Lennox
> lennox at cs dot columbia dot edu
>

-- 
Michal Mertl



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031219112603.O37433>