[php-src] Issue #8159: Apache / PHP segfaults (PHP 8.0 and 8.1, but also 7.4)

From: Date: Wed, 09 Mar 2022 19:34:06 +0000
Subject: [php-src] Issue #8159: Apache / PHP segfaults (PHP 8.0 and 8.1, but also 7.4)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-240281@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8159
Comment Author: unix-world

I have tried this and still crashing.
Not the SIGTERM is the problem ...

But I observed that in PHP 8.0 2 extra lines have been added:

```
// line # 783
} else if (errno != 0) {
					zend_accel_error(ACCEL_LOG_WARNING, "Failed to send SIGKILL to locker %d: %s",
mem_usage_check->l_pid, strerror(errno));
```
and
```
// line #795
} else if (errno != 0) {
					zend_accel_error(ACCEL_LOG_WARNING, "Failed to check locker %d: %s",
mem_usage_check->l_pid, strerror(errno));
```

I am trying with this 4 lines commented out, ... I have an idea that here might be the clue, after
issuing SIGTERM or SIGKILL the apache may halt the access to logging and here might be a crash
perhaps ...

because the other log situations in this code block I could not reproduce but they might be also
crashing, but never got yet entered in the ``if (errno == ESRCH) {`` where are other 2
calls to zend_accel_error().

Let me try this and I get back.


Thread (1 message)

  • unix-world
« previous php.bugs (#240281) next »