"setExecutable: failed to protect" on NetBSD
Summary
On a NetBSD system with ghc-8.8.1, I get the following error on running a program compiled with the package haskeline:
internal error: setExecutable: failed to protect 0x0x42001df000
(GHC version 8.8.1 for x86_64_unknown_netbsd)
Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug
Abort trap (core dumped)
I do not know how specific to haskeline this is, but other simple programs do compile and run successfully on this system.
Steps to reproduce
Minimal program I've found which will trigger this bug, when compiled with haskeline-0.7.5.0 or -0.8.0.0 (I have not tested other versions):
module Main where
import System.Console.Haskeline
main = runInputT defaultSettings (getInputChar "test") >>= print
Expected behavior
Run without core dump.
Environment
- GHC version used: 8.8.1
- Operating System: NetBSD 8.1
- System Architecture: amd64 (The system on which the bug was triggered is the public access unix system sdf.org)