[GHC] #13112: Windows 64-bit GHC HEAD segfaults on the code with a lot of TH stuff.

GHC ghc-devs at haskell.org
Sun Aug 6 15:01:47 UTC 2017


#13112: Windows 64-bit GHC HEAD segfaults on the code with a lot of TH stuff.
---------------------------------+--------------------------------------
        Reporter:  awson         |                Owner:  (none)
            Type:  bug           |               Status:  new
        Priority:  normal        |            Milestone:
       Component:  Compiler      |              Version:  8.1
      Resolution:                |             Keywords:
Operating System:  Windows       |         Architecture:  x86_64 (amd64)
 Type of failure:  None/Unknown  |            Test Case:
      Blocked By:                |             Blocking:
 Related Tickets:                |  Differential Rev(s):
       Wiki Page:                |
---------------------------------+--------------------------------------

Comment (by RyanGlScott):

 OK. The reason I ask is that another user recently reported experiencing a
 segfault on 64-bit Windows (#14089), and while I haven't tried reproducing
 the exact issue myself due to the sheer number of dependencies, the heavy
 use of Template Haskell in their project makes me wonder if this issue is
 the underlying culprit.

 Unfortunately, GHC 8.2.1 seems to have made it more difficult to trigger
 the particular case of `language-c-quote` giving a segfault. It seems
 doubtful that the issue just magically cured itself in the meantime, since
 the discussion above strongly suggests that we'll need to change the way
 GHC allocates memory on Windows to properly fix this. It would be nice if
 there were a minimal, dependency-less way of reproducing this so that we
 could continue investigating.

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


More information about the ghc-tickets mailing list