From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 19 23:09:31 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 E5AB31065692 for ; Tue, 19 Jan 2010 23:09:30 +0000 (UTC) (envelope-from dougb@dougbarton.us) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id 8F6D28FC13 for ; Tue, 19 Jan 2010 23:09:30 +0000 (UTC) Received: (qmail 9833 invoked by uid 399); 19 Jan 2010 22:42:49 -0000 Received: from localhost (HELO ?10.71.6.27?) (127.0.0.1) by localhost with ESMTPM; 19 Jan 2010 22:42:49 -0000 X-Originating-IP: 127.0.0.1 References: <201001192154.o0JLs4oS070881@lurza.secnetix.de> Message-Id: From: Doug Barton To: Oliver Fromme In-Reply-To: <201001192154.o0JLs4oS070881@lurza.secnetix.de> Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable X-Mailer: iPhone Mail (7D11) Mime-Version: 1.0 (iPhone Mail 7D11) Date: Tue, 19 Jan 2010 14:42:31 -0800 X-Mailman-Approved-At: Tue, 19 Jan 2010 23:13:21 +0000 Cc: "rick-freebsd2009@kiwi-computer.com" , "jhs@berklix.com" , Doug Barton , "freebsd-hackers@FreeBSD.org" 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 23:09:31 -0000 No offense was implied, thus the smiley. ;) Doug Sent from my iPhone On Jan 19, 2010, at 1:54 PM, Oliver Fromme =20 wrote: > > 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, & =20= >>>>>> 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 >>>>> >>>>> Sorry I don't have a solution to your actual problem, but a =20 >>>>> better way >>>>> to deal with this is to do: ln -s /dev/null ~/firefox-bin.core >>>> >>>> I think not generating a core dump at all is better than >>>> writing 4 GB to /dev/null. >>> >>> 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 =20 >>> ways a >>> given thing is started. >> >> What about just adding the limit command to the /usr/local/bin/=20 >> firefox >> script? That would guarantee any instantiation of firefox wouldn't =20= >> dump >> core. > > Many users probably don't want any core dumps at all, so > disabling them completely would be the best and easiest > solution for them. This can be done globally (either with > the sysctl or via /etc/login.conf) or per-user via > ~/.login_conf. Then you don't have to track down the > ways a given thing is started. > >>> B) If we're going to be snarky, it would be far better if it =20 >>> didn't need >>> to dump core in the first place. :) >> >> I don't think that Oliver was at all snarky. > > The word "snarky" isn't even in my dictionary, so I can > only guess what it means. > > Anyway, my suggestion was meant to be completely serious, > without any irony or other undertone. I'm not a native > English speaker, so maybe my words expressed a meaning > that wasn't intended. In that case please allow me to > apologize. > >> But I agree that it would be nice to prevent ffox from segfaulting; > > Definitely. I agree, too. However, that's a lot more > difficult than preventing core dumps being written. > >> unfortunately this is one of those apps which segfaults a lot (for =20= >> me at >> least). =3D) > > One of the reasons why I prefer Opera. :) > > Best regards > Oliver > > --=20 > Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing =20= > b. M. > Handelsregister: Registergericht Muenchen, HRA 74606, Gesch=C3=A4ftsfue= h=20 > rung: > secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht =20= > M=C3=BCn- > chen, HRB 125758, Gesch=C3=A4ftsf=C3=BChrer: Maik Bachmann, Olaf Erb, = Ralf Ge=20 > bhart > > FreeBSD-Dienstleistungen, -Produkte und mehr: = http://www.secnetix.de/bsd > > "C++ is over-complicated nonsense. And Bjorn Shoestrap's book > a danger to public health. I tried reading it once, I was in > recovery for months." > -- Cliff Sarginson >