#2880: GHC panic when printing Unique
-----------------------------+----------------------------------------------
Reporter:  sebf              |          Owner:                  
    Type:  bug               |         Status:  new             
Priority:  normal            |      Component:  Compiler        
 Version:  6.10.1            |       Severity:  normal          
Keywords:                    |       Testcase:                  
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
-----------------------------+----------------------------------------------
 The following program causes panic:
 {{{
     import UniqSupply
     main = mkSplitUniqSupply 'x' >>= print . uniqFromSupply
 }}}
 The error message is:
 {{{
     ghcbug: ghcbug: panic! (the 'impossible' happened)
       (GHC version 6.10.1 for i386-apple-darwin):
             Static flags have not been initialised!
             Please call GHC.newSession or GHC.parseStaticFlags early
 enough.
 }}}

 I have encountered this on an Apple !MacBook with GHC 6.10.1 and could
 reproduce it on a Linux PC with the same GHC version.

 The module !UniqSupply comes from the ghc package which is hidden by
 default. So before compiling it (or running it in GHCi) type
 {{{
     ghc-pkg expose ghc
 }}}
 in a shell.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2880>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to