From: iberry at raxnet dot net Operating system: Windows 2000 PHP version: 4.3.0 PHP Bug Type: Session related Bug description: session_start/popen hang
I think I have found some sort of race-like condition using session_start() and popen() functions, causing the web server to hang. The bug only seems to manifest when repeatedly initiating a page that requires session_start() and uses popen(). This is relevant for me because this page renders graphs and needs both of these functions to perform its job. Here is some example code to re-produce the problem: ----test.php---- <img src="img.php?rra_id=1"> <img src="img.php?rra_id=2"> <img src="img.php?rra_id=3"> <img src="img.php?rra_id=4"> ----end---- ----img.php---- <?php session_start(); $fp = popen('test', "r"); print fpassthru($fp); pclose($fp); ?> ----end---- Notice how I am passing different GET variables to each image page session, this seems to be necessary for the bug to manifest. This code has been tested on both IIS 5 and Apache 2.0.44 with the same results The path I give popen() does not appear to make a difference. I have also have tried the popen 'r' and 'rb' file modes, which made no difference. The two triggers of this bug appear to be the combined use of session_start()/popen() and the varying GET variable values. Thanks for taking time to look into this. -Ian -- Edit bug report at http://bugs.php.net/?id=22526&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22526&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22526&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22526&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22526&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22526&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22526&r=support Expected behavior: http://bugs.php.net/fix.php?id=22526&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22526&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22526&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22526&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22526&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22526&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22526&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22526&r=gnused