From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 19 21:50:34 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B8299106566C for ; Tue, 19 Jan 2010 21:50:34 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay01.ispgateway.de (smtprelay01.ispgateway.de [80.67.29.23]) by mx1.freebsd.org (Postfix) with ESMTP id 4B0588FC23 for ; Tue, 19 Jan 2010 21:50:33 +0000 (UTC) Received: from [78.34.165.227] (helo=r500.local) by smtprelay01.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1NXLy3-0006v1-Vl for freebsd-hackers@freebsd.org; Tue, 19 Jan 2010 22:50:32 +0100 Date: Tue, 19 Jan 2010 22:51:02 +0100 From: Fabian Keil To: freebsd-hackers@freebsd.org Message-ID: <20100119225102.2c4197ce@r500.local> In-Reply-To: <20100119201351.GA76360@keira.kiwi-computer.com> References: <201001181929.o0IJT5IZ001218@lurza.secnetix.de> <4B54C3C7.5040904@FreeBSD.org> <20100119201351.GA76360@keira.kiwi-computer.com> X-Mailer: Claws Mail 3.7.3 (GTK+ 2.18.5; amd64-portbld-freebsd9.0) X-PGP-KEY-URL: http://www.fabiankeil.de/gpg-keys/freebsd-listen-2008-08-18.asc Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/odZj0u8+V/g.u2hK49L_Wlb"; protocol="application/pgp-signature" X-Df-Sender: 775067 Subject: Re: limits for run away Firefox ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jan 2010 21:50:34 -0000 --Sig_/odZj0u8+V/g.u2hK49L_Wlb Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable "Rick C. Petty" wrote: > On Mon, Jan 18, 2010 at 12:25:43PM -0800, Doug Barton wrote: > > On 01/18/10 11:29, Oliver Fromme wrote: > > > Doug Barton wrote: > > > > On 01/17/10 17:07, Julian H. Stacey wrote: > > > > > Hi hackers > > > > > I'm tired of my X server occasionaly freezing, swap thrasing, & > > > > > firefox dumps: 4,346,937,344 ~/firefox-bin.core > > > > > so as a temporary cludge I ran > > > > > touch ~/firefox-bin.core ; chmod 000 ~/firefox-bin.core > > > >=20 > > > > Sorry I don't have a solution to your actual problem, but a > > > > better way to deal with this is to do: ln -s /dev/null > > > > ~/firefox-bin.core > > >=20 > > > I think not generating a core dump at all is better than > > > writing 4 GB to /dev/null. > >=20 > > A) The method I proposed is useful for other things too, and as you > > pointed out it can sometimes be difficult to track down all the ways a > > given thing is started. >=20 > What about just adding the limit command to the /usr/local/bin/firefox > script? That would guarantee any instantiation of firefox wouldn't dump > core. Until the next update ... > > B) If we're going to be snarky, it would be far better if it didn't > > need to dump core in the first place. :) >=20 > I don't think that Oliver was at all snarky. He was merely suggesting a > solution which would prevent the core file from being generated at all; > the OP was tired of the extra time spent and Oliver's suggestion would > certainly reduce this time. >=20 > The symlink seems to hackish to me, although I've had to use it often in > other situations. And in some cases the culprit would unlink(2) it > first, so I've had to "chflags noschg" it, which works better than > "chmod 000" (if the FS supports it). >=20 > But I agree that it would be nice to prevent ffox from segfaulting; > unfortunately this is one of those apps which segfaults a lot (for me at > least). =3D) I get a lot less segfaults since I disabled ogg support (which never worked for me anyway): about:config -> media.ogg.enabled =3D false Fabian --Sig_/odZj0u8+V/g.u2hK49L_Wlb Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAktWKU0ACgkQBYqIVf93VJ3jOQCgrhoQJwdKs5h6g9T03/gwVp3y aFUAniCez+5xEUIrUBnW39hFkgen95aJ =OK17 -----END PGP SIGNATURE----- --Sig_/odZj0u8+V/g.u2hK49L_Wlb--