From:             [EMAIL PROTECTED]
Operating system: AIX 4.3.3
PHP version:      4.0.4pl1
PHP Bug Type:     Scripting Engine problem
Bug description:  PHP seg faults in alloca() at first PHP request to Apache

We are running Oracle IAS on AIX 4.3.3.  Oracle's IAS runs Apache 1.3.9 and 
the root Apache directory is in /ias/Apache/Apache.  We have a soft link from 
/usr/local/apache -> /ias/Apache.  We are installing our PHP source from 
/usr/tools/src/php-4.0.4pl1/ and I believe the config script uses /usr/local as it's 
prefix?  We ran make and make install and we bring up Apache with mod_php 
successfully.  At the first request however, php cores in the /ias/Apache/Apache 
directory.  The request is simply running phpinfo().  I see the following message in 
our httpds_error_log:

[Fri Feb  2 11:26:34 2001] [notice] Apache/1.3.9 (Unix) PHP/4.0.4pl1 mod_perl/1.21 
ApacheJServ/1.1 configured --
 resuming normal operations
[Fri Feb  2 11:26:58 2001] [notice] child pid 17026 exit signal Segmentation fault (11)

Here's what I see in the core file:

Segmentation fault in sig_coredump at 0x10003824
0x10003824 (sig_coredump+0x3c) 80410014          l   r2,0x14(r1)

(dbx) where
sig_coredump(0xb) at 0x10003824
alloca() at 0xd36ccef8
php_execute_script(0x2ff22530), line 1181 in "main.c"
apache_php_module_main(0x20255e30, 0x0), line 89 in "sapi_apache.c"
send_php(0x20255e30, 0x0, 0x20257dc0), line 516 in "mod_php4.c"
send_parsed_php(0x20255e30), line 527 in "mod_php4.c"
ap_invoke_handler(0x20255e30) at 0x100c3138
process_request_internal(0x20255e30) at 0x100edf8c
ap_process_request(0x20255e30) at 0x100ef4f8
child_main(0x0) at 0x10002058
make_child(0x2004ed20, 0x0, 0x3a7adfba) at 0x10001a18
startup_children(0x5) at 0x10001804
standalone_main(0x3, 0x2ff229e8) at 0x10000d24
http_main.main(0x3, 0x2ff229e8) at 0x100008c8

Our configure scripts is run with:
configure --with-apxs=/ias/Apache/Apache/bin/apxs --with-oci8=/ias/6iserver 

We also made the modification to libtool in bug 4360 and tried again but we get the 
same as above.

Edit Bug report at:

PHP Development Mailing List <>
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