Bug #15703 Updated: Segmentation fault with apache2 php pages not served
| From: | yohgaki@php.net | Date: | Mon, 25 Feb 2002 11:25:49 +0000 |
| Subject: | Bug #15703 Updated: Segmentation fault with apache2 php pages not served | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-1002@lists.php.net to get a copy of this message | ||
ID: 15703
Updated by: yohgaki@php.net
Reported By: sukhruprai@yahoo.com
Status: Feedback
Bug Type: Apache2 related
Operating System: Red Hat Linux 7.1
PHP Version: 4.1.1
New Comment:
BTW, use apahce 2.0.31... That's the version you are suppose to use.
Read README file always _especially_ when you are using EXPERIMENTAL
one.
Previous Comments:
------------------------------------------------------------------------
[2002-02-24 22:22:43] yohgaki@php.net
To properly diagnose this bug, we need a backtrace to see what is
happening behind the scenes. To find out how to generate a backtrace,
please read http://bugs.php.net/bugs-generating-backtrace.php
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open".
------------------------------------------------------------------------
[2002-02-24 17:45:31] sukhruprai@yahoo.com
I tried to compile php 4.1.1 on RedHat Linux 7.1 with jdk 1.4 beta 2
and apache2 (2_0_28 beta) (because java was not working with apache
1.3.23) with these options:
****************************PHP**************************
./configure --with-apache=/usr/src/httpd-2_0_28 --with-mod_charset
--with-config-file-path=/usr/local/lib/php/ --with-openssl --with-zlib
--enable-bcmath --with-bz2 --enable-calendar --with-cpdflib
--with-png-dir --with-jpeg-dir --with-tiff-dir --enable-ctype
--with-curl --with-db3 --with-dom --enable-exif --enable-filepro
--enable-ftp --with-gd --enable-gd-native-ttf --with-xpm-dir
--with-freetype-dir=/usr --with-ttf --with-t1lib --with-gettext
--with-gmp --with-hyperwave --with-iconv --with-imap --with-kerberos
--with-imap-ssl --with-ircg --with-ldap --enable-mbstring
--enable-mbstr-enc-trans --with-mcal=/usr/src/libmcal --with-mhash
--with-mnogosearch=/usr/local/mnogosearch --with-mysql --with-pgsql
--with-pspell --with-qtdom --enable-trans-sid --enable-shmop
--with-snmp -enable-ucd-snmp-hack --enable-sockets --with-regex=php
--with-swf --enable-wddx --with-expat-dir=/usr/local --enable-xslt
--with-xslt-sablot --with-yaz --enable-yp --with-zip --with-pdflib
--enable-versioning --with-tsrm-st --with-tsrm-pthreads
--enable-track-vars --enable-overload --with-mcrypt --with-java
--enable-sysvsem --enable-sysvshm --with-xmlrpc
but php didn't compile because I think source structure of apache 2.0
is different from apache 1.3.
So to try compiling php as apache shared module (libphp4.so) I compiled
Apache 2.0 beta with these options:
***********************************APACHE 2*************
./configure --enable-auth-anon --enable-auth-db --enable-auth-dbm
--enable-auth-digest --enable-file-cache --enable-echo --enable-cache
--enable-mem-cache --enable-example --enable-ext-filter
--enable-case-filter --enable-case-filter-in --enable-mime-magic
--enable-cern-meta --enable-expires --enable-usertrck
--enable-unique-id --enable-ssl --enable-optional-hook-export
--enable-optional-hook-import --enable-optional-fn-import
--enable-optional-fn-export --enable-http --enable-dav --enable-cgi
--enable-info --enable-dgid --enable-dav-fs --enable-vhost-alias
--enable-speling --enable-actions --enable-rewrite
and then compiled php 4.1.1 with these options:
*******************************PHP************************
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mod_charset
--with-config-file-path=/usr/local/lib/php/ --with-openssl --with-zlib
--enable-bcmath --with-bz2 --enable-calendar --with-cpdflib
--with-png-dir --with-jpeg-dir --with-tiff-dir --enable-ctype
--with-curl --with-db3 --with-dom --enable-exif --enable-filepro
--enable-ftp --with-gd --enable-gd-native-ttf --with-xpm-dir
--with-freetype-dir=/usr --with-ttf --with-t1lib --with-gettext
--with-gmp --with-hyperwave --with-iconv --with-imap --with-kerberos
--with-imap-ssl --with-ircg --with-ldap --enable-mbstring
--enable-mbstr-enc-trans --with-mcal=/usr/src/libmcal --with-mhash
--with-mnogosearch=/usr/local/mnogosearch --with-mysql --with-pgsql
--with-pspell --with-qtdom --enable-trans-sid --enable-shmop
--with-snmp -enable-ucd-snmp-hack --enable-sockets --with-regex=php
--with-swf --enable-wddx --with-expat-dir=/usr/local --enable-xslt
--with-xslt-sablot --with-yaz --enable-yp --with-zip --with-pdflib
--enable-versioning --with-tsrm-st --with-tsrm-pthreads
--enable-track-vars --enable-overload --with-mcrypt --with-java
--enable-sysvsem --enable-sysvshm --with-xmlrpc
and this time --with-xmlrpc option produced some errors so I removed
--with-xmlrpc.
Finally, it compiled and a shared module was produced under apache
modules directory. LoadModule php4_module entry was automatically made
by php install in httpd.conf. I tried AddType application/x-httpd-php
but It didn't work then after removing AddType I added this option to
httpd.conf
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
and then restarted apache but php didn't work and segmentation fault
message was added to logs/error_log.
I tried to compile it again next day after removing old sources and
installed files. But it didn't work and browser waited and waited and
then some error like network error was produced by lynx browser. When I
examined logs/error_log then same segmentation fault entries like these
were added because of php failure..
**************************error_log******************
[Sat Feb 23 20:52:55 2002] [notice] child pid 703 exit
signal Segmentation fault (11)
[Sat Feb 23 20:53:22 2002] [notice] child pid 706 exit
signal Segmentation fault (11)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15703&edit=1