php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4394 Apache crashes with a segmentation fault.
Submitted: 2000-05-11 04:52 UTC Modified: 2002-10-01 12:55 UTC
From: paddy at paddy dot pp dot se Assigned:
Status: Not a bug Package: Installation problem
PHP Version: 3.0.16 OS: Linux 2.2.13 #8 Wed Dec 29 13:39
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
21 + 41 = ?
Subscribe to this entry?

 
 [2000-05-11 04:52 UTC] paddy at paddy dot pp dot se
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-01 12:55 UTC] hholzgra@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Oct 16 22:03:34 2021 UTC