Bug #14021 Updated: PHP 4.2.0-dev segfaults with horde
| From: | sniper@php.net | Date: | Sun, 18 Nov 2001 23:36:05 +0000 |
| Subject: | Bug #14021 Updated: PHP 4.2.0-dev segfaults with horde | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-70841@lists.php.net to get a copy of this message | ||
ID: 14021
Updated by: sniper
Reported By: ashihab@alcahest.com
Old Status: Open
Status: Closed
Bug Type: Reproducible crash
Operating System: Linux RH7.1 (2.4.9)
PHP Version: 4.0CVS-2001-11-11
New Comment:
This should be fixed in latest CVS now.
--Jani
Previous Comments:
------------------------------------------------------------------------
[2001-11-11 19:32:09] ashihab@alcahest.com
Hi,
I have Horde Address book application (turba) (www.horde.org) from the latest CVS and PHP 4.2.0-dev
from cvs. During import function of turba apache seg faults and stop the application.
From the debug log you can see a secondary problem. However, the segfault problem still occures when
mcal support is removed and the cc_* problem disappears.
Can you help?
Configuration:
Linux RH 7.1 (kernel 2.4.9)
Apache 1.3.19 (stock build from RH)
php4.2.0-dev (checked out 11.11.01)
horde (HORDE, IMP, TURBA, KRONOLITH, WHUPS) (checked out 11.11.01)
./cvsclean
./buildconf
./configure \
--with-zlib \
--with-mm \
--with-mcal \
--with-mysql=/usr \
--with-ldap \
--with-gettext \
--enable-ftp \
--with-db3 \
--with-kerberos \
--with-apxs \
--with-config-file-path=/etc \
--enable-track-vars \
--with-sysvsem \
--with-sysvshm \
--with-imap \
--with-imap-ssl
libmcal is installed in /usr/local with directory with ld.so.conf:
/usr/lib
/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/sane
/usr/lib/qt-2.3.0/lib
/usr/lib/mysql
/usr/lib/qt-1.45/lib
/usr/local/lib
I have run ldconfig.
debug.log:
CONFIGURE: './configure' '--with-zlib' '--with-mm'
'--with-mcal' '--with-mysql=/usr' '--with-ldap'
'--with-cyrus' '--with-gettext' '--enable-ftp' '--with-db3'
'--with-kerberos' '--with-apxs' '--with-config-file-path=/etc'
'--enable-track-vars' '--with-sysvsem' '--with-sysvshm'
'CFLAGS=-O0 -g'
CC: gcc
CFLAGS: -O0 -g
CPPFLAGS: -DLINUX=22 -DMOD_SSL=208101 -DEAPI -DEAPI_MM -DUSE_EXPAT
CXX:
CXXFLAGS:
INCLUDES: -I/usr/include/apache -I$(top_builddir)/Zend -I/usr/local/include
-I/usr/local/include/mcal -I/usr/include/mysql
LDFLAGS: -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/lib/mysql -L/usr/lib/mysql
LIBS: -lmm -lmysqlclient -lz -lmcal -lldap -llber -ldb -lcyrus -lcrypto -lssl -lsasl -lz
-lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt
DLIBS:
SAPI: apache
PHP_RPATHS: /usr/local/lib /usr/lib/mysql
uname -a: Linux galgamish 2.4.9-12 #1 Tue Oct 30 18:33:49 EST 2001 i686 unknown
gcc -o conftest -O0 -g -DLINUX=22 -DMOD_SSL=208101 -DEAPI -DEAPI_MM -DUSE_EXPAT
-Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/lib/mysql -L/usr/lib/mysql conftest.c
-lmm -lmysqlclient -lz -lmcal -lldap -llber -ldb -lcyrus -lcrypto -lssl -lsasl -lz -lcrypt -lresolv
-lm -ldl -lnsl -lresolv -lcrypt >&5
/usr/local/lib/libmcal.so: undefined reference to `cc_login'
/usr/local/lib/libmcal.so: undefined reference to `cc_searched'
/usr/local/lib/libmcal.so: undefined reference to `cc_vlog'
/usr/local/lib/libmcal.so: undefined reference to `cc_vdlog'
collect2: ld returned 1 exit status
gdb stack trace:
(gdb) run -X -DHAVE_PROXY -DHAVE_ACCESS -DHAVE_ACT
Starting program: /usr/sbin/httpd -X -DHAVE_PROXY -DHAVE_ACCESS -DHAVE_ACT
Program received signal SIGSEGV, Segmentation fault.
0x4017af6f in chunk_free (ar_ptr=0x4022ea00, p=0x9bafbe0c) at malloc.c:3225
3225 malloc.c: No such file or directory.
in malloc.c
(gdb) backtrace
#0 0x4017af6f in chunk_free (ar_ptr=0x4022ea00, p=0x9bafbe0c) at malloc.c:3225
#1 0x4017acd4 in __libc_free (mem=0x8213180) at malloc.c:3154
#2 0x403d3c36 in _efree (ptr=0x821318c) at zend_alloc.c:246
#3 0x403ee000 in _zval_dtor (zvalue=0x82131a4) at zend_variables.c:44
#4 0x403e5021 in _zval_ptr_dtor (zval_ptr=0x8216040) at zend_execute_API.c:274
#5 0x403f53c5 in zend_hash_destroy (ht=0x8215f4c) at zend_hash.c:541
#6 0x403ee038 in _zval_dtor (zvalue=0x8215f2c) at zend_variables.c:51
#7 0x403e5021 in _zval_ptr_dtor (zval_ptr=0x82161c0) at zend_execute_API.c:274
#8 0x403f53c5 in zend_hash_destroy (ht=0x4050cc88) at zend_hash.c:541
#9 0x403e4bf6 in shutdown_executor () at zend_execute_API.c:173
#10 0x403ef4f7 in zend_deactivate () at zend.c:600
#11 0x404001eb in php_request_shutdown (dummy=0x0) at main.c:736
#12 0x403fc666 in apache_php_module_main (r=0x80f9d90, display_source_mode=0) at sapi_apache.c:96
#13 0x403fd41c in send_php (r=0x80f9d90, display_source_mode=0, filename=0x80fb9f8
"/var/www/Intranet/horde/turba/data.php") at mod_php4.c:575
#14 0x403fd489 in send_parsed_php (r=0x80f9d90) at mod_php4.c:590
#15 0x08054e8d in ap_invoke_handler () at eval.c:41
#16 0x0806707c in ap_some_auth_required () at eval.c:41
#17 0x080670f3 in ap_process_request () at eval.c:41
#18 0x0805f6b7 in ap_child_terminate () at eval.c:41
#19 0x0805f85a in ap_child_terminate () at eval.c:41
#20 0x0805f99d in ap_child_terminate () at eval.c:41
#21 0x0805ffbe in ap_child_terminate () at eval.c:41
#22 0x08060883 in main () at eval.c:41
#23 0x40116627 in __libc_start_main (main=0x8060400 <main>, argc=5, ubp_av=0xbffff904,
init=0x804fa3c <_init>, fini=0x808a51c <_fini>,
rtld_fini=0x4000dcd4 <_dl_fini>, stack_end=0xbffff8fc) at
../sysdeps/generic/libc-start.c:129
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14021&edit=1