Bug #73114 [Asn->Fbk]: php segfault probably becouse OpenBSD wx implementation

From: Date: Wed, 09 Nov 2016 15:10:17 +0000
Subject: Bug #73114 [Asn->Fbk]: php segfault probably becouse OpenBSD wx implementation
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205260@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
 Updated by:         ab@php.net
 Reported by:        martin dot larsson2 at gmail dot com
 Summary:            php segfault probably becouse OpenBSD wx
                     implementation
-Status:             Assigned
+Status:             Feedback
 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:

@martin dot larsson2 at gmail dot com, could you check bug #72281 please? Seems it's same
issue.

thanks.


Previous Comments:
------------------------------------------------------------------------
[2016-09-19 17:56:10] martin dot larsson2 at gmail dot com

I just checked dmesg, and it says
php-7.0(10468): mmap W^X violation

just to be clear :)

------------------------------------------------------------------------
[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


Thread (15 messages)

« previous php.bugs (#205260) next »