[ ghc-Bugs-416927 ] Compiler dumping core

noreply@sourceforge.net noreply@sourceforge.net
Mon, 30 Apr 2001 02:31:18 -0700


Bugs item #416927, was updated on 2001-04-17 19:46
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=108032&aid=416927&group_id=8032

Category: Compiler
Group: 5.00
Status: Open
Resolution: None
Priority: 5
Submitted By: Mark Conway Wirt (mwirt)
>Assigned to: Julian Seward (sewardj)
Summary: Compiler dumping core

Initial Comment:
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.

----------------------------------------------------------------------

Comment By: Julian Seward (sewardj)
Date: 2001-04-20 04:23

Message:
Logged In: YES 
user_id=50143


I can't reproduce this -- myFact 30 works fine for me
in interactive mode.

Maybe it's a GMP incompability problem?  Can you send 
precise details on where you got your ghc-5 from, what
machine/os you're using and the version of gmp in use?
(ldd on the main compiler executable might be useful)

J


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=108032&aid=416927&group_id=8032