This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Stack overflow


mdj@nada.kth.se wrote:
> 
> Richard Polton <richard.polton@db.com> writes:
> 
> > I have observed a stack overflow in guile-1.3 during calculation of
> > recursive procs. In particular
> > calculating the 250th Fibonacci number fails with a stack overflow when
> > using the slow recursive
> > algorithm. It works fine in Perl.
> 
> Try
> 
>   (debug-set! stack 0)
> 
> and you'll be able to calculate the 250000000th Fibonacci number if
> your machines memory allows...  :)
> 
> /mdj

I guess that this is an error then?

 (debug-set! stack 0)
ERROR: In expression (if define? (module-make-local-var! module symbol)
...):
ERROR: Stack overflow
ABORT: (stack-overflow)

Type "(backtrace)" to get more information.