#33909 [Opn->Asn]: fread of a pipe hang after opening a pipe with a < entry
| From: | sniper@php.net | Date: | Fri, 29 Jul 2005 00:05:51 +0000 |
| Subject: | #33909 [Opn->Asn]: fread of a pipe hang after opening a pipe with a < entry | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-82640@lists.php.net to get a copy of this message | ||
ID: 33909
Updated by: sniper@php.net
Reported By: phil at adigital dot com dot mx
-Status: Open
+Status: Assigned
Bug Type: Filesystem function related
Operating System: *
PHP Version: 5CVS-2005-07-29
-Assigned To:
+Assigned To: wez
New Comment:
Yet another streams issue.
Previous Comments:
------------------------------------------------------------------------
[2005-07-28 19:25:14] phil at adigital dot com dot mx
I just tried both snapshots on windows and linux,
same problem happens
- Phil
------------------------------------------------------------------------
[2005-07-28 19:03:25] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2005-07-28 18:55:33] phil at adigital dot com dot mx
Description:
------------
Opening a pipe for read , for example for a cgi (in this example) will
block on the fread AFTER a call to a call with an entry file
I got the error on Windows, Linux, from PHP 5.0.2, PHP 5.0.4, PHP5.1 on
CVS (did not try on other versions either)
For example:
Call 1: popen("/usr/bin/php5"); with SCRIPT_FILENAME=info.php WORKS
perfectly, and is repeatible X times
Call 2: popen("/usr/bin/php5"); with SCRIPT_FILENAME=info.php<tempfile
WORKS perfectly... BUT
Call 3: after the call 2
popen("/usr/bin/php5"); with SCRIPT_FILENAME=info.php WILL HANG AND
TOTALLY BLOCK but without using CPU time.
compile: compiled downloaded version on windows,
natural php.ini without modifications
On linux: compiled as CLI, CGI, no more options than mysql
The bug do not depends on what is compiled with php
Thx
Reproduce code:
---------------
For linux code example :
http://www.thomassigny.org/bugpipe/linux/
For windows code example :
http://www.thomassigny.org/bugpipe/windows/
Expected result:
----------------
i expect the code does not hang...
Actual result:
--------------
no backtrace, the running code hang
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33909&edit=1