#19369 [Opn->Csd]: core dump with Apache + lib_php4 when trying to start Apache
| From: | cnoack at informatik dot tu-cottbus dot de | Date: | Thu, 12 Sep 2002 09:45:21 +0000 |
| Subject: | #19369 [Opn->Csd]: core dump with Apache + lib_php4 when trying to start Apache | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-19223@lists.php.net to get a copy of this message | ||
ID: 19369
User updated by: cnoack@informatik.tu-cottbus.de
Reported By: cnoack@informatik.tu-cottbus.de
-Status: Open
+Status: Closed
Bug Type: Apache related
Operating System: OpenBSD 3.1
PHP Version: 4.2.3
New Comment:
It was my fault. One should not compile modules into the new httpd when
the old httpd loaded them dynamically as configured in httpd.conf.
Sorry to bother someone.
Previous Comments:
------------------------------------------------------------------------
[2002-09-12 04:06:33] cnoack@informatik.tu-cottbus.de
errorlog shows following line with each try to start apache:
httpd in free(): warning: page is already free.
------------------------------------------------------------------------
[2002-09-12 03:49:24] cnoack@informatik.tu-cottbus.de
The same configuration is running fine with OpenBSD 3.0. Could be a
library problem maybe.
------------------------------------------------------------------------
[2002-09-12 03:16:39] cnoack@informatik.tu-cottbus.de
I compiled PHP 4.2.3 into Apache 1.3.26 as static module with following
config line:
./configure --with-apache=../apache_1.3.26
--with-config-file-path=/var/www/conf --enable-safe-mode
--with-openssl=../openssl-0.9.6g --disable-short-tags --enable-bcmath
--enable-calendar --with-mcrypt=/usr/local --with-mhash=/usr/local
--with-mysql=/usr/local --with-zlib --with-zlib-dir=../zlib-1.1.4
--enable-trans-sid
When trying to execute "apachectl start", I get a core dump.
gdb shows following:
[root@foo:/usr/sbin]# gdb httpd
GNU gdb 4.16.1
[..]
This GDB was configured as "i386-unknown-openbsd3.1"...
(gdb) run
Starting program: /usr/sbin/httpd
Program received signal SIGSEGV, Segmentation fault.
zend_hash_destroy (ht=0x25b84c) at zend_hash.c:539
539 p = p->pListNext;
(gdb) quit
[root@foo:/]# gdb /usr/sbin/httpd ./httpd.core
GNU gdb 4.16.1
This GDB was configured as "i386-unknown-openbsd3.1"...
Core was generated by `httpd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/libexec/ld.so...done.
Reading symbols from /usr/local/lib/libmysqlclient.so.10.0...done.
Reading symbols from /usr/local/lib/libmhash.so.2.0...done.
Reading symbols from /usr/local/lib/libmcrypt.so.7.2...done.
Reading symbols from /usr/local/lib/libltdl.so.4.0...done.
Reading symbols from /usr/lib/libm.so.0.1...done.
Reading symbols from /usr/lib/libc.so.28.3...done.
Reading symbols from /usr/lib/libz.so.1.4...done.
Reading symbols from /usr/lib/apache/modules/mod_throttle.so...done.
Reading symbols from /usr/lib/apache/modules/mod_env.so...done.
Reading symbols from /usr/lib/apache/modules/mod_log_config.so...done.
Reading symbols from /usr/lib/apache/modules/mod_mime.so...done.
Reading symbols from
/usr/lib/apache/modules/mod_negotiation.so...done.
Reading symbols from /usr/lib/apache/modules/mod_status.so...done.
Reading symbols from /usr/lib/apache/modules/mod_info.so...done.
Reading symbols from /usr/lib/apache/modules/mod_dir.so...done.
Reading symbols from /usr/lib/apache/modules/mod_cgi.so...done.
Reading symbols from /usr/lib/apache/modules/mod_alias.so...done.
Reading symbols from /usr/lib/apache/modules/mod_access.so...done.
Reading symbols from /usr/lib/apache/modules/mod_auth.so...done.
Reading symbols from /usr/lib/apache/modules/libssl.so...done.
Reading symbols from /usr/lib/apache/modules/libphp4.so...done.
Reading symbols from /usr/lib/libssl.so.5.1...done.
Reading symbols from /usr/lib/libcrypto.so.5.1...done.
#0 zend_hash_destroy (ht=0x25b84c) at zend_hash.c:539
539 p = p->pListNext;
(gdb) bt
#0 zend_hash_destroy (ht=0x25b84c) at zend_hash.c:539
#1 0x27ed7 in sapi_shutdown () at SAPI.c:97
#2 0x22aad in apache_php_module_shutdown_wrapper () at mod_php4.c:806
#3 0x112405 in run_cleanups ()
#4 0x110a97 in ap_clear_pool ()
#5 0x1283dc in standalone_main ()
#6 0x128f00 in main ()
(gdb)
Bye.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19369&edit=1