R-beta: R has underflows on sparc-redhat-linux

Jeff Johnson jbj at redhat.com
Mon Jul 27 17:01:59 CEST 1998


Hi --

I'm trying to package R for inclusion on some upcoming Red Hat
Powertools distribution. I have started with the 0.61 version
packaged by Martyn Plummer <plummer at iarc.fr> (Thanks Martyn!)
and have upgraded to 0.62-2. I have succeeded in running R demo's
on  i386-redhat-linux-gnu, and now I am also trying to get the
alpha and sparc versions working.

On sparc-redhat-linux, I'm seeing a SIGFPE with the following
stacktrace:

gdb /usr/lib/R/bin/R.binary
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-redhat-linux"...
(gdb) run
Starting program: /usr/lib/R/bin/R.binary 

R : Copyright 1998, The R Development Core Team
Version 0.62.2  (July 10, 1998)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type    "?license" or "?licence" for distribution details.

R is a collaborative project with many contributors.
Type    "?contributors" for a list.

Type    "demo()" for some demos, "help()" for on-line help, or
        "help.start()" for a HTML browser interface to help.


Program received signal SIGFPE, Arithmetic exception.
0xa0bac in machar (ibeta=0xefffef7c, it=0xefffef78, irnd=0xefffef74, 
    ngrd=0x200, machep=0xefffef6c, negep=0x0, iexp=0xefffef64, 
    minexp=0xefffef60, maxexp=0xefffef5c, eps=0xefffef50, epsneg=0xefffef48, 
    xmin=0xefffef40, xmax=0xefffef38) at machar.c:204
204                     z = y * y;
(gdb) where
#0  0xa0bac in machar (ibeta=0xefffef7c, it=0xefffef78, irnd=0xefffef74, 
    ngrd=0x200, machep=0xefffef6c, negep=0x0, iexp=0xefffef64, 
    minexp=0xefffef60, maxexp=0xefffef5c, eps=0xefffef50, epsneg=0xefffef48, 
    xmin=0xefffef40, xmax=0xefffef38) at machar.c:204
#1  0x1b89c in do_Machine (call=0x50550958, op=0x502d4a08, args=0x502cf008, 
    env=0x5055082c) at arithmetic.c:162
#2  0x48dd8 in do_internal (call=0xd9308, op=0x502d49e0, args=0x502cf008, 
    env=0x5055082c) at names.c:768
#3  0x39f5c in eval (e=0x502dbd80, rho=0x5055082c) at eval.c:156
#4  0x3a2ac in applyClosure (call=0x505507c8, op=0x502dbe0c, 
    arglist=0x502cf008, rho=0x502cf008, suppliedenv=0x502cf008) at eval.c:269
#5  0x39fd4 in eval (e=0x505507c8, rho=0x502cf008) at eval.c:165
#6  0x3b370 in do_set (call=0x50550804, op=0x502cf7c4, args=0x505507f0, 
    rho=0x502cf008) at eval.c:749
#7  0x39f5c in eval (e=0x50550804, rho=0x502cf008) at eval.c:156
#8  0x42648 in R_ReplFile (fp=0x105eb8, rho=0x502cf008, savestack=0, 
    browselevel=0) at main.c:169
#9  0x429a0 in R_LoadProfile (fp=0x105eb8) at main.c:317
#10 0x42b7c in mainloop () at main.c:407
#11 0x8b254 in main (ac=0, av=0xeffff4d4) at system.c:498
(gdb) p y
$1 = 7.4583407312002067e-155
(gdb) 

Although I understand what the cause of the problem is, I'm not sure
what the correct thing to do to enable underflow traps on sparc-redhat-linux.

In addition, I notice that the configure for R does not try and
compile with (on alpha) -mieee nor link with "-lieee -lm".  Is that
OK?

Please reply directly since I'm on *way* too many lists already :-)

TIA

73 de Jeff

-- 
Jeff Johnson	ARS N3NPQ
jbj at redhat.com (jbj at jbj.org RSN)
Chapel Hill, NC
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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