[GHC] #8862: forkProcess does not play well with heap or time profiling

GHC ghc-devs at haskell.org
Sat Mar 8 17:27:48 UTC 2014


#8862: forkProcess does not play well with heap or time profiling
------------------------------------------------+--------------------------
        Reporter:  bennofs                      |            Owner:
            Type:  bug                          |  simonmar
        Priority:  normal                       |           Status:  new
       Component:  Runtime System               |        Milestone:
      Resolution:                               |          Version:  7.6.3
Operating System:  Unknown/Multiple             |         Keywords:
 Type of failure:  Incorrect result at runtime  |     Architecture:
       Test Case:                               |  Unknown/Multiple
        Blocking:                               |       Difficulty:
                                                |  Unknown
                                                |       Blocked By:
                                                |  Related Tickets:
------------------------------------------------+--------------------------

Comment (by rwbarton):

 Are you using the threaded runtime?

 Maybe it would make sense for the profiling subsystem to use
 `pthread_atfork` to ensure that the `.hp` file is closed in any child
 processes? (Does that exist on Windows?)

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


More information about the ghc-tickets mailing list