[GHC] #10682: AArch64: dll-split: out of memory (requested 1099512676352 bytes)

GHC ghc-devs at haskell.org
Mon Aug 24 04:47:01 UTC 2015


#10682: AArch64: dll-split: out of memory (requested 1099512676352 bytes)
----------------------------------------+----------------------------------
        Reporter:  erikd                |                   Owner:
            Type:  bug                  |                  Status:  new
        Priority:  normal               |               Milestone:  7.12.1
       Component:  Compiler             |                 Version:  7.11
      Resolution:                       |                Keywords:
Operating System:  Unknown/Multiple     |            Architecture:  aarch64
 Type of failure:  Building GHC failed  |               Test Case:
      Blocked By:                       |                Blocking:
 Related Tickets:                       |  Differential Revisions:
----------------------------------------+----------------------------------

Comment (by erikd):

 I added debug to `rts/posix/OSMem.c` to print out the values that were
 being passed to `mmap`. I then wrote a simple standalone program to see of
 `mmap` still failed with the same parameters outside of GHC. The program
 is:

 {{{
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/mman.h>

 int
 main (void)
 {       void *addr = (void*) 0x200000000, *ret ;
         size_t size = 1099512676352 ;
         int prot = 0, flags = MAP_NORESERVE | MAP_ANON | MAP_PRIVATE ;

         ret = mmap(addr, size, prot, flags, -1, 0);
         if (ret == NULL) {
                 perror ("mmap") ;
                 exit (1) ;
         }

         puts ("Success!") ;
         return 0 ;
 }
 }}}

 and it compiled and ran successfully on the same machine where GHC is
 currently failing.

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


More information about the ghc-tickets mailing list