#4532: Profiling crashes with GHC API
------------------------+---------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Component: Profiling
Version: 7.0.1 | Keywords: GHC,Profiling,GHC API,Crash
Testcase: | Blockedby:
Os: MacOS X | Blocking:
Architecture: x86 | Failure: Runtime crash
------------------------+---------------------------------------------------
Profiling program using ghc api crashes.
For example:
ghc-api.hs
{{{
import GHC
import GHC.Paths
main = do
runGhc (Just libdir) $ do
getSessionDynFlags >>= setSessionDynFlags
dynCompileExpr "()"
}}}
Compile ghc-api.hs with following options:
{{{
$ ghc --make -prof ghc-api.hs
}}}
Run ./ghc-api with "+RTS -p" flag on, then program crashes.
{{{
$ ./ghc-api +RTS -p
ghc-api: internal error: PAP object entered!
(GHC version 6.12.3 for i386_apple_darwin)
Please report this as a GHC bug:
http://www.haskell.org/ghc/reportabug
zsh: abort ./ghc-api +RTS -p
}}}
My Envinronment is GHC-6.12.3 on Mac OS X 10.6.5.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4532>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs