Profiling crashes with GHC API
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.
Trac metadata
Trac field | Value |
---|---|
Version | 7.0.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Profiling |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |