Edit report at https://bugs.php.net/bug.php?id=77260&edit=1
ID: 77260
Updated by: nikic@php.net
Reported by: ettore at themecraft dot studio
Summary: preg_match_all(): JIT compilation failed: no more
memory
Status: Closed
Type: Bug
Package: PCRE related
Operating System: macOS 10.13.6
PHP Version: 7.3.0
Assigned To: nikic
Block user comment: N
Private report: N
New Comment:
For reference, further discussion is happening on #78630.
Previous Comments:
------------------------------------------------------------------------
[2019-10-03 19:30:20] nikic@php.net
@ilya: Can you please open a new bug for the opensuse issue, so that this one can stay macos
specific? The macos issues are related to Apple's rather buggy MAP_JIT implementation, which
does not exist on Linux.
It would be helpful to also provide an strace of the process, which should also show the mmap
failure.
------------------------------------------------------------------------
[2019-10-03 19:20:30] requinix@php.net
@nikic's two referenced commits are only for PHP 7.4.0rc3. @ilya, can you test with that
version?
------------------------------------------------------------------------
[2019-10-03 18:57:36] ilya at ilya dot pp dot ua
openSUSE Tumbleweed php 7.3.10 pcre2 10.33 (patch from nickic aplayed)
If pcre.jit=1 phpMyadmin login page show errors
mod_fcgid: stderr: PHP Warning: preg_replace_callback(): JIT compilation failed: no more memory
https://bugzilla.suse.com/show_bug.cgi?id=1124446
Please explain what feedback do you expect and what else do you need to provide?
------------------------------------------------------------------------
[2019-09-29 04:22:08] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
------------------------------------------------------------------------
[2019-09-18 08:50:34] nikic@php.net
I've applied https://github.com/php/php-src/commit/03efeda53852842fe1a40240fce6793bba617959
and https://github.com/php/php-src/commit/e11ed028706dbedc51ba71736de21db15890a1c0,
which should both fix the "no more memory" error on 10.13 and the segfaults on 10.14.
If someone could confirm that the issue is resolved, that would be great.
------------------------------------------------------------------------
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