dump-core icon indicating copy to clipboard operation
dump-core copied to clipboard

Fails with panic on windows with ghc-8.0.1

Open AndreasPK opened this issue 8 years ago • 4 comments

$ stack ghc --  -O0 test.hs -fplugin=DumpCore -fplugin-opt DumpCore:core-html
[1 of 1] Compiling Test             ( test.hs, test.o ) [DumpCore changed]
ghc.EXE: panic! (the 'impossible' happened)
  (GHC version 8.0.1 for x86_64-unknown-mingw32):
        Static flags have not been initialised!
        Please call GHC.parseStaticFlags early enough.

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

AndreasPK avatar Feb 12 '17 14:02 AndreasPK

I've found an older ticket which might be the reason: https://ghc.haskell.org/trac/ghc/ticket/10301

Hasn't landed in GHC 8.0.2 yet so can't tell if this fixes this instance as well.

Update: I've tested it with GHC HEAD and it works there. So it's just a matter of waiting until the fix makes it into stable.

AndreasPK avatar Feb 12 '17 14:02 AndreasPK

Works with 8.0.2 and HEAD for me.

mpickering avatar Mar 30 '17 14:03 mpickering

I've just confirmed this again on my Notebook [W10 64Bit (Build 14393) with GHC-8.0.2] What version of windows are you running?

I don't have GHC-Head configured here so can't test that now, but I assume that would work.

AndreasPK avatar Mar 30 '17 18:03 AndreasPK

I'm also using 8.0.2 and getting this panic:

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.

Windows x64, package version is 0.1.3.

Porges avatar Jul 05 '17 09:07 Porges