Bug #2384: Apache 1.3.9 segfaults on .php3 documents
| From: | floyd at atc dot no | Date: | Sun, 26 Sep 1999 17:04:01 +0000 |
| Subject: | Bug #2384: Apache 1.3.9 segfaults on .php3 documents | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-11313@lists.php.net to get a copy of this message | ||
From: floyd@atc.no
Operating system: RH Linux 6.0 x86
PHP version: 3.0.12
PHP Bug Type: Reproduceable crash
Bug description: Apache 1.3.9 segfaults on .php3 documents
Compiled and installed openssl-0.9.4 ok.
Configured and added mod_ssl-2.4.2-1.3.9 ok.
Added mod_frontpage-4.0 patch ok.
Configured php-3.0.12 as follows:
./configure \
--with-layout=RedHat \
--with-apache=../apache_1.3.9 \
--with-gd \
--with-ttf \
--with-mysql \
--with-config-file-path=/etc/httpd
Compiled and added ok.
Compiled Apache 1.3.9 ok.
httpd segfaults on any .php3 URL:
[notice] child pid 11707 exit signal Segmentation fault (11)
strace shows the following:
about to attach 2dbc
select(18, [16 17], NULL, NULL, NULL) = 1 (in [17])
accept(17, {sin_family=AF_INET, sin_port=htons(2165),
sin_addr=inet_addr("xxx.xxx.xxx.xxx")}, [16]) = 3
fcntl(23, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0
SYS_174(0xa, 0xbffffa90, 0xbffffa04, 0x8, 0xa) = 0
getsockname(3, {sin_family=AF_INET, sin_port=htons(80),
sin_addr=inet_addr("xxx.xxx.xxx.xxx")}, [16]) = 0
setsockopt(3, IPPROTO_TCP, 1, [1], 4) = 0
read(3, "GET /test.php3 HTTP/1.1\r\nAccep"..., 4096) = 337
SYS_174(0xa, 0xbfffda48, 0xbfffd9bc, 0x8, 0xa) = 0
time(NULL) = 937055911
stat("/home/httpd/html/test.php3", {st_mode=0, st_size=0, ...}) = 0
open("/home/httpd/html/test.php3", O_RDONLY) = 4
fcntl(4, F_DUPFD, 15) = 25
close(4) = 0
umask(077) = 022
umask(022) = 077
chdir("/home/httpd/html") = 0
setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={30, 0}}, NULL) = 0
SYS_174(0x1b, 0xbffff9c8, 0xbffff93c, 0x8, 0x1b) = 0
--- SIGSEGV (Segmentation fault) ---
chdir("/usr") = 0
SYS_174(0xb, 0xbffff8ec, 0xbffff860, 0x8, 0xb) = 0
getpid() = 11708
kill(11708, SIGSEGV) = 0
sigreturn() = ? (mask now [])
--- SIGSEGV (Segmentation fault) ---
I'm probably missing the obvious, but this is the first time I ever touch PHP so I'm stuck
without a clue... :-/
-Floyd.