At 22:03 -0500 1999/05/18, Laurence Mason wrote:
>The attached file contains a Haskell program that craches Hugs.  The
>function is a flawed version of Newtons method for solving roots of
>equations, except that the f and f' terms were unintensionally exchange.
>The program is incorrect and the test function diverges, but the mistake is
>not trapped and a fatal error occurs.

You did not say which platform. Simpler types of OS's do not provide a
parameter stack check, so the program crashes when the stack bumps into the
heap, unless a stack check is implemented by hand in the port. Without such
a stack check, the crash happens when many recursive calls are done, which
I figure might happen in your code.

If it was the Mac port, the new release will have such a stack check
implemented, and a way to set the stack size. Stay tuned.

  Hans Aberg
                  * Email: Hans Aberg <mailto:[EMAIL PROTECTED]>
                  * Home Page: <http://www.matematik.su.se/~haberg/>
                  * AMS member listing: <http://www.ams.org/cml/>

Reply via email to