On Mon, 3 Dec 2007, Andi Gutmans wrote:
> The revised patch has the following advantages:
> - It fixes several crash bugs
So far, my tests only see new crash bugs... :/
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2ba1140c6930 (LWP 21108)]
0x00000000008be4fe in zend_std_read_property (object=0x1d7f670,
member=0x1e3a1e8, type=0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_object_handlers.c:338
338 property_info = zend_get_property_info(zobj->ce, member,
(zobj->ce->__get != NULL) TSRMLS_CC);
(gdb) bt
#0 0x00000000008be4fe in zend_std_read_property (object=0x1d7f670,
member=0x1e3a1e8, type=0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_object_handlers.c:338
#1 0x0000000000907fd2 in
zend_fetch_property_address_read_helper_SPEC_UNUSED_CONST (type=0,
execute_data=0x7fff9c73ffa0)
at /home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:16282
#2 0x00000000009081ca in ZEND_FETCH_OBJ_R_SPEC_UNUSED_CONST_HANDLER
(execute_data=0x7fff9c73ffa0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:16304
#3 0x00000000008c4694 in execute (op_array=0x1e17c70) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:87
#4 0x00000000008c4dec in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fff9c740df0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:221
#5 0x00000000008c5b0d in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0x7fff9c740df0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:309
#6 0x00000000008c4694 in execute (op_array=0x1dce4e0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:87
#7 0x00000000008c4dec in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fff9c741450) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:221
#8 0x00000000008c5b0d in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0x7fff9c741450) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:309
#9 0x00000000008c4694 in execute (op_array=0x1e17dc0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:87
#10 0x00000000008c4dec in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fff9c741c80) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:221
#11 0x00000000008c5b0d in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0x7fff9c741c80) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:309
#12 0x00000000008c4694 in execute (op_array=0x1de1a70) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:87
#13 0x00000000008c4dec in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fff9c743bb0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:221
#14 0x00000000008c5b0d in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0x7fff9c743bb0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:309
#15 0x00000000008c4694 in execute (op_array=0x1d69390) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:87
#16 0x00000000008c4dec in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fff9c745550) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:221
#17 0x00000000008c5b0d in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0x7fff9c745550) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:309
#18 0x00000000008c4694 in execute (op_array=0x1a20250) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:87
#19 0x00000000008c4dec in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fff9c7459b0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:221
#20 0x00000000008c5b0d in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0x7fff9c7459b0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:309
#21 0x00000000008c4694 in execute (op_array=0x1a18ed0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:87
#22 0x00000000008c4dec in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fff9c746340) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:221
#23 0x00000000008c5b0d in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0x7fff9c746340) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:309
#24 0x00000000008c4694 in execute (op_array=0x1a38be0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:87
#25 0x00000000008c4dec in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fff9c7472e0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:221
#26 0x00000000008c5b0d in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0x7fff9c7472e0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:309
#27 0x00000000008c4694 in execute (op_array=0x11b5430) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:87
#28 0x00000000008c4dec in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fff9c7475d0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:221
#29 0x00000000008c5b0d in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0x7fff9c7475d0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:309
#30 0x00000000008c4694 in execute (op_array=0x1a38a90) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:87
#31 0x00000000008c4dec in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fff9c747800) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:221
#32 0x00000000008c5b0d in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0x7fff9c747800) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:309
#33 0x00000000008c4694 in execute (op_array=0x1a4f700) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:87
#34 0x00000000008c4dec in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fff9c748650) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:221
#35 0x00000000008c5b0d in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0x7fff9c748650) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:309
#36 0x00000000008c4694 in execute (op_array=0x1a4f5b0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:87
#37 0x00000000008c4dec in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fff9c7494a0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:221
#38 0x00000000008c5b0d in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0x7fff9c7494a0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:309
#39 0x00000000008c4694 in execute (op_array=0x1804ab0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:87
#40 0x00000000008c4dec in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fff9c74a2f0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:221
#41 0x00000000008c5b0d in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0x7fff9c74a2f0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:309
#42 0x00000000008c4694 in execute (op_array=0x12a5b20) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:87
#43 0x00000000008c4dec in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fff9c74c7c0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:221
#44 0x00000000008c5b0d in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0x7fff9c74c7c0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:309
#45 0x00000000008c4694 in execute (op_array=0x10e5c40) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:87
#46 0x00000000008c4dec in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fff9c74dcd0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:221
#47 0x00000000008c5b0d in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0x7fff9c74dcd0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:309
#48 0x00000000008c4694 in execute (op_array=0x10f1520) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:87
#49 0x00000000008c4dec in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fff9c74e090) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:221
#50 0x00000000008c5b0d in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0x7fff9c74e090) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:309
#51 0x00000000008c4694 in execute (op_array=0x10a5f10) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:87
#52 0x00000000008c4dec in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fff9c74e5b0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:221
#53 0x00000000008c5b0d in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0x7fff9c74e5b0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:309
#54 0x00000000008c4694 in execute (op_array=0x10a5480) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:87
#55 0x00000000008979b6 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /home/derick/dev/php/php-5.3dev-gc/Zend/zend.c:1159
#56 0x0000000000837d68 in php_execute_script (primary_file=0x7fff9c750b90) at
/home/derick/dev/php/php-5.3dev-gc/main/main.c:2011
#57 0x0000000000937234 in main (argc=3, argv=0x7fff9c750dc8) at
/home/derick/dev/php/php-5.3dev-gc/sapi/cli/php_cli.c:1140
bt-full:
#0 0x00000000008be4fe in zend_std_read_property (object=0x1d7f670,
member=0x1e3a1e8, type=0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_object_handlers.c:338
zobj = (zend_object *) 0x547
tmp_member = (zval *) 0x0
retval = (zval **) 0x273caf0
rv = (zval *) 0x0
property_info = (zend_property_info *) 0x7fff9c73f5f0
silent = 0
#1 0x0000000000907fd2 in
zend_fetch_property_address_read_helper_SPEC_UNUSED_CONST (type=0,
execute_data=0x7fff9c73ffa0)
at /home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:16282
offset = (zval *) 0x1e3a1e8
opline = (zend_op *) 0x1e3a198
container = (zval *) 0x1d7f670
retval = (zval **) 0x7fff9c73fb68
#2 0x00000000009081ca in ZEND_FETCH_OBJ_R_SPEC_UNUSED_CONST_HANDLER
(execute_data=0x7fff9c73ffa0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:16304
No locals.
#3 0x00000000008c4694 in execute (op_array=0x1e17c70) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:87
execute_data = {opline = 0x1e3a198, function_state = {function =
0x1e17c70}, fbc = 0x0, called_scope = 0x0, op_array = 0x1e17c70, object = 0x0,
Ts = 0x7fff9c73f660, CVs = 0x7fff9c73f640, original_in_execution = 1 '\001',
use_heap = 0 '\0', symbol_table = 0x1e9bb90, prev_execute_data =
0x7fff9c740df0,
old_error_reporting = 0x0}
#4 0x00000000008c4dec in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fff9c740df0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:221
original_return_value = (zval **) 0x7fff9c741060
opline = (zend_op *) 0x1e1b428
current_scope = (zend_class_entry *) 0x1dcd560
current_called_scope = (zend_class_entry *) 0x1dcd560
current_this = (zval *) 0x1d7f670
should_change_scope = 1 '\001'
ex_object = (zval *) 0x0
#5 0x00000000008c5b0d in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0x7fff9c740df0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:309
No locals.
#6 0x00000000008c4694 in execute (op_array=0x1dce4e0) at
/home/derick/dev/php/php-5.3dev-gc/Zend/zend_vm_execute.h:87
execute_data = {opline = 0x1e1b428, function_state = {function =
0x1e17c70}, fbc = 0x0, called_scope = 0x0, op_array = 0x1dce4e0, object =
0x1d7f670,
Ts = 0x7fff9c740188, CVs = 0x7fff9c740140, original_in_execution = 1 '\001',
use_heap = 0 '\0', symbol_table = 0x1e5fea0, prev_execute_data =
0x7fff9c741450,
old_error_reporting = 0x0}
To reproduce, run the Template tests of the eZ Components:
# mkdir ezc
# cd ezc
# svn co http://svn.ez.no/svn/ezcomponents/trunk
# svn co http://svn.ez.no/svn/ezcomponents/scripts
# ./scripts/setup-env.sh
# php UnitTest/src/run-tests.php Template
regards,
Derick
--
Derick Rethans
http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php