Skip to content

GHC's stack blows up

When compiling the included file (part of AFrob)
with GHC 5.04 under Linux, GHC's stack blows up. I've
tried to increase the size up to 20 Mbyte (at which
point compilation takes a loooong time, and then the
stack still blows up), and I've tried all four possible
combinations of -O and -fglasgow-exts. The result is
the same in all cases.

I used variations of the following command:

ghc -c -package lang -package posix -package concurrent
-i/usr/local/lib/ghc/imports/hgl:/usr/local/lib/ghc/imports/arrow:/usr/local/lib/ghc/imports/afrp:../Common
+RTS -K20M -RTS -o RSParser.o RSParser.hs

The result I got in all cases was:

stack overflow: use +RTS -K<size> to increase it

Everything worked fine with GHC 5.02.2: no need for
+RTS -K<size> or anything.

If you need more context, try the AFRP/AFrob
Hacker's pre-release available from
www.haskell.org/afrp.

All the best,

/Henrik

--
Henrik Nilsson
Yale University
nilsson@cs.yale.edu
Trac metadata
Trac field Value
Version 5.04
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution ResolvedFixed
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information