From: wiwi at progon dot net Operating system: FreeBSD 5.2.1p4 PHP version: 4.3.6RC1 PHP Bug Type: Reproducible crash Bug description: HEAD request makes httpd hang
Description: ------------ Looks as if bug #5649 is back again. This happend only with .php scripts, plain html ist just fine. I tried the following configs without any change: ./configure --with-openssl --with-pgsql --with-apxs2=/usr/local/apache2/bin/apxs ./configure --with-pgsql --with-apxs2=/usr/local/apache2/bin/apxs ./configure --with-apxs2=/usr/local/apache2/bin/apxs I tried the following php versions without any change: 4.3.4 4.3.5 4.3.6RC2 I tried the following apache version without any change: 2.0.48 2.0.49 gdb output is not useful, as I have to use ctrl-c to stop the hanging program: Program received signal SIGINT, Interrupt. 0x2863749c in _thread_sig_handle_pending () from /usr/lib/libc_r.so.5 (gdb) where #0 0x2863749c in _thread_sig_handle_pending () from /usr/lib/libc_r.so.5 #1 0x28636d32 in _thread_sig_handler () from /usr/lib/libc_r.so.5 #2 0x28636f34 in _thread_sig_handler () from /usr/lib/libc_r.so.5 #3 0x2863803a in _thread_sig_wrapper () from /usr/lib/libc_r.so.5 #4 0xbfbfba60 in ?? () #5 0x286379f0 in _thread_sig_handle_pending () from /usr/lib/libc_r.so.5 #6 0x286372ff in _thread_sig_check_pending () from /usr/lib/libc_r.so.5 #7 0x2863d58e in _thread_kern_scheduler () from /usr/lib/libc_r.so.5 Reproduce code: --------------- #!/bin/sh while [ true ] do curl -I http://a.php.script done Actual result: -------------- a) curl times out (curl: (52) Empty reply from server) b) httpd hangs and uses up all cpu time: 2143 nobody 110 0 9044K 7152K RUN 0:06 10.86% 10.06% httpd 2130 nobody 108 0 9068K 7448K RUN 0:09 9.86% 9.77% httpd 2156 nobody 109 0 9024K 7236K RUN 0:02 8.61% 4.93% httpd 2150 nobody 20 0 9020K 7368K lockf 0:02 5.12% 3.86% httpd 2153 nobody 20 0 9008K 7356K lockf 0:01 5.17% 3.76% httpd 2152 nobody 20 0 9008K 7352K lockf 0:02 4.70% 3.42% httpd 2151 nobody 20 0 9008K 7384K lockf 0:02 4.70% 3.42% httpd 2154 nobody 20 0 9008K 7336K lockf 0:01 4.93% 3.37% httpd 2155 nobody 103 0 9008K 7352K RUN 0:01 5.09% 3.12% httpd -- Edit bug report at http://bugs.php.net/?id=27898&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27898&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27898&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27898&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27898&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27898&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27898&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27898&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27898&r=support Expected behavior: http://bugs.php.net/fix.php?id=27898&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27898&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27898&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27898&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27898&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27898&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27898&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27898&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27898&r=float