[GHC] #12445: showSDocUnsafe generate GHC panic

#12445: showSDocUnsafe generate GHC panic -------------------------------------+------------------------------------- Reporter: Bet | Owner: Type: bug | Status: new Priority: normal | Milestone: ⊥ Component: GHC API | Version: 7.10.3 Keywords: GHC panic | Operating System: Unknown/Multiple Architecture: | Type of failure: Runtime crash Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- Try in ghci: {{{#!hs :set -package ghc :m Outputable let x = text "SomeDoc" showSDocUnsafe x }}} The code abobe generate: "ghc.exe: panic! (the 'impossible' happened) (GHC version 7.10.3 for x86_64-unknown-mingw32): v_unsafeGlobalDynFlags: not initialised Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12445 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12445: showSDocUnsafe generate GHC panic -------------------------------------+------------------------------------- Reporter: Bet | Owner: Type: bug | Status: closed Priority: normal | Milestone: ⊥ Component: GHC API | Version: 7.10.3 Resolution: invalid | Keywords: GHC panic Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by mpickering): * status: new => closed * resolution: => invalid Comment: The function is called `showSDocUnsafe` precisely for this reason, it is unsafe..! You should use `showSDoc` if you want more safety guarantees. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12445#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC