#27898 [Fbk->Opn]: HEAD request makes httpd hang

From: Date: Wed, 07 Apr 2004 09:16:58 +0000
Subject: #27898 [Fbk->Opn]: HEAD request makes httpd hang
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-57639@lists.php.net to get a copy of this message
 ID:               27898
 User updated by:  wiwi at progon dot net
 Reported By:      wiwi at progon dot net
-Status:           Feedback
+Status:           Open
 Bug Type:         Apache2 related
 Operating System: FreeBSD 5.2.1p4
 PHP Version:      4.3.6RC1
 New Comment:

No, I have no Apache 1.x server on my site.

We use the classical "prefork" MPM:

Server version: Apache/2.0.49
Server built:   Apr  6 2004 23:18:29
Server's Module Magic Number: 20020903:7
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses disabled)
 -D APR_USE_FLOCK_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/usr/local/apache2"
 -D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"


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

[2004-04-07 04:59:08] sniper@php.net

Have you tried with Apache1 (or apache2 with non-threaded MPM?)


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

[2004-04-07 04:29:42] wiwi at progon dot net

5.0.0RC1 has the same problem.

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

[2004-04-07 03:51:26] wiwi at progon dot net

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 this bug report at http://bugs.php.net/?id=27898&edit=1


Thread (13 messages)

« previous php.bugs (#57639) next »