Bug #75223 [NEW]: PCRE JIT broken in 7.2

From: Date: Mon, 18 Sep 2017 11:58:08 +0000
Subject: Bug #75223 [NEW]: PCRE JIT broken in 7.2
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-211206@lists.php.net to get a copy of this message
From: giovanni at giacobbi dot net Operating system: Linux CentOS 7.4.1708 PHP version: 7.2.0RC2 Package: PCRE related Bug Type: Bug Bug description:PCRE JIT broken in 7.2 Description: ------------ There is a problem in preg_match() when JIT is enabled and when running through Apache2 with event MPM. This problem does not occur with command line invocation. Here are the versions I tested, same environment: 7.1.9 works with PCRE JIT enabled 7.2.0alpha1 broken 7.2.0rc2 broken Build command line: ./configure \ --with-apxs2=/usr/local/apache2/bin/apxs \ --disable-cgi \ --enable-intl \ --with-layout=GNU \ --enable-maintainer-zts \ --with-gettext=static \ --with-iconv \ --with-mysqli=mysqlnd \ --enable-exif \ --with-openssl \ --with-curl Test script: --------------- var_dump(preg_match('/^a/', "a")); var_dump(preg_match('/a/', "a")); Expected result: ---------------- int(1) int(1) Actual result: -------------- int(0) segmentation fault -- Edit bug report at https://bugs.php.net/bug.php?id=75223&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75223&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75223&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75223&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75223&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75223&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75223&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75223&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75223&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75223&r=support Expected behavior: https://bugs.php.net/fix.php?id=75223&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75223&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75223&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75223&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75223&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75223&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75223&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75223&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75223&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75223&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75223&r=mysqlcfg

« previous php.bugs (#211206) next »