Bug #77260 [Com]: preg_match_all(): JIT compilation failed: no more memory

From: Date: Wed, 13 Mar 2019 07:25:16 +0000
Subject: Bug #77260 [Com]: preg_match_all(): JIT compilation failed: no more memory
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-219939@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77260&edit=1

 ID:                 77260
 Comment by:         ilya at ilya dot pp dot ua
 Reported by:        ettore at themecraft dot studio
 Summary:            preg_match_all(): JIT compilation failed: no more
                     memory
 Status:             Open
 Type:               Bug
 Package:            PCRE related
 Operating System:   macOS 10.13.6
 PHP Version:        7.3.0
 Block user comment: N
 Private report:     N

 New Comment:

openSUSE Tumbleweed PHP 7.3.1 (In 7.3.2 patch for pcre.jit=0)
https://bugzilla.opensuse.org/show_bug.cgi?id=1124446

https://bugs.php.net/bug.php?id=77260
In PHP 7.3 using pcre2 and using by default JIT compilation (pcre.jit=1)
This leads to errors like:
Warning in ./libraries/classes/Config.php#201 preg_match(): JIT compilation failed: no more memory
For everything that uses preg_*()
I get this error on the login screen in phpMyAdmin 4.8.5, while I have 128MB RAM allocated for PHP!
Until this is dealt with in the upstream. I suggest set in php.ini pcre.jit=0


Previous Comments:
------------------------------------------------------------------------
[2019-03-01 20:22:23] veraxcloud at gmail dot com

Here same problem with centos 7 and PHP 7.3.2 FPM.  First noticed on "Wordpresss W3 Total
Cache" with the minifying process but also on other Projects seen. Disabling JIT compilation
solved the problem also here. :)

------------------------------------------------------------------------
[2019-02-18 06:42:09] gerwinkrist at gmail dot com

On RHEL 7 we also have the problem, so it's not Mac specific. To be more specific we have it
with 7.3 and Laravel.

------------------------------------------------------------------------
[2019-02-04 09:38:35] marek dot svent at gmail dot com

I do – on Linux, but in crosscompiled environment. Haven't investigated yet more deeply.

------------------------------------------------------------------------
[2019-01-24 10:21:26] nikic@php.net

Is anyone who is *not* on macOS experiencing this issue?

------------------------------------------------------------------------
[2019-01-24 09:35:30] d dot kreuer at danielkreuer dot com

Disabling the JIT compilation of PCRE is a workaround for this error. Tweeted by Marcus Battle: https://twitter.com/themarcusbattle/status/1072929621790855174

------------------------------------------------------------------------


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=77260


--
Edit this bug report at https://bugs.php.net/bug.php?id=77260&edit=1


Thread (29 messages)

« previous php.bugs (#219939) next »