From:             [EMAIL PROTECTED]
Operating system: Red Hat Linux 7.1
PHP version:      4.1.1
PHP Bug Type:     Apache2 related
Bug description:  Segmentation fault with apache2 php pages not served

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 bug report at http://bugs.php.net/?id=15703&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=15703&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=15703&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=15703&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=15703&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15703&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=15703&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=15703&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=15703&r=submittedtwice

Reply via email to