[GHC] #738: ghc can't load files with selinux Enforcing

GHC trac at galois.com
Wed Aug 22 14:31:28 EDT 2007


#738: ghc can't load files with selinux Enforcing
-------------------------------------------+--------------------------------
    Reporter:  jon.fairbairn at cl.cam.ac.uk  |        Owner:          
        Type:  feature request             |       Status:  reopened
    Priority:  normal                      |    Milestone:  6.4.3   
   Component:  Runtime System              |      Version:  6.6.1   
    Severity:  normal                      |   Resolution:          
    Keywords:  selinux                     |   Difficulty:  Unknown 
          Os:  Linux                       |     Testcase:          
Architecture:  x86                         |  
-------------------------------------------+--------------------------------
Changes (by alexander.vodomerov at gmail.com):

  * architecture:  x86_64 (amd64) => x86
  * resolution:  fixed =>
  * severity:  major => normal
  * keywords:  => selinux
  * testcase:  =>
  * version:  6.4.1 => 6.6.1
  * status:  closed => reopened
  * type:  bug => feature request

Comment:

 The same (or at least similar) occurs on x86 with GHC 6.6.1. The compiler
 cannot even
 start.

 {{{
 $ ghc
 ghc-6.6.1: internal error: getMBlock: mmap: Permission denied
     (GHC version 6.6.1 for i386_unknown_linux)
     Please report this as a GHC bug:
 http://www.haskell.org/ghc/reportabug
 $ strace ghc
 ... /* skipped */ ...
 mmap2(NULL, 2097152, PROT_READ|PROT_WRITE|PROT_EXEC,
 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 EACCES (Permission denied)
 write(2, "ghc-6.6.1: internal error: ", 27ghc-6.6.1: internal error: ) =
 27
 }}}

 GHC 6.6.1 from Debian package

 Distro: Debian GNU/Linux Unstable (Lenny)

 Arch: x86

 Kernel: vanilla 2.6.22.4 Linux kernel

 SELinux policy: refpolicy-targeted (from Debian package)

 I would like to provide additional details, but I can't understand how
 to debug GHC. gdb shows completely brain-damaged stack dump.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/738>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list