Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jun 2004 15:29:18 -0400
From:      Brian Feldman <green@freebsd.org>
To:        Stefan Ehmann <shoesoft@gmx.net>
Cc:        current@freebsd.org
Subject:   Re: esd leaking file descriptors
Message-ID:  <20040607192918.GA20308@green.homeunix.org>
In-Reply-To: <1086633425.1020.15.camel@taxman>
References:  <1086511629.1509.13.camel@taxman> <20040607172431.GA19790@green.homeunix.org> <1086633425.1020.15.camel@taxman>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 07, 2004 at 08:37:05PM +0200, Stefan Ehmann wrote:
> On Mon, 2004-06-07 at 19:24, Brian Feldman wrote:
> > On Sun, Jun 06, 2004 at 10:47:09AM +0200, Stefan Ehmann wrote:
> > > When i run mpg321 -o esd foo.mp3 (or any other player that uses esd as
> > > output) lsof shows an increasing number of open files. It increases at a
> > > rate of about 50 files per second. System will run out of file
> > > descriptor eventually.
> > > 
> > Check if esd is encountering exceptional conditions with the ktrace
> > facility.  You will wnat to run esd with ktrace(1) and then use
> > kdump(1) to view the log of system calls.  The other PC probably
> > also doesn't have the same hardware, so it's not so easy to see if
> > it's just a bug in -CURRENT.
> 
> I just tried a kernel from June, 1st: esd doesn't leak any file
> descriptors. So it's definitely a CURRENT problem.
> 
> I couldn't spot anything suspicous using ktrace (That is no notable
> difference compared to the other machine).
> 
> Here are two excerpts from kdump output that basically repeat all the
> time:

I see a lot of accept(2) there... I think it's a good possibility
Robert accidentally broke accept[1]()'s error cleanup.  It seems
that the file is dropped but the fd is left sitting around in a
half-allocated state.  Many of those 'goto done;'s should be
'goto noconnection;'s, I believe.

-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green@FreeBSD.org                               \  The Power to Serve! \
 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\



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