|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2018-02-16 15:22 UTC] 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 ... PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 19:00:01 2025 UTC |
was able to reproduce behaviour "self contained": Script 1: <?php stream_set_blocking(STDIN, false); echo "Blah"; ?> Script 2: <?php passthru('/usr/bin/php /path/to/1.php'); ?> Reproduceable on 2 Machines with php-fpm 7.2.2 and earlier. As it can be used to DOS Shared Hosting Servers (i.e. all Plesk Servers use PHP-FPM) I think this got some Security implications too.