RE: Segfault in HEAD
| From: | kase at gmx dot net | Date: | Mon, 01 Mar 2004 15:53:49 +0000 |
| Subject: | RE: Segfault in HEAD | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-8280@lists.php.net to get a copy of this message | ||
>This should be fixed now. Thanks for the short reproducing script.
>
>Andi
I don't think, that it is fixed in latest cvs.
Simply changing the script to this, the problem/bug still exists:
<?php
class test {
public function __destruct() {
$this->foo = false;
}
public function start() {
throw new Exception();
}
}
function bar() {
$test = new test();
$test->start();
}
bar();
?>
new backtrace:
(gdb) bt
#0 0x00000000 in ?? ()
#1 0x0819cbd5 in execute (op_array=0x404e962c)
at /home/kase/php5-200403011430/Zend/zend_execute.c:1339
#2 0x0817b7cb in zend_call_function (fci=0xbfffd7c8,
fci_cache=0xbfffd7a8)
at /home/kase/php5-200403011430/Zend/zend_execute_API.c:759
#3 0x0818e949 in zend_call_method (object_pp=0xbfffd838,
obj_ce=0x404e80ec,
fn_proxy=0x0, function_name=0x8210a37 "__destruct",
function_name_len=10,
retval_ptr_ptr=0x0, param_count=0, arg1=0x0, arg2=0x0)
at /home/kase/php5-200403011430/Zend/zend_interfaces.c:79
#4 0x081906d0 in zend_objects_destroy_object (object=0x404e85a4,
handle=1)
at /home/kase/php5-200403011430/Zend/zend_objects.c:71
#5 0x081926fe in zend_objects_store_del_ref (zobject=0x404e8584)
at /home/kase/php5-200403011430/Zend/zend_objects_API.c:134
#6 0x08181e4e in _zval_dtor (zvalue=0x404e8584)
at /home/kase/php5-200403011430/Zend/zend_variables.c:61
#7 0x0817a9bd in _zval_ptr_dtor (zval_ptr=0x404e8660)
at /home/kase/php5-200403011430/Zend/zend_execute_API.c:358