PHP 4.0 Bug #3039: static initializer dumps core (in Zend)
| From: | danny dot heijl at cevi dot be | Date: | Fri, 24 Dec 1999 14:11:53 +0000 |
| Subject: | PHP 4.0 Bug #3039: static initializer dumps core (in Zend) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-13992@lists.php.net to get a copy of this message | ||
From: danny.heijl@cevi.be
Operating system: RH Linux 6.0
PHP version: 4.0 Latest CVS (24/12/1999)
PHP Bug Type: Reproduceable crash
Bug description: static initializer dumps core (in Zend)
The following script dumps core :
<?php
function blah() {
static $hey=0;
};
?>
Program received signal SIGSEGV, Segmentation fault.
zend_hash_destroy (ht=0x823b158) at ../../php4/Zend/zend_hash.c:736
736 p = p->pListNext;
(gdb) bt
#0 zend_hash_destroy (ht=0x823b158) at ../../php4/Zend/zend_hash.c:736
#1 0x8094aeb in destroy_op_array (op_array=0x823b298) at ../../php4/Zend/zend_opcode.c:157
#2 0x8094a28 in destroy_zend_function (function=0x823b298) at ../../php4/Zend/zend_opcode.c:112
#3 0x809bf5f in zend_hash_del_key_or_index (ht=0x821b380, arKey=0x823b288 "blah",
nKeyLength=5,
h=6891392, flag=0) at ../../php4/Zend/zend_hash.c:707
#4 0x809c226 in zend_hash_apply (ht=0x821b380, destruct=0x808f070 <is_not_internal_function>)
at ../../php4/Zend/zend_hash.c:800
#5 0x808f2e3 in shutdown_compiler () at ../../php4/Zend/zend_compile.c:119
#6 0x8098ea1 in zend_deactivate () at ../../php4/Zend/zend.c:452
#7 0x80889d9 in php_request_shutdown (dummy=0x0) at ../php4/main.c:780
#8 0x806e5ae in main (argc=2, argv=0xbffffae4) at ../../../php4/sapi/cgi/cgi_main.c:488
#9 0x400d3cb3 in __libc_start_main (main=0x806e08c <main>, argc=2, argv=0xbffffae4,
init=0x806cd48 <_init>, fini=0x8198d8c <_fini>, rtld_fini=0x4000a350
<_dl_fini>, stack_end=0xbffffadc)
at ../sysdeps/generic/libc-start.c:78
(gdb)
Danny
---