ID: 13486
Updated by: yohgaki
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Scripting Engine problem
Operating System: SunOS 5.8
PHP Version: 4.0.6
New Comment:
Could you try 4.1.0 and reoprt the result?
Previous Comments:
------------------------------------------------------------------------
[2001-09-28 14:55:21] [EMAIL PROTECTED]
Hello,
I got a weird problem here -- Apache (1.3.20) + PHP 4.06 hangs.
No core dump, no log entries -- just hangs.
Request to ANY php file produces no results (not even headers returned),
however request to .html files work just fine --
which leads me to beleave that this might be PHP related issue.
Apache restart fixes the problem.
This issue happened couple times...
Today I was able to reproduce it by running
./ab -n 10000 -c 10 http:.../index.php
The third time i ran this, PHP stopped responding.
Because there are no core dumps, nor log file entries,
the only thing I could do was to runn truss on apache process.
PHP was compiled with the following options:
./configure --disable-debug --with-mysql=/usr/local/mysql --enable-track-vars
--disable-display-source --enable-memory-limit
--with-apxs=/usr/local/etc/apache/bin/apxs
index.php is a very simple script:
<?php require("header.inc"); ?>
<B>Please enter your query:</B>
<form name="searchform" action="http://search.symbol.com/search.php" method="get"
onSubmit="this.search.value=this.search.value.toLowerCase();return true">
<input type="text" name="search" value="">
<input type="submit" value="Search">
</form>
Below is output of truss on both /test.html and /index.php (same pid)...
It seems that /index.php request gets
Err#25 ENOTTY
Any idea why this is happening? Any suggestions on how
to fix this are very much appreciated. Please let me know
if there is any more info I can provide.
Is it a know issue with Sun? I could not find similar
posts on bugs.php.net...
--- TRUSS for /index.php
fcntl(18, F_SETLKW, 0x000E5410) (sleeping...)
fcntl(18, F_SETLKW, 0x000E5410) = 0
accept(16, 0xFFBEF7B8, 0xFFBEF7DC, 1) (sleeping...)
accept(16, 0xFFBEF7B8, 0xFFBEF7DC, 1) = 3
fcntl(18, F_SETLKW, 0x000E5434) = 0
sigaction(SIGUSR1, 0xFFBEF670, 0xFFBEF6F0) = 0
getsockname(3, 0xFFBEF7C8, 0xFFBEF7DC, 1) = 0
setsockopt(3, 6, 1, 0xFFBEF72C, 4, 1) = 0
read(3, " G E T / i n d e x . p".., 4096) = 92
sigaction(SIGUSR1, 0xFFBED568, 0xFFBED5E8) = 0
time() = 1001694729
stat("/usr/local/etc/apache/htdocs/search.symbol.com/index.php", 0x0012E958) = 0
umask(077) = 022
umask(022) = 077
setitimer(ITIMER_PROF, 0xFFBEF390, 0x00000000) = 0
sigaction(SIGPROF, 0xFFBEF260, 0xFFBEF2E0) = 0
sigprocmask(SIG_UNBLOCK, 0xFFBEF380, 0x00000000) = 0
pathconf(".", _PC_PATH_MAX) = 1024
stat64("./", 0xFFBEE278) = 0
stat64("/", 0xFFBEE1E0) = 0
open64("./../", O_RDONLY|O_NDELAY) = 5
fcntl(5, F_SETFD, 0x00000001) = 0
fstat64(5, 0xFFBECC00) = 0
fstat64(5, 0xFFBEE278) = 0
close(5) = 0
chdir("/usr/local/etc/apache/htdocs/search.symbol.com") = 0
open("/usr/local/etc/apache/htdocs/search.symbol.com/index.php", O_RDONLY) = 5
pathconf(".", _PC_PATH_MAX) = 1024
stat64("./", 0xFFBED5B0) = 0
stat64("/", 0xFFBED518) = 0
open64("./../", O_RDONLY|O_NDELAY) = 6
fcntl(6, F_SETFD, 0x00000001) = 0
fstat64(6, 0xFFBECB38) = 0
fstat64(6, 0xFFBED5B0) = 0
getdents64(6, 0x0011AA90, 1048) = 128
close(6) = 0
open64("./../../", O_RDONLY|O_NDELAY) = 6
fcntl(6, F_SETFD, 0x00000001) = 0
fstat64(6, 0xFFBECB38) = 0
fstat64(6, 0xFFBED5B0) = 0
getdents64(6, 0x0011AA90, 1048) = 384
close(6) = 0
open64("./../../../", O_RDONLY|O_NDELAY) = 6
fcntl(6, F_SETFD, 0x00000001) = 0
fstat64(6, 0xFFBECB38) = 0
fstat64(6, 0xFFBED5B0) = 0
getdents64(6, 0x0011AA90, 1048) = 112
close(6) = 0
open64("./../../../../", O_RDONLY|O_NDELAY) = 6
fcntl(6, F_SETFD, 0x00000001) = 0
fstat64(6, 0xFFBECB38) = 0
fstat64(6, 0xFFBED5B0) = 0
getdents64(6, 0x0011AA90, 1048) = 920
close(6) = 0
open64("./../../../../../", O_RDONLY|O_NDELAY) = 6
fcntl(6, F_SETFD, 0x00000001) = 0
fstat64(6, 0xFFBECB38) = 0
fstat64(6, 0xFFBED5B0) = 0
getdents64(6, 0x0011AA90, 1048) = 1048
getdents64(6, 0x0011AA90, 1048) = 184
close(6) = 0
open64("./../../../../../../", O_RDONLY|O_NDELAY) = 6
fcntl(6, F_SETFD, 0x00000001) = 0
fstat64(6, 0xFFBECB38) = 0
fstat64(6, 0xFFBED5B0) = 0
getdents64(6, 0x0011AA90, 1048) = 1048
close(6) = 0
open64("./../../../../../../../", O_RDONLY|O_NDELAY) = 6
fcntl(6, F_SETFD, 0x00000001) = 0
fstat64(6, 0xFFBECB38) = 0
fstat64(6, 0xFFBED5B0) = 0
close(6) = 0
resolvepath("/usr/local/etc/apache/htdocs/search.symbol.com/index.php",
"/usr/local/etc/apache/htdocs/search.symbol.com/index.php", 1024) = 56
ioctl(5, TCGETA, 0xFFBEE094) Err#25 ENOTTY
fstat64(5, 0xFFBEC910) = 0
ioctl(5, TCGETA, 0xFFBEC89C) Err#25 ENOTTY
read(5, " < ? p h p r e q u i r".., 8192) = 346
read(5, 0x0013B45C, 8192) = 0
ioctl(5, TCGETA, 0xFFBEC974) Err#25 ENOTTY
llseek(5, 0, SEEK_CUR) = 346
close(5) = 0
open("./header.inc", O_RDONLY) = 5
pathconf(".", _PC_PATH_MAX) = 1024
stat64("./", 0xFFBED360) = 0
stat64("/usr/local/etc/apache/htdocs/search.symbol.com", 0xFFBED2C8) = 0
resolvepath("/usr/local/etc/apache/htdocs/search.symbol.com/./header.inc",
"/usr/local/etc/apache/htdocs/search.symbol.com/header.inc", 1024) = 57
ioctl(5, TCGETA, 0xFFBEDE44) Err#25 ENOTTY
fstat64(5, 0xFFBEC6C0) = 0
ioctl(5, TCGETA, 0xFFBEC64C) Err#25 ENOTTY
read(5, " < H T M L >\n < H E A D".., 8192) = 8192
read(5, " o m / s e r v i c e s /".., 8192) = 2250
read(5, 0x00136684, 8192) = 0
ioctl(5, TCGETA, 0xFFBEC724) Err#25 ENOTTY
llseek(5, 0, SEEK_CUR) = 10442
close(5) = 0
writev(3, 0xFFBEDA70, 2) = 4305
writev(3, 0xFFBEDA70, 2) = 4500
open("./footer.inc", O_RDONLY) = 5
pathconf(".", _PC_PATH_MAX) = 1024
stat64("./", 0xFFBED360) = 0
stat64("/usr/local/etc/apache/htdocs/search.symbol.com", 0xFFBED2C8) = 0
resolvepath("/usr/local/etc/apache/htdocs/search.symbol.com/./footer.inc",
"/usr/local/etc/apache/htdocs/search.symbol.com/footer.inc", 1024) = 57
ioctl(5, TCGETA, 0xFFBEDE44) Err#25 ENOTTY
fstat64(5, 0xFFBEC6C0) = 0
ioctl(5, TCGETA, 0xFFBEC64C) Err#25 ENOTTY
read(5, " < b r > < b".., 8192) = 1377
read(5, 0x001366C4, 8192) = 0
ioctl(5, TCGETA, 0xFFBEC724) Err#25 ENOTTY
llseek(5, 0, SEEK_CUR) = 1377
close(5) = 0
chdir("/") = 0
umask(022) = 022
poll(0xFFBEF590, 1, 0) = 0
write(3, " _ n a v _ s u b _ h o w".., 3383) = 3383
time() = 1001694729
write(17, " 2 0 6 . 1 1 2 . 3 3 . 8".., 83) = 83
shutdown(3, 1, 1) = 0
poll(0xFFBEF408, 1, 2000) = 1
read(3, 0xFFBEF530, 512) = 0
close(3) = 0
sigaction(SIGUSR1, 0xFFBEF670, 0xFFBEF6F0) = 0
setitimer(ITIMER_PROF, 0xFFBEF480, 0x00000000) = 0
fcntl(18, F_SETLKW, 0x000E5410) (sleeping...)
--- TRUSS for /text.html
fcntl(18, F_SETLKW, 0x000E5410) (sleeping...)
fcntl(18, F_SETLKW, 0x000E5410) = 0
accept(16, 0xFFBEF7B8, 0xFFBEF7DC, 1) (sleeping...)
accept(16, 0xFFBEF7B8, 0xFFBEF7DC, 1) = 3
fcntl(18, F_SETLKW, 0x000E5434) = 0
sigaction(SIGUSR1, 0xFFBEF670, 0xFFBEF6F0) = 0
getsockname(3, 0xFFBEF7C8, 0xFFBEF7DC, 1) = 0
setsockopt(3, 6, 1, 0xFFBEF72C, 4, 1) = 0
read(3, " G E T / t e s t . h t".., 4096) = 92
sigaction(SIGUSR1, 0xFFBED568, 0xFFBED5E8) = 0
time() = 1001694795
stat("/usr/local/etc/apache/htdocs/search.symbol.com/test.html", 0x0012E958) = 0
open("/usr/local/etc/apache/htdocs/search.symbol.com/test.html", O_RDONLY) = 5
mmap(0x00000000, 5, PROT_READ, MAP_PRIVATE, 5, 0) = 0xFF360000
llseek(5, 0, SEEK_CUR) = 0
close(5) = 0
poll(0xFFBEF590, 1, 0) = 0
write(3, " H T T P / 1 . 1 2 0 0".., 258) = 258
time() = 1001694795
write(17, " 2 0 6 . 1 1 2 . 3 3 . 8".., 79) = 79
shutdown(3, 1, 1) = 0
poll(0xFFBEF408, 1, 2000) = 1
read(3, 0xFFBEF530, 512) = 0
close(3) = 0
sigaction(SIGUSR1, 0xFFBEF670, 0xFFBEF6F0) = 0
munmap(0xFF360000, 5) = 0
fcntl(18, F_SETLKW, 0x000E5410) (sleeping...)
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13486&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]