Bug #75968 [Opn]: php-fpm restarts master process in a loop when using Program execution Function
| From: | schnederle at futureweb dot at | Date: | Fri, 16 Feb 2018 15:33:01 +0000 |
| Subject: | Bug #75968 [Opn]: php-fpm restarts master process in a loop when using Program execution Function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-213984@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75968&edit=1
ID: 75968
User updated by: schnederle at futureweb dot at
Reported by: schnederle at futureweb dot at
Summary: php-fpm restarts master process in a loop when using
Program execution Function
Status: Open
Type: Bug
Package: Reproducible crash
Operating System: Centos/RHEL 7.4
PHP Version: 7.2.2
Block user comment: N
Private report: N
New Comment:
correction - not the master process crashes but php-fpm continues to restart the process over and
over again using 100% of the CPU on the php-fpm master process. (crash loop)
Previous Comments:
------------------------------------------------------------------------
[2018-02-16 15:22:30] schnederle at futureweb dot at
Description:
------------
Follow-Up to already reported Bug #70185 (https://bugs.php.net/bug.php?id=70185)
Still a Problem with current PHP 7.2.2.
When using Program execution Functions (passthru(), exec(), shell_exec(), system(), ...) the
php-fpm: master process reproduceable crashes with signal 15 (SIGTERM) which leads to crash-loop,
100% CPU usage and spamming of Logs (30GB within 1 day on my Dev-Server)
Test script:
---------------
<?php
exec('/usr/bin/postcss css_from.css --use autoprefixer --autoprefixer.remove "false"
--output css_to.css');
echo 'Done';
?>
Actual result:
--------------
Millions of:
...
[16-Feb-2018 14:48:30] WARNING: [pool www] child 53778 exited on signal 15 (SIGTERM) after 0.046685
seconds from start
[16-Feb-2018 14:48:30] WARNING: [pool www] child 53782 exited on signal 15 (SIGTERM) after 0.045416
seconds from start
[16-Feb-2018 14:48:30] WARNING: [pool www] child 53785 exited on signal 15 (SIGTERM) after 0.045331
seconds from start
[16-Feb-2018 14:48:30] WARNING: [pool www] child 53787 exited on signal 15 (SIGTERM) after 0.044765
seconds from start
...
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75968&edit=1