[GHC] #14988: Memory strain while compiling HLint

GHC ghc-devs at haskell.org
Wed Apr 4 00:35:22 UTC 2018


#14988: Memory strain while compiling HLint
-------------------------------------+-------------------------------------
        Reporter:  mcandre           |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.2
      Resolution:                    |             Keywords:
Operating System:  FreeBSD           |         Architecture:  x86_64
 Type of failure:  Compile-time      |  (amd64)
  performance bug                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by mcandre):

 Update:

 The specific error I'm getting is

 {{{
 $ cabal install HLint
 ...
 ghc: mmap 131072 bytes at 0x0: Operation not permitted
 }}}

 This happens in HardenedBSD, does not happen in FreeBSD. This happens when
 ghc tries to build HLint's haskell-src-exts, uniplate, and/or aeson
 dependency libraries. This does not happen in HardenedBSD for smaller
 package trees like shake or QuickCheck.

 I tried adding swap space to provide a larger memory pool, but top showed
 cabal/ghc never dipping into swap space, so I suppose this mmap error
 means something else besides out-of-memory.

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


More information about the ghc-tickets mailing list