[php-src] Issue #7982: Segmentation fault caused by updating to 8.1
| From: | JimmyBanks | Date: | Fri, 21 Jan 2022 16:40:04 +0000 |
| Subject: | [php-src] Issue #7982: Segmentation fault caused by updating to 8.1 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239177@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7982
Author: JimmyBanks
### Description
All PHP tests on local using Unit testing etc. function correctly.
However, once put into production our server started throwing thousands of the following segfault
errors, and only returns null responses from our MySQL database connection, resulting in
approximately 50% of our requests failing.
php8.1-fpm.log is throwing thousands of these errors:
WARNING: [pool www] child 2971 exited on signal 11 (SIGSEGV - core dumped) after 469.405694 seconds
from start
Similarly nginx's error log is throwing thousands of:
"GET /forums/thread/5458 HTTP/2.0", upstream:
"fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "www.example.com", referrer:
"https://www.example.com/machine/10"
Neither of these errors are occurring on PHP8.0. We had to downgrade for obvious reasons.
### PHP Version
8.1.1
### Operating System
Ubuntu 18.04