I've been struggling to get php 4.0.6 working  with redhat 7.1 and
apache 1.3.19. It seems to load as is evident by the entry in the error
log below. When I try to execute a simple script from the htdocs
directory to the show the environment, or any other php scripts, I get
the Segmentation fault in the error_log. I have including the output
from the gdb debugger as well as my PHP and Apache configure options.
Any help would be great. I've been battling with this for 3 weeks..
Everything else works fine. Just php4 not working.   --Thanks in
advance.

This is the simple test scripts

<?php
 phpinfo();
?>


>From The Apache errorlog

[Fri Oct 26 09:27:46 2001] [notice] Apache/1.3.19 (Unix) PHP/4.0.6
mod_perl/1.26
 FrontPage/4.0.4.3 mod_ssl/2.8.3 OpenSSL/0.9.6b configured -- resuming
normal op
erations
[Fri Oct 26 09:30:06 2001] [notice] child pid 29434 exit signal
Segmentation fault
(many more of the same with each invocation of the a php script)

Debug information from gdb:

[root@petros php-4.0.6]# cd /usr/local/apache/bin
[root@petros bin]# gdb httpd
GNU gdb 5.0rh-5 Red Hat Linux 7.1
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-redhat-linux"...
(gdb) run -x DSSL
Starting program: /usr/local/apache/bin/httpd -x DSSL

Program exited normally.
(gdb) run -X DSSL
Starting program: /usr/local/apache/bin/httpd -X DSSL

Program received signal SIGSEGV, Segmentation fault.
0x4036454d in send_php (r=0x84de750, display_source_mode=0,
filename=0x0)
    at mod_php4.c:478
478             per_dir_conf = (HashTable *)
get_module_config(r->per_dir_config
, &php4_module);
(gdb) run -X DSSL
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /usr/local/apache/bin/httpd -X DSSL


Program received signal SIGSEGV, Segmentation fault.
0x4036454d in send_php (r=0x84de750, display_source_mode=0,
filename=0x0)
    at mod_php4.c:478
478             per_dir_conf = (HashTable *)
get_module_config(r->per_dir_config
, &php4_module);
(gdb)
(gdb) bt
#0  0x4036454d in send_php (r=0x84de750, display_source_mode=0,
filename=0x0)
    at mod_php4.c:478
#1  0x4036470d in send_parsed_php (r=0x84de750) at mod_php4.c:547
#2  0x080e320f in ap_invoke_handler () at eval.c:41
#3  0x080f7623 in process_request_internal () at eval.c:41
#4  0x080f7684 in ap_process_request () at eval.c:41
#5  0x080ee9b1 in child_main () at eval.c:41
#6  0x080eeb80 in make_child () at eval.c:41
#7  0x080eecf4 in startup_children () at eval.c:41
#8  0x080ef347 in standalone_main () at eval.c:41
#9  0x080efb8b in main () at eval.c:41
#10 0x400ef177 in __libc_start_main (main=0x80ef7d0 <main>, argc=3,
    ubp_av=0xbffff80c, init=0x807b2d8 <_init>, fini=0x8225b10 <_fini>,
    rtld_fini=0x4000e184 <_dl_fini>, stack_end=0xbffff7fc)
    at ../sysdeps/generic/libc-start.c:129
(


PHP configure

EAPI_MM=../mm-1.1.3 \
./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--with-sybase-ct=/opt/sybase \
--enable-bcmath \
--enable-calender \
--with-ctype \
--enable-exif \
--enable-versioning \
--enable-track-vars \
--enable-gd-imgstrttf \
--with-gd \
--with-ldap \
--enable-ftp \
--enable-trans-sid \
--enable-sysvsem \
--enable-sysvshm \
--enable-shmop \
--enable-wddx \
--enable-sockets \
--with-gettext \
--with-openssl

Apache configure

SSL_BASE=../openssl-0.9.6b \
EAPI_MM=../mm-1.1.3 \
./configure \
--prefix=/usr/local/apache \
--enable-module=ssl \
--add-module=mod_frontpage.c \
--enable-module=so \
--enable-module=rewrite \
--enable-module=log_agent \
--enable-module=log_referer \
--enable-module=proxy \
--enable-module=speling \
--enable-module=usertrack \
--enable-module=vhost_alias \
--enable-module=unique_id \
--enable-module=expires \
--enable-module=info \
--enable-module=userdir \
--activate-module=src/modules/perl/libperl.a \
--enable-module=perl




-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to