[php-src] Issue #8159: Apache / PHP segfaults
| From: | unix-world | Date: | Tue, 01 Mar 2022 09:29:09 +0000 |
| Subject: | [php-src] Issue #8159: Apache / PHP segfaults | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-240087@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8159
Author: unix-world
### Description
PHP 7.4.27 / 8.0.15 / 8.1.3
Apache 2.4.52
OpenBSD 7.0 / amd64
If running any of the above PHP versions under Apache (as module), I noticed that every time when
apache rotate it's logs it crashes. To be sure of this issue I set the log rotation at a fixed
hour (not by size).
In the last 3 days, each day at the exactly same hour apache crashed and did not crashed in the
rest.
Finally I did not loaded the opcache.so and it did not crashed on log rotation.
After further investigation I noticed this:
The problem is somwehere in opcache.so.
All the above versions are affected.
The PHP 7.3.33 works OK, it does not crash.
How to reproduce the issue:
1. load the opcache.so PHP extensions
2. apachectl2 graceful
3. apache crashes
If I do not load opcache.so it does not crashes.
### PHP Version
8.0.15
### Operating System
OpenBSD 7.0