PHP 4.0 Bug #6689 Updated: Apache dumps core when loading PHP dynamically
| From: | Bug Database | Date: | Tue, 12 Sep 2000 22:12:24 +0000 |
| Subject: | PHP 4.0 Bug #6689 Updated: Apache dumps core when loading PHP dynamically | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-33020@lists.php.net to get a copy of this message | ||
ID: 6689
User Update by: st.n@gmx.net
Status: Open
Bug Type: Dynamic loading
Description: Apache dumps core when loading PHP dynamically
make[1]: Entering directory `/homep9/f993590/pub/php-4.0.2'
/bin/sh /home/f993590/pub/php-4.0.2/libtool --silent
--mode=compile gcc -I. -I/home/f993590/pub/php-4.0.2
/ -I/home/f993590/pub/php-4.0.2
-I/home/f993590/pub/php-4.0.2/main
-I/usr/local/apache/include -I/home/f99
3590/pub/php-4.0.2/Zend -I/home/f993590/pub/php-4.0.2
-I/usr/informix/incl/esql -I/usr/local/include -I/ho
me/f993590/pub/php-4.0.2/ext/xml/expat/xmltok
-I/home/f993590/pub/php-4.0.2/ext/xml/expat/xmlparse -DEAPI
=1 -D__H_LOCALEDEF -DXML_BYTE_ORDER=21 -O2
-I/usr/informix/incl/esql -c stub.c
/bin/sh /home/f993590/pub/php-4.0.2/libtool --silent
--mode=link gcc -I. -I/home/f993590/pub/php-4.0.2/ -
I/home/f993590/pub/php-4.0.2
-I/home/f993590/pub/php-4.0.2/main
-I/usr/local/apache/include -I/home/f99359
0/pub/php-4.0.2/Zend -I/home/f993590/pub/php-4.0.2
-I/usr/informix/incl/esql -I/usr/local/include -I/home/
f993590/pub/php-4.0.2/ext/xml/expat/xmltok
-I/home/f993590/pub/php-4.0.2/ext/xml/expat/xmlparse -DEAPI=1
-D__H_LOCALEDEF -DXML_BYTE_ORDER=21 -O2
-I/usr/informix/incl/esql -o libphp4.la -rpath
/home/f993590/pub
/php-4.0.2/libs -avoid-version -L/usr/informix/lib
-L/usr/informix/lib/esql -L/home/f993590/pub/php-4.0.2/
ext/informix -L/usr/local/lib -R /usr/informix/lib -R
/usr/informix/lib/esql -R /home/f993590/pub/php-4.0
.2/ext/informix -R /usr/local/lib stub.lo Zend/libZend.la
sapi/apache/libsapi.la main/libmain.la regex/li
bregex.la ext/db/libdb.la ext/informix/libinformix.la
ext/pcre/libpcre.la ext/posix/libposix.la ext/sessio
n/libsession.la ext/standard/libstandard.la
ext/xml/libxml.la -ldl -lmm -lbind -lm -ldl -lcrypt -lixsqlsh
r -lixasfshr -lixgenshr -lixosshr -lixglsshr -ltli -lmsaa
-lbsd -lphp_ifx -lixglx
ld: 0711-224 WARNING: Duplicate symbol: ._GLOBAL__DI
ld: 0711-224 WARNING: Duplicate symbol: ._GLOBAL__DD
ld: 0711-224 WARNING: Duplicate symbol: _GLOBAL__DI
ld: 0711-224 WARNING: Duplicate symbol: _GLOBAL__DD
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain
more information.
make[1]: Leaving directory `/homep9/f993590/pub/php-4.0.2'
Making all in pear
make[1]: Entering directory `/homep9/f993590/pub/php-4.0.2/pear'
make[1]: Leaving directory `/homep9/f993590/pub/php-4.0.2/pear'
Previous Comments:
---------------------------------------------------------------------------
[2000-09-12 17:49:43] st.n@gmx.net
I finally managed to install Apache 1.3.12 with mod_ssl,
openssl, mm
and PHP 4.0.2 on AIX 4.3.0. Everything works fine, except
for PHP. When I
try to start the Apache http with the two lines
LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c
included in httpd.conf, it crashes immediately on
startup (with or
without SSL):
$ apachectl startssl # (or apachectl start)
apachectl[83]: 32068 Segmentation fault(coredump)
apachectl startssl: httpd could not be started
Inspecting the core file shows the following backtrace:
#0 0xd1c03aa8 in ap_register_cleanup ()
#1 0xd1c04e90 in php_create_dir ()
#2 0x10019b34 in ap_single_module_configure ()
#3 0x10049be4 in load_module ()
#4 0x100174ac in invoke_cmd ()
#5 0x100183d0 in ap_handle_command ()
#6 0x100184c0 in ap_srm_command_loop ()
#7 0x10018cb8 in ap_process_resource_config ()
#8 0x100199b8 in ap_read_config ()
#9 0x10006c2c in main ()
#10 0x100001dc in __start ()
With the LoadModule and AddModule lines commented out,
everything
works fine.
I configured Apache with
SSL_BASE=../openssl-0.9.5a ./configure --enable-module=most
--enable-shared=max
and PHP with
./configure --with-apxs=/usr/local/apache/bin/apxs
--with-informix --with-mm --without-mysql
Is there anything wrong with this?
Should I build PHP as a static module instead of a dynamic one?
Or is this just a bug and I should file a bug report?
Can anybody give me some hints?
Thanks!
- Stephan.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6689