phoityne / ghci-dap

ghci having DAP interface.
https://hackage.haskell.org/package/ghci-dap
Other
19 stars 3 forks source link

Crashes on modules with Template Haskell #5

Open tkx68 opened 3 years ago

tkx68 commented 3 years ago

I have macOS 11. Big Sur and run GHC 8.10.3 with current master branch of ghci-dap end related packages. When starting ghci with

stack ghci --with-ghc=ghci-dap conzone:lib conzone:exe:conzone --test --no-load --no-build --main-is conzone:exe:conzone

it starts regularly. But after loading the main file and therefore the whole project ghci crashes with

[12 of 94] Compiling Model            ( /Users/tkx/devel/conzone/conzone-web-app/conzone/src/Model.hs, interpreted )
[1]    98871 segmentation fault  stack ghci --with-ghc=ghci-dap conzone:lib conzone:exe:conzone --test    

My project is based on the Yesod scaffold and contains huge amounts of Template Haskell therefore. The interpreter does not always crash on exactly the same Module but it seems to be always one that contains template Haskell code. And it prefers to crash on the more complex ones.

phoityne commented 3 years ago

Hi. might be related to this issue.

https://gitlab.haskell.org/ghc/ghc/-/issues/19021

Regards.