Skip to content

core dump on 0.64.2 SPARC/Solaris 2.6 in eigen (PR#223)

3 messages · Douglas Bates, Thomas Lumley, Peter Dalgaard

#
..
R is now configured for sparc-sun-solaris2.6

  Source directory:         .
  Installation directory:   /unsup/R-0.64.2
  C compiler:               gcc -g -O2
  FORTRAN compiler:         g77 -O2
  Gnome support:            no

$ gcc --version
egcs-2.91.66
$ g77 --version
GNU Fortran 0.5.24-19981002

"make check" later fails.  The failure is in the test of the eigen()
function.  The specific example is:
Segmentation Fault - core dumped

--please do not edit the information below--

Version:
 platform = sparc-sun-solaris2.6
 arch = sparc
 os = solaris2.6
 system = sparc, solaris2.6
 status = 
 status.rev = 0
 major = 0
 minor = 64.2
 year = 1999
 month = July
 day = 3
 language = R

Search Path:
 .GlobalEnv, Autoloads, package:base

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Fri, 9 Jul 1999 bates@stat.wisc.edu wrote:

            
I don't have this problem under Solaris 2.7 using gcc and Sun Workshop f77

wompom% gcc --version
2.8.1
wompom% f77 -V
f77: WorkShop Compilers 4.2 30 Oct 1996 FORTRAN 77 4.2
$values
[1] 5 1 0

$vectors
           [,1]  [,2]       [,3]
[1,] -0.8246211 -1.25 -0.9701425
[2,] -0.8246211 -0.25  0.2425356
[3,] -0.8246211  0.75  0.2425356


Thomas Lumley
Assistant Professor, Biostatistics
University of Washington, Seattle

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Thomas Lumley <thomas@biostat.washington.edu> writes:
This is very likely the same trouble that I just spent some time
analyzing with Vin Everett on Sparc Linux (RedHat 6.0). We traced it
to something that looks suspiciously like a compiler error. I actually
considered asking around if anyone used same egcs version on Solaris,
but though "nah, probably not"....

Doug, could you 

- recompile eigen.o with -g 
- run it with -d gdb
- see if the crash resembles the one below

...
Program received signal SIGSEGV, Segmentation fault.
hqr2_ (nm=0x1, n=0x70d99fc8, low=0xefffed94, igh=0xefffed90,
h=0x70d99f80,
    wr=0x70d99f68, wi=0x70d99f50, z=0x70d99f00, ierr=0x70d99ed0)
    at eigen.f:2120
2120                   RA = RA + H(I,J) * H(J,NA)
Current language:  auto; currently fortran
(gdb) p j
$1 = 0
(gdb) p na
$2 = 0
(gdb) p en
$3 = 3
(gdb) p n
$4 = (PTR TO -> ( integer )) 0x70d99fc8
(gdb) p nm
$5 = (PTR TO -> ( integer )) 0x1