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
+Status: Closed
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:
We have decided that this is not an issue that PHP should try to
solve, but rather to document the problem and possible solutions.
Previous Comments:
------------------------------------------------------------------------
[2016-11-13 14:35:48] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=340988
Log: Document W^X/PaX MPROTECT issues
Fix #72281: PaX MPROTECT breaks php
Fix #73114: php segfault probably because OpenBSD wx implementation
------------------------------------------------------------------------
[2016-11-11 18:46:46] cmb@php.net
> 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>
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
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