Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#1181 closed bug (fixed)

GHC API load panic

Reported by: judahj Owned by: simonmar
Priority: high Milestone: 6.8.1
Component: GHC API Version: 6.7
Keywords: Cc:
Operating System: MacOS X Architecture: powerpc
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

The attached program APILoad.hs, which works with ghc-6.6, panics on the HEAD when trying to load a module using the GHC API. Adding a call to parseStaticFlags prevents the panic, but it doesn't seem like that should be necessary when using the API.

~: ghc-6.7.20070215 --make APILoad.hs -package ghc
[1 of 1] Compiling Main             ( APILoad.hs, APILoad.o )
Linking APILoad ...
~/tmp/unsplice: ./APILoad Foo.hs 
Loading...
APILoad: panic! (the 'impossible' happened)
  (GHC version 6.7.20070215 for powerpc-apple-darwin):
        a static opt was looked at too early!

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

Foo.hs:

module Foo where

foo = 4

Attachments (1)

APILoad.hs (1.0 KB) - added by judahj 7 years ago.

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by judahj

comment:1 Changed 7 years ago by simonmar

  • Owner set to simonmar
  • Priority changed from normal to high

comment:2 Changed 7 years ago by simonmar

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

Fixed, thanks.

Thu May 10 16:45:42 BST 2007  Simon Marlow <simonmar@microsoft.com>
  * FIX #1181: parseStaticFlags should not be required

comment:3 Changed 6 years ago by igloo

  • Milestone changed from 6.8 branch to 6.8.1
Note: See TracTickets for help on using tickets.