Skip to content

Compiler dumping core

I have a simple code fragment that works in previous
versions of ghc and other Haskell systems (like Hugs),
but which will cause the compiler to dump core in
interactive mode (the compiled executable also dumps
core).

If I define a simple factorial:

   myFact :: Integer -> Integer
   myFact 0 = 1
   myFact n = n * myFact (n - 1)

it will run correctly for very small n, but not for
larger n's (but < 30 on my platform).  I'm using the
pre-compiled binary linux package, on a RedHat 7.0
system.

I though it was a stack or heap overflow, but I've
increased the heap with RTS options, and it still
crashes.
Trac metadata
Trac field Value
Version 5.0
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