Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#2160 closed bug (duplicate)

"internal error: PAP object entered!" when running ghci compiled with profiling

Reported by: igloo Owned by:
Priority: normal Milestone: 6.10 branch
Component: Compiler Version: 6.8.2
Keywords: Cc: gwern0@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

With this mk/build.mk:

GhcCompilerWays=p
GhcThreaded=NO
GhcProfiled=YES
#GhcDebugged=YES
GhcRTSWays += debug_p
WAY_debug_p_HC_OPTS += -O0 -optc-O0 -optc-g
MakefileDeps = NO

I get this:

$ compiler/stage2/ghc-inplace --interactive
GHCi, version 6.9.20080315: http://www.haskell.org/ghc/  :? for help
Loading package base ... linking ... done.
ghc-6.9.20080315: internal error: PAP object entered!
    (GHC version 6.9.20080315 for x86_64_unknown_linux)
    Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

Unfortunately, there isn't a smaller example in the full testsuite.

Change History (6)

comment:1 Changed 6 years ago by simonmar

  • Architecture changed from Unknown to Unknown/Multiple

comment:2 Changed 6 years ago by simonmar

  • Operating System changed from Unknown to Unknown/Multiple

comment:3 Changed 5 years ago by guest

  • Cc gwern0@… added

comment:4 Changed 5 years ago by simonmar

  • Resolution set to duplicate
  • Status changed from new to closed

There's another ticket about this: #2197, and since that one has more commentary I'm closing this one.

comment:5 follow-up: Changed 5 years ago by guest

Simon: is this really the same one? 'PAP object entered' doesn't look like Sam's '/dist/build/HSghc-prim-0.1.o: unknown symbol `traceCcszh_fast error.

comment:6 in reply to: ↑ 5 Changed 5 years ago by simonmar

Replying to guest:

Simon: is this really the same one? 'PAP object entered' doesn't look like Sam's '/dist/build/HSghc-prim-0.1.o: unknown symbol `traceCcszh_fast error.

SamB said in that ticket "Btw, the symbol mentioned in the error is from something I'm working on... but the non_p ghci loads fine."

Also, both tickets are about running a profiled GHC with --interactive, which is known to not work. I'd expect a crash on running the first bit of dynamically loaded or interpreted code (what we see here), but missing symbols on loading objects is to be expected too.

Note: See TracTickets for help on using tickets.