php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19369 core dump with Apache + lib_php4 when trying to start Apache
Submitted: 2002-09-12 03:16 UTC Modified: 2002-09-12 06:03 UTC
From: cnoack at informatik dot tu-cottbus dot de Assigned:
Status: Not a bug Package: Apache related
PHP Version: 4.2.3 OS: OpenBSD 3.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cnoack at informatik dot tu-cottbus dot de
New email:
PHP Version: OS:

 

 [2002-09-12 03:16 UTC] cnoack at informatik dot tu-cottbus dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-12 03:49 UTC] cnoack at informatik dot tu-cottbus dot de
The same configuration is running fine with OpenBSD 3.0. Could be a library problem maybe.
 [2002-09-12 04:06 UTC] cnoack at informatik dot tu-cottbus dot de
errorlog shows following line with each try to start apache:

httpd in free(): warning: page is already free.
 [2002-09-12 04:45 UTC] cnoack at informatik dot tu-cottbus dot de
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.
 [2002-09-12 06:03 UTC] sniper@php.net
user error -> bogus

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 01 17:01:31 2024 UTC