You need to sign in or sign up before continuing.
GHC Quickest flavour segfaults when it compiles input program
Summary
GHC 8.11.0 (9668781a) compiled with the Quickest flavour segfaults during compilation of optparse-applicative-0.15.1.0. It exits without any error message, just segfaults.
Steps to reproduce
I created a tiny sample project on github: https://github.com/csabahruska/ghc-bug-sample/tree/17fb252158ba6826307691cef0edfd43893fa8ab
- compile GHC with the Quickest flavour
- clone the ghc-bug-sample repository
- set the path in stack.yaml last line to the compiled GHC Quickest
- run
./compile.sh
Expected behavior
It should build the project including optparse-applicative. Instead it stops after the Options.Applicative.Help.Core module.
optparse-applicative> [ 7 of 16] Compiling Options.Applicative.Common
optparse-applicative> [ 8 of 16] Compiling Options.Applicative.Help.Core
-- While building package optparse-applicative-0.15.1.0 using:
/home/csaba/haskell/ghc-gitlab/bug-test/ghc-bug-sample/.stack-root/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_3.3.0.0_ghc-8.11.0.20200309 --verbose --builddir=.stack-work/dist/x86_64-linux/Cabal-3.3.0.0 build --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure (-11)
Progress 1/2
Environment
- GHC version used: GHC 8.11.0 (9668781a)
Optional:
- Operating System: Ubuntu 16.04
- System Architecture: x64
Edited by Csaba Hruska