Bug #70185 [NEW]: php-fpm restarts process forever when exec() and using ssh multiplexing
From: kobenews at cox dot net Date: Mon, 03 Aug 2015 02:54:44 +0000 Subject: Bug #70185 [NEW]: php-fpm restarts process forever when exec() and using ssh multiplexing Groups: php.bugs Request: Send a blank email to php-bugs+get-194918@lists.php.net to get a copy of this message
From: kobenews at cox dot net
Operating system: CentOS release 6.6 (Final)
PHP version: 5.4.43
Package: FPM related
Bug Type: Bug
Bug description:php-fpm restarts process forever when exec() and using ssh multiplexing
Description:
------------
Ok bear with me, this bug is a bit obscure and takes some setup.
However, it is consistent, and causes php-fpm to continue to restart the
process over and over again using 100% of the CPU on the php-fpm master
process.
It only occurs with SSH controlMaster which basically allows SSH
connection multiplexing.
Here is an example code:
<?php
$command = 'ssh -o "ControlMaster=auto" -o "ControlPersist=2m" -S
/home/justin/.ssh/sockets/justin.sock justin@1.2.3.4';
$output = exec($command, $output_array, $return_code);
If you remove the options -o "ControlMaster=auto" -o "ControlPersist=2m"
-S /home/justin/.ssh/sockets/justin.sock this works without crashing
over and over again.
Test script:
---------------
<?php
$command = 'ssh -o "ControlMaster=auto" -o "ControlPersist=2m" -S
/home/justin/.ssh/sockets/justin.sock justin@1.2.3.4';
$output = exec($command, $output_array, $return_code);
Expected result:
----------------
php-fpm master process should not restart the process over and over
again. Nothing is crashing here.
Actual result:
--------------
php-fpm continues to restart the process over and over again using 100%
of the CPU on the php-fpm master process.
--
Edit bug report at https://bugs.php.net/bug.php?id=70185&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70185&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70185&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70185&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=70185&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=70185&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=70185&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=70185&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=70185&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=70185&r=support
Expected behavior: https://bugs.php.net/fix.php?id=70185&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=70185&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=70185&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=70185&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70185&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=70185&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=70185&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=70185&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70185&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=70185&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=70185&r=mysqlcfg
Thread (28 messages)
- Bug #70185 [Opn]: php-fpm restarts process forever when exec() and using ssh multiplexing
- Bug #70185 [Opn]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing
- Bug #70185 [Com]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing
- Bug #70185 [Opn]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing
- Bug #70185 [Com]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing
- Bug #70185 [Com]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing
- Bug #70185 [Com]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing
- Bug #70185 [Com]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing
- Bug #70185 [Com]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing
- Bug #70185 [Com]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing
- Bug #70185 [Com]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing
- Bug #70185 [Com]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing
- Bug #70185 [Com]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing
- Bug #70185 [Com]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing
- Bug #70185 [Com]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing
- Bug #70185 [Com]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing
- Bug #70185 [Com]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing
- Bug #70185 [Com]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing
- Bug #70185 [Com]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing
- Bug #70185 [Com]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing
- Bug #70185 [Com]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing
- Bug #70185 [Com]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing
- Bug #70185 [Com]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing
- Bug #70185 [Com]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing
- Bug #70185 [Com]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing
- Bug #70185 [Com]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing
- Bug #70185 [Opn->Dup]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing
| « previous | php.bugs (#194918) | next » |
|---|