[GHC] #11414: Panic with -XStrict: StgCmmEnv: variable not found

GHC ghc-devs at haskell.org
Sun Jan 17 20:01:02 UTC 2016


#11414: Panic with -XStrict: StgCmmEnv: variable not found
-------------------------------------+-------------------------------------
        Reporter:  thomie            |                Owner:
            Type:  bug               |               Status:  new
        Priority:  highest           |            Milestone:  8.0.1
       Component:  Compiler          |              Version:  7.11
      Resolution:                    |             Keywords:  Strict
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:  T11414
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by bgamari):

 * priority:  high => highest


Old description:

> {{{
> {-# LANGUAGE Strict #-}
> main = print $ let x = undefined in True
> }}}
>

> Using HEAD or GHC 8.0:
> {{{
> $ ghc-8.0.0.20160109 Test.hs
> [1 of 1] Compiling Main             ( Test.hs, Test.o )
> ghc: panic! (the 'impossible' happened)
>   (GHC version 8.0.0.20160109 for x86_64-unknown-linux):
>         StgCmmEnv: variable not found
>   $dIP_aDK
>   local binds for:
>
> Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
> }}}
>
> Using a devel2 build:
> {{{
> $ ./inplace/bin/ghc-stage2 Test.hs
> [1 of 1] Compiling Main             ( Test.hs, Test.o )
> WARNING: file compiler/simplCore/OccurAnal.hs, line 66
>   Glomming in Main: [aDO :->]
> WARNING: file compiler/coreSyn/CoreSubst.hs, line 278
>   CoreSubst.lookupIdSubst simpleOptExpr $dIP_aDO
>   InScope [aDM :-> a_aDM]
> WARNING: file compiler/simplCore/OccurAnal.hs, line 66
>   Glomming in Main: [aDO :-> Once]
> WARNING: file compiler/simplCore/SimplEnv.hs, line 530 $dIP_aDO
> WARNING: file compiler/simplCore/OccurAnal.hs, line 66
>   Glomming in Main: [aDO :-> Once]
> WARNING: file compiler/simplCore/SimplEnv.hs, line 530 $dIP_aDO
> ghc-stage2: panic! (the 'impossible' happened)
>   (GHC version 8.1.20160103 for x86_64-unknown-linux):
>         ASSERT failed! file compiler/stgSyn/CoreToStg.hs line 1025
> $dIP_aDO
>
> Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
> }}}

New description:

 {{{#!hs
 {-# LANGUAGE Strict #-}
 main = print $ let x = undefined in True
 }}}


 Using HEAD or GHC 8.0:
 {{{
 $ ghc-8.0.0.20160109 Test.hs
 [1 of 1] Compiling Main             ( Test.hs, Test.o )
 ghc: panic! (the 'impossible' happened)
   (GHC version 8.0.0.20160109 for x86_64-unknown-linux):
         StgCmmEnv: variable not found
   $dIP_aDK
   local binds for:

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

 Using a devel2 build:
 {{{
 $ ./inplace/bin/ghc-stage2 Test.hs
 [1 of 1] Compiling Main             ( Test.hs, Test.o )
 WARNING: file compiler/simplCore/OccurAnal.hs, line 66
   Glomming in Main: [aDO :->]
 WARNING: file compiler/coreSyn/CoreSubst.hs, line 278
   CoreSubst.lookupIdSubst simpleOptExpr $dIP_aDO
   InScope [aDM :-> a_aDM]
 WARNING: file compiler/simplCore/OccurAnal.hs, line 66
   Glomming in Main: [aDO :-> Once]
 WARNING: file compiler/simplCore/SimplEnv.hs, line 530 $dIP_aDO
 WARNING: file compiler/simplCore/OccurAnal.hs, line 66
   Glomming in Main: [aDO :-> Once]
 WARNING: file compiler/simplCore/SimplEnv.hs, line 530 $dIP_aDO
 ghc-stage2: panic! (the 'impossible' happened)
   (GHC version 8.1.20160103 for x86_64-unknown-linux):
         ASSERT failed! file compiler/stgSyn/CoreToStg.hs line 1025
 $dIP_aDO

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

--

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


More information about the ghc-tickets mailing list