From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 18 04:13:35 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0DC231065670 for ; Mon, 18 Jan 2010 04:13:35 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-iw0-f177.google.com (mail-iw0-f177.google.com [209.85.223.177]) by mx1.freebsd.org (Postfix) with ESMTP id BEDF38FC19 for ; Mon, 18 Jan 2010 04:13:34 +0000 (UTC) Received: by iwn7 with SMTP id 7so1833740iwn.7 for ; Sun, 17 Jan 2010 20:13:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:cc :subject:in-reply-to:message-id:references:user-agent :x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; bh=oIbJqXqICSOpV7JTxFzW0TvTE+qnxL2chJKqT66X+ds=; b=M7hkuk5bL27uLX1ahmq9BIX/hYfQNuEQ+LPKZhY4EAQrN04K17nAvD8UjhnWq56ew/ O4O4MHJqFvXH6X5bfD5fsvR49Xx/vUwG5WNhRFaBadGR9GAyhaNnO8a8jReEDerxnFa9 f7EeAROx+3CxMmhRmw02ckTToH4Q3S4b+LRUg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; b=q1U7MOCGxw5ZMnlScdIVfxqAwV7+CfPTMRzI0Jt64yI/1rg0whHuAodjgIEdli7Vpn 3PQSd3aJs5Q9dJcpcLe30zNnDLi1cOqWiZTFv1ojZ7Ibdz50R3gN5Q0B5HihHKdilFOv FyzQFz3173HI0Myk/EQ9oFN3nc2tWnY+K/2gY= Received: by 10.231.167.204 with SMTP id r12mr4013049iby.31.1263788013727; Sun, 17 Jan 2010 20:13:33 -0800 (PST) Received: from ppp-22.250.dialinfree.com (ppp-22.250.dialinfree.com [209.172.22.250]) by mx.google.com with ESMTPS id 21sm4124031iwn.14.2010.01.17.20.13.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 17 Jan 2010 20:13:32 -0800 (PST) Sender: "J. Hellenthal" Date: Sun, 17 Jan 2010 23:13:19 -0500 From: jhell To: "Julian H. Stacey" In-Reply-To: <201001180107.o0I17jbS088321@fire.js.berklix.net> Message-ID: References: <201001180107.o0I17jbS088321@fire.js.berklix.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Cc: 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: Mon, 18 Jan 2010 04:13:35 -0000 On Sun, 17 Jan 2010 20:07, jhs@ 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 > I could put X users in another group, & reduce limits, per > man login.conf ... RESOURCE LIMITS > suggestions of values welcome. > > Yes 7.1 is old, thats my screen server, till I complete local builds of > 7.2 & 8.0 on other boxes., then I'll upgrade, but I'll still want firefox > though I see firefox is still troublesome eg > uname -r # 8.0-RELEASE > cd /usr/ports/www/firefox/Makefile ; make > make # ===> firefox-2.0.0.20_9,1 is forbidden: > too many security issues > cd ../firefox3 ; make # is OK, & runs on 8.0 i686, but on > amd64 fails with > GLib-WARNING **: g_set_prgname() called multiple times > so I'm pausing for perspective, comment invited :-) > > Cheers, > Julian Is it a possibility for you to add something like this to your ~/.login_conf me:\ :umask=027:\ :lang=C:\ :charset=en_US.ISO8859-1:\ :coredumpsize=0 Of course, adjust accordingly. Maybe you could just run it in a different class that you can setup globally in your login.conf as well so you do not have to turn off core dumps for your user entirely. At least you wont have the core dumps but this may not exactly be what you are looking for. Best of luck. -- jhell