[Rd] R CMD check seg fault in Linux
Peter Dalgaard BSA
19 Apr 2000 23:55:58 +0200
Paul Gilbert <firstname.lastname@example.org> 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
~~~~~~~~~~ - (email@example.com) 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: firstname.lastname@example.org