php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2384 Apache 1.3.9 segfaults on .php3 documents
Submitted: 1999-09-26 13:04 UTC Modified: 2000-08-06 09:48 UTC
From: floyd at atc dot no Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 3.0.12 OS: RH Linux 6.0 x86
Private report: No CVE-ID: None
 [1999-09-26 13:04 UTC] floyd at atc dot no
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-10-17 10:02 UTC] sas at cvs dot php dot net
We need a backtrace to diagnose this. Please read

http://bugs.php.net/bugs-generating-backtrace.php3
 [2000-08-06 09:48 UTC] rasmus@php.net
Not enough to go on here.  This combination works fine for me.  Make sure you are not using a mysql client library linked against pthreads.  Check using: ldd libmysqlclient.so
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 21:01:29 2024 UTC