#738: ghc can't load files with selinux Enforcing
-------------------------------------------+--------------------------------
    Reporter:  [EMAIL PROTECTED]  |        Owner:         
        Type:  bug                         |       Status:  new    
    Priority:  normal                      |    Milestone:         
   Component:  Compiler                    |      Version:  6.4.1  
    Severity:  major                       |     Keywords:         
          Os:  Linux                       |   Difficulty:  Unknown
Architecture:  x86_64 (amd64)              |  
-------------------------------------------+--------------------------------
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

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/738>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to