Bug #75968 [NEW]: 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:22:32 +0000 |
| Subject: | Bug #75968 [NEW]: php-fpm restarts master process in a loop when using Program execution Function | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-213982@lists.php.net to get a copy of this message | ||
From: schnederle at futureweb dot at
Operating system: Centos/RHEL 7.4
PHP version: 7.2.2
Package: Reproducible crash
Bug Type: Bug
Bug description:php-fpm restarts master process in a loop when using Program execution Function
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 bug report at https://bugs.php.net/bug.php?id=75968&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75968&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75968&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75968&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75968&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75968&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75968&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75968&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75968&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75968&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75968&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75968&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75968&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75968&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75968&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75968&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75968&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75968&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75968&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75968&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75968&r=mysqlcfg