Anyone have any ideas as to what my problem is here?  From the core dump 
it looks like a problem with pthreads but I'm stuck as to where to go from 
here.

Here is exactly what I did to reproduce the problem.  This is on an AIX 
4.3.3 box with
Oracle 9iAS which runs Apache 1.3.12.  I have successfully installed PHP 
on Oracle 8iAS which
runs Apache 1.3.9.

Here's the exact steps I took to install PHP:

NOTE: I ran all of this as the oracle user and I had my ORACLE_HOME set to 
/ias/6iserver. 
This shouldn't be necessary since we specify this on the configure line 
but I did it to be
safe.

Added -I/ias/Apache/perl/lib/5.00503 to the end of the #!perl call at the 
top of the apxs
script.  A perl module (strict.pm) is required but is not found in the 
include path when
the configure script runs apxs.

Also, I'm not sure why, but Oracle 9iAS automatically assumes everyone is 
running Solaris.
In the apxs script I  changed a '-DSOLARIS2=260' reference to -DAIX=43.

Ran CC=cc configure --with-apxs=/ias/Apache/Apache/bin/apxs 
--with-oci8=/ias/6iserver
--without-mysql --prefix=/ias/Apache/Apache

After the configure script was done I edited config_vars.mk and added 
-I/ias/rdbms/demo
and -I/ias/rdbms/public to the INCLUDES variable.  IAS keeps some of the 
oci8 header files in
these directories.  Also, for 9i I had to add -I/ias/Apache/Apache/include 
to the INCLUDES
variable.  I did not have to do this for 8iAS.

AIX has a sparsely documented bug where alloca() is not defined on the 
system and the PHP
configure script does not seem to handle this properly.  We need to add 
-ma to CFLAGS to
get around this.

Created a link in /ias/6iserver/lib for libclntsh.a.  For some reason only 
a .so was
included in 9iAS.  I checked 8iAS and this file is not missing here.  Ran 
ln -s libclntsh.so
libclntsh.a in the /ias/6iserver/lib directory.

Ran make.

Ran make install.

Apache starts up ok, but I get a seg fault at the first call to PHP.  Only 
the child http
process dies.

Apache error log shows:

[Sun Feb 18 20:51:19 2001] [notice] Apache/1.3.12 (Unix) ApacheJServ/1.1 
PHP/4.0.4pl1
mod_perl/1.22 configured -- resuming normal operations
[Sun Feb 18 20:51:52 2001] [notice] child pid 16028 exit signal 
Segmentation fault (11)

DBX output of core file:

< Several pages of warnings like this snipped >
warning: Unable to access address 0x2007d6fc from core
warning: Unable to access address 0x2007d700 from core
warning: Unable to access address 0x2007d700 from core
warning: Unable to access address 0x2007d704 from core
warning: Unable to access address 0x2007d704 from core
warning: Unable to access address 0x2007d708 from core
warning: Unable to access address 0x2007d708 from core

[using memory image in ../core]
warning: Unable to access address 0xf01558e4 from core

Segmentation fault in signal._p_nsleep [/usr/lib/libpthreads.a] at 
0xd0013db4
0xd0013db4 (_p_nsleep+0x10) 80410014        lwz   r2,0x14(r1)

Any ideas?

Thanks,
Michael Champagne, Software Engineer
Capital Institutional Services, Inc.
wk: [EMAIL PROTECTED]


******************************************************************
This communication is for informational purposes only.  It is not
intended as an offer or solicitation for the purchase or sale of 
any financial instrument or as an official confirmation of any 
transaction, unless specifically agreed otherwise.  All market 
prices, data and other information are not warranted as to 
completeness or accuracy and are subject to change without
notice.  Any comments or statements made herein do not 
necessarily reflect the views or opinions of Capital Institutional
Services, Inc.  Capital Institutional Services, Inc. accepts no
liability for any errors or omissions arising as a result of
transmission.  Use of this communication by other than intended
recipients is prohibited.
******************************************************************

-- 
PHP General 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