Skip to content

segmentation fault

7 messages · Jan_Svatos@eurotel.cz, Agustin Lobo, Brian Ripley

#
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:
or just
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.

Jan
-------------------------------------------------
designed for _monospaced_ font
-------------------------------------------------
/- Jan Svatos,              Sokolovska 855/225 -/
/- Data Analyst,            Prague 9           -/
/- Eurotel Praha            190 00             -/
/- jan_svatos at eurotel.cz    Czechia            -/
-------------------------------------------------





                                                                                                                          
                    Agustin Lobo                                                                                          
                    <alobo at ija.csic.es>         Komu:   r-help <r-help at stat.math.ethz.ch>                                 
                    Odeslal:                    Kopie:                                                                    
                    owner-r-help at stat.ma        P?edm?t:     [R] segmentation fault                                       
                    th.ethz.ch                                                                                            
                                                                                                                          
                                                                                                                          
                    07/24/01 10:10 AM                                                                                     
                                                                                                                          
                                                                                                                          




I'm experiencing segmentation faults from time to time
that abruptely end my R sesion. In such cases, is there
any way to recover the work done? (i.e., is there
any temporal file that I could use?)

Thanks

Agus

Dr. Agustin Lobo
Instituto de Ciencias de la Tierra (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona SPAIN
tel 34 93409 5410
fax 34 93411 0012
alobo at ija.csic.es


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._._




-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Tue, 24 Jul 2001 Jan_Svatos at eurotel.cz wrote:

            
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.
#
The R-Intro guide states:

"In addition, there are options for controlling the memory available to
the R process (see
the on-line help for topic `Memory' for more information)."

But cannot find any entry for Memory or memory in
the R help system. Are there any advices for starting
R with particular options for working with large objects and/or
long for (or lapply) loops?

Thanks

Agus

Dr. Agustin Lobo
Instituto de Ciencias de la Tierra (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona SPAIN
tel 34 93409 5410
fax 34 93411 0012
alobo at ija.csic.es


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Hi!

How can I start R restoring data from a file
different than .RData ?

I've tried 

R --restore file

and does not work.

Also, if I start R as

R --no-restore

is it possible to restore an R file
from within R? 

Thanks

Agus

Dr. Agustin Lobo
Instituto de Ciencias de la Tierra (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona SPAIN
tel 34 93409 5410
fax 34 93411 0012
alobo at ija.csic.es


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Tue, 24 Jul 2001, Agustin Lobo wrote:

            
(Well, it does not work under Linux: it does under Windows, to allow
drag-and-drop, and may one day elsewhere.)
See ?load for an example.
#
On Tue, 24 Jul 2001, Agustin Lobo wrote:

            
If ?Memory fails, your version of R is broken.  That is where the advice is
(and generally it is to leave well alone unless you need to limit the
memory usage or you are on Windows).  So you need to correct your
installation of R, it seems.
#
On Tue, 24 Jul 2001, Prof Brian D Ripley wrote:

            
After the segfault, I restarted R and had some strange behaviour
(i.e., could not find anything for ?Memory). I've restarted the
machine and it seems to work. 

I'm pretty sure the segfaults are due to my machine. I'm
geting another one sometime (hopefully) soon. If the same behaviour
goes on with the new machine, I'll fill the bug report.

Agus

 

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._