From p.dalgaard@biostat.ku.dk  Wed Apr 19 22:55:58 2000
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 19 Apr 2000 23:55:58 +0200
Subject: [Rd] R CMD check seg fault in Linux
In-Reply-To: Paul Gilbert's message of "Wed, 19 Apr 2000 17:10:49 -0400"
References: <38FE20D9.E83527F9@bank-banque-canada.ca>
Message-ID: <x2ya69kb69.fsf@blueberry.kubism.ku.dk>

Paul Gilbert <pgilbert@bank-banque-canada.ca> writes:

> For some of my packages I am getting a segmentation fault in Linux when
> I use R CMD check. (Using R 1.0.1) The segmentation fault does not
> happen in Solaris and in some cases it does not happen in Linux if I set
> R_NSIZE and R_VSIZE much higher than I need in Solaris. Should I expect
> a segmentation fault if there is not enough memory for R CMD check, or
> are these unrelated?

It's certainly not the intention to give segfaults for that reason...

However, the same pattern could occur from PROTECT errors in your C
code, triggered by a garbage collection at just the wrong moment
(which could be different on different OSs). 

You should rerun the relevant testscript under "R -d gdb" and see
exactly where the segfault occurs.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] R CMD check seg fault in Linux
Peter Dalgaard BSA