Stack overflow in ghci

I have an expression that gives a stack overflow in ghci (official Debian unstable CVS version)) when I evaluate it. The expression doesn't use more than 150MB of memory (I have more). How can I make sure the stack overflow doesn't happen? There are no strictness flags in my program. But I use DData Maps(I don't know whether they are implemented strict). I also don't know whether strictness/lazyness has anything do to with it. *SomeModule> test *** Exception: stack overflow (148.67 secs, 250825284 bytes) Sometimes I get a negative number of bytes. I heard of the +RTS option. I used: ghci SomeModule.hs -someoptions +RTS -K1500000, but this doesn't seem to have any effect. I think there should be someother option to change it? Thanks in advance, Ron de Bruijn __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail

On Thu, Sep 02, 2004 at 08:47:51AM -0700, Ron de Bruijn wrote:
I heard of the +RTS option. I used: ghci SomeModule.hs -someoptions +RTS -K1500000, but this doesn't seem to have any effect.
Try +RTS -K150M. -K1500000 means 1500000 bytes. Best regards, Tom -- .signature: Too many levels of symbolic links

--- Tomasz Zielonka
On Thu, Sep 02, 2004 at 08:47:51AM -0700, Ron de Bruijn wrote:
I heard of the +RTS option. I used: ghci SomeModule.hs -someoptions +RTS -K1500000, but this doesn't seem to have any effect.
Try +RTS -K150M. -K1500000 means 1500000 bytes.
Best regards, Tom
-- .signature: Too many levels of symbolic links
Ok, it works. I thought the K was equivalent to 1000, but the first K doesn't have that meaning. Thanks. __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail
participants (2)
-
Ron de Bruijn
-
Tomasz Zielonka