#2063: Breackage on OpenBSD due to mmap remap
----------------------------+-----------------------------------------------
 Reporter:  dons            |          Owner:                  
     Type:  bug             |         Status:  new             
 Priority:  normal          |      Milestone:  6.10.2          
Component:  Runtime System  |        Version:  6.8.2           
 Severity:  normal          |     Resolution:                  
 Keywords:  OpenBSD         |     Difficulty:  Moderate (1 day)
 Testcase:                  |   Architecture:  x86_64 (amd64)  
       Os:  OpenBSD         |  
----------------------------+-----------------------------------------------
Comment (by simonmar):

 I've pushed the following speculative fix for this and #2512:

 {{{
 Mon Nov 17 04:05:56 PST 2008  Simon Marlow <[EMAIL PROTECTED]>
   * Attempt to fix #2512 and #2063;  add +RTS -xm<address> -RTS option
   On x86_64, the RTS needs to allocate memory in the low 2Gb of the
   address space.  On Linux we can do this with MAP_32BIT, but sometimes
   this doesn't work (#2512) and other OSs don't support it at all
   (#2063).  So to work around this:

     - Try MAP_32BIT first, if available.

     - Otherwise, try allocating memory from a fixed address (by default
       1Gb)

     - We now provide an option to configure the address to allocate
       from.  This allows a workaround on machines where the default
       breaks, and also provides a way for people to test workarounds
       that we can incorporate in future releases.
 }}}

 We need help to test this, from folks running *BSD on x86_64, and also Xen
 on x86_64.  Igloo: please merge, then keep the bug open for testing.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2063#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to