This is the mail archive of the guile@sources.redhat.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: Segfault when running out of stack


Mark Seaborn <mseaborn@argonet.co.uk> writes:

> A small bug:  Guile 1.3.4 appears to be segfaulting when it runs out
> of stack:
> 
> $ guile
> guile> (define (f) (cons (f) 1))
> guile> (f)
> Segmentation fault
> 
> and
> 
> $ guile
> guile> (define a (delay (force a)))
> guile> (force a)
> Segmentation fault
> 
> Although Guile segfaults quite quickly instead of eating up loads of
> memory, so maybe there's more going on here.  Incidentally, SCM 5d2
> does the same thing.

yup, you made Guile run out of the C stack (in Guile/SCM, C and Scheme 
stacks are the same).  I wonder if this condition is even recoverable.

-- 
Life's a duck, and then you sigh.


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