[GHC] #14631: GHC 8.2.2 crashes when building the haskell-gi sample code

GHC ghc-devs at haskell.org
Wed Jan 3 15:45:09 UTC 2018


#14631: GHC 8.2.2 crashes when building the haskell-gi sample code
-------------------------------------+-------------------------------------
        Reporter:  muscar            |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.2
      Resolution:                    |             Keywords:
Operating System:  Linux             |         Architecture:  x86_64
 Type of failure:  Compile-time      |  (amd64)
  crash or panic                     |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Description changed by muscar:

Old description:

> GHC 8.2.2 crashes while building the haskell-gi sample code in a new
> project created with stack (see the attached project).
>
> Steps to repro:
>
> 1. Download the attached project
> 2. Unarchive
> 3. run `stack build` in the project folder.

New description:

 GHC 8.2.2 crashes while building the haskell-gi sample code in a new
 project created with stack:

     ghc: panic! (the 'impossible' happened)
       (GHC version 8.2.2 for x86_64-unknown-linux):
         tcIfaceGlobal (local): not found
       You are in a maze of twisty little passages, all alike.
       While forcing the thunk for TyThing Layout
       which was lazily initialized by initIfaceCheck typecheckLoop,
       I tried to tie the knot, but I couldn't find Layout
       in the current type environment.
       If you are developing GHC, please read Note [Tying the knot]
       and Note [Type-checking inside the knot].
       Consider rebuilding GHC with profiling for a better stack trace.
       Contents of current type environment: []
       Call stack:
           CallStack (from HasCallStack):
             prettyCurrentCallStack, called at
 compiler/utils/Outputable.hs:1133:58 in ghc:Outputable
             callStackDoc, called at compiler/utils/Outputable.hs:1137:37
 in ghc:Outputable
             pprPanic, called at compiler/iface/TcIface.hs:1696:23 in
 ghc:TcIface

 Steps to repro:

 1. Download the attached project
 2. Unarchive
 3. run `stack build` in the project folder.

--

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


More information about the ghc-tickets mailing list