[Rd] segmentation fault with GCC 3.0.2

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
07 Nov 2001 20:11:30 +0100


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

> I have now tested R 1.3.1 compiled with GCC 3.0.2 on Solaris and the example I
> previously posted (repeated below) still gives a segmentation fault, as it does
> with GCC 3.0.1 but not with 2.95.2. The eigen calculation sometimes needs to be
> repeated several times before the segmentation fault occurs. La.eigen does not
> cause a problem. (The problem occurred with R-devel too, but I have not tested
> that with GCC 3.0.2.)
> 
> One potential problem is that when I configure or make R there are some
> inappropriate libraries being picked up. I am not certain where to look or what
> to look for, but further below I have copied my guess of the appropriate parts
> from configure and make outputs. The only warning is about clock skew (the time
> on the file server is not very well synchronized with my machine), but I have
> never known this to cause a serious problem.
> 
> Any help would be appreciated.

I don't know if it helps, but I see it too... 3.0.1 on Solaris 2.7.

gdb says that it is happening at l.2144 of eigen.f:

2142    C
2143                DO 760 J = M, EN
2144                   RA = RA + H(I,J) * H(J,NA)
2145                   SA = SA + H(I,J) * H(J,EN)
2146      760       CONTINUE
2147    C

J prints as 7289784 for me, which looks a bit weird since M and EN are
17 and 18 respectively. However, optimizers sometimes cause this sort
of thing.

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