Skip to content

Apache / PHP segfaults (PHP 8.0 and 8.1, but also 7.4) #8159

Description

@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 OR kill -HUP 12345 (where 12345 is the process ID number)
  3. apache crashes

If I do not load opcache.so it does not crashes.

PHP Version

8.0.15

Operating System

OpenBSD 7.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions