unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* JIT and pax mprotect
@ 2020-08-27 19:28 Greg Troxel
  0 siblings, 0 replies; only message in thread
From: Greg Troxel @ 2020-08-27 19:28 UTC (permalink / raw)
  To: guile-devel

[-- Attachment #1: Type: text/plain, Size: 899 bytes --]


In trying to build 3.0.2 on NetBSD 8, I get a permission denied failure
in JIT, because of PaX MPROTECT.  Disabling that (in the individual
file, or globally) allows things to work.   This is a security feature
that prevents  making writable mappings executable.

I would expect this to run into the same problem on GNU/Linux systems.
Has anyone run into that, and is there an accomodation for this?   A
quick egrep -R of the sources doesn't turn up anything.

I am guessing that basically the link line for guile should be doing:

  if OS in (NetBSD, ?):
     paxctl +m libguile/.libs/guile

pkgsrc's build recipe does this for the final binary, but guile is built
and then used during the build step.

(Also, it might be nice to have a nicer exit than a core dump in the
presence of mprotect, but that's not that important.)

(Will update to 3.0.3, but probably that is the same).

Thanks,
Greg


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-27 19:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-27 19:28 JIT and pax mprotect Greg Troxel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).