[GHC] #778: memory leak

GHC trac at galois.com
Mon May 29 04:15:38 EDT 2006


#778: memory leak
-------------------------+--------------------------------------------------
    Reporter:  guest     |        Owner:         
        Type:  bug       |       Status:  new    
    Priority:  normal    |    Milestone:  6.4.3  
   Component:  Compiler  |      Version:  6.4.2  
    Severity:  normal    |   Resolution:         
    Keywords:  memory    |   Difficulty:  Unknown
Architecture:  Unknown   |           Os:  Linux  
-------------------------+--------------------------------------------------
Changes (by simonmar):

  * cc:  gcc 4.1.1 & ghc 6.4.2 =>

Old description:

> I have the same program using both ghci and ghc.  ghci gives:
>
>    ___         ___ _
>   / _ \ /\  /\/ __(_)
>  / /_\// /_/ / /  | |      GHC Interactive, version 6.4.2, for Haskell
> 98.
> / /_\\/ __  / /___| |      http://www.haskell.org/ghc/
> \____/\/ /_/\____/|_|      Type :? for help.
>
> ghc-6.4.2: out of memory (requested 1048576 bytes)
>
> and ghc gives:
> ghc -ignore-package Cabal --make -Wall -fno-warn-unused-matches -cpp -i.
> -odir dist/tmp -hidir dist/tmp Setup.lhs -o setup
> ghc-6.4.2: out of memory (requested 1048576 bytes)
>
> I have 2 gigs of ram, and 3 of swap.  When I run ghci, my free memory
> quickly drops from ~1.9 Gb to less than 10 Mb, at which point, I get the
> out of memory error.
> I'm running gentoo on my laptop, with gcc 4.1.1 and kernel 2.6.17-rc1-mm2

New description:

 I have the same program using both ghci and ghc.  ghci gives:

 {{{
    ___         ___ _
   / _ \ /\  /\/ __(_)
  / /_\// /_/ / /  | |      GHC Interactive, version 6.4.2, for Haskell 98.
 / /_\\/ __  / /___| |      http://www.haskell.org/ghc/
 \____/\/ /_/\____/|_|      Type :? for help.

 ghc-6.4.2: out of memory (requested 1048576 bytes)
 }}}
 and ghc gives:
 {{{
 ghc -ignore-package Cabal --make -Wall -fno-warn-unused-matches -cpp -i.
 -odir dist/tmp -hidir dist/tmp Setup.lhs -o setup
 ghc-6.4.2: out of memory (requested 1048576 bytes)
 }}}
 I have 2 gigs of ram, and 3 of swap.  When I run ghci, my free memory
 quickly drops from ~1.9 Gb to less than 10 Mb, at which point, I get the
 out of memory error.
 I'm running gentoo on my laptop, with gcc 4.1.1 and kernel 2.6.17-rc1-mm2

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/778>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list