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,865
    • Issues 4,865
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 455
    • Merge requests 455
  • 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
  • #21390
Closed
Open
Created Apr 13, 2022 by Alan Zimmerman@alanzDeveloper

Segfault in GHC running check-exact

This is a marker for a segfault I am seeing on my ghc-exactprint update, which I have captured in branch wip/az/T21355-exactprint-update-segfault

Demonstrates segfault in ghci

In the utils/check-exact directory do

../../_build/stage1/bin/ghc --interactive
:l Main.hs
:main

It segfaults.

Do

../../_build/stage1/bin/ghc --interactive
:set -fobject-code
:l Main.hs
:main

It runs successfully (logging a lot of stuff).

The two logs are different, the one just before the segfault returns
junk for an AddEpAnn value.
See https://gist.github.com/alanz/9b944a59dbaa04f5d502fb5244d83270
for some detail

It is from a work in progress branch, and needs to be distilled to something useful. But I have a workaround by using -fobject-code so will proceed that way for a little longer. And will revisit some time, if no-one else does.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking