
#13574: crash when using template haskell and ghc-mod ---------------------------------+-------------------------------------- Reporter: quisquous | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: fixed | Keywords: Operating System: OpenBSD | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+-------------------------------------- Changes (by quisquous): * status: new => closed * resolution: => fixed Comment: I upgraded my machine to OpenBSD 6.1 and I get a permissions issue when running ghc-mod instead: {{{ Failed to execute process '/home/scott/.local/bin/ghc-mod'. Reason: exec: Permission denied }}} and on the console I see: {{{ /home/scott/.local/bin/ghc-mod(78252): W^X binary outside wxallowed mountpoint }}} I suspect the crash I was seeing in 6.0 was related to OpenBSD not allowing WX by default. Workaround is to put the ghc-mod binary in a location that allows WX, like /usr/local, or by setting wxallowed on the /home partition by updating /etc/fstab. In any case, once I set wxallowed on /home, /home/scott/.local/bin/ghc-mod no longer gives a permissions error AND it does not crash when checking a Template Haskell project. I'm going to close the ticket for now, I'll reopen it if I am able repro the crash some other way. Thanks for looking into this! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13574#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler