Skip to content

ghc can't load files with selinux Enforcing

ghc fails (not always) to load files when selinux is in Enforcing mode:


   calligramme:~/haskell/
15:49:24$ sudo setenforce Permissive
Password:
   calligramme:~/haskell/
15:49:45$ ghci
   ___         ___ _
  / _ \ /\  /\/ __(_)
 / /_\// /_/ / /  | |      GHC Interactive, version 6.4.1, for Haskell 98.
/ /_\\/ __  / /___| |      http://www.haskell.org/ghc/
\____/\/ /_/\____/|_|      Type :? for help.

Loading package base-1.0 ... linking ... done.
Prelude> :l State_machine.lhs
Compiling Main             ( State_machine.lhs, interpreted )
Ok, modules loaded: Main.
*Main> :q
Leaving GHCi.
   calligramme:~/haskell/
15:49:55$ sudo setenforce Enforcing
   calligramme:~/haskell/
15:50:06$ ghci
   ___         ___ _
  / _ \ /\  /\/ __(_)
 / /_\// /_/ / /  | |      GHC Interactive, version 6.4.1, for Haskell 98.
/ /_\\/ __  / /___| |      http://www.haskell.org/ghc/
\____/\/ /_/\____/|_|      Type :? for help.

Loading package base-1.0 ... linking ... done.
Prelude> :l State_machine.lhs
Compiling Main             ( State_machine.lhs, interpreted )
ghc-6.4.1: internal error: mallocBytesRWX: failed to protect 0x0x1660730

    Please report this as a bug to glasgow-haskell-bugs@haskell.org,
    or http://www.sourceforge.net/projects/ghc/

This only seems to happen on x86_64

Trac metadata
Trac field Value
Version 6.4.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture x86_64 (amd64)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information