[Mono-bugs] [Bug 49499][Cri] Changed - mono:: segfaults under Fedora Linux
Fri, 17 Oct 2003 20:26:16 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by email@example.com.
--- shadow/49499 2003-10-17 16:12:44.000000000 -0400
+++ shadow/49499.tmp.8718 2003-10-17 20:26:16.000000000 -0400
@@ -209,6 +209,17 @@
error CS2008: No files to compile were specified
Compilation failed: 1 error(s), 0 warnings
That's it... But if it's enabled as default in upcoming releases we
will have a lot of people complaining about mcs giving a segfault...
+------- Additional Comments From firstname.lastname@example.org 2003-10-17 20:26 -------
+Concurring with what was already suggested - that this is because of
+the Exec-Shield implementation in Fedora (
+http://lists.insecure.org/lists/linux-kernel/2003/May/0371.html ), I
+am attaching a patch suggestion below with what I believe could be one
+solution. The call to mmap() will not set execution rights even if
+passed as argument (Exec-Shield prevents implicit executable rights
+commonly assumed from the (at least on x86) merged 'read or execute'
+flag (details in link above)), so by adding a call to mprotect() we
+can set PROT_EXEC to allow execution rights on the mapped area.