[R] segmentation fault

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Jul 24 12:13:11 CEST 2001

On Tue, 24 Jul 2001 Jan_Svatos at eurotel.cz wrote:

> Hi,
> I had experienced some segmentation faults ("SIGSEGV" on Linux) on my Linux
> RH 7.0
> box at home, I know and use one, not very clever way:
> >save.image(file="foo")
> or just
> >save.image() # to .RData
> often enough to prevent loss of large part of work.
> Probably the R veterans will give you better advice, but this method was OK
> for me.

It is more or less the only way.  When there is a segfault, nothing is
saved automatically.

1) Do not rely on saving your workspace in R, but keep enough information
to reproduce objects as needed.  Old-timers expected segfaults frequently
(but see below).

2) Segfaults are bugs.  If you are not linking in compiled code, they are
bugs in one of R, any contributed packages or your OS, so please report
them as described in the FAQ.  However, given your OS is RH7.0, the third
of those possibilities is not unlikely.  On a reliable OS, segfaults in R
should be rather rare: apart from using package foreign (where a couplke
of errors have been corrected recently) I have not seen one for a couple
of months at least.

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list