[GHC] #9971: GHC 7.10 dies with "out of memory"

GHC ghc-devs at haskell.org
Tue Jan 13 08:40:29 UTC 2015


#9971: GHC 7.10 dies with "out of memory"
-------------------------------------+-------------------------------------
        Reporter:  albertov          |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Compiler          |                 Version:  7.10.1-rc1
      Resolution:                    |                Keywords:
Operating System:  Linux             |            Architecture:  x86_64
 Type of failure:  Compile-time      |  (amd64)
  crash                              |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by albertov):

 I've created a [https://github.com/meteogrid/sigym4-geometry/tree/ghc-9971
 new branch] in my library to track this down from the first revision that
 causes the problem (2b00e8f5052cc392). I've removed the `-O2` flag from
 the `test` section of the .cabal file (the library section didn't have it)
 and configured with: `cabal configure --disable-optimization --ghc-
 options="-v3" --enable-tests -w /usr/local/bin/ghc-7.10.0.20141222`.  The
 output of the configure step is:

 {{{
 Resolving dependencies...
 Configuring sigym4-geometry-0.1.0.2...
 Glasgow Haskell Compiler, Version 7.10.0.20141222, stage 2 booted by GHC
 version 7.8.3
 Using binary package database:
 /usr/local/lib/ghc-7.10.0.20141222/package.conf.d/package.cache
 Using binary package database:
 /home/alberto/.ghc/x86_64-linux-7.10.0.20141222/package.conf.d/package.cache
 wired-in package ghc-prim mapped to ghc-
 prim-0.3.1.0-ef8d733e55253d54bc20910b190b4671
 wired-in package integer-gmp mapped to integer-
 gmp-1.0.0.0-1c365c75fd598ef8737ed7c605ee03d2
 wired-in package base mapped to
 base-4.8.0.0-e29e6aeb808f5a1814cb5be39ea4f618
 wired-in package rts mapped to builtin_rts
 wired-in package template-haskell mapped to template-
 haskell-2.10.0.0-4568f09ac38ddc61b7786e2a3f416f4b
 wired-in package ghc mapped to
 ghc-7.10.0.20141222-6718a8ae216097cfa2a99e476432dc11
 wired-in package dph-seq not found.
 wired-in package dph-par not found.
 Hsc static flags:
 Created temporary directory: /tmp/ghc20749_0
 *** C Compiler:
 /usr/bin/gcc -fno-stack-protector -DTABLES_NEXT_TO_CODE -x c /tmp/20700.c
 -o /tmp/ghc20749_0/ghc20749_1.s -Wimplicit -S '-D__GLASGOW_HASKELL__=710'
 -include /usr/local/lib/ghc-7.10.0.20141222/include/ghcversion.h
 -I/usr/local/lib/ghc-7.10.0.20141222/base_469rOtLAqwTGFEOGWxSUiQ/include
 -I/usr/local/lib/ghc-7.10.0.20141222/integ_21cuTlnn00eFNd4GMrxOMi/include
 -I/usr/local/lib/ghc-7.10.0.20141222/include
 *** Assembler:
 /usr/bin/gcc -fno-stack-protector -DTABLES_NEXT_TO_CODE -x assembler -c
 /tmp/ghc20749_0/ghc20749_1.s -o /tmp/20700.o
 *** Deleting temp files:
 Deleting: /tmp/ghc20749_0/ghc20749_1.s
 *** Deleting temp dirs:
 Deleting: /tmp/ghc20749_0
 }}}

 The executed `cabal build > build.log 2>&1`and waited for the OS to kill
 ghc. I've attached the resulting build.log file.

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


More information about the ghc-tickets mailing list