|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-10-01 12:55 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 13:00:01 2025 UTC |
After compiling php3 (with different modules compiled in .. both with and without them) I always end up with a Apache server that crashes with a segmentation fault. I'm using the latest version of Apache (1.3.12), OpenSSL (0.9.5a) and mod_ssl (2.6.4-1.3.12). I've tried both as a staticly compiled module and as a shared module via LoadModule in Apache conf. Ive even tried a earlier version of php3 (v 3.0.12) with the same result. I've used the following compilation lines: apache 1.3.12: ------- ./configure \ --with-layout=Apache \ --prefix=/usr/local/apache \ --enable-module=all \ --enable-shared=max \ --enable-shared=ssl \ --enable-rule=SSL_SDBM \ --enable-suexec \ --suexec-caller=http \ --server-uid=http \ --server-gid=httpd php3 3.0.16: ----- (module based) ./configure \ --with-apxs=/usr/local/apache/bin/apxs \ --with-mysql \ --with-imap=/usr/src/oldsrc/mail/pine4.20/c-client \ --with-ftp \ --with-openssl=../openssl-0.9.5a \ --with-apache=/usr/local/apache \ --enable-versioning \ --enable-memory-limit=yes (static) ./configure \ --with-apache=../apache_1.3.12 \ --with-mysql \ --enable-memory-limit=yes \ --enable-debug=no \ --with-imap=/usr/src/oldsrc/mail/pine4.20/c-client \ --with-ftp \ --with-openssl=../openssl-0.9.5a \ --enable-versioning php4 4.0rc1: ----- (module) ./configure \ --with-mysql \ --with-apxs=/usr/local/apache/bin/apxs \ --with-openssl=../openssl-0.9.5a \ --with-imap=/usr/src/oldsrc/mail/pine4.20/c-client \ --with-ftp \ --enable-memory-limit \ --enable-shared \ --enable-inline-optimization \ --enable-versioning mod_ssl -------- ./configure \ --with-apache=../apache_1.3.12 \ --with-ssl=../openssl-0.9.5a It doesn't matter if I use imap support or not, by the way. I've tried with and without the php3.ini (that is the php3.ini-dist). I used 'strace -Ff' on the httpd that crashed and got the following output on the last 21 lines: -- begin -- mmap(0x40379000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x8000) = 0x40379000 close(4) = 0 mprotect(0x404fe000, 1183744, PROT_READ|PROT_WRITE) = 0 mprotect(0x404fe000, 1183744, PROT_READ|PROT_EXEC) = 0 getrlimit(RLIMIT_STACK, {rlim_cur=2040*1024, rlim_max=RLIM_INFINITY}) = 0 getpid() = 11465 uname({sys="Linux", node="nifty.dataphone.se", ...}) = 0 SYS_174(0x20, 0xbfffd450, 0, 0x8, 0x20) = 0 SYS_174(0x21, 0xbfffd444, 0, 0x8, 0x21) = 0 SYS_174(0x22, 0xbfffd450, 0, 0x8, 0x22) = 0 SYS_175(0, 0xbfffd6b0, 0, 0x8, 0) = 0 munmap(0x402ef000, 22943) = 0 open("./php3.ini", O_RDONLY) = -1 ENOENT (No such file or directory) open("/php3.ini", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/php3.ini", O_RDONLY) = 4 ioctl(4, TCGETS, 0xbfffc9f4) = -1 ENOTTY (Inappropriate ioctl for device) read(4, "[PHP_3]\n\n;;;;;;;;;;;;;;;;;;;;\n"..., 8192) = 7239 read(4, "", 953) = 0 read(4, "", 8192) = 0 ioctl(4, TCGETS, 0xbfffc9e0) = -1 ENOTTY (Inappropriate ioctl for device) --- SIGSEGV (Segmentation fault) --- -- end -- using: libc: libc 2.1.1 gcc: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) I get no compilation errors.