Stack overflow with Data.Binary

Christian Maeder maeder at tzi.de
Tue Jun 5 07:33:56 EDT 2007


Grzegorz schrieb:
> On 6/4/07, Christian Maeder <maeder at tzi.de> wrote:
> 
>> But it goes through with increased stack space!
>>
>> $ ./foo < okok +RTS -K100m
>> 58386
>>
>> So this is quite normal behaviour. Profiling may need more stack space.
>>
> 
> The question is why this simple program would need so much stack
> space. I thought that that mostly happend in Haskell with badly
> written recursive functions?

The file "okok" has 3816117 bytes and "-K11m" is sufficient ("-K10m" is
not).

That's just above the amount of stack size used without complaining
(8388608 bytes) when profiling is switched off.

C.


More information about the Libraries mailing list