From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Greg Troxel Newsgroups: gmane.lisp.guile.devel Subject: pax mprotect and guile build process Date: Sun, 08 Nov 2020 11:13:29 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34622"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Sun Nov 08 17:13:47 2020 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kbnK7-0008wS-3O for guile-devel@m.gmane-mx.org; Sun, 08 Nov 2020 17:13:47 +0100 Original-Received: from localhost ([::1]:51846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbnK6-0005Zu-5Y for guile-devel@m.gmane-mx.org; Sun, 08 Nov 2020 11:13:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41744) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kbnJt-0005Zm-Hq for guile-devel@gnu.org; Sun, 08 Nov 2020 11:13:33 -0500 Original-Received: from s1.lexort.com ([71.19.148.97]:53650) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kbnJr-0000tE-QB for guile-devel@gnu.org; Sun, 08 Nov 2020 11:13:33 -0500 Original-Received: by s1.lexort.com (Postfix, from userid 10853) id C1BFA410801; Sun, 8 Nov 2020 11:13:29 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lexort.com; s=mail; t=1604852009; bh=fXS/FA838+aM5O1esj7nMrtIr+QRVODgDHRQcfhAqr4=; h=From:To:Subject:Date; b=MRvcEGp9xUoF7xV7Qy30b8cQ0Ulwap1Z3aML5CgLG1HCo41Rsn2NbREsvtShwvItM cElfmSCvTxFB9zwumI0rlsHkQQ2WjBH9T5xRa19VMJXHBFOeuG+LJGDIpt9BsNFlDb EHITf3aGSWif9MDUEVGfZT77JCavacqxgaDLB9bI= OpenPGP: id=098ED60E Received-SPF: pass client-ip=71.19.148.97; envelope-from=gdt@lexort.com; helo=s1.lexort.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/08 10:13:04 X-ACL-Warn: Detected OS = FreeBSD 8.x [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.io gmane.lisp.guile.devel:20609 Archived-At: --=-=-= Content-Type: text/plain (I think I may have reported this earlier but I can't find it.) NetBSD runs with pax mprotect by default. Guile's JIT has trouble with this, due to the nature of JIT. In pkgsrc, we have: NOT_MPROTECT_SAFE+= ${GUILE_PREFIX}/bin/guile to do "paxctl +m" for guile as installed. However, during the build, the guile that has been built is used, and that guile fails. So this needs to be hoisted to guile's build procedure, not just a patch afterwards. I can't find any paxctl in the guile build procedure. I would expect this problem to occur on all systems that have pax mprotect on by default, and would also expect most systems to be doing that these days. So it doesn't make sense to me that I am the only one seeing this. So I wonder how this generally works on GNU/Linux systems? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQS7wyAjWilQwVHG9Vsf2nroCY7WDgUCX6gZKQAKCRAf2nroCY7W DlhMAJ9yaF1SbQfVXlYGdyDggi7lPRzoMgCcCeBxpt8J/TYx0cV4h059WyTOuJ8= =mUUg -----END PGP SIGNATURE----- --=-=-=--