PHP  
 PHP_5_6
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Valgrind Report for Zend/tests/bug64896.phpt ('Bug #64896 (Segfault with gc_collect_cycles using unserialize on certain objects)')

Script

1: <?php
2: $bar 
NULL;
3: class 
bad
4:
{
5:     private 
$_private = array();
6:
7:     public function 
__construct()
8:     {
9:         
$this->_private[] = 'php';
10:     }
11:
12:     public function 
__destruct()
13:     {
14:         global 
$bar;
15:         
$bar $this;
16:     }
17: }
18:
19:
$foo = new stdclass;
20:
$foo->foo $foo;
21:
$foo->bad = new bad;
22:
23:
gc_disable();
24:
25:
unserialize(serialize($foo));
26:
gc_collect_cycles();
27:
var_dump($bar); 
28:
/*  will output:
29: object(bad)#4 (1) {
30:   ["_private":"bad":private]=>
31:   &UNKNOWN:0
32: }
33: */
34:
?>
35:

Report

==15010== Invalid read of size 1
==15010==    at 0xCCD99D: php_var_dump (var.c:99)
==15010==    by 0xCCD90D: php_object_property_dump (var.c:82)
==15010==    by 0xF108A1: zend_hash_apply_with_arguments (zend_hash.c:701)
==15010==    by 0xCCE28A: php_var_dump (var.c:146)
==15010==    by 0xCCE59C: zif_var_dump (var.c:183)
==15010==    by 0xF62F02: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==15010==    by 0xF6EA98: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==15010==    by 0xF60988: execute_ex (zend_vm_execute.h:363)
==15010==    by 0xF6152B: zend_execute (zend_vm_execute.h:388)
==15010==    by 0xEF5076: zend_execute_scripts (zend.c:1341)
==15010==    by 0xE1165D: php_execute_script (main.c:2613)
==15010==    by 0x10AFAAA: do_cli (php_cli.c:998)
==15010==  Address 0x1540dcf4 is 20 bytes inside a block of size 32 free'd
==15010==    at 0x4C28B94: free (vg_replace_malloc.c:529)
==15010==    by 0xE9E964: _efree (zend_alloc.c:2437)
==15010==    by 0xF37E7B: gc_collect_cycles (zend_gc.c:846)
==15010==    by 0xF15D3A: zif_gc_collect_cycles (zend_builtin_functions.c:361)
==15010==    by 0xF62F02: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==15010==    by 0xF6EA98: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==15010==    by 0xF60988: execute_ex (zend_vm_execute.h:363)
==15010==    by 0xF6152B: zend_execute (zend_vm_execute.h:388)
==15010==    by 0xEF5076: zend_execute_scripts (zend.c:1341)
==15010==    by 0xE1165D: php_execute_script (main.c:2613)
==15010==    by 0x10AFAAA: do_cli (php_cli.c:998)
==15010==    by 0x10B12A3: main (php_cli.c:1382)
==15010==  Block was alloc'd at
==15010==    at 0x4C291BA: malloc (vg_replace_malloc.c:298)
==15010==    by 0xE99D9B: __zend_malloc (zend_alloc.h:97)
==15010==    by 0xE9E8CC: _emalloc (zend_alloc.c:2427)
==15010==    by 0xCFD02D: process_nested_data (var_unserializer.re:367)
==15010==    by 0xCFD972: object_common2 (var_unserializer.re:481)
==15010==    by 0xD00A48: php_var_unserialize (var_unserializer.re:900)
==15010==    by 0xCFD08B: process_nested_data (var_unserializer.re:369)
==15010==    by 0xCFD972: object_common2 (var_unserializer.re:481)
==15010==    by 0xD00A48: php_var_unserialize (var_unserializer.re:900)
==15010==    by 0xCDE595: zif_unserialize (var.c:964)
==15010==    by 0xF62F02: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==15010==    by 0xF6EA98: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==15010== 
==15010== Invalid read of size 1
==15010==    at 0xCCDA90: zval_isref_p (zend.h:415)
==15010==    by 0xCCDA90: php_var_dump (var.c:104)
==15010==    by 0xCCD90D: php_object_property_dump (var.c:82)
==15010==    by 0xF108A1: zend_hash_apply_with_arguments (zend_hash.c:701)
==15010==    by 0xCCE28A: php_var_dump (var.c:146)
==15010==    by 0xCCE59C: zif_var_dump (var.c:183)
==15010==    by 0xF62F02: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==15010==    by 0xF6EA98: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==15010==    by 0xF60988: execute_ex (zend_vm_execute.h:363)
==15010==    by 0xF6152B: zend_execute (zend_vm_execute.h:388)
==15010==    by 0xEF5076: zend_execute_scripts (zend.c:1341)
==15010==    by 0xE1165D: php_execute_script (main.c:2613)
==15010==    by 0x10AFAAA: do_cli (php_cli.c:998)
==15010==  Address 0x1540dcf5 is 21 bytes inside a block of size 32 free'd
==15010==    at 0x4C28B94: free (vg_replace_malloc.c:529)
==15010==    by 0xE9E964: _efree (zend_alloc.c:2437)
==15010==    by 0xF37E7B: gc_collect_cycles (zend_gc.c:846)
==15010==    by 0xF15D3A: zif_gc_collect_cycles (zend_builtin_functions.c:361)
==15010==    by 0xF62F02: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==15010==    by 0xF6EA98: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==15010==    by 0xF60988: execute_ex (zend_vm_execute.h:363)
==15010==    by 0xF6152B: zend_execute (zend_vm_execute.h:388)
==15010==    by 0xEF5076: zend_execute_scripts (zend.c:1341)
==15010==    by 0xE1165D: php_execute_script (main.c:2613)
==15010==    by 0x10AFAAA: do_cli (php_cli.c:998)
==15010==    by 0x10B12A3: main (php_cli.c:1382)
==15010==  Block was alloc'd at
==15010==    at 0x4C291BA: malloc (vg_replace_malloc.c:298)
==15010==    by 0xE99D9B: __zend_malloc (zend_alloc.h:97)
==15010==    by 0xE9E8CC: _emalloc (zend_alloc.c:2427)
==15010==    by 0xCFD02D: process_nested_data (var_unserializer.re:367)
==15010==    by 0xCFD972: object_common2 (var_unserializer.re:481)
==15010==    by 0xD00A48: php_var_unserialize (var_unserializer.re:900)
==15010==    by 0xCFD08B: process_nested_data (var_unserializer.re:369)
==15010==    by 0xCFD972: object_common2 (var_unserializer.re:481)
==15010==    by 0xD00A48: php_var_unserialize (var_unserializer.re:900)
==15010==    by 0xCDE595: zif_unserialize (var.c:964)
==15010==    by 0xF62F02: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==15010==    by 0xF6EA98: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==15010== 
==15010== Invalid read of size 4
==15010==    at 0xECFD3F: zval_delref_p (zend.h:411)
==15010==    by 0xECFD3F: i_zval_ptr_dtor (zend_execute.h:76)
==15010==    by 0xECFD3F: _zval_ptr_dtor (zend_execute_API.c:424)
==15010==    by 0xF0FEB5: zend_hash_destroy (zend_hash.c:548)
==15010==    by 0xF453C0: zend_object_std_dtor (zend_objects.c:44)
==15010==    by 0xF45B24: zend_objects_free_object_storage (zend_objects.c:137)
==15010==    by 0xF550DA: zend_objects_store_del_ref_by_handle_ex (zend_objects_API.c:226)
==15010==    by 0xF54C74: zend_objects_store_del_ref (zend_objects_API.c:178)
==15010==    by 0xEEFA93: _zval_dtor_func (zend_variables.c:57)
==15010==    by 0xECFDE1: _zval_dtor (zend_variables.h:35)
==15010==    by 0xECFDE1: i_zval_ptr_dtor (zend_execute.h:79)
==15010==    by 0xECFDE1: _zval_ptr_dtor (zend_execute_API.c:424)
==15010==    by 0xF0D714: i_zend_hash_bucket_delete (zend_hash.c:182)
==15010==    by 0xF0D714: zend_hash_bucket_delete (zend_hash.c:192)
==15010==    by 0xF10AD4: zend_hash_reverse_apply (zend_hash.c:733)
==15010==    by 0xECEED8: shutdown_destructors (zend_execute_API.c:214)
==15010==    by 0xEF3356: zend_call_destructors (zend.c:944)
==15010==  Address 0x1540dcf0 is 16 bytes inside a block of size 32 free'd
==15010==    at 0x4C28B94: free (vg_replace_malloc.c:529)
==15010==    by 0xE9E964: _efree (zend_alloc.c:2437)
==15010==    by 0xF37E7B: gc_collect_cycles (zend_gc.c:846)
==15010==    by 0xF15D3A: zif_gc_collect_cycles (zend_builtin_functions.c:361)
==15010==    by 0xF62F02: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==15010==    by 0xF6EA98: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==15010==    by 0xF60988: execute_ex (zend_vm_execute.h:363)
==15010==    by 0xF6152B: zend_execute (zend_vm_execute.h:388)
==15010==    by 0xEF5076: zend_execute_scripts (zend.c:1341)
==15010==    by 0xE1165D: php_execute_script (main.c:2613)
==15010==    by 0x10AFAAA: do_cli (php_cli.c:998)
==15010==    by 0x10B12A3: main (php_cli.c:1382)
==15010==  Block was alloc'd at
==15010==    at 0x4C291BA: malloc (vg_replace_malloc.c:298)
==15010==    by 0xE99D9B: __zend_malloc (zend_alloc.h:97)
==15010==    by 0xE9E8CC: _emalloc (zend_alloc.c:2427)
==15010==    by 0xCFD02D: process_nested_data (var_unserializer.re:367)
==15010==    by 0xCFD972: object_common2 (var_unserializer.re:481)
==15010==    by 0xD00A48: php_var_unserialize (var_unserializer.re:900)
==15010==    by 0xCFD08B: process_nested_data (var_unserializer.re:369)
==15010==    by 0xCFD972: object_common2 (var_unserializer.re:481)
==15010==    by 0xD00A48: php_var_unserialize (var_unserializer.re:900)
==15010==    by 0xCDE595: zif_unserialize (var.c:964)
==15010==    by 0xF62F02: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==15010==    by 0xF6EA98: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==15010== 
==15010== Invalid write of size 4
==15010==    at 0xECFD49: zval_delref_p (zend.h:411)
==15010==    by 0xECFD49: i_zval_ptr_dtor (zend_execute.h:76)
==15010==    by 0xECFD49: _zval_ptr_dtor (zend_execute_API.c:424)
==15010==    by 0xF0FEB5: zend_hash_destroy (zend_hash.c:548)
==15010==    by 0xF453C0: zend_object_std_dtor (zend_objects.c:44)
==15010==    by 0xF45B24: zend_objects_free_object_storage (zend_objects.c:137)
==15010==    by 0xF550DA: zend_objects_store_del_ref_by_handle_ex (zend_objects_API.c:226)
==15010==    by 0xF54C74: zend_objects_store_del_ref (zend_objects_API.c:178)
==15010==    by 0xEEFA93: _zval_dtor_func (zend_variables.c:57)
==15010==    by 0xECFDE1: _zval_dtor (zend_variables.h:35)
==15010==    by 0xECFDE1: i_zval_ptr_dtor (zend_execute.h:79)
==15010==    by 0xECFDE1: _zval_ptr_dtor (zend_execute_API.c:424)
==15010==    by 0xF0D714: i_zend_hash_bucket_delete (zend_hash.c:182)
==15010==    by 0xF0D714: zend_hash_bucket_delete (zend_hash.c:192)
==15010==    by 0xF10AD4: zend_hash_reverse_apply (zend_hash.c:733)
==15010==    by 0xECEED8: shutdown_destructors (zend_execute_API.c:214)
==15010==    by 0xEF3356: zend_call_destructors (zend.c:944)
==15010==  Address 0x1540dcf0 is 16 bytes inside a block of size 32 free'd
==15010==    at 0x4C28B94: free (vg_replace_malloc.c:529)
==15010==    by 0xE9E964: _efree (zend_alloc.c:2437)
==15010==    by 0xF37E7B: gc_collect_cycles (zend_gc.c:846)
==15010==    by 0xF15D3A: zif_gc_collect_cycles (zend_builtin_functions.c:361)
==15010==    by 0xF62F02: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==15010==    by 0xF6EA98: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==15010==    by 0xF60988: execute_ex (zend_vm_execute.h:363)
==15010==    by 0xF6152B: zend_execute (zend_vm_execute.h:388)
==15010==    by 0xEF5076: zend_execute_scripts (zend.c:1341)
==15010==    by 0xE1165D: php_execute_script (main.c:2613)
==15010==    by 0x10AFAAA: do_cli (php_cli.c:998)
==15010==    by 0x10B12A3: main (php_cli.c:1382)
==15010==  Block was alloc'd at
==15010==    at 0x4C291BA: malloc (vg_replace_malloc.c:298)
==15010==    by 0xE99D9B: __zend_malloc (zend_alloc.h:97)
==15010==    by 0xE9E8CC: _emalloc (zend_alloc.c:2427)
==15010==    by 0xCFD02D: process_nested_data (var_unserializer.re:367)
==15010==    by 0xCFD972: object_common2 (var_unserializer.re:481)
==15010==    by 0xD00A48: php_var_unserialize (var_unserializer.re:900)
==15010==    by 0xCFD08B: process_nested_data (var_unserializer.re:369)
==15010==    by 0xCFD972: object_common2 (var_unserializer.re:481)
==15010==    by 0xD00A48: php_var_unserialize (var_unserializer.re:900)
==15010==    by 0xCDE595: zif_unserialize (var.c:964)
==15010==    by 0xF62F02: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==15010==    by 0xF6EA98: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==15010== 
==15010== Invalid read of size 4
==15010==    at 0xECFD50: zval_delref_p (zend.h:411)
==15010==    by 0xECFD50: i_zval_ptr_dtor (zend_execute.h:76)
==15010==    by 0xECFD50: _zval_ptr_dtor (zend_execute_API.c:424)
==15010==    by 0xF0FEB5: zend_hash_destroy (zend_hash.c:548)
==15010==    by 0xF453C0: zend_object_std_dtor (zend_objects.c:44)
==15010==    by 0xF45B24: zend_objects_free_object_storage (zend_objects.c:137)
==15010==    by 0xF550DA: zend_objects_store_del_ref_by_handle_ex (zend_objects_API.c:226)
==15010==    by 0xF54C74: zend_objects_store_del_ref (zend_objects_API.c:178)
==15010==    by 0xEEFA93: _zval_dtor_func (zend_variables.c:57)
==15010==    by 0xECFDE1: _zval_dtor (zend_variables.h:35)
==15010==    by 0xECFDE1: i_zval_ptr_dtor (zend_execute.h:79)
==15010==    by 0xECFDE1: _zval_ptr_dtor (zend_execute_API.c:424)
==15010==    by 0xF0D714: i_zend_hash_bucket_delete (zend_hash.c:182)
==15010==    by 0xF0D714: zend_hash_bucket_delete (zend_hash.c:192)
==15010==    by 0xF10AD4: zend_hash_reverse_apply (zend_hash.c:733)
==15010==    by 0xECEED8: shutdown_destructors (zend_execute_API.c:214)
==15010==    by 0xEF3356: zend_call_destructors (zend.c:944)
==15010==  Address 0x1540dcf0 is 16 bytes inside a block of size 32 free'd
==15010==    at 0x4C28B94: free (vg_replace_malloc.c:529)
==15010==    by 0xE9E964: _efree (zend_alloc.c:2437)
==15010==    by 0xF37E7B: gc_collect_cycles (zend_gc.c:846)
==15010==    by 0xF15D3A: zif_gc_collect_cycles (zend_builtin_functions.c:361)
==15010==    by 0xF62F02: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==15010==    by 0xF6EA98: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==15010==    by 0xF60988: execute_ex (zend_vm_execute.h:363)
==15010==    by 0xF6152B: zend_execute (zend_vm_execute.h:388)
==15010==    by 0xEF5076: zend_execute_scripts (zend.c:1341)
==15010==    by 0xE1165D: php_execute_script (main.c:2613)
==15010==    by 0x10AFAAA: do_cli (php_cli.c:998)
==15010==    by 0x10B12A3: main (php_cli.c:1382)
==15010==  Block was alloc'd at
==15010==    at 0x4C291BA: malloc (vg_replace_malloc.c:298)
==15010==    by 0xE99D9B: __zend_malloc (zend_alloc.h:97)
==15010==    by 0xE9E8CC: _emalloc (zend_alloc.c:2427)
==15010==    by 0xCFD02D: process_nested_data (var_unserializer.re:367)
==15010==    by 0xCFD972: object_common2 (var_unserializer.re:481)
==15010==    by 0xD00A48: php_var_unserialize (var_unserializer.re:900)
==15010==    by 0xCFD08B: process_nested_data (var_unserializer.re:369)
==15010==    by 0xCFD972: object_common2 (var_unserializer.re:481)
==15010==    by 0xD00A48: php_var_unserialize (var_unserializer.re:900)
==15010==    by 0xCDE595: zif_unserialize (var.c:964)
==15010==    by 0xF62F02: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==15010==    by 0xF6EA98: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==15010== 
==15010== Invalid read of size 4
==15010==    at 0xECFE35: zval_refcount_p (zend.h:399)
==15010==    by 0xECFE35: i_zval_ptr_dtor (zend_execute.h:82)
==15010==    by 0xECFE35: _zval_ptr_dtor (zend_execute_API.c:424)
==15010==    by 0xF0FEB5: zend_hash_destroy (zend_hash.c:548)
==15010==    by 0xF453C0: zend_object_std_dtor (zend_objects.c:44)
==15010==    by 0xF45B24: zend_objects_free_object_storage (zend_objects.c:137)
==15010==    by 0xF550DA: zend_objects_store_del_ref_by_handle_ex (zend_objects_API.c:226)
==15010==    by 0xF54C74: zend_objects_store_del_ref (zend_objects_API.c:178)
==15010==    by 0xEEFA93: _zval_dtor_func (zend_variables.c:57)
==15010==    by 0xECFDE1: _zval_dtor (zend_variables.h:35)
==15010==    by 0xECFDE1: i_zval_ptr_dtor (zend_execute.h:79)
==15010==    by 0xECFDE1: _zval_ptr_dtor (zend_execute_API.c:424)
==15010==    by 0xF0D714: i_zend_hash_bucket_delete (zend_hash.c:182)
==15010==    by 0xF0D714: zend_hash_bucket_delete (zend_hash.c:192)
==15010==    by 0xF10AD4: zend_hash_reverse_apply (zend_hash.c:733)
==15010==    by 0xECEED8: shutdown_destructors (zend_execute_API.c:214)
==15010==    by 0xEF3356: zend_call_destructors (zend.c:944)
==15010==  Address 0x1540dcf0 is 16 bytes inside a block of size 32 free'd
==15010==    at 0x4C28B94: free (vg_replace_malloc.c:529)
==15010==    by 0xE9E964: _efree (zend_alloc.c:2437)
==15010==    by 0xF37E7B: gc_collect_cycles (zend_gc.c:846)
==15010==    by 0xF15D3A: zif_gc_collect_cycles (zend_builtin_functions.c:361)
==15010==    by 0xF62F02: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==15010==    by 0xF6EA98: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==15010==    by 0xF60988: execute_ex (zend_vm_execute.h:363)
==15010==    by 0xF6152B: zend_execute (zend_vm_execute.h:388)
==15010==    by 0xEF5076: zend_execute_scripts (zend.c:1341)
==15010==    by 0xE1165D: php_execute_script (main.c:2613)
==15010==    by 0x10AFAAA: do_cli (php_cli.c:998)
==15010==    by 0x10B12A3: main (php_cli.c:1382)
==15010==  Block was alloc'd at
==15010==    at 0x4C291BA: malloc (vg_replace_malloc.c:298)
==15010==    by 0xE99D9B: __zend_malloc (zend_alloc.h:97)
==15010==    by 0xE9E8CC: _emalloc (zend_alloc.c:2427)
==15010==    by 0xCFD02D: process_nested_data (var_unserializer.re:367)
==15010==    by 0xCFD972: object_common2 (var_unserializer.re:481)
==15010==    by 0xD00A48: php_var_unserialize (var_unserializer.re:900)
==15010==    by 0xCFD08B: process_nested_data (var_unserializer.re:369)
==15010==    by 0xCFD972: object_common2 (var_unserializer.re:481)
==15010==    by 0xD00A48: php_var_unserialize (var_unserializer.re:900)
==15010==    by 0xCDE595: zif_unserialize (var.c:964)
==15010==    by 0xF62F02: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==15010==    by 0xF6EA98: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==15010== 
==15010== Invalid write of size 1
==15010==    at 0xECFE49: zval_unset_isref_p (zend.h:423)
==15010==    by 0xECFE49: i_zval_ptr_dtor (zend_execute.h:83)
==15010==    by 0xECFE49: _zval_ptr_dtor (zend_execute_API.c:424)
==15010==    by 0xF0FEB5: zend_hash_destroy (zend_hash.c:548)
==15010==    by 0xF453C0: zend_object_std_dtor (zend_objects.c:44)
==15010==    by 0xF45B24: zend_objects_free_object_storage (zend_objects.c:137)
==15010==    by 0xF550DA: zend_objects_store_del_ref_by_handle_ex (zend_objects_API.c:226)
==15010==    by 0xF54C74: zend_objects_store_del_ref (zend_objects_API.c:178)
==15010==    by 0xEEFA93: _zval_dtor_func (zend_variables.c:57)
==15010==    by 0xECFDE1: _zval_dtor (zend_variables.h:35)
==15010==    by 0xECFDE1: i_zval_ptr_dtor (zend_execute.h:79)
==15010==    by 0xECFDE1: _zval_ptr_dtor (zend_execute_API.c:424)
==15010==    by 0xF0D714: i_zend_hash_bucket_delete (zend_hash.c:182)
==15010==    by 0xF0D714: zend_hash_bucket_delete (zend_hash.c:192)
==15010==    by 0xF10AD4: zend_hash_reverse_apply (zend_hash.c:733)
==15010==    by 0xECEED8: shutdown_destructors (zend_execute_API.c:214)
==15010==    by 0xEF3356: zend_call_destructors (zend.c:944)
==15010==  Address 0x1540dcf5 is 21 bytes inside a block of size 32 free'd
==15010==    at 0x4C28B94: free (vg_replace_malloc.c:529)
==15010==    by 0xE9E964: _efree (zend_alloc.c:2437)
==15010==    by 0xF37E7B: gc_collect_cycles (zend_gc.c:846)
==15010==    by 0xF15D3A: zif_gc_collect_cycles (zend_builtin_functions.c:361)
==15010==    by 0xF62F02: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==15010==    by 0xF6EA98: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==15010==    by 0xF60988: execute_ex (zend_vm_execute.h:363)
==15010==    by 0xF6152B: zend_execute (zend_vm_execute.h:388)
==15010==    by 0xEF5076: zend_execute_scripts (zend.c:1341)
==15010==    by 0xE1165D: php_execute_script (main.c:2613)
==15010==    by 0x10AFAAA: do_cli (php_cli.c:998)
==15010==    by 0x10B12A3: main (php_cli.c:1382)
==15010==  Block was alloc'd at
==15010==    at 0x4C291BA: malloc (vg_replace_malloc.c:298)
==15010==    by 0xE99D9B: __zend_malloc (zend_alloc.h:97)
==15010==    by 0xE9E8CC: _emalloc (zend_alloc.c:2427)
==15010==    by 0xCFD02D: process_nested_data (var_unserializer.re:367)
==15010==    by 0xCFD972: object_common2 (var_unserializer.re:481)
==15010==    by 0xD00A48: php_var_unserialize (var_unserializer.re:900)
==15010==    by 0xCFD08B: process_nested_data (var_unserializer.re:369)
==15010==    by 0xCFD972: object_common2 (var_unserializer.re:481)
==15010==    by 0xD00A48: php_var_unserialize (var_unserializer.re:900)
==15010==    by 0xCDE595: zif_unserialize (var.c:964)
==15010==    by 0xF62F02: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==15010==    by 0xF6EA98: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==15010== 
==15010== Invalid read of size 1
==15010==    at 0xECFE6B: gc_zval_check_possible_root (zend_gc.h:182)
==15010==    by 0xECFE6B: i_zval_ptr_dtor (zend_execute.h:86)
==15010==    by 0xECFE6B: _zval_ptr_dtor (zend_execute_API.c:424)
==15010==    by 0xF0FEB5: zend_hash_destroy (zend_hash.c:548)
==15010==    by 0xF453C0: zend_object_std_dtor (zend_objects.c:44)
==15010==    by 0xF45B24: zend_objects_free_object_storage (zend_objects.c:137)
==15010==    by 0xF550DA: zend_objects_store_del_ref_by_handle_ex (zend_objects_API.c:226)
==15010==    by 0xF54C74: zend_objects_store_del_ref (zend_objects_API.c:178)
==15010==    by 0xEEFA93: _zval_dtor_func (zend_variables.c:57)
==15010==    by 0xECFDE1: _zval_dtor (zend_variables.h:35)
==15010==    by 0xECFDE1: i_zval_ptr_dtor (zend_execute.h:79)
==15010==    by 0xECFDE1: _zval_ptr_dtor (zend_execute_API.c:424)
==15010==    by 0xF0D714: i_zend_hash_bucket_delete (zend_hash.c:182)
==15010==    by 0xF0D714: zend_hash_bucket_delete (zend_hash.c:192)
==15010==    by 0xF10AD4: zend_hash_reverse_apply (zend_hash.c:733)
==15010==    by 0xECEED8: shutdown_destructors (zend_execute_API.c:214)
==15010==    by 0xEF3356: zend_call_destructors (zend.c:944)
==15010==  Address 0x1540dcf4 is 20 bytes inside a block of size 32 free'd
==15010==    at 0x4C28B94: free (vg_replace_malloc.c:529)
==15010==    by 0xE9E964: _efree (zend_alloc.c:2437)
==15010==    by 0xF37E7B: gc_collect_cycles (zend_gc.c:846)
==15010==    by 0xF15D3A: zif_gc_collect_cycles (zend_builtin_functions.c:361)
==15010==    by 0xF62F02: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==15010==    by 0xF6EA98: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==15010==    by 0xF60988: execute_ex (zend_vm_execute.h:363)
==15010==    by 0xF6152B: zend_execute (zend_vm_execute.h:388)
==15010==    by 0xEF5076: zend_execute_scripts (zend.c:1341)
==15010==    by 0xE1165D: php_execute_script (main.c:2613)
==15010==    by 0x10AFAAA: do_cli (php_cli.c:998)
==15010==    by 0x10B12A3: main (php_cli.c:1382)
==15010==  Block was alloc'd at
==15010==    at 0x4C291BA: malloc (vg_replace_malloc.c:298)
==15010==    by 0xE99D9B: __zend_malloc (zend_alloc.h:97)
==15010==    by 0xE9E8CC: _emalloc (zend_alloc.c:2427)
==15010==    by 0xCFD02D: process_nested_data (var_unserializer.re:367)
==15010==    by 0xCFD972: object_common2 (var_unserializer.re:481)
==15010==    by 0xD00A48: php_var_unserialize (var_unserializer.re:900)
==15010==    by 0xCFD08B: process_nested_data (var_unserializer.re:369)
==15010==    by 0xCFD972: object_common2 (var_unserializer.re:481)
==15010==    by 0xD00A48: php_var_unserialize (var_unserializer.re:900)
==15010==    by 0xCDE595: zif_unserialize (var.c:964)
==15010==    by 0xF62F02: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==15010==    by 0xF6EA98: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==15010== 
==15010== Invalid read of size 1
==15010==    at 0xECFE89: gc_zval_check_possible_root (zend_gc.h:182)
==15010==    by 0xECFE89: i_zval_ptr_dtor (zend_execute.h:86)
==15010==    by 0xECFE89: _zval_ptr_dtor (zend_execute_API.c:424)
==15010==    by 0xF0FEB5: zend_hash_destroy (zend_hash.c:548)
==15010==    by 0xF453C0: zend_object_std_dtor (zend_objects.c:44)
==15010==    by 0xF45B24: zend_objects_free_object_storage (zend_objects.c:137)
==15010==    by 0xF550DA: zend_objects_store_del_ref_by_handle_ex (zend_objects_API.c:226)
==15010==    by 0xF54C74: zend_objects_store_del_ref (zend_objects_API.c:178)
==15010==    by 0xEEFA93: _zval_dtor_func (zend_variables.c:57)
==15010==    by 0xECFDE1: _zval_dtor (zend_variables.h:35)
==15010==    by 0xECFDE1: i_zval_ptr_dtor (zend_execute.h:79)
==15010==    by 0xECFDE1: _zval_ptr_dtor (zend_execute_API.c:424)
==15010==    by 0xF0D714: i_zend_hash_bucket_delete (zend_hash.c:182)
==15010==    by 0xF0D714: zend_hash_bucket_delete (zend_hash.c:192)
==15010==    by 0xF10AD4: zend_hash_reverse_apply (zend_hash.c:733)
==15010==    by 0xECEED8: shutdown_destructors (zend_execute_API.c:214)
==15010==    by 0xEF3356: zend_call_destructors (zend.c:944)
==15010==  Address 0x1540dcf4 is 20 bytes inside a block of size 32 free'd
==15010==    at 0x4C28B94: free (vg_replace_malloc.c:529)
==15010==    by 0xE9E964: _efree (zend_alloc.c:2437)
==15010==    by 0xF37E7B: gc_collect_cycles (zend_gc.c:846)
==15010==    by 0xF15D3A: zif_gc_collect_cycles (zend_builtin_functions.c:361)
==15010==    by 0xF62F02: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==15010==    by 0xF6EA98: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==15010==    by 0xF60988: execute_ex (zend_vm_execute.h:363)
==15010==    by 0xF6152B: zend_execute (zend_vm_execute.h:388)
==15010==    by 0xEF5076: zend_execute_scripts (zend.c:1341)
==15010==    by 0xE1165D: php_execute_script (main.c:2613)
==15010==    by 0x10AFAAA: do_cli (php_cli.c:998)
==15010==    by 0x10B12A3: main (php_cli.c:1382)
==15010==  Block was alloc'd at
==15010==    at 0x4C291BA: malloc (vg_replace_malloc.c:298)
==15010==    by 0xE99D9B: __zend_malloc (zend_alloc.h:97)
==15010==    by 0xE9E8CC: _emalloc (zend_alloc.c:2427)
==15010==    by 0xCFD02D: process_nested_data (var_unserializer.re:367)
==15010==    by 0xCFD972: object_common2 (var_unserializer.re:481)
==15010==    by 0xD00A48: php_var_unserialize (var_unserializer.re:900)
==15010==    by 0xCFD08B: process_nested_data (var_unserializer.re:369)
==15010==    by 0xCFD972: object_common2 (var_unserializer.re:481)
==15010==    by 0xD00A48: php_var_unserialize (var_unserializer.re:900)
==15010==    by 0xCDE595: zif_unserialize (var.c:964)
==15010==    by 0xF62F02: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==15010==    by 0xF6EA98: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==15010== 

 

Generated at Thu, 18 May 2017 14:05:21 +0000 (7 days ago)

Copyright © 2005-2017 The PHP Group
All rights reserved.