[GHC] #14192: Change to 1TB VIRT allocation makes it impossible to core-dump Haskell programs

GHC ghc-devs at haskell.org
Thu Sep 7 10:15:02 UTC 2017


#14192: Change to 1TB VIRT allocation makes it impossible to core-dump Haskell
programs
-------------------------------------+-------------------------------------
        Reporter:  nh2               |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Runtime System    |              Version:  8.0.2
      Resolution:                    |             Keywords:  gdb,
                                     |  debugging
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Runtime           |  Unknown/Multiple
  performance bug                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #9706             |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by nicolast):

 I guess setting the `MADV_DONTDUMP` flag on the region using `madvise(2)`,
 then resetting the flag when chunks of said memory are being used, could
 work. Not sure about the performance impact of setting and resetting that
 flag over and over...

 May make sense to do it over chunks of, say, 32MB at a time, which would
 still result in 'large' (though likely very compressable) coredumps for
 small programs, yet manageable.

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


More information about the ghc-tickets mailing list