Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,870
    • Issues 4,870
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 453
    • Merge requests 453
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #17909
Closed
Open
Created Mar 10, 2020 by Csaba Hruska@trac-csabahruska

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

  1. compile GHC with the Quickest flavour
  2. clone the ghc-bug-sample repository
  3. set the path in stack.yaml last line to the compiled GHC Quickest
  4. 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 Mar 10, 2020 by Csaba Hruska
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking