Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

W^X violation when attempting to run the REPL on OpenBSD #4843

Open
Kaiepi opened this issue Apr 12, 2020 · 1 comment
Open

W^X violation when attempting to run the REPL on OpenBSD #4843

Kaiepi opened this issue Apr 12, 2020 · 1 comment

Comments

@Kaiepi
Copy link

Kaiepi commented Apr 12, 2020

Steps to Reproduce

Run $ idris on OpenBSD -current.

Expected Behavior

The REPL should start.

Observed Behavior

An internal error is produced:

bastille% idris
     ____    __     _
    /  _/___/ /____(_)____
    / // __  / ___/ / ___/     Version 1.3.2
  _/ // /_/ / /  / (__  )      http://www.idris-lang.org/
 /___/\__,_/_/  /_/____/       Type :? for help

Idris is free software with ABSOLUTELY NO WARRANTY.
For details type :warranty.
idris: internal error: setExecutable: failed to protect 0x0x228d92000

    (GHC version 8.6.4 for x86_64_unknown_openbsd)
    Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
zsh: abort (core dumped)  idris

This happens regardless of what IDRIS_CC is set to. Compiling programs seems to work OK.

@Kaiepi
Copy link
Author

Kaiepi commented Apr 12, 2020

This seems to be a W^X violation. Enabling wxallowed on /home allows the REPL to run for me.

@Kaiepi Kaiepi changed the title Internal error when attempting to run the REPL on OpenBSD W^X violation when attempting to run the REPL on OpenBSD Apr 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant