Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • 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,842
    • Issues 4,842
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 456
    • Merge requests 456
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #19155

Closed
Open
Created Jan 02, 2021 by sheaf@sheafMaintainer

GHCi 9.0 hangs when trying to run a program that otherwise runs fine

Summary

I'm testing out GHC-9.0.1-rc1, and encountered an issue when trying to run a program in GHCi. GHCi hangs, without any indication of what the problem might be.

Steps to reproduce

Unfortunately I don't have a simple reproducer, but all of the example applications in my shader library seem to run into the same problem. To reproduce (Linux & Windows only):

git clone https://gitlab.com/sheaf/fir
cd fir/fir-examples
cabal repl JuliaSet

ghci> main
[... hangs]

Note that running the executables directly works fine, e.g. in this case cabal run JuliaSet runs without problems.
On previous versions of GHC, the programs run in GHCi without problems.

Show/hide further info about running the reproducer.

Additional info for running the reproducer

The examples require SDL and the Vulkan SDK to be installed, visible to cabal. The library has installation instructions; in my case I installed the Vulkan SDK from the LunarG website at C:/VulkanSDK/1.2.154.1/, and have the following cabal.project.local file:

with-compiler: C:/Haskell/GHC/ghc-9.0.1-rc1/bin/ghc.exe

package vulkan
  extra-lib-dirs: C:/VulkanSDK/1.2.154.1/Lib

package vulkan-utils
  extra-lib-dirs: C:/VulkanSDK/1.2.154.1/Lib
  extra-include-dirs: C:/VulkanSDK/1.2.154.1/Include/

Environment

GHC 9.0-rc1, on Windows 10 x64. For the moment I am assuming this is Windows specific (until someone can reproduce on Linux).

Please let me know how to attempt debugging this; currently I don't know what's happening beyond GHCi hanging (which I realise is not very helpful).

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