[php-src] Issue #7817: JIT segmentation fault in PHP 8.1
| From: | zejji | Date: | Mon, 21 Feb 2022 09:44:12 +0000 |
| Subject: | [php-src] Issue #7817: JIT segmentation fault in PHP 8.1 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239912@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7817
Comment Author: zejji
Having just wasted 30 hours of my life debugging segfaults which occurred immediately after new
deployments of PHP containers on Docker Swarm, I can confirm that this is definitely an issue.
We are using PHP 8.1.3 via the [Bitnami PHP-FPM Docker
image](https://hub.docker.com/layers/bitnami/php-fpm/8.1.3/images/sha256-0012a40ca7286fa9390aa2d4df0189d0506a04536229048f7adf6dac78c34d8f).
The solution to the segfaults in our case was disabling JIT and setting the JIT buffer size to zero:
```
opcache.jit_buffer_size=0M
opcache.jit=disable
```