Bug #73114 [Com]: php segfault probably becouse OpenBSD wx implementation

From: Date: Mon, 19 Sep 2016 17:56:11 +0000
Subject: Bug #73114 [Com]: php segfault probably becouse OpenBSD wx implementation
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204136@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 Comment by: martin dot larsson2 at gmail dot com Reported by: martin dot larsson2 at gmail dot com Summary: php segfault probably becouse 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: I just checked dmesg, and it says php-7.0(10468): mmap W^X violation just to be clear :) Previous Comments: ------------------------------------------------------------------------ [2016-09-19 17:49:07] cmb@php.net Thanks. I'll have a closer look at the issue. ------------------------------------------------------------------------ [2016-09-19 17:03:09] martin dot larsson2 at gmail dot com pcre-8.38p0 is the version installed. and yes it works if I use pcre.jit=0 ------------------------------------------------------------------------ [2016-09-19 15:38:10] cmb@php.net What's your setting of pcre.jit? If it's 1, please set to 0 and try again. Also it would be helpful to know which version of libpcre you're using. ------------------------------------------------------------------------ [2016-09-19 15:09:40] martin dot larsson2 at gmail dot com Description: ------------ # php-7.0 broke.php Abort trap (core dumped) # php segfault probably becouse of OpenBSD wx implementation, must stuff seem to work but preg_replace segfaults php. Test script: --------------- <?php $string = 'April 15, 2003'; $pattern = '/(\w+) (\d+), (\d+)/i'; $replacement = '${1}1,$3'; echo preg_replace($pattern, $replacement, $string); ?> ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73114&edit=1

« previous php.bugs (#204136) next »