PHP 4.0 Bug #4630: Segmentation fault(coredump) in apache startup
| From: | david-shafer at uiowa dot edu | Date: | Fri, 26 May 2000 21:20:05 +0000 |
| Subject: | PHP 4.0 Bug #4630: Segmentation fault(coredump) in apache startup | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-19563@lists.php.net to get a copy of this message | ||
From: david-shafer@uiowa.edu
Operating system: AIX 4.3.3
PHP version: 4.0.0 Release
PHP Bug Type: Installation problem
Bug description: Segmentation fault(coredump) in apache startup
IBM AIX 4.3.3
Apache 1.3.12
PHP 4.0.0 Release
IBM C for AIX (vac.C 4.4.0.3)
$ export CC=/usr/bin/cc
$ export CFLAGS="-g -qheapdebug"
$ ./configure --prefix=/local/php \
--with-config-file-path=/local/php/etc \
--with-apxs=/local/www/bin/apxs \
--without-mysql \
--without-xml \
--with-regex=system
...
$ make
...
/usr/bin/cc: 1501-218 file .libs/libphp4.lax/libstandard.al/strnatcmp.lo contains an incorrect file
suffix
/* **** I get perhaps a couple screens of errors like the above, for different .lo files in various
directories **** */
(cd .libs && rm -f libphp4.so.0 && ln -s libphp4.so.0.0.0 libphp4.so.0)
(cd .libs && rm -f libphp4.a && ln -s libphp4.so.0.0.0 libphp4.a)
rm -fr .libs/libphp4.lax
creating libphp4.la
(cd .libs && rm -f libphp4.la && ln -s ../libphp4.la libphp4.la)
Target "all-p" is up to date.
Making all in pear
Target "all" is up to date.
Target "all" is up to date.
$ su
# rm /local/www/libexec/libphp4.so
# make install
...
[activating module `php4' in /local/www/conf/httpd.conf]
installing shared modules into /local/php/lib/php/extensions/debug-non-zts-20000401
cp: modules/*: A file or directory in the path name does not exist.
Target "install-p" is up to date.
Making install in pear
creating header file hierarchy
creating phpize
creating php-config
Target "install-p" is up to date.
Target "install" is up to date.
Target "install" is up to date.
# /local/www/bin/httpd -X
Segmentation fault(coredump)
# exit
$ dbx -I /local/php/src/php-4.0.0/sapi/apache httpd core
Type 'help' for help.
reading symbolic information ...
[using memory image in core]
Segmentation fault in _debug_malloc at 0xd3bd3f90
0xd3bd3f90 (_debug_malloc+0x8) 800c0000 lwz r0,0x0(r12)
(dbx) where
_debug_malloc() at 0xd3bd3f90
php_create_dir(0x2001ee98, 0x0), line 564 in "mod_php4.c"
ap_single_module_configure(0x2001ee98, 0x2001eec0, 0x200ac598), line 1500 in
"http_config.c"
load_module(0x2ff21f88, 0x0, 0x20043720, 0x20043730), line 282 in "mod_so.c"
invoke_cmd(0x2000f548, 0x2ff21f88, 0x0, 0x2ff1ff60), line 818 in "http_config.c"
unnamed block $b14, line 1008 in "http_config.c"
ap_handle_command(0x2ff21f88, 0x2001f3f0, 0x2ff1ff30), line 1008 in "http_config.c"
unnamed block $b16, line 1022 in "http_config.c"
ap_srm_command_loop(0x2ff21f88, 0x2001f3f0), line 1022 in "http_config.c"
ap_process_resource_config(0x2001eec0, 0x2001f578, 0x2001ee98, 0x20022ed8), line 1202 in
"http_config.c"
ap_read_config(0x2001ee98, 0x20022ed8, 0x20005200), line 1481 in "http_config.c"
http_main.main(argc = 2, argv = 0x2ff2217c), line 4955 in "http_main.c"