[GHC] #15105: `typecheckModule` from GHC API crashes on MacOS for files with TH

GHC ghc-devs at haskell.org
Mon Apr 30 15:08:18 UTC 2018


#15105: `typecheckModule` from GHC API crashes on MacOS for files with TH
----------------------------------+----------------------------------------
        Reporter:  harpocrates    |                Owner:  (none)
            Type:  bug            |               Status:  new
        Priority:  normal         |            Milestone:  8.6.1
       Component:  GHC API        |              Version:  8.4.2
      Resolution:                 |             Keywords:
Operating System:  MacOS X        |         Architecture:  Unknown/Multiple
 Type of failure:  Runtime crash  |            Test Case:
      Blocked By:                 |             Blocking:
 Related Tickets:                 |  Differential Rev(s):
       Wiki Page:                 |
----------------------------------+----------------------------------------

Comment (by harpocrates):

 The problem doesn't manifest itself with an inplace GHC.

 {{{
 $ diff Prog.hs InplaceProg.hs
 4d3
 < import qualified GHC.Paths as GhcPaths
 9c8
 <   libDir <- pure GhcPaths.libdir
 ---
 >   let libDir = "./inplace/lib"
 }}}

 Then,

 {{{
 $ ./inplace/bin/ghc-stage2 -package ghc -package containers InplaceProg.hs
 [1 of 1] Compiling Main             ( InplaceProg.hs, InplaceProg.o )
 Linking InplaceProg ...
 $ ./InplaceProg  Main-no-TH.hs -package template-haskell
 $ ./InplaceProg  Main-TH.hs -package template-haskell

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


More information about the ghc-tickets mailing list