Professional Web Applications Themes

#25480 [Fbk->Opn]: All exec, passthru, system, shell execution commands fail intermittently. - PHP Development

ID: 25480 User updated by: colin at grandecom dot com Reported By: colin at grandecom dot com -Status: Feedback +Status: Open Bug Type: Program Execution Operating System: Solaris 2.8 PHP Version: 4.3.3 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2003-09-10 20:07:27] [email]sniperphp.net[/email] Also, ...

  1. #1

    Default #25480 [Fbk->Opn]: All exec, passthru, system, shell execution commands fail intermittently.

    ID: 25480
    User updated by: colin at grandecom dot com
    Reported By: colin at grandecom dot com
    -Status: Feedback
    +Status: Open
    Bug Type: Program Execution
    Operating System: Solaris 2.8
    PHP Version: 4.3.3
    New Comment:

    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.


    Previous Comments:
    ------------------------------------------------------------------------

    [2003-09-10 20:07:27] [email]sniperphp.net[/email]

    Also, did this happen with previous PHP versions? If not, which was the
    previous version you had?


    ------------------------------------------------------------------------

    [2003-09-10 20:06:43] [email]sniperphp.net[/email]

    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.

    ------------------------------------------------------------------------

    [2003-09-10 18:10:47] colin at grandecom dot com

    Description:
    ------------
    At certain times (no discernible load, nor any unusually
    high memory or swap usage, etc.) all shell exec commands
    fail. Typically it will last a short period of time, and
    then all commands work fine. Restarting apache does not
    appear to cure or improve the situation. Below are my
    particulars.

    My configure line:
    ../configure --with-apxs=/usr/local/apache/bin/apxs
    --with-oracle=/opt/oracle --with-snmp=/usr/local --with-curl=/opt
    --with-gd --with-zlib-dir=/usr/local/lib

    Other information:
    Sun E250, 2x296mhz, 1024MB RAM, gcc 2.95.2

    Changes to php.ini from php.ini-dist:
    register_globals = On

    Here are some error examples from various execs:
    Warning: shell_exec(): Unable to execute 'nslookup -timeout=3
    10.130.0.1 2>/dev/null' in /usr/local/apache/htdocs/my.php on line 39
    Warning: system(): Unable to fork [/opt/qip/usr/bin/qping -v -r 3 -t
    250 10.130.2.163] in /usr/local/apache/htdocs/my.php on line 79
    Warning: passthru(): Unable to fork [/opt/qip/usr/bin/qping -v -r 3 -t
    250 10.130.2.163] in /usr/local/apache/htdocs/my.php on line 78

    Reproduce code:
    ---------------
    echo "<pre>"; system("ping -s $ip 56 10"); echo "</pre>";

    Expected result:
    ----------------
    Warning: system(): Unable to fork [ping -s 10.130.2.163 56 10] in
    /usr/local/apache/htdocs/ping.php on line 55

    Actual result:
    --------------
    Command simply doesn't execute, program continues without
    a problem or error.


    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=25480&edit=1[/url]
    colin at grandecom dot com Guest

  2. #2

    Default #25480 [Fbk->Opn]: All exec, passthru, system, shell execution commands fail intermittently.

    ID: 25480
    User updated by: colin at grandecom dot com
    Reported By: colin at grandecom dot com
    -Status: Feedback
    +Status: Open
    Bug Type: Program Execution
    Operating System: Solaris 2.8
    PHP Version: 4.3.3
    New Comment:

    Uh... My ./configure line appears in my very first post as is required
    by the bug submission form.


    Previous Comments:
    ------------------------------------------------------------------------

    [2003-10-04 00:11:04] [email]sniperphp.net[/email]

    Please check phpinfo() output for the configure line
    and paste it here.


    ------------------------------------------------------------------------

    [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] [email]sniperphp.net[/email]

    Also, did this happen with previous PHP versions? If not, which was the
    previous version you had?


    ------------------------------------------------------------------------

    [2003-09-10 20:06:43] [email]sniperphp.net[/email]

    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
    [url]http://bugs.php.net/25480[/url]

    --
    Edit this bug report at [url]http://bugs.php.net/?id=25480&edit=1[/url]
    colin at grandecom dot com Guest

Similar Threads

  1. Replies: 0
    Last Post: October 22nd, 01:20 AM
  2. Replies: 0
    Last Post: October 19th, 03:13 AM
  3. Replies: 2
    Last Post: October 18th, 03:16 PM
  4. Replies: 1
    Last Post: October 16th, 05:18 PM
  5. Replies: 0
    Last Post: September 10th, 10:12 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139