Bug #73114 [Asn]: php segfault probably because OpenBSD wx implementation

From: Date: Fri, 11 Nov 2016 18:20:15 +0000
Subject: Bug #73114 [Asn]: php segfault probably because OpenBSD wx implementation
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205313@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73114&edit=1

 ID:                 73114
 User updated by:    martin dot larsson2 at gmail dot com
 Reported by:        martin dot larsson2 at gmail dot com
 Summary:            php segfault probably because OpenBSD wx
                     implementation
 Status:             Assigned
 Type:               Bug
 Package:            PCRE related
 Operating System:   OpenBSD
 PHP Version:        7.0.11
 Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

yes it works without that, but that we knew from the beginning right?:)

anyways if you want login to my openbsd vm feel free to mail


Previous Comments:
------------------------------------------------------------------------
[2016-11-11 18:11:49] cmb@php.net

Thanks! I've found an article[1] which includes the commit message
regarding the W^X violation protection. It seems to me that for now you
have to use the "wxallowed" mount option. Alternatively, building PHP
without PCRE JIT support (--without-pcre-jit) should also work (assuming
that this is indeed the only part that uses W|X mmap).

[1] <http://undeadly.org/cgi?action=article&sid=20160527203200>

------------------------------------------------------------------------
[2016-11-11 17:39:22] martin dot larsson2 at gmail dot com

same error with CFLAGS="-fpie -pie" ./configure

here is paste http://pastebin.ca/3738078

------------------------------------------------------------------------
[2016-11-11 16:40:00] cmb@php.net

Ah, I see, thanks! Please try to build with:

  CFLAGS="-fpie -pie" ./configure …

Cf. <https://www.openbsd.org/papers/asiabsdcon2015-pie-slides.pdf>.

------------------------------------------------------------------------
[2016-11-11 14:05:11] martin dot larsson2 at gmail dot com

php doesnt compile for me at all, I use the package.

I get wx violation just trying to compile it, and that netbsd patch use some paxctl which openbsd
doesnt have.

------------------------------------------------------------------------
[2016-11-09 20:13:38] cmb@php.net

> Thought https://bugs.php.net/bug.php?id=72281 was a
> compilation error?

No. Actually it appears to be the very same issue:

 * this ticket: mmap W^X violation
 * the other ticket: it does not allow mapping pages both writable and
   executable

Martin, could you please check whether the patch attached to the other
ticket would solve the issue for you?

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=73114


--
Edit this bug report at https://bugs.php.net/bug.php?id=73114&edit=1


Thread (15 messages)

« previous php.bugs (#205313) next »