Bug #77260 [Fbk->Csd]: preg_match_all(): JIT compilation failed: no more memory

From: Date: Thu, 03 Oct 2019 19:30:20 +0000
Subject: Bug #77260 [Fbk->Csd]: preg_match_all(): JIT compilation failed: no more memory
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-223028@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
 Updated by:         nikic@php.net
 Reported by:        ettore at themecraft dot studio
 Summary:            preg_match_all(): JIT compilation failed: no more
                     memory
-Status:             Feedback
+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:

@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.


Previous Comments:
------------------------------------------------------------------------
[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.

------------------------------------------------------------------------
[2019-09-17 21:41:31] nikic@php.net

Relevant discussion: https://bugs.exim.org/show_bug.cgi?id=2334

Unfortunately there's still the issue with MAP_JIT and fork() being incompatible, leading to
the issue mentioned by sbarex at gmail dot com. It doesn't look like progress on avoiding that
issue has been made.

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


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 (#223028) next »