[GHC] #3285: "PAP object entered" on executable with profiling

GHC trac at galois.com
Mon Jun 8 08:21:07 EDT 2009


#3285: "PAP object entered" on executable with profiling
--------------------+-------------------------------------------------------
Reporter:  darchon  |          Owner:          
    Type:  bug      |         Status:  new     
Priority:  normal   |      Component:  Compiler
 Version:  6.10.3   |       Severity:  normal  
Keywords:           |       Testcase:          
      Os:  MacOS X  |   Architecture:  x86     
--------------------+-------------------------------------------------------
 We're developing a tool that translates System Fc (GHC Core) to VHDL, and
 thus make use of the GHC API. When I try running my compiled executable
 with profiling support. I get the following error:
 {{{
 $ clash
 library IEEE;
 use IEEE.std_logic_1164.all;
 use IEEE.numeric_std.all;


 package types is

 clash: internal error: PAP object entered!
     (GHC version 6.10.3 for i386_apple_darwin)
     Please report this as a GHC bug:
 http://www.haskell.org/ghc/reportabug
 Abort trap
 }}}

 When I run my executable without profiling support compiled in, I do not
 get the above error, and the program translates a piece of Haskell to VHDL
 just fine.

 This is the command I use to compile my executable with profiling support,
 it should also give some insight into which libraries we use:
 {{{
 ghc -package ghc -package transformers -package ForSyDe -package
 prettyclass
 -package data-accessor -package ghc-paths -package data-accessor-template
 -package tfp -package tfvec HsValueMap.hs CoreShow.hs FlattenTypes.hs
 VHDLTypes.hs TranslatorTypes.hs GhcTools.hs HsTools.hs CoreTools.hs
 Flatten.hs
 Pretty.hs VHDL.hs Translator.hs -o clash -fforce-recomp --make -osuf p_o
 -hisuf p_hi -prof -auto -auto-all -dcore-lint
 }}}

 I have no idea what might cause this problem. If you could give some hints
 on how to debug this problem, I might be able to give a more useful bug
 report. Also, I can supply the necessary files on request so that you can
 reproduce this error. You can contact me on: <christiaan.baaij at gmail.com>

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3285>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list