Re: [R] segmentation fault

About this list Date view Thread view Subject view Author view Attachment view

From: Prof Brian Ripley (ripley@stats.ox.ac.uk)
Date: Tue 24 Jul 2001 - 20:13:11 EST


Message-id: <Pine.LNX.4.31.0107241107420.17510-100000@gannet.stats>

On Tue, 24 Jul 2001 Jan_Svatos@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@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@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Wed 10 Mar 2004 - 08:18:21 EST