[GHC] #13886: GHC panic when using GHC plugins

GHC ghc-devs at haskell.org
Tue Jun 27 20:59:32 UTC 2017


#13886: GHC panic when using GHC plugins
-------------------------------------+-------------------------------------
           Reporter:  Darwin226      |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.0.2
           Keywords:                 |  Operating System:  Windows
       Architecture:  x86_64         |   Type of failure:  Compile-time
  (amd64)                            |  crash or panic
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 I'm running GHC 8.0.2 on Windows 10. At first I was playing around with
 making my own type-checker plugin and I kept getting

 {{{#!hs
 ghc.EXE: panic! (the 'impossible' happened)
   (GHC version 8.0.2 for x86_64-unknown-mingw32):
         Static flags have not been initialised!
         Please call GHC.parseStaticFlags early enough.
 }}}

 on certain function calls (things like printing Docs). But now on an
 unrelated project I tried using the dump-core plugin and I'm getting the
 same error.

 The minimal example I can produce is simply

 {{{#!hs
 module Main where
 main = return ()
 }}}

 compiled with

 `stack exec ghc -- -fplugin=DumpCore PluginTest.hs` (or I'm guessing
 equivalently `ghc -fplugin=DumpCore PluginTest.hs`)

 Make sure to install the dump-core package first.

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


More information about the ghc-tickets mailing list