#581: make segfaults with PGE.pbc on fedora (r38365)
--------------------+-------------------------------------------------------
Reporter: Lu. | Owner: Infinoid
Type: bug | Status: new
Priority: normal | Milestone:
Component: core | Version:
Severity: medium | Keywords:
Lang: | Patch:
Platform: linux |
--------------------+-------------------------------------------------------
Comment(by markmont):
I've attached a patch, configure_jit_selinux.patch, for setting
PARROT_HAS_EXEC_PROTECT under Fedora, thus causing JIT to use mmap()
buffers on Fedora systems (which works) instead of using the heap (which
results in a segmentation fault when SELinux is in enforcing mode). This
was tested under Fedora 11 with "make test" for both parrot and rakudo.
I consider this to be a temporary workaround pending the proper/complete
solutions described by Infinoid above.
The patch should be safe, as it changes only
config/auto/jit/test_exec_linux_c.in to test for exec protection using
mmap() instead of mprotect(), as this is how src/platform.c currently
works for Linux platforms.
The change became necessary when Fedora tightened SELinux exec protection
several releases back, breaking the mprotect() method when used with the
heap when SELinux is in enforcing mode. See
http://people.redhat.com/drepper/selinux-mem.html
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/581#comment:12>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets