This is the mail archive of the
guile@sources.redhat.com
mailing list for the Guile project.
Re: Segfault when running out of stack
- To: Mark Seaborn <mseaborn at argonet dot co dot uk>
- Subject: Re: Segfault when running out of stack
- From: Michael Livshin <mlivshin at bigfoot dot com>
- Date: 13 Jul 2000 18:43:06 +0200
- Cc: guile at sourceware dot cygnus dot com
- Organization: who? me?
- References: <87n1jmtmgs.fsf@argbg34.argonet.co.uk>
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.