ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-dev
php-dev
#44942 [Com]: exec() hangs apache
by Lk At Profline Dot Ch other posts by this author
Jul 9 2008 6:04AM messages near this date
#44942 [Com]: exec() hangs apache | #44942 [Opn]: exec() hangs apache
ID:               44942
 Comment by:       lk at profline dot ch
 Reported By:      inqualab1985 at gmail dot com
 Status:           Open
 Bug Type:         Program Execution
 Operating System: Microsoft Window 2000 SP4
 PHP Version:      5.2.5
 New Comment:

We have got the same problem here, exec hangs sometimes and causes the
page to not respond to anything. Only way is to restart apache. Is there
a solution available for this ?


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

[2008-07-04 20:28:57] inqualab1985 at gmail dot com

Dear markus

In the first sight, I also understand that this happen only when
multiple request hit the script with exec(). But in reality there is no
guarantee that if the request goes one by one Hanging will not happen. I
had done a test at the time of writing this bug in which call the script
one by one but it randomly hanged up again after a period of time. At
that time period is long.

So dear PHP team , you have to really look up this matter.

Thanks

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

[2008-07-03 20:33:19] markus at opahle dot com

Windows XP SP3
Apache 2.2.6
PHP 5.2.6

I have the same problem. 

I noticed that apache only hangs up when a php script with an exec
command was called twice at the same time.

The problem also ocours when I tried to use popen or proc_open(with and
without bypass_shell option)

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

[2008-06-10 14:59:10] aleaddict at yahoo dot com

Windows Server 2003 R2 Service Pack 1
Apache 2.2.6
PHP 5.2.4 (upgraded to 5.2.6 with no success)

Executing resource kit utility shortcut.exe via exec() with EXACTLY the
same results...  Random, no errors logged, hangs up all succeeding calls
to exec(), requires restart.

Keith

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

[2008-05-14 07:56:17] inqualab1985 at gmail dot com

Dear Jani

There is no problem with 'sample.exe'. I have tested the same for
different exe or even for dos command. It hangs when we are calling the
page at regular interval of time (through Ajax).

There is a problem in the definition of exec() function.

For any further information , feel free to contact me.

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

[2008-05-09 14:20:40] jani@[...].net

What exactly does this "sample.exe" do? It's most likely not any PHP
problem at all anyway, you just call some exe that "hangs" itself..

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

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/44942

-- 
Edit this bug report at http://bugs.php.net/?id=44942&edit=1
Thread:
Inqualab1985 At Gmail Dot Com
Jumpbackhack At Gmail Dot Com
jani
Lk At Profline Dot Ch
Lk At Profline Dot Ch
Inqualab1985 At Gmail Dot Com
Markus At Opahle Dot Com
Aleaddict At Yahoo Dot Com
Inqualab1985 At Gmail Dot Com
jani

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved