Running (essentially the same program) on the command line generates a
stack overflow on FreeBSD using the November build:

  Prelude> let fibs = 0:1:zipWith(+)fibs(tail fibs) in fibs !! 100000
  
  ERROR: Control stack overflow

Since it's a tossup whether you overflow the C stack or get a
control-stack overflow, I'd guess that your Segmentation fault is
caused by overflowing the C stack.

This isn't something we can do a lot about in Classic Hugs and
it will go away in STG Hugs.


--
Alastair Reid

Reply via email to