Skip to content

GHC crashes on start in nixos/nix Docker image

In !8128 (closed) we noticed that GHC crashes when run in the nixos/nix Docker image:

$ nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
$ nix-channel --update
$ nix-shell '<nixpkgs>' -p ghc gdb strace
# ghc
ghc: internal error: Itimer: Failed to spawn thread: Operation not permitted
    (GHC version 9.0.2 for x86_64_unknown_linux)
    Please report this as a GHC bug:  https://www.haskell.org/ghc/reportabug
Aborted (core dumped)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information