
#13112: Windows 64-bit GHC HEAD segfaults on the code with a lot of TH stuff.
---------------------------------+--------------------------------------
Reporter: awson | Owner: (none)
Type: bug | Status: infoneeded
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):
tysonzero, I am unable to reproduce the segfault you're experiencing. Is
this the program you're using from
https://github.com/yesodweb/persistent/issues/794#issuecomment-370539509 ?
(I had to guess some details you left out.)
{{{#!hs
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE TypeApplications #-}
module Main where
import "monad-logger" Control.Monad.Logger
import "transformers" Control.Monad.Trans.Reader
import "persistent-postgresql" Database.Persist.Postgresql
main :: IO ()
main = runNoLoggingT . withPostgresqlConn "<connection string>" .
runReaderT @SqlBackend $ pure ()
}}}
{{{
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.2.2
$ ghc -- Bug.hs -O2 -fforce-recomp
[1 of 1] Compiling Main ( Bug.hs, Bug.o )
Linking Bug.exe ...
$ ./Bug.exe
Bug.exe: SqlError {sqlState = "", sqlExecStatus = FatalError, sqlErrorMsg
= "missing \"=\" after \"