[GHC] #12445: showSDocUnsafe generate GHC panic

GHC ghc-devs at haskell.org
Thu Jul 28 11:50:01 UTC 2016


#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


More information about the ghc-tickets mailing list