Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Apr 2009 02:45:21 -0400
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        Jonathan Chen <jonc@chen.org.nz>
Cc:        freebsd-gnome@freebsd.org
Subject:   Re: console-kit-daemon leaking file descriptors?
Message-ID:  <1240123521.1354.27.camel@shumai.marcuscom.com>
In-Reply-To: <20090419063220.GA99153@osiris.chen.org.nz>
References:  <20090418105855.GA61453@osiris.chen.org.nz> <1240080177.18976.63.camel@shumai.marcuscom.com> <20090418204411.GA73963@osiris.chen.org.nz> <1240092470.18976.80.camel@shumai.marcuscom.com> <20090418233629.GA89603@osiris.chen.org.nz> <1240109972.1354.6.camel@shumai.marcuscom.com> <20090419063220.GA99153@osiris.chen.org.nz>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-VsLL+s6G3y06nLWaKvno
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Sun, 2009-04-19 at 18:32 +1200, Jonathan Chen wrote:
> On Sat, Apr 18, 2009 at 10:59:32PM -0400, Joe Marcus Clarke wrote:
> > On Sun, 2009-04-19 at 11:36 +1200, Jonathan Chen wrote:
> > > On Sat, Apr 18, 2009 at 06:07:50PM -0400, Joe Marcus Clarke wrote:
> > > > On Sun, 2009-04-19 at 08:44 +1200, Jonathan Chen wrote:
> > > > > On Sat, Apr 18, 2009 at 02:42:57PM -0400, Joe Marcus Clarke wrote=
:
> > > > > > On Sat, 2009-04-18 at 22:58 +1200, Jonathan Chen wrote:
> > > > > > > Hi,
> > > > > > >=20
> > > > > > > I'm running consolekit-0.3.0_6, and I'm seeing a file descrip=
tor leak
> > > > > > > on /dev/null. A "fstat -p pid" on console-kit-daemon on my
> > > > > > > machine reveals that inode 7 (ie: /dev/null) has been opened =
with "r"
> > > > > > > 1000+ times after a week or so of uptime.
> > > > > > >=20
> > > > > > > Is anyone else seeing this?
> > > > > >=20
> > > > > > No.  After a day and half of uptime, I have stdin, stdout, and =
stderr
> > > > > > open to /dev/null, plus one additional /dev/null on FD 4.  If t=
here was
> > > > > > a linear leak, I should have /dev/null open over 100 times by n=
ow.  Can
> > > > > > you reliably reproduce this leak on your system?
> > > > >=20
> > > > > I've killed console-kit-daemon, and when it automatically restart=
s after
> > > > > a gdm login, I see the output below. 36 read-opens on /dev/null s=
o
> > > > > far - which looks pretty suspicious. I'm running 7.1-STABLE FreeB=
SD
> > > > > as of "Apr 3 08:10:13 NZDT 2009".
> > > >=20
> > > > Does this patch fix the problem?
> > > >=20
> > > > http://www.marcuscom.com/downloads/patch-src_ck-sysdeps-freebsd.c
> > >=20
> > > Yes! Thanks heaps!
> >=20
> > Then that means you have a deeper problem.  Most likely you do not have
> > procfs mounted on /proc.  The console or /var/log/messages should have
> > warnings.
>=20
> Hmm. Yes it does. I wasn't aware that GNOME required procfs mounted.

It's in the general GNOME FAQ and HAL FAQ.  You definitely need procfs
mounted.

Joe

--=20
PGP Key : http://www.marcuscom.com/pgp.asc

--=-VsLL+s6G3y06nLWaKvno
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEABECAAYFAknqyH8ACgkQb2iPiv4Uz4cktwCfWnPMeefJiQt8JQKxqGz4e+Zt
teYAn0rP7ADQF5OkuK4NM/K83TseeQkn
=l6WJ
-----END PGP SIGNATURE-----

--=-VsLL+s6G3y06nLWaKvno--




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