bates@stat.wisc.edu
1999-Jul-09 20:23 UTC
core dump on 0.64.2 SPARC/Solaris 2.6 in eigen (PR#223)
.. 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:> eigen(cbind( 1,3:1,1:3))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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Thomas Lumley
1999-Jul-09 20:32 UTC
core dump on 0.64.2 SPARC/Solaris 2.6 in eigen (PR#223)
On Fri, 9 Jul 1999 bates@stat.wisc.edu wrote:> .. > 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-19981002I 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> eigen(cbind( 1,3:1,1:3))$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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
ripley@stats.ox.ac.uk
1999-Jul-11 07:56 UTC
core dump on 0.64.2 SPARC/Solaris 2.6 in eigen (PR#223)
On 10 Jul 1999, Peter Dalgaard BSA wrote:> Thomas Lumley <thomas@biostat.washington.edu> writes: > > > On Fri, 9 Jul 1999 bates@stat.wisc.edu wrote: > > > > > .. > > > 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 > > > > I don't have this problem under Solaris 2.7 using gcc and Sun Workshop f77 > > > > 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"....I do (see PLATFORMS) but unfortunately did my pre-tests of 0.64.2 at home, using egcs 1.1. That works fine, so I suspect a compiler bug. Brian -- Brian D. Ripley, ripley@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
ripley@stats.ox.ac.uk
1999-Jul-11 15:31 UTC
core dump on 0.64.2 SPARC/Solaris 2.6 in eigen (PR#223)
On 10 Jul 1999, Peter Dalgaard BSA wrote:> > On Fri, 9 Jul 1999 bates@stat.wisc.edu wrote: > > > > > .. > > > 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(Why is the default to have -g for C but not Fortran? That has puzzled me before now. At least for gcc/g77 we could be consistent.)> > > Gnome support: no > > > > > > $ gcc --version > > > egcs-2.91.66 > > > $ g77 --version > > > GNU Fortran 0.5.24-19981002 > > 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"....Solaris 2.6 Same gcc and g77 as above (egcs-1.1.2) I get the same behaviour if eigen.f is compiled with -O2, but not if it is compiled without optimization, nor if it is compiled with egcs-1.1 (and -O2) nor if it is compiled with SunPro SC4.x f77.> Doug, could you > > - recompile eigen.o with -g > - run it with -d gdb > - see if the crash resembles the one below > > ... > > eigen(cbind(-1,c(1:2,0),0:2)) # complex values > > 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 )) 0x1Does for me (modulo addresses, of course). The remedy (as usual) seems to be not to optimize when compiling eigen.f under egcs-1.1.2. Brian -- Brian D. Ripley, ripley@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>>>>> ripley writes:> On 10 Jul 1999, Peter Dalgaard BSA wrote: >> > On Fri, 9 Jul 1999 bates@stat.wisc.edu wrote: >> > >> > > .. >> > > 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> (Why is the default to have -g for C but not Fortran? That has puzzled me > before now. At least for gcc/g77 we could be consistent.)Simply an omission. Autoconf does almost everything for the C compiler and basically nothing for the Fortran compiler. R_PROG_F77 now sets FFLAGS to "-g -O2" for g77 unless FFLAGS is already set.> The remedy (as usual) seems to be not to optimize when compiling eigen.f > under egcs-1.1.2.Should we special-case this into configure? -k -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._