Bug #11716 Updated: Segmentation fault(coredump) in Apache(DSO-enabled) startup
| From: | cmlee at users dot sourceforge dot net | Date: | Wed, 16 Jan 2002 07:45:20 +0000 |
| Subject: | Bug #11716 Updated: Segmentation fault(coredump) in Apache(DSO-enabled) startup | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-77211@lists.php.net to get a copy of this message | ||
ID: 11716
User updated by: cmlee@users.sourceforge.net
Reported By: cmlee@users.sourceforge.net
Old Status: Feedback
Status: Open
Bug Type: Apache related
Operating System: AIX 4.3.3
PHP Version: 4.0.6
New Comment:
This is my testing environment:
AIX 4.3.3
gcc 2.95.3
Apache 1.3.22
PHP 4.1.1
It works in DSO-enabled apache. However, there is still
installation problem like the following.
--- configure and make works fine ---
# make install
Making install in .
make[1]: Entering directory `/home/cmlee/php-4.1.1'
/usr/local/apache/bin/apxs -i -a -n php4 libs/libphp4.so
[activating module `php4' in [/usr/local/apache/conf/httpd.conf]
cp libs/libphp4.so /usr/local/apache/libexec/libphp4.so
cp: libs/libphp4.so: No such file or directory
apxs:Break: Command failed with rc=1
make[1]: *** [install-sapi] Error 1
make[1]: Leaving directory `/home/cmlee/php-4.1.1'
make: *** [install-recursive] Error 1
# cp .libs/libphp4.so.0 /usr/local/apache/libexec/libphp4.so
# cd /usr/local/apache/bin
# ./apachectl start
./apahectl start: httpd started
Now PHP on the DSO-enabled apache are working well.
I've tested with 'phpinfo()' function.
Previous Comments:
------------------------------------------------------------------------
[2002-01-12 14:44:51] lobbin@php.net
Can you try with the latest release 4.1.1?
------------------------------------------------------------------------
[2001-10-28 23:34:40] cmlee@users.sourceforge.net
I tried, however the result is same before.
Tried snapshot : php4-200110281500.tar.gz
$ pwd
/home/cmlee/php4-200110281500
$ ./configure --enable-debug \
--with-apxs=/usr/local/apache/bin/apxs \
--with-mysql=no
$ make
ar -crlo .libs/libphp4.a .libs/libphp4.so.0
rm -fr .libs/libphp4.lax
creating libphp4.la
(cd .libs && rm -f libphp4.la && ln -s ../libphp4.la libphp4.la)
make[1]: Leaving directory `/home/cmlee/php4-200110281500'
Making all in pear
make[1]: Entering directory `/home/cmlee/php4-200110281500/pear'
make[1]: Leaving directory `/home/cmlee/php4-200110281500/pear'
$ su
# make install
Making install in .
make[1]: Entering directory `/home/cmlee/php4-200110281500'
/home/cmlee/php4-200110281500/build/shtool mkdir -p
"/usr/local/apache/libexec" && /usr/local/apache/bin/apxs -S
LIBEXECDIR="/usr/local/apache/libexec" -i -a -n php4 libs/libphp4.so
[activating module `php4' in /usr/local/apache/conf/httpd.conf]
cp libs/libphp4.so /usr/local/apache/libexec/libphp4.so
cp: libs/libphp4.so: No such file or directory
apxs:Break: Command failed with rc=1
make[1]: *** [install-sapi] Error 1
make[1]: Leaving directory `/home/cmlee/php4-200110281500'
make: *** [install-recursive] Error 1
# cp .libs/libphp4.so.0 /usr/local/apache/libexec/libphp4.so
# cd /usr/local/apache/bin
# ./httpd -X
Segmentation fault (core dumped)
# gdb httpd
GNU gdb 4.18
Copyright 1998 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 "powerpc-ibm-aix4.3.2.0"...
(gdb) run -X
Starting program: /usr/locql/apache/bin/httpd -X
"/usr/lib/libpthreads.a": not in executable format: File format not
recognized.
(gdb) c
Continuing.
"/usr/lpp/xlC/lib/libC.a": not in executable format: File format not
recognized.
(gdb) c
Continuing.
"/usr/lib/libbind.a": not in executable format: File format not
recognized.
(gdb) c
Continuing.
Program received signal SIGSEGV, Segmentation fault.
0xd0b5acac in ?? () from (unknown load module)
(gdb) bt
#0 0xd0b5acac in ?? () from (unknown load module)
#1 <signal handler called>
(gdb) quit
------------------------------------------------------------------------
[2001-10-21 00:06:58] sniper@php.net
Would you please try again the latest snapshot?
------------------------------------------------------------------------
[2001-07-19 00:56:34] cmlee@bigfoot.com
I tried to make php4-200107181935 snapshot.
But now I have another problem which is an installation failure.
$ ./configure --enable-debug \
--with-apxs=/home/apache/bin/apxs \
--with-mysql=no
...
$ make
...
$ su
$ make install
...
Making install in .
make[1]: Entering directory `/home/cmlee/php4-200107181935'
/home/cmlee/php4-200107181935/build/shtool mkdir -p
"/home/apache/libexec"
&& /home/apache/bin/apxs -S LIBEXECDIR="/home/apache/libexec" -i -a -n
php4
libs/libphp4.so
[activating module `php4' in /home/apache/conf/httpd.conf]
cp libs/libphp4.so /home/apache/libexec/libphp4.so
cp: libs/libphp4.so: No such file or directory
apxs:Break: Command failed with rc=1
make[1]: *** [install-sapi] Error 1
make[1]: Leaving directory `/home/cmlee/php4-200107181935'
make: *** [install-recursive] Error 1
------------------------------------------------------------------------
[2001-07-12 04:04:46] sniper@php.net
Please try the latest CVS snapshot from http://snaps.php.net/ as
#4630
was reported to be fixed now.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=11716
Edit this bug report at http://bugs.php.net/?id=11716&edit=1