Ticket #4263 (closed bug: fixed)

Opened 3 years ago

Last modified 2 years ago

GHC API should emit a suitable error message when interpreter is used with -prof

Reported by: dom96 Owned by: igloo
Priority: normal Milestone: 7.0.1
Component: Compiler Version: 6.12.3
Keywords: hint Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Runtime crash Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

When compiling a program with the -prof flag executing the program fails with:

hintBug: internal error: PAP object entered!
    (GHC version 6.12.3 for i386_unknown_linux)
    Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
Aborted

i.e ghc --make program.hs works, ghc --make -prof program.hs doesn't.

Attachments

hintProfileBug.tar.gz Download (447 bytes) - added by dom96 3 years ago.
Compile hintBug.hs with the -prof flag and then execute hintBug and it will fail.

Change History

Changed 3 years ago by dom96

Compile hintBug.hs with the -prof flag and then execute hintBug and it will fail.

Changed 3 years ago by simonmar

  • summary changed from GHC Profiling fails with the hint package to GHC API should emit a suitable error message when interpreter is used with -prof
  • os changed from Linux to Unknown/Multiple
  • milestone set to 6.14.1

hint can't be used with -prof. The GHC API should give a better error message here.

Changed 3 years ago by igloo

  • owner set to igloo

We think this is fixed, but currently hint isn't installable with 7.0, so I can't test it yet.

Changed 2 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

Still not installable, but it should be fixed. Please reopen if you think it's not.

Note: See TracTickets for help on using tickets.