[GHC] #12690: Segmentation fault in GHC runtime system under low memory with USE_LARGE_ADDRESS_SPACE

GHC ghc-devs at haskell.org
Fri Mar 31 23:10:11 UTC 2017


#12690: Segmentation fault in GHC runtime system under low memory with
USE_LARGE_ADDRESS_SPACE
-----------------------------------+--------------------------------------
        Reporter:  pggiarrusso     |                Owner:  (none)
            Type:  bug             |               Status:  new
        Priority:  high            |            Milestone:
       Component:  Runtime System  |              Version:  8.0.1
      Resolution:                  |             Keywords:
Operating System:  Linux           |         Architecture:  x86_64 (amd64)
 Type of failure:  Runtime crash   |            Test Case:
      Blocked By:                  |             Blocking:
 Related Tickets:                  |  Differential Rev(s):
       Wiki Page:                  |
-----------------------------------+--------------------------------------

Comment (by pggiarrusso):

 Thanks for looking into this bug and replying, but the code I pointed to
 doesn't seem to use madvise (except at reallocation time). Maybe you're
 thinking of some other GHC allocator? This is new in 8.0.1. I've tried to
 confirm your analysis but was unable to find evidence.

 I pointed to a void function calling my_mmap (which calls mmap on Linux)
 and ignoring any failure from it. So the obvious explanation is that mmap
 is failing and GHC is writing to the page anyway since it considers it
 allocated; that's consistent with GDB failing to access *bd.

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


More information about the ghc-tickets mailing list