|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
Firefox/Chrome Core dumps
I'm trying to mitigate core dumps that occur with either multiple tabs or when my viewing history enlarges.
For example this series of photographs from iceland reliably produces a core-dump at about 16-18 pictures. The photos are stunning by the way. Iceland Photos I went through the photos a second time periodically "df'ing" my /tmp folder to see if I was running out of space. Firefox is set to "never remember history" I'm running amd64, 5.5 release with up to date core patches and M:tier package updates. The system uses radeon graphics and has 4GB of ram. Any suggestions to avoid the core dumps would be appreciated. |
|
|||
Did you try using gdb ? https://developer.mozilla.org/en-US/...zilla_with_gdb
|
|
||||
Quote:
ref: login.conf(5), the ulimit command in ksh(1), or the limit command in csh(1). |
|
|||
Thanks
Quote:
Quote:
Code:
The default values # To alter the default authentication types change the line: # :tc=auth-defaults:\ # to be read something like: (enables passwd, "myauth", and activ) # :auth=passwd,myauth,activ:\ # Any value changed in the daemon class should be reset in default # class. # default:\ :path=/usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin /usr/local/bin /usr/local/sbin:\ :umask=022:\ :datasize-max=2048M:\ :datasize-cur=2048M:\ :maxproc-max=256:\ :maxproc-cur=128:\ :openfiles-cur=512:\ :stacksize-cur=4M:\ :localcipher=blowfish,6:\ :ypcipher=old:\ :tc=auth-defaults:\ :tc=auth-ftp-defaults: One thing I am unclear on is what is are reasonable datasize values for todays web content. The other thing I can add is that the hard drive generates some noise that stops the instant that firefox-esr crashes. The same hard drive noise sequence also occurs with chrome core dumps. I can hear the same noise with routine data transfers that are not associated with core dumps Code:
PooBear$ ulimit unlimited Last edited by shep; 21st August 2014 at 09:27 AM. |
|
|||
Quote:
That's the wrong one. What you actually want is $ ulimit -d So try something like this as a script (this is actually what chromium does): Code:
#!/bin/sh DATASIZE="1048576" if [ $(ulimit -Sd) -lt ${DATASIZE} ]; then ulimit -Sd ${DATASIZE} || \ xm_log "Cannot increase datasize-cur to at least ${DATASIZE}" [ $? -eq 0 ] || exit fi exec /usr/local/bin/firefox Code:
$ ulimit -d 1048576 $ firefox |
|
|||
Quote:
Code:
ulimit -a Quote:
Do I need to generate an executable script setting datasize prior for each running instance of firefox-esr even though I have set a higher limit as default in /etc/login.conf? |
|
|||
Quote:
If you make a mistake with a script, no big deal. If you make a mistake with login.conf, that could be quite problematic. |
|
|||
The core dumps were with the increased datasize. I was not sure that the defaults were being utilized by the firefox-esr window but if they are then I may need to look at other ways the problem could be addressed.
I failed to mention earlier that I also get occasional core dumps with the mutt email client. My sense is the dumps occur when mutt calls getmail to fetch a number of emails, say around 10. After the pop emails have been retrived a prompt to continue appears. When I hit any key to continue the hard drive sounds off and mutt crashes. On restarting mutt the emails are listed and intact. Mutt only crashes when calling another program, ie getmail, xpdf or firefox-esr as listed my mailcap and only when the file content is large. Is there are way to check the limits on a running instance of firefox-esr? If this is the solution I will generate executable scripts in my home directory for firefox-esr, chrome and mutt as best practice. Last edited by shep; 21st August 2014 at 02:00 AM. |
|
|||
Quote:
You can crib my script to run any program. Just change DATASIZE and the final exec line to match what you need. ~/bin is by default the first item in your PATH. So it's a safe place to put such things. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Chrome only future for Flash on Linux | J65nko | News | 7 | 24th February 2012 12:53 AM |
wine installing firefox, chrome | maxrussell | General software and network | 3 | 7th December 2009 03:32 AM |
SLiM core dumps | marc | OpenBSD Packages and Ports | 7 | 31st October 2009 06:47 PM |
Google Chrome browser | drhowarddrfine | General software and network | 63 | 15th September 2008 11:09 PM |
Upgrading firefox to firefox 3 -keeping plugins+bookmarks | kasse | FreeBSD Ports and Packages | 11 | 5th July 2008 01:34 PM |