Segmentation Fault running gmpbench

Mark Rodenkirch mrodenkirch@wi.rr.com
Thu, 13 Mar 2003 06:55:08 -0600


While running gmpbench, I got the following output:

***** GMPbench version 0.1 *****
Using default CFLAGS = "-O3 -fomit-frame-pointer"
Using default CC = "gcc"
Using default LIBS = "-lgmp"
Using compilation command: gcc -O3 -fomit-frame-pointer foo.c -o foo 
-lgmp
You may want to override CC, CFLAGS, and LIBS
Using gmp version: 4.1.2
Compiling benchmarks
   Category base
     Program multiply
       multiply 128 128
       GMPbench.base.multiply.128,128 result: 1186011
       multiply 512 512
       GMPbench.base.multiply.512,512 result: 137219
       multiply 8192 8192
       GMPbench.base.multiply.8192,8192 result: 1488
       multiply 131072 131072
       GMPbench.base.multiply.131072,131072 result: 27.3
       multiply 2097152 2097152
       GMPbench.base.multiply.2097152,2097152 result: 0.916
     GMPbench.base.multiply result: 1433.6
     Program divide
       divide 8192 32
       GMPbench.base.divide.8192,32 result: 65405
       divide 8192 64
       GMPbench.base.divide.8192,64 result: 36087
       divide 8192 128
       GMPbench.base.divide.8192,128 result: 17138
       divide 8192 4096
       GMPbench.base.divide.8192,4096 result: 2642
       divide 8192 8064
       GMPbench.base.divide.8192,8064 result: 32638
       divide 131072 8192
       GMPbench.base.divide.131072,8192 result: 56.4
       divide 131072 65536
       GMPbench.base.divide.131072,65536 result: 30.6
       divide 8388608 4194304
./runbench: line 116:  1048 Segmentation fault      ./$t $ta >RES-$t-$a
       GMPbench.base.divide.8388608,4194304 result:
  ^ syntax error
  ^ syntax error
     GMPbench.base.divide result:
  ^ syntax error
  ^ syntax error
   GMPbench.base result:
  ^ syntax error
   Category app
     Program rsa
       rsa 512
       GMPbench.app.rsa.512 result: 379
       rsa 1024
       GMPbench.app.rsa.1024 result: 59.4
       rsa 2048
       GMPbench.app.rsa.2048 result: 8.59
     GMPbench.app.rsa result: 57.828
   GMPbench.app result: 57.828
  ^ syntax error
  ^ syntax error
GMPbench result:

Does anyone have any idea what is causing the segmentation fault?  This 
is Mac OS 10.2.4 on G4-500.

--Mark