[GHC] #7836: "Invalid object in processHeapClosureForDead" when profiling with -hb

GHC ghc-devs at haskell.org
Fri Aug 25 14:42:02 UTC 2017


#7836: "Invalid object in processHeapClosureForDead" when profiling with -hb
-------------------------------------+-------------------------------------
        Reporter:  hyperthunk        |                Owner:  (none)
            Type:  bug               |               Status:  infoneeded
        Priority:  normal            |            Milestone:
       Component:  Profiling         |              Version:  7.4.2
      Resolution:                    |             Keywords:  profiling osx
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Runtime crash     |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #9640             |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by nad):

 I managed to make the test case a bit smaller:
 {{{

 $ cat Main.hs
 import System.Exit

 main = exitSuccess
 $ ghc --make -prof Main.hs
 [1 of 1] Compiling Main             ( Main.hs, Main.o )
 Linking Main ...
 $ ./Main +RTS -hb
 Main: internal error: Invalid object in processHeapClosureForDead(): 7
     (GHC version 8.2.1 for i386_unknown_linux)
     Please report this as a GHC bug:
 http://www.haskell.org/ghc/reportabug
 Aborted (core dumped)
 }}}

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


More information about the ghc-tickets mailing list