php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10864 dumps core when issuing "/apache-path/bin/apachectl stop"
Submitted: 2001-05-14 20:08 UTC Modified: 2001-05-28 00:04 UTC
From: jcc at nbcs dot rutgers dot edu Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.5 OS: Solaris 5.7
Private report: No CVE-ID: None
 [2001-05-14 20:08 UTC] jcc at nbcs dot rutgers dot edu
Currently, I have apache-1.3.19 loaded on a Solaris 5.7 machine with php v4.0.5 loaded as a DSO module.    My complaint is, evertime I run "/usr/local/apache-1.3.19/bin/apachectl stop", it dumps core.  

I've got other modules loaded on this apache configuration and prior to loading php, "apachectl stop" runs without a hitch.  But once I load libphp4.so, start the server, then run "apachectl stop", it dumps core.  

The odd part is, I'm able to run an "apachectl restart" and it won't dump core.  Has anyone encountered this as well?

Well, here's some system-specific info pertaining to my apache setup.  Please let me know if I can provide any other info.

I compiled apache-1.3.19 with gcc-2.95.2 on a Sun Ultra 10.  php-4.0.5 was built with the following:  mysql-3.23.37, openssl-0.9.6a, and imap-4.7uw (Univ. of Washington's version of imap).  

I don't believe imap is the source of the problem as I've been able to build previous versions of php successfully with that particular version of imap.

** Configure line:
=-=-=-=-=-=-=
./configure --prefix=/usr/local/php-4.0.5 --enable-track-vars \ --enable-force-cgi-redirect --with-gettext  --with-ndbm \
--enable-ftp --with-apxs=/usr/local/apache-1.3.19/bin/apxs \ --with-mysql=/usr/local/mysql-3.23.37 \ --with-openssl=/usr/local/openssl-0.9.6a \ --with-imap=/free/build/php-4.0.5/c-client \
--enable-shared --enable-sysvshm --enable-sysvsem \
--enable-debug

** A short script that reproduces the problem:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
	/usr/local/apache-1.3.19/bin/apachectl start
	/usr/local/apache-1.3.19/bin/apachectl stop

** Copy of /usr/local/lib/php.ini
=-=-=-=-=-=-=-=-=-=-=-=
safe_mode = On
sql.safe_mode = On
safe_mode_exec_dir = /usr/local/apache-1.3.19/php-exec


** gdb backtrace:
=-=-=-=-=-=-=-
>  gdb /usr/local/apache-1.3.19/bin/httpd core
GDB is free software and you are welcome to 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.
GDB 4.16 (sparc-sun-solaris2.5), Copyright 1996 Free Software Foundation, Inc...
Core was generated by `/usr/local/apache-1.3.19/bin/httpd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libsocket.so.1...done.
Reading symbols from /usr/lib/libnsl.so.1...done.
Reading symbols from /usr/lib/libdl.so.1...done.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/lib/libmp.so.2...done.
Reading symbols from /usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1...done.
Reading symbols from /usr/lib/nss_files.so.1...done.
Reading symbols from /usr/lib/nss_nis.so.1...done.
Reading symbols from /usr/lib/nss_dns.so.1...done.
#0  0xfec5faf4 in ?? ()
(gdb) bt
#0  0xfec5faf4 in ?? ()
#1  0xff1d5858 in keys_destruct ()
#2  0xff1a0260 in _exithandle ()
#3  0xff218268 in exit ()
#4  0x521d4 in clean_parent_exit ()
#5  0x56180 in standalone_main ()
#6  0x56978 in main ()
(gdb) 

thanks for your time and efforts on php.  Please let me know if there is any other information I can provide regarding this issue.

-Jack

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-28 00:04 UTC] sniper@php.net
Seem like not a PHP bug.  Try updating your Apache.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 08:01:29 2024 UTC