Mike

| I'm getting a stack overflow.  I suspect I know approximately where
| it's coming from.  My efforts at understanding what's going on via
| inspection alone have thus far failed.  What's the best way to debug a
| stack overflow?  (If it's somehow easier to debug in Hugs, I get the
| problem there too.)

The most unpleasant sort of error you can get is non-termination and/or
stack overflow, because all Haskell systems give you so little information.

I have on my list the task of producing some sort of stack backtrace, no
matter how gruesome, because that would be much better than nothing, which
is what you have right now.

Meanwhile, much as I hate to suggest it, you're probably best off adding
"trace" calls if you have some notion of where your problem is.

Simon

Reply via email to