[GHC] #10370: Compile time regression in OpenGLRaw

GHC ghc-devs at haskell.org
Tue May 5 10:15:36 UTC 2015


#10370: Compile time regression in OpenGLRaw
-------------------------------------+-------------------------------------
        Reporter:  michalt           |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Compiler          |                 Version:  7.10.1
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  performance bug                    |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------
Description changed by simonpj:

Old description:

> As reported by Paolo Veronelli:
>
>   Hello, I'm using ghc 7.10.1 to compile OpenGLRaw which is now
> impossible with -O1 and -O2 due to "ghc : out of memory error" on a 4GB
> linux host. The file making memory explode is
> Graphics.Rendering.OpenGL.Raw.Functions. With -O0 it uses 600 MB.
>
>   The file is really huge, but I could compile it with prior versions of
> ghc.
>
> I've had a look and indeed the file takes way more memory to compile with
> HEAD. Looking at the heap profiles, it seems that the problem is in GHC
> itself (space leak somewhere?). I'll attach the heap profiles (from
> compiling the single module itself, i.e., `touch`ing the file and running
> prof GHC on it).

New description:

 As reported by Paolo Veronelli:

   Hello, I'm using ghc 7.10.1 to compile OpenGLRaw which is now impossible
 with -O1 and -O2 due to "ghc : out of memory error" on a 4GB linux host.
 The file making memory explode is
 Graphics.Rendering.OpenGL.Raw.Functions. With -O0 it uses 600 MB.

   The file is really huge, but I could compile it with prior versions of
 ghc.

 I've had a look and indeed the file takes way more memory to compile with
 HEAD. Looking at the heap profiles, it seems that the problem is in GHC
 itself (space leak somewhere?). I'll attach the heap profiles (from
 compiling the single module itself, i.e., `touch`ing the file and running
 prof GHC on it).

 Paolo also says: ere is another file , which is small, which cannot be
 compiled within 4GB  memory.

 https://raw.githubusercontent.com/benl23x5/gloss/master/gloss-
 examples/raster/Fluid/src-repa/Stage/Linear.hs

--

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10370#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list