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
opcache.interned_strings_buffer takes a number of megabytes, but it's easy to be mistaken and to accidentally set it to an unexpectedly high value, like 16m.
This leads to integer overflows in the shared mm allocator, and then to memory corruptions. In this case ZCSG(hash)->max_num_entries is set to zero, which causes an floating point exception here:
Program received signal SIGFPE, Arithmetic exception.
0x00007ffff78aaede in zend_accel_hash_find_ex (accel_hash=0x5555564000b0, key=0x7ffff79f6078 <accel_globals+408>, data=1) at ext/opcache/zend_accelerator_hash.c:151
151 index = hash_value % accel_hash->max_num_entries;
(gdb) list
146
147 hash_value = zend_string_hash_val(key);
148 #ifndef ZEND_WIN32
149 hash_value ^= ZCG(root_hash);
150 #endif
151 index = hash_value % accel_hash->max_num_entries;
152
153 entry = accel_hash->hash_table[index];
154 while (entry) {
155 if (entry->hash_value == hash_value
PHP Version
master
Operating System
No response
The text was updated successfully, but these errors were encountered:
Description
The following code:
Resulted in this output:
But I expected this output instead:
opcache.interned_strings_buffer
takes a number of megabytes, but it's easy to be mistaken and to accidentally set it to an unexpectedly high value, like16m
.This leads to integer overflows in the shared mm allocator, and then to memory corruptions. In this case
ZCSG(hash)->max_num_entries
is set to zero, which causes an floating point exception here:PHP Version
master
Operating System
No response
The text was updated successfully, but these errors were encountered: