Edit report at https://bugs.php.net/bug.php?id=73114&edit=1
ID: 73114
Updated by: cmb@php.net
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:
> anyways if you want login to my openbsd vm feel free to mail
Thanks for the offer, but that wouldn't help, unfortunately. I've just
found a closely related bug report on the PCRE bug tracker[1] which
makes it clear that the issue would have to be resolved there. However,
that appears to be non-trivial, if possible at all. :-(
I've just emailed the internals mailing list[2] â maybe somebody else
has a solution.
[1] <https://bugs.exim.org/show_bug.cgi?id=1749>
[2] <http://news.php.net/php.internals/96837>
Previous Comments:
------------------------------------------------------------------------
[2016-11-11 18:20:15] martin dot larsson2 at gmail dot com
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
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
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