-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation faults in 8.1.5 with opcache enabled #8797
Comments
Is this due to OpCache or the JIT engine? And would it possible to produce the stack trace while running a debug build of PHP? |
Also, is |
JIT and file_cache are disabled. This is due to Opcache. It is possible to turn on debug in build. I will try it. |
Does it crash with |
Yes, it also crashes with opcache.optimization_level=0. All segfaults are gone if downgrade to PHP 8.0.20 |
I have tested PHP 8.1.14 and no longer see this problem. |
Description
After upgrade from PHP 7.4 to 8.1.5, we see many segmentation faults. The segmentation faults disappear if we disable Opcache. Segfaults happen when loading different php files and intermittently. This is a sample stack trace:
This one index is out of bounds. Other index in the table is either HT_INVALID_IDX or a valid value, except this one. Not sure if this is a useful piece of information: the count of valid indexes is smaller than ht->nNumUsed, e.g. nNumUsed = 2881 and only only 2405 valid indexes (!(idx == HT_INVALID_IDX || idx >= HT_IDX_TO_HASH(ht->nTableSize))
PHP Version
PHP 8.1.5 & 8.1.6
Operating System
Ubuntu 18.04
The text was updated successfully, but these errors were encountered: