|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-04-07 03:51 UTC] 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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 14:00:01 2025 UTC |
I just tried 2.0.47 as well, and it crashes just as the other 2.0.x versions. Server: Apache/2.0.47 (Unix) PHP/5.0.0RC1 mod_ssl/2.0.47 OpenSSL/0.9.7c-p1 X-Powered-By: PHP/5.0.0RC1 The relevant httpd.conf-entries are: LoadModule php5_module modules/libphp5.so AddType application/x-httpd-php .php The php config unchanged ("make install"). The php script used to test the server is from: http://www.php.net/manual/en/tutorial.firstpage.phpRegular GET requests work fine, I got some 10000 hits within two hours without any problem. But I usually need only 10 to 20 HEAD ("curl -I") requests to make the server process hang.