Bug #78272 [Opn->Ver]: calling preg_match() before pcntl_fork() will freeze child process
| From: | nikic@php.net | Date: | Wed, 18 Sep 2019 08:25:04 +0000 |
| Subject: | Bug #78272 [Opn->Ver]: calling preg_match() before pcntl_fork() will freeze child process | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-222800@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78272&edit=1
ID: 78272
Updated by: nikic@php.net
Reported by: dams@php.net
Summary: calling preg_match() before pcntl_fork() will freeze
child process
-Status: Open
+Status: Verified
Type: Bug
Package: PCRE related
Operating System: OSX
PHP Version: 7.3.7
Block user comment: N
Private report: N
New Comment:
Reproduced on CI.
Previous Comments:
------------------------------------------------------------------------
[2019-07-12 09:54:45] dams@php.net
Here is my build sequence :
git pull
git checkout PHP-7.4; git pull
make clean
./buildconf --force
env YACC=
brew --prefix bison/bin/bison ./configure \
--prefix="/usr/local/opt/php74" \
--with-config-file-path="/usr/local/etc/php71" \
--with-config-file-scan-dir=/usr/local/etc/phpng/conf.d \
--enable-mbstring \
--enable-tokenizer \
--with-curl=/usr/local/opt/curl/\
--enable-mbstring \
--with-sqlite3=/usr/local/Cellar/sqlite/3.28.0 \
--with-sodium=/usr/local/opt/libsodium \
--enable-json \
--enable-pcntl \
--disable-all
gmake -jsysctl -n hw.logicalcpu_max
gmake test
I have the last OSX patches :
System Version: macOS 10.14.5 (18F132)
Kernel Version: Darwin 18.6.0
------------------------------------------------------------------------
[2019-07-11 10:59:29] nikic@php.net
I was not able to reproduce this issue on 7.4 on Darwin 16.0.0. I tried both NTS and ZTS builds.
------------------------------------------------------------------------
[2019-07-10 16:03:59] dams@php.net
pcre.jit=0 fixes the problem, both with PHP 7.3 and 7.4.
pcre.jit=1 behave the same with php 7.3 and 7.4.
------------------------------------------------------------------------
[2019-07-10 15:37:33] nikic@php.net
And also whether it works if you set pcre.jit=0.
------------------------------------------------------------------------
[2019-07-10 15:37:09] nikic@php.net
Is it possible for you test whether this works on 7.4 (has an updated PCRE2)?
------------------------------------------------------------------------
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=78272
--
Edit this bug report at https://bugs.php.net/bug.php?id=78272&edit=1