You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following errors occur approximately 30% to 40% of the time on PHP 8.4.4 when JIT is enabled with CRTO trigger set to 5 (tracing) and an optimization level greater than or equal to 2. This issue occurs only on 8.4.4 and is not reproducible on 8.4.3 with any JIT configuration. The issue does not occur on 8.4.4 when tracing JIT is disabled.
mmap() failed: [12] Cannot allocate memory
PHP Fatal error: Out of memory (allocated 5325709312 bytes) (tried to allocate 884818088 bytes)
Error: Allowed memory size of 6442450944 bytes exhausted (tried to allocate 18446744072005976232 bytes)
It will also simply terminate with the message Killed and no further details (rarely).
Steps to reproduce:
Run the following command using any standard Symfony application with debug=false. The issue does not appear to occur when debug=true.
php bin/console cache:clear --env=prod
PHP Version
8.4.4
Operating System
Rocky Linux 8/9
The text was updated successfully, but these errors were encountered:
This seems similar to an error found in #17866, coincidentally, also uses a symfony component and the issue also appeared in 8.4.4...
I'll try to have a look.
EDIT: op_array->cache_size looks like a garbage value...
EDIT 2: bisect points to 28b448a but that doesn't seem like the root cause, I think it only revealed this bug and this bug is older.
The generated code tries to initialize the run time cache for even
internal closures, but it should only initialize the run time cache for
user closures. We fix this by adding a check for the function type.
If `func` is known, then we can check the type at code generation time.
Description
The following errors occur approximately 30% to 40% of the time on PHP 8.4.4 when JIT is enabled with CRTO trigger set to 5 (tracing) and an optimization level greater than or equal to 2. This issue occurs only on 8.4.4 and is not reproducible on 8.4.3 with any JIT configuration. The issue does not occur on 8.4.4 when tracing JIT is disabled.
It will also simply terminate with the message
Killed
and no further details (rarely).Steps to reproduce:
Run the following command using any standard Symfony application with debug=false. The issue does not appear to occur when debug=true.
PHP Version
8.4.4
Operating System
Rocky Linux 8/9
The text was updated successfully, but these errors were encountered: