#25480 [Com]: All exec, passthru, system, shell execution commands fail intermittently.

From: Date: Thu, 16 Oct 2003 14:28:46 +0000
Subject: #25480 [Com]: All exec, passthru, system, shell execution commands fail intermittently.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-49094@lists.php.net to get a copy of this message
ID: 25480 Comment by: bk at galaxy dot net Reported By: colin at grandecom dot com Status: Open Bug Type: Program Execution Operating System: Solaris 2.8 PHP Version: 4.3.3 New Comment: Sure enough, when I reduce the file descriptors down (it was over 400), the intermittent problems went away. I eliminated the ErrorLog for the virtual hosts to knock the file descriptors down to 200 and it seems to work consistently (so far). Previous Comments: ------------------------------------------------------------------------ [2003-10-16 09:25:13] bk at galaxy dot net I'm seeing the same thing. I get shell_exec() to fail ever since upgrading to 4.3.3 as well as popen() within the sendmail module of pear. I'm wondering if this has something to do with the solaris limit of 256 file descriptors in FILE streams and running out of them. But it is strange that this didn't start until I upgraded to 4.3.3. ------------------------------------------------------------------------ [2003-09-10 21:05:50] colin at grandecom dot com safe_mode = Off It is only happening to me with 4.3.3 - on this particular machine I upgraded from 4.3.1 yesterday to fix an snmp bug, and the problem start happening today (I'd run 4.3.1 without any exec issues for several weeks prior.) In retrospect, this definitely should have been mentioned in my initial bug report. Sorry about that. ------------------------------------------------------------------------ [2003-09-10 20:07:27] sniper@php.net Also, did this happen with previous PHP versions? If not, which was the previous version you had? ------------------------------------------------------------------------ [2003-09-10 20:06:43] sniper@php.net Is "safe_mode" enabled? ------------------------------------------------------------------------ [2003-09-10 18:14:54] colin at grandecom dot com Sorry, the 'expected result' is naturally just the output of a ping process, ie: PING blah: 56 data bytes 64 bytes from 192.168.5.1: icmp_seq=0. time=1. ms 64 bytes from 192.168.5.1: icmp_seq=1. time=0. ms ----blah PING Statistics---- 2 packets transmitted, 2 packets received, 0% packet loss round-trip (ms) min/avg/max = 0/0/1 And the actual result is the error I pasted under expected output. Excuse my braindead first post. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/25480 -- Edit this bug report at http://bugs.php.net/?id=25480&edit=1

« previous php.bugs (#49094) next »