Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Dec 2003 14:28:25 +0100 (CET)
From:      Michal Mertl <mime@traveller.cz>
To:        Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc:        Kris Kennaway <kris@obsecurity.org>
Subject:   Re: file descriptor leak in 5.2-RC 
Message-ID:  <20031223140614.S5800@prg.traveller.cz>
In-Reply-To: <20031221002102.G48443@prg.traveller.cz>
References:  <21370.1071952691@critter.freebsd.dk> <20031221002102.G48443@prg.traveller.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 21 Dec 2003, Michal Mertl wrote:
> On Sat, 20 Dec 2003, Poul-Henning Kamp wrote:
> > In message <Pine.NEB.3.96L.1031220105954.46326Q-100000@fledge.watson.org>, Robe
> > rt Watson writes:
> >
> > >[...] so if we actually have a leak,
> > >fstat(8) should show a small number of files, but the sysctl
> > >kern.openfiles should reveal a large number of files open.
> >
> > sysctl kern.malloc | grep "file desc" ?
> >
>
> I'l try to reproduce the problem here at home and send the info.
> Otherwise it will have to wait till monday when I'm at work.

Sorry for the late answer - I was unable to reproduce the problem at home
and even at work it takes some time before it's obviously visible.

Now, after ~25hours, I see it again. Fstat and lsof in single-user really
only show small number of files (these of fstat, sh and init) yet
kern.openfiles was 729. Output of "sysctl kern.malloc | grep 'file desc'"
is "file desc    47    12K     29K     6801  256". I've got all sysctl -a
saved if anything from it might give another clue.

I forced panic from the DDB so I've got coredump if needed.

I think it's mozilla (and libkse) what's causing this. It seems to happen
after many pages are loaded (I leave the computer running when I leave on
https page which reloads every minute). At home I tried with self
refreshing local page without SSL and the problem didn't occur.


-- 
Michal Mertl



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