[GHC] #12753: GHCi/Template Haskell: Don't panic on linker errors.

GHC ghc-devs at haskell.org
Sat Oct 22 13:57:37 UTC 2016


#12753: GHCi/Template Haskell: Don't panic on linker errors.
-------------------------------------+-------------------------------------
           Reporter:  trommler       |             Owner:
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Runtime        |           Version:  8.0.1
  System (Linker)                    |
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  GHCi crash
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:  #11042
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 When the link editor is called by `Linker.hs` as part of loading a library
 and an error occurs GHCi panics. As a consequence users submit bug reports
 because the panic message tells them do do so.

 The link editor process can fail because of missing libraries, failure to
 create a link file, missing linker program, etc., all of which are beyond
 the control of GHC and should not be considered a bug in GHC.

 When the link editor fails
 1. an error message should be printed and GHC should terminate if the
 error is fatal.
 1. a warning (that could be silenced) should be issued in non-fatal cases.

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


More information about the ghc-tickets mailing list