[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hugs-bugs
Subject:    Re: stack overflow
From:       "Ch. A. Herrmann" <herrmann () infosun ! fmi ! uni-passau ! de>
Date:       2001-05-14 17:39:39
Message-ID: 15104.6235.582963.463269 () reger ! fmi ! uni-passau ! de
[Download RAW message or body]

Hi Gustav,

    Gustav> Hello, I think I've found a bug in Hugs 98 (February 2001
    Gustav> version). Hugs crashes (Stack Overflow) whenever I try to
    Gustav> execute the following piece of code:

    Gustav> f a b = f (f' a b) b

that's OK. Function f has two bad properties:

(1) it loops forever (theoretically)
(2) it increases the control stack in each call
    (at least by the unevaluated closure of (f' a b))

Thus, at some point, the memory reserved for the
control stack will be consumed.

Cheers
Christoph


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic