[R] Segmentation fault with expression on linux

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Mon Dec 18 12:21:26 CET 2000


Thomas Petzoldt <petzoldt at Rcs1.urz.tu-dresden.de> writes:

> I have a problem, that the plot of mathematical formula sometimes
> crashes R on Linux (SuSE 6.2 and 7.0 on a Dual PIII/500 machine with 1GB
> RAM). The problem occurs for example in demo("graphics"), i.e. in the
> last part were the mathematical symbols are plotted.
> 
> There are several circumstances to reproduce this segmentation fault,
> but the following is one of the most simple examples. The first two
> text() functions do well, but a combination of the two will crash the
> system. The problem persists from R 0.99, 1.1.1 and (recently) with 1.2,
> but it works fine on Windows (1.1.1).
> 
> #----------------------------------------
> #The example:
> #----------------------------------------
> 
> plot(c(0,1),c(0,1),type="n")
> text(0.5,0.7,expression(y == e^-frac(x,y)))      # o.k.
> readline("press return")
> text(0.5,0.6,expression(y == frac(x,sigma)))     # o.k.
> readline("press return")
> text(0.5,0.5,expression(y == e^-frac(x,sigma)))  #segmentation fault
> #----------------------------------------
> 
> Any idea?

I can't reproduce this with 1.2.0, nor 1.1.1 on RedHat6.2. Could you
please try running it with R -d gdb until the point of crash and show
us a backtrace?

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