Closed
Description
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.
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