[gambit-list] Big number Bug?

Bradley Lucier lucier at math.purdue.edu
Wed Apr 25 21:42:52 EDT 2007


I hope you don' t mind me CC'ing my reply to th list.

On Apr 25, 2007, at 9:05 PM, dillo gimp wrote:

>
>
> On 4/26/07, Bradley Lucier <lucier at math.purdue.edu> wrote:
> On Apr 25, 2007, at 7:43 PM, dillo gimp wrote:
>
> > There might be a bug in big number handling,
> > the same code runs fine under mzscheme and petite, but crashes with
> > gambit :
> > *** ERROR IN ##ratnum.* -- Divide by zero
> > (quotient 0 0)
> >
> > I don't even use "quotient" in my code.
>
> We'd need to see a bit of your code to figure out what you *are*  
> using.
>
>
> I don't know how to make gambit to report exactly where the code  
> has crashed.
> The program is not exactly small either.
> Can you tell me how to make gambit report "crash point"?
> This is my compilation steps:
>
> cat /lfs/script/gambit.sh
> #!/bin/bash
> /usr/4.0b22/bin/gsc -prelude '(define (display x) (write x (current- 
> output-port)))' -link $1
> prog=${1%.sc}
> gcc -O2 -fomit-frame-pointer -freg-struct-return \
>      -I/usr/4.0b22/include -L/usr/4.0b22/lib \
>      -D___SINGLE_HOST -o $prog $prog.c ${prog}_.c -lgambc -lm -ldl - 
> lutil

OK, well I still don't know what you're trying to do, but gambit  
requires gcc to use certain flags for to correctly compile gambit- 
generated code.  See the options in /usr/4.0b22/bin/



More information about the Gambit-list mailing list