“[notice] child pid XXXX exit signal Segmentation fault (11)” in apache error.log
Asked Answered
R

2

0

First off: this is no duplicate as the solution provided differs from any solution for similar questions and "[notice] child pid XXXX exit signal Segmentation fault (11)" in apache error.log does not accept any more answers. Also I cannot comment on SO yet.

I just upgraded from PHP-7.0 to PHP-7.3 (or any version combo for that matter) and am now getting

[notice] child pid XXXX exit signal Segmentation fault (11)

in my apache error.log file.

Other solutions to this question did not apply:

TIA

Roundlet answered 23/2, 2019 at 11:50 Comment(0)
R
5

Check whether your PHP-FPM and PHP versions match. Make sure there is a (correct) PHP-FPM configuration corresponding to your PHP and PHP-FPM version, respectively.

On a Debian system there should be something like this:

/etc/php/7.3/fpm
/etc/php/7.3/fpm/php.ini
/etc/php/7.3/fpm/php-fpm.conf
/etc/php/7.3/fpm/pool.d
/etc/php/7.3/fpm/conf.d
/etc/php/7.3/fpm/pool.d/www.conf

On my system the /etc/php/7.3/fpm directory was missing. Reason: legacy PHP-FPM didn't get updated. After installing the PHP-FPM update and synch'ing the new fpm config w/ my tweaked config there were no more segfaults and everything started working as it did before the update.

The root cause for those child segfaults was particularly nasty to isolate, maybe this SO answer can save others the hassle.

HTH

Roundlet answered 23/2, 2019 at 19:19 Comment(2)
I can't believe that installing php-fpm extension (despite already having php7.4-fpm) actually worked. Thanks!Notional
Out of all things I tried, to solve the segmentation fault (caused by brew updating my php), including all the above, for me it was simply removing browser cookies.Copaiba
P
0

In my case it occured every time when php throwed an uncatched warning.

Check if you can change the scripts to proper error handling or set error_reporting in the used php.ini to e.g.

error_reporting = E_ERROR

After that, I had no more segmentations faults in my logs.

Plourde answered 24/9 at 10:17 Comment(1)
A link to the source would be useful: php.net/manual/en/…Consecration

© 2022 - 2024 — McMap. All rights reserved.