GHC on Fedora 10 - getMBlock: mmap: Permission denied

Hi all, Has anybody seen this? I thought it might be an SELinux thing, but then I wouldn't expect GHC or darcs to run. Audley is a fairly simple program in operating system feature terms, but I get the same error with anything I build myself. [fraser@astroboy audley]$ ./dist/build/audley/audley audley: internal error: getMBlock: mmap: Permission denied (GHC version 6.8.3 for i386_unknown_linux) Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug Aborted [fraser@astroboy audley]$ ghc --version The Glorious Glasgow Haskell Compilation System, version 6.8.3 [fraser@astroboy audley]$ cat /proc/version Linux version 2.6.27-0.352.rc7.git1.fc10.i686 ( mockbuild@x86-5.fedora.phx.redhat.com) (gcc version 4.3.2 20080917 (Red Hat 4.3.2-4) (GCC) ) #1 SMP Tue Sep 23 21:26:04 EDT 2008 [fraser@astroboy audley]$ cheers, Fraser. -- http://thewhitelion.org/mysister

Did you try turning off SELinux to check?
2008/12/2 Fraser Wilson
Hi all,
Has anybody seen this? I thought it might be an SELinux thing, but then I wouldn't expect GHC or darcs to run. Audley is a fairly simple program in operating system feature terms, but I get the same error with anything I build myself.
[fraser@astroboy audley]$ ./dist/build/audley/audley audley: internal error: getMBlock: mmap: Permission denied (GHC version 6.8.3 for i386_unknown_linux) Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug Aborted [fraser@astroboy audley]$ ghc --version The Glorious Glasgow Haskell Compilation System, version 6.8.3 [fraser@astroboy audley]$ cat /proc/version Linux version 2.6.27-0.352.rc7.git1.fc10.i686 ( mockbuild@x86-5.fedora.phx.redhat.com) (gcc version 4.3.2 20080917 (Red Hat 4.3.2-4) (GCC) ) #1 SMP Tue Sep 23 21:26:04 EDT 2008 [fraser@astroboy audley]$
cheers, Fraser.
-- http://thewhitelion.org/mysister
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Why didn't that occur to me? I should get more sleep. Thanks for the tip.
Now I know that it definitely is SELinux, a system I understand not at all,
I presume the problem is in these context things ... ghc has system_u and
bin_t, while audley has unconfined_u and file_t. Time to go poking about.
The unconfined_u looks suspicious.
cheers,
Fraser.
On Tue, Dec 2, 2008 at 3:48 PM, David Leimbach
Did you try turning off SELinux to check?
2008/12/2 Fraser Wilson
Hi all,
Has anybody seen this? I thought it might be an SELinux thing, but then I wouldn't expect GHC or darcs to run. Audley is a fairly simple program in operating system feature terms, but I get the same error with anything I build myself.
[fraser@astroboy audley]$ ./dist/build/audley/audley audley: internal error: getMBlock: mmap: Permission denied (GHC version 6.8.3 for i386_unknown_linux) Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug Aborted [fraser@astroboy audley]$ ghc --version The Glorious Glasgow Haskell Compilation System, version 6.8.3 [fraser@astroboy audley]$ cat /proc/version Linux version 2.6.27-0.352.rc7.git1.fc10.i686 ( mockbuild@x86-5.fedora.phx.redhat.com) (gcc version 4.3.2 20080917 (Red Hat 4.3.2-4) (GCC) ) #1 SMP Tue Sep 23 21:26:04 EDT 2008 [fraser@astroboy audley]$
cheers, Fraser.
-- http://thewhitelion.org/mysister
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Hello Fraser, Tuesday, December 2, 2008, 6:34:19 PM, you wrote: search in GHC tracker: afair there was some SELinux-releated report
Why didn't that occur to me? I should get more sleep. Thanks for the tip. Now I know that it definitely is SELinux, a system I understand not at all, I presume the problem is in these context things ... ghc has system_u and bin_t, while audley has unconfined_u and file_t. Time to go poking about. The unconfined_u looks suspicious.
cheers, Fraser.
On Tue, Dec 2, 2008 at 3:48 PM, David Leimbach
wrote: Did you try turning off SELinux to check?
2008/12/2 Fraser Wilson
Hi all,
Has anybody seen this? I thought it might be an SELinux thing, but then I wouldn't expect GHC or darcs to run. Audley is a fairly simple program in operating system feature terms, but I get the same error with anything I build myself.
[fraser@astroboy audley]$ ./dist/build/audley/audley audley: internal error: getMBlock: mmap: Permission denied (GHC version 6.8.3 for i386_unknown_linux) Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug Aborted [fraser@astroboy audley]$ ghc --version The Glorious Glasgow Haskell Compilation System, version 6.8.3 [fraser@astroboy audley]$ cat /proc/version Linux version 2.6.27-0.352.rc7.git1.fc10.i686 (mockbuild@x86-5.fedora.phx.redhat.com) (gcc version 4.3.2 20080917 (Red Hat 4.3.2-4) (GCC) ) #1 SMP Tue Sep 23 21:26:04 EDT 2008 [fraser@astroboy audley]$
cheers, Fraser.
-- http://thewhitelion.org/mysister
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com

Thanks, Bulat, ticket #738 appears to be it. It was fixed in September, but
I guess it hasn't made it to yum yet, although there's a work-around with
permissions and so forth.
cheers,
Fraser.
On Tue, Dec 2, 2008 at 4:42 PM, Bulat Ziganshin
Hello Fraser,
Tuesday, December 2, 2008, 6:34:19 PM, you wrote:
search in GHC tracker: afair there was some SELinux-releated report
Why didn't that occur to me? I should get more sleep. Thanks for the tip. Now I know that it definitely is SELinux, a system I understand not at all, I presume the problem is in these context things ... ghc has system_u and bin_t, while audley has unconfined_u and file_t. Time to go poking about. The unconfined_u looks suspicious.
cheers, Fraser.
On Tue, Dec 2, 2008 at 3:48 PM, David Leimbach
wrote: Did you try turning off SELinux to check? 2008/12/2 Fraser Wilson
Hi all,
Has anybody seen this? I thought it might be an SELinux thing, but then I wouldn't expect GHC or darcs to run. Audley is a fairly simple program in operating system feature terms, but I get the same error with anything I build myself.
[fraser@astroboy audley]$ ./dist/build/audley/audley audley: internal error: getMBlock: mmap: Permission denied (GHC version 6.8.3 for i386_unknown_linux) Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug Aborted [fraser@astroboy audley]$ ghc --version The Glorious Glasgow Haskell Compilation System, version 6.8.3 [fraser@astroboy audley]$ cat /proc/version Linux version 2.6.27-0.352.rc7.git1.fc10.i686 (mockbuild@x86-5.fedora.phx.redhat.com) (gcc version 4.3.2 20080917 (Red Hat 4.3.2-4) (GCC) ) #1 SMP Tue Sep 23 21:26:04 EDT 2008 [fraser@astroboy audley]$
cheers, Fraser.
-- http://thewhitelion.org/mysister
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com

I had fun with SELinux when using Haskell for CGI programs. The default SELinux policy forbids CGI programs that execute code in their data segment. I had to write a policy module that allowed httpd_sys_script_t self:process execmem. Oh joy. John
participants (4)
-
Bulat Ziganshin
-
David Leimbach
-
Fraser Wilson
-
John D. Ramsdell