The following code crashes the interpreter on my Powerbook:

ruby -r mathn -e 'p((-1/2)**3)'


The stack trace starts

rogram received signal EXC_BAD_ACCESS, Could not access memory.
0x00083210 in saveFP ()
(gdb) bt
#0  0x00083210 in saveFP ()
#1  0x00006c94 in rb_eval (self=5, n=0x23da04) at eval.c:2347
#2  0x00007128 in rb_eval (self=5, n=0x23da04) at eval.c:2453
#3  0x0000d904 in rb_call0 (klass=0, recv=0, id=3220711552, oid=0, 
argc=56708, argv=0x0, body=0x0, nosuper=2349612) at eval.c:4876
#4  0x0000dd84 in rb_call (klass=2458232, recv=5, mid=9631, argc=1, 
argv=0xbff828c0, scope=0) at eval.c:4965
#5  0x00008914 in rb_eval (self=5, n=0x23da04) at ruby.h:620
#6  0x0000d904 in rb_call0 (klass=0, recv=0, id=3220717424, oid=0, 
argc=56708, argv=0x0, body=0x0, nosuper=2349612) at eval.c:4876
#7  0x0000dd84 in rb_call (klass=2458232, recv=5, mid=9631, argc=1, 
argv=0xbff83fb0, scope=0) at eval.c:4965
#8  0x00008914 in rb_eval (self=5, n=0x23da04) at ruby.h:620
#9  0x0000d904 in rb_call0 (klass=0, recv=0, id=3220723296, oid=0, 
argc=56708, argv=0x0, body=0x0, nosuper=2349612) at eval.c:4876


This is with ruby 1.8.0 (2003-04-27) [powerpc-darwin6.4]

configure:1575: gcc --version </dev/null >&5
gcc (GCC) 3.1 20020420 (prerelease)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR 
PURPOSE.

configure:1578: $? = 0
configure:1580: gcc -v </dev/null >&5
Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
Thread model: posix
Apple Computer, Inc. GCC version 1175, based on gcc version 3.1 20020420 
(prerel
ease)
configure:1583: $? = 0



Cheers


Dave