You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loading a module that contains a template Haskell splice from Control.Lens.TH causes GHC and Haskell-language-server to crash with internal error: checkProddableBlock: invalid fixup in runtime linker: 0x200001db6. This happens with ghc-8.10.3 on macOSX.
The issue might be related to #800 or #1297, but the actual failure is different.
Your environment
Output of haskell-language-server --probe-tools or haskell-language-server-wrapper --probe-tools:
haskell-language-server version: 0.9.0.0 (GHC: 8.10.3) (PATH: /Users/lars/.cabal/store/ghc-8.10.3/hskll-lngg-srvr-0.9.0.0-e9acceaa/bin/haskell-language-server)
Tool versions found on the $PATH
cabal: 3.2.0.0
stack: 2.5.1.1
ghc: 8.10.3
Which lsp-client do you use: The issue can be reproduced by just running haskell-language-client -debug FILEPATH
cat > A.hs <<EOF{-# LANGUAGE TemplateHaskell #-}module A whereimport Control.Lens.THnewtype A a = A { _a :: a }makeLenses ''AEOF
haskell-language-server-8.10.3 A.hs
Expected behaviour
Completed (1 file worked, 0 files failed)
Actual behaviour
haskell-language-server-8.10.3: internal error: checkProddableBlock: invalid fixup in runtime linker: 0x200001db6
(GHC version 8.10.3 for x86_64_apple_darwin)
Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug
Abort trap: 6
Calling ghc C.hs and ghci C.hs both work fine.
Include debug information
Execute in the root of your project the command haskell-language-server --debug . and paste the logs here:
Debug output:
haskell-language-server version: 0.9.0.0 (GHC: 8.10.3) (PATH: /Users/lars/.cabal/store/ghc-8.10.3/hskll-lngg-srvr-0.9.0.0-e9acceaa/bin/haskell-language-server)
(haskell-language-server)Ghcide setup tester in /Users/lars/Code/chainweb/test.
Report bugs at https://github.com/haskell/haskell-language-server/issues
Tool versions found on the $PATH
cabal: 3.2.0.0
stack: 2.5.1.1
ghc: 8.10.3
Step 1/4: Finding files to test in /Users/lars/Code/chainweb/test
Found 1 files
Step 2/4: Looking for hie.yaml files that control setup
Found 1 cradle
Step 3/4: Initializing the IDE
Step 4/4: Type checking the files
[INFO] Consulting the cradle for "A.hs"
Output from setting up the cradle Cradle {cradleRootDir = "/Users/lars/Code/chainweb/test", cradleOptsProg = CradleAction: Direct}
[INFO] Using interface files cache dir: ghcide
[INFO] Making new HscEnv[main]
haskell-language-server: internal error: checkProddableBlock: invalid fixup in runtime linker: 0x200001db6
(GHC version 8.10.3 for x86_64_apple_darwin)
Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug
Abort trap: 6
Paste the logs from the lsp-client, e.g. for VS Code
larskuhtz
changed the title
Loading project fails with "invalid fixup in runtime linker"
Loading module with Template Haskell fails with "invalid fixup in runtime linker"
Feb 3, 2021
larskuhtz
changed the title
Loading module with Template Haskell fails with "invalid fixup in runtime linker"
Template Haskell splice fails with "invalid fixup in runtime linker"
Feb 3, 2021
Loading a module that contains a template Haskell splice from
Control.Lens.TH
causes GHC and Haskell-language-server to crash withinternal error: checkProddableBlock: invalid fixup in runtime linker: 0x200001db6
. This happens with ghc-8.10.3 on macOSX.The issue might be related to #800 or #1297, but the actual failure is different.
Your environment
Output of
haskell-language-server --probe-tools
orhaskell-language-server-wrapper --probe-tools
:haskell-language-server version: 0.9.0.0 (GHC: 8.10.3) (PATH: /Users/lars/.cabal/store/ghc-8.10.3/hskll-lngg-srvr-0.9.0.0-e9acceaa/bin/haskell-language-server) Tool versions found on the $PATH cabal: 3.2.0.0 stack: 2.5.1.1 ghc: 8.10.3
Which lsp-client do you use: The issue can be reproduced by just running
haskell-language-client -debug FILEPATH
Describe your project (alternative: link to the project): https://github.com/kadena-io/chainweb-node
Contents of
hie.yaml
:Steps to reproduce
Expected behaviour
Actual behaviour
Calling
ghc C.hs
andghci C.hs
both work fine.Include debug information
Execute in the root of your project the command
haskell-language-server --debug .
and paste the logs here:Debug output:
Paste the logs from the lsp-client, e.g. for VS Code
LSP logs:
The text was updated successfully, but these errors were encountered: