[GHC] #7040: linker failures with foreign global data

GHC cvs-ghc at haskell.org
Wed Aug 1 18:34:30 CEST 2012


#7040: linker failures with foreign global data
---------------------------------+------------------------------------------
    Reporter:  luite             |       Owner:                  
        Type:  bug               |      Status:  patch           
    Priority:  normal            |   Milestone:                  
   Component:  Runtime System    |     Version:                  
    Keywords:                    |          Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |     Failure:  Other           
  Difficulty:  Unknown           |    Testcase:                  
   Blockedby:                    |    Blocking:                  
     Related:                    |  
---------------------------------+------------------------------------------
Changes (by luite):

  * status:  new => patch


Comment:

 the above patch uses mmap to allocate the section on OS X and fixes the
 crash here. It will likely still crash if there are multiple huge global
 arrays like in the example by nus (that exhaust the lower 2GB of mem), but
 that scenario is probably not exactly common.

 It works on my system with Mountain Lion (10.8), i can't test with older
 systems unfortunately.

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



More information about the Glasgow-haskell-bugs mailing list