[R] Trouble compiling R-1.3.0 under Tru64

Brad McNeney mcneney at cs.sfu.ca
Tue Jun 26 22:46:23 CEST 2001


Just a follow-up to the part about make check failing when you build with
cc and f77:

> BTW, before I did all this, I also tried to build R using cc as C compiler
> with some optimization options. Last year, I had problems with cc and R,
> as reported in (if I remember correctly) PR#551. I figured I might give it
> another try, especially given the new garbage collector in 1.2.0. I failed
> to reproduce the problem I had back then, something that may be a good
> sign, to this build also didn't pass make check. Between the builds, I
> cleared everything by removing source directory and re-extracting from
> tar.
> 

I'm getting the same thing. It dies in a call to the function
draw.sample.cell defined in base-Ex.R, specifically at the line
   text(2*c, -r, string, vfont=c(typeface, fontindex), cex=1.5)

>From gdb it looks like the function GVText in vfonts.c (in the src/main
directory) is calling itself over and over until running out of memory:

Program received signal SIGSEGV, Segmentation fault.
0x12012631c in Rf_GVText (x=Cannot access memory at address 0x11f7ffff8.
) at vfonts.c:86

(gdb) up
#1  0x120126398 in Rf_GVText (x=6.7951783804802162, y=7.1803429085253221, 
    unit=13, s=0x141222120 "a", typeface=0, fontindex=1, x_justify=0.5, 
    y_justify=NaN(0x7a2), rotation=0, dd=0x1411da000) at vfonts.c:93
(gdb) up
#2  0x120126398 in Rf_GVText (x=6.7951783804802162, y=7.1803429085253221, 
    unit=13, s=0x141222120 "a", typeface=0, fontindex=1, x_justify=0.5, 
    y_justify=NaN(0x7a2), rotation=0, dd=0x1411da000) at vfonts.c:93

... and so on. 

>From vfonts.c the definition of GVText is:

void GVText (double x, double y, int unit, char *s, 
	     int typeface, int fontindex,
	     double x_justify, double y_justify, double rotation,
	     DevDesc *dd)
{
    if(!initialized) vfonts_Init();
    if(initialized > 0)
	(*ptr_GVText)(x, y, unit, s, typeface, fontindex, 
		      x_justify, y_justify, rotation, dd);
    else
	error("Hershey fonts cannot be loaded");
}

and 

(gdb) p (*ptr_GVText)
$1 = {void *()} 0x120126310 <Rf_GVText>

hence the infinite recursion. Can anyone tell me what was intended here
for ptr_GVText? 

Brad

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