From owner-freebsd-gnome@FreeBSD.ORG Sat Apr 18 22:07:56 2009 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC28A106566C for ; Sat, 18 Apr 2009 22:07:56 +0000 (UTC) (envelope-from marcus@marcuscom.com) Received: from creme-brulee.marcuscom.com (marcuscom-pt.tunnel.tserv1.fmt.ipv6.he.net [IPv6:2001:470:1f00:ffff::1279]) by mx1.freebsd.org (Postfix) with ESMTP id 80DC08FC0A for ; Sat, 18 Apr 2009 22:07:56 +0000 (UTC) (envelope-from marcus@marcuscom.com) Received: from [IPv6:2001:470:1f00:2464::4] (shumai.marcuscom.com [IPv6:2001:470:1f00:2464::4]) by creme-brulee.marcuscom.com (8.14.3/8.14.3) with ESMTP id n3IM8lOj012396; Sat, 18 Apr 2009 18:08:47 -0400 (EDT) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Jonathan Chen In-Reply-To: <20090418204411.GA73963@osiris.chen.org.nz> References: <20090418105855.GA61453@osiris.chen.org.nz> <1240080177.18976.63.camel@shumai.marcuscom.com> <20090418204411.GA73963@osiris.chen.org.nz> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-86Dz4cW/xswNaUlT946g" Organization: MarcusCom, Inc. Date: Sat, 18 Apr 2009 18:07:50 -0400 Message-Id: <1240092470.18976.80.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1.1 FreeBSD GNOME Team Port X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on creme-brulee.marcuscom.com Cc: freebsd-gnome@freebsd.org Subject: Re: console-kit-daemon leaking file descriptors? X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Apr 2009 22:07:57 -0000 --=-86Dz4cW/xswNaUlT946g Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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 descriptor 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 there was > > a linear leak, I should have /dev/null open over 100 times by now. Can > > you reliably reproduce this leak on your system? >=20 > I've killed console-kit-daemon, and when it automatically restarts after > a gdm login, I see the output below. 36 read-opens on /dev/null so > far - which looks pretty suspicious. I'm running 7.1-STABLE FreeBSD > as of "Apr 3 08:10:13 NZDT 2009". Does this patch fix the problem? http://www.marcuscom.com/downloads/patch-src_ck-sysdeps-freebsd.c Joe --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-86Dz4cW/xswNaUlT946g 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) iEYEABECAAYFAknqTzUACgkQb2iPiv4Uz4c2gACgmYukHeiwYSl44pXJOt0+0i1l kVUAoJ3qOUs1EeNWNB+C4D6qCeggVpDS =PuV8 -----END PGP SIGNATURE----- --=-86Dz4cW/xswNaUlT946g--