PHP 4.0 Bug #3108: SIGSEGV in zend_hash_index_find() on mysql_connect()
| From: | johan at ekenberg dot nu | Date: | Wed, 05 Jan 2000 16:37:43 +0000 |
| Subject: | PHP 4.0 Bug #3108: SIGSEGV in zend_hash_index_find() on mysql_connect() | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-14285@lists.php.net to get a copy of this message | ||
From: johan@ekenberg.nu
Operating system: Linux 2.2.13ac2 - SMP
PHP version: 4.0 Latest CVS (05/01/2000)
PHP Bug Type: Reproduceable crash
Bug description: SIGSEGV in zend_hash_index_find() on mysql_connect()
This code causes SIGSEGV every time, see backtrace below.
<?php
$site = 'localhost';
$username = 'login';
$password = 'xxxxxxxx';
mysql_connect($site, $username, $password) || die ("noop");
?>
This problem did not exist in PHP4-b2.
Backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x80ee339 in zend_hash_index_find (ht=0x832e8cc, h=1, pData=0xbffff810) at zend_hash.c:989
989 if ((p->h == h) && (p->nKeyLength == 0)) {
(gdb) bt
#0 0x80ee339 in zend_hash_index_find (ht=0x832e8cc, h=1, pData=0xbffff810) at zend_hash.c:989
#1 0x80ef19d in zend_list_do_delete (list=0x832e8cc, id=1) at zend_list.c:51
#2 0x80eec41 in zend_list_delete (id=1) at zend_list.c:113
#3 0x80e724b in _zval_dtor (zvalue=0x8deb850, __zend_filename=0x829a555
"zend_execute_API.c", __zend_lineno=147)
at zend_variables.c:80
#4 0x80de2cc in shutdown_executor () at zend_execute_API.c:147
#5 0x80e810f in zend_deactivate () at zend.c:454
#6 0x80cedd2 in php_request_shutdown (dummy=0x0) at main.c:782
#7 0x8168e1e in run_cleanups (c=0x86221fc) at alloc.c:1940
#8 0x816722c in ap_clear_pool (a=0x858b4bc) at alloc.c:683
#9 0x81672b1 in ap_destroy_pool (a=0x858b4bc) at alloc.c:713
#10 0x817941b in child_main (child_num_arg=0) at http_main.c:4133
#11 0x8179588 in make_child (s=0x8333eb4, slot=0, now=947089121) at http_main.c:4238
#12 0x8179713 in startup_children (number_to_start=200) at http_main.c:4320
#13 0x8179d94 in standalone_main (argc=4, argv=0xbffff984) at http_main.c:4608
#14 0x817a703 in main (argc=4, argv=0xbffff984) at http_main.c:4944
PHP-config:
CFLAGS=' -ggdb3 -I../openssl-0.9.4/include' \
./configure \
--with-apache=../apache_1.3.9 \
--with-mysql=/usr/local \
--with-gd \
--enable-memory-limit=yes \
--enable-track-vars
I run SMP which gives PHP other strange Segfaults, see BUG-ID: 2866