Ticket #7380 (new bug)

Opened 7 months ago

Last modified 7 months ago

Panic: mkNoTick: Breakpoint loading modules with -O2 via API

Reported by: JeanPhilippeMoresmau Owned by:
Priority: normal Milestone: 7.8.1
Component: GHC API Version: 7.4.1
Keywords: Cc:
Operating System: Windows Architecture: ia64
Type of failure: Runtime crash Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

I load a trivial module via the API. I get a panic: GHCBugs.exe: GHCBugs.exe: panic! (the 'impossible' happened)

(GHC version 7.4.1 for i386-unknown-mingw32):

mkNoTick: Breakpoint

If I pass -O2 in the options. Without -O2 the module loads.

I attach the source code using the API to the ticket. The module I try to load just says: module Main where

main::IO() main = print "Hello Fay"

Attachments

Main.hs Download (0.9 KB) - added by JeanPhilippeMoresmau 7 months ago.
Code using the API exhibting the issue

Change History

Changed 7 months ago by JeanPhilippeMoresmau

Code using the API exhibting the issue

Changed 7 months ago by simonmar

  • difficulty set to Unknown
  • milestone set to 7.8.1

GHCi normally runs with optimisation off, so it's not entirely surprising that using the interpreter with optimisation on exposes new bugs. We should look into it though.

Note: See TracTickets for help on using tickets.