limits for run away Firefox ?
Fabian Keil
freebsd-listen at fabiankeil.de
Tue Jan 19 21:50:34 UTC 2010
"Rick C. Petty" <rick-freebsd2009 at kiwi-computer.com> 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
> > > >
> > > > 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
> > >
> > > 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 ways a
> > given thing is started.
>
> 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. :)
>
> 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.
>
> 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).
>
> 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). =)
I get a lot less segfaults since I disabled ogg support (which never
worked for me anyway): about:config -> media.ogg.enabled = false
Fabian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20100119/820cbaf8/signature.pgp
More information about the freebsd-hackers
mailing list