Stack overflow with Data.Binary
maeder at tzi.de
Tue Jun 5 07:33:56 EDT 2007
> On 6/4/07, Christian Maeder <maeder at tzi.de> wrote:
>> But it goes through with increased stack space!
>> $ ./foo < okok +RTS -K100m
>> 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
That's just above the amount of stack size used without complaining
(8388608 bytes) when profiling is switched off.
More information about the Libraries