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

Valgrind Report for ext/phar/tests/cache_list/copyonwrite10.phar.phpt ('Phar: copy-on-write test 10 [cache_list]')

Script

1: <?php __HALT_COMPILER(); ?>
2:
6test.txt-\E<?php __HALT_COMPILER();a&{jbuz')HGBMB

Report

==11127== Invalid read of size 8
==11127==    at 0xF0238D: _php_stream_free (streams.c:366)
==11127==    by 0xA4775A: phar_destroy_phar_data (phar.c:252)
==11127==    by 0xA4790F: phar_archive_delref (phar.c:277)
==11127==    by 0xA484CE: phar_entry_delref (phar.c:451)
==11127==    by 0xA34ED1: phar_stream_close (stream.c:355)
==11127==    by 0xF02795: _php_stream_free (streams.c:460)
==11127==    by 0xF07195: stream_resource_regular_dtor (streams.c:1586)
==11127==    by 0x10216EC: zend_resource_dtor (zend_list.c:74)
==11127==    by 0x1022113: zend_close_rsrc (zend_list.c:228)
==11127==    by 0x10177FE: zend_hash_reverse_apply (zend_hash.c:1836)
==11127==    by 0x102215F: zend_close_rsrc_list (zend_list.c:236)
==11127==    by 0xFAEC44: shutdown_executor (zend_execute_API.c:265)
==11127==  Address 0x15fcc590 is 144 bytes inside a block of size 224 free'd
==11127==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==11127==    by 0xF73AC3: _efree (zend_alloc.c:2500)
==11127==    by 0xF02BCD: _php_stream_free (streams.c:504)
==11127==    by 0xF07195: stream_resource_regular_dtor (streams.c:1586)
==11127==    by 0x10216EC: zend_resource_dtor (zend_list.c:74)
==11127==    by 0x1022113: zend_close_rsrc (zend_list.c:228)
==11127==    by 0x10177FE: zend_hash_reverse_apply (zend_hash.c:1836)
==11127==    by 0x102215F: zend_close_rsrc_list (zend_list.c:236)
==11127==    by 0xFAEC44: shutdown_executor (zend_execute_API.c:265)
==11127==    by 0xFE155A: zend_deactivate (zend.c:1152)
==11127==    by 0xECED79: php_request_shutdown (main.c:1932)
==11127==    by 0x122E45A: do_cli (php_cli.c:1164)
==11127==  Block was alloc'd at
==11127==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==11127==    by 0xF777FD: __zend_malloc (zend_alloc.c:2896)
==11127==    by 0xF6F869: _emalloc_224 (zend_alloc.c:2413)
==11127==    by 0xF02054: _php_stream_alloc (streams.c:272)
==11127==    by 0xF10A01: _php_stream_fopen_from_fd_int (plain_wrapper.c:184)
==11127==    by 0xF10D3F: _php_stream_fopen_from_fd (plain_wrapper.c:246)
==11127==    by 0xF12F54: _php_stream_fopen (plain_wrapper.c:1054)
==11127==    by 0xF1355A: php_plain_files_stream_opener (plain_wrapper.c:1110)
==11127==    by 0xF0955B: _php_stream_open_wrapper_ex (streams.c:2024)
==11127==    by 0xA58F59: phar_flush (phar.c:3175)
==11127==    by 0xA6ED9F: zim_Phar_setStub (phar_object.c:2905)
==11127==    by 0x1201D1F: ZEND_DO_FCALL_SPEC_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:990)
==11127==    by 0x1201D1F: execute_ex (zend_vm_execute.h:54835)
==11127== 
==11127== Invalid read of size 4
==11127==    at 0xF023DB: _php_stream_free (streams.c:369)
==11127==    by 0xA4775A: phar_destroy_phar_data (phar.c:252)
==11127==    by 0xA4790F: phar_archive_delref (phar.c:277)
==11127==    by 0xA484CE: phar_entry_delref (phar.c:451)
==11127==    by 0xA34ED1: phar_stream_close (stream.c:355)
==11127==    by 0xF02795: _php_stream_free (streams.c:460)
==11127==    by 0xF07195: stream_resource_regular_dtor (streams.c:1586)
==11127==    by 0x10216EC: zend_resource_dtor (zend_list.c:74)
==11127==    by 0x1022113: zend_close_rsrc (zend_list.c:228)
==11127==    by 0x10177FE: zend_hash_reverse_apply (zend_hash.c:1836)
==11127==    by 0x102215F: zend_close_rsrc_list (zend_list.c:236)
==11127==    by 0xFAEC44: shutdown_executor (zend_execute_API.c:265)
==11127==  Address 0x15fcc574 is 116 bytes inside a block of size 224 free'd
==11127==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==11127==    by 0xF73AC3: _efree (zend_alloc.c:2500)
==11127==    by 0xF02BCD: _php_stream_free (streams.c:504)
==11127==    by 0xF07195: stream_resource_regular_dtor (streams.c:1586)
==11127==    by 0x10216EC: zend_resource_dtor (zend_list.c:74)
==11127==    by 0x1022113: zend_close_rsrc (zend_list.c:228)
==11127==    by 0x10177FE: zend_hash_reverse_apply (zend_hash.c:1836)
==11127==    by 0x102215F: zend_close_rsrc_list (zend_list.c:236)
==11127==    by 0xFAEC44: shutdown_executor (zend_execute_API.c:265)
==11127==    by 0xFE155A: zend_deactivate (zend.c:1152)
==11127==    by 0xECED79: php_request_shutdown (main.c:1932)
==11127==    by 0x122E45A: do_cli (php_cli.c:1164)
==11127==  Block was alloc'd at
==11127==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==11127==    by 0xF777FD: __zend_malloc (zend_alloc.c:2896)
==11127==    by 0xF6F869: _emalloc_224 (zend_alloc.c:2413)
==11127==    by 0xF02054: _php_stream_alloc (streams.c:272)
==11127==    by 0xF10A01: _php_stream_fopen_from_fd_int (plain_wrapper.c:184)
==11127==    by 0xF10D3F: _php_stream_fopen_from_fd (plain_wrapper.c:246)
==11127==    by 0xF12F54: _php_stream_fopen (plain_wrapper.c:1054)
==11127==    by 0xF1355A: php_plain_files_stream_opener (plain_wrapper.c:1110)
==11127==    by 0xF0955B: _php_stream_open_wrapper_ex (streams.c:2024)
==11127==    by 0xA58F59: phar_flush (phar.c:3175)
==11127==    by 0xA6ED9F: zim_Phar_setStub (phar_object.c:2905)
==11127==    by 0x1201D1F: ZEND_DO_FCALL_SPEC_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:990)
==11127==    by 0x1201D1F: execute_ex (zend_vm_execute.h:54835)
==11127== 
==11127== Invalid read of size 1
==11127==    at 0xF02402: _php_stream_free (streams.c:382)
==11127==    by 0xA4775A: phar_destroy_phar_data (phar.c:252)
==11127==    by 0xA4790F: phar_archive_delref (phar.c:277)
==11127==    by 0xA484CE: phar_entry_delref (phar.c:451)
==11127==    by 0xA34ED1: phar_stream_close (stream.c:355)
==11127==    by 0xF02795: _php_stream_free (streams.c:460)
==11127==    by 0xF07195: stream_resource_regular_dtor (streams.c:1586)
==11127==    by 0x10216EC: zend_resource_dtor (zend_list.c:74)
==11127==    by 0x1022113: zend_close_rsrc (zend_list.c:228)
==11127==    by 0x10177FE: zend_hash_reverse_apply (zend_hash.c:1836)
==11127==    by 0x102215F: zend_close_rsrc_list (zend_list.c:236)
==11127==    by 0xFAEC44: shutdown_executor (zend_execute_API.c:265)
==11127==  Address 0x15fcc560 is 96 bytes inside a block of size 224 free'd
==11127==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==11127==    by 0xF73AC3: _efree (zend_alloc.c:2500)
==11127==    by 0xF02BCD: _php_stream_free (streams.c:504)
==11127==    by 0xF07195: stream_resource_regular_dtor (streams.c:1586)
==11127==    by 0x10216EC: zend_resource_dtor (zend_list.c:74)
==11127==    by 0x1022113: zend_close_rsrc (zend_list.c:228)
==11127==    by 0x10177FE: zend_hash_reverse_apply (zend_hash.c:1836)
==11127==    by 0x102215F: zend_close_rsrc_list (zend_list.c:236)
==11127==    by 0xFAEC44: shutdown_executor (zend_execute_API.c:265)
==11127==    by 0xFE155A: zend_deactivate (zend.c:1152)
==11127==    by 0xECED79: php_request_shutdown (main.c:1932)
==11127==    by 0x122E45A: do_cli (php_cli.c:1164)
==11127==  Block was alloc'd at
==11127==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==11127==    by 0xF777FD: __zend_malloc (zend_alloc.c:2896)
==11127==    by 0xF6F869: _emalloc_224 (zend_alloc.c:2413)
==11127==    by 0xF02054: _php_stream_alloc (streams.c:272)
==11127==    by 0xF10A01: _php_stream_fopen_from_fd_int (plain_wrapper.c:184)
==11127==    by 0xF10D3F: _php_stream_fopen_from_fd (plain_wrapper.c:246)
==11127==    by 0xF12F54: _php_stream_fopen (plain_wrapper.c:1054)
==11127==    by 0xF1355A: php_plain_files_stream_opener (plain_wrapper.c:1110)
==11127==    by 0xF0955B: _php_stream_open_wrapper_ex (streams.c:2024)
==11127==    by 0xA58F59: phar_flush (phar.c:3175)
==11127==    by 0xA6ED9F: zim_Phar_setStub (phar_object.c:2905)
==11127==    by 0x1201D1F: ZEND_DO_FCALL_SPEC_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:990)
==11127==    by 0x1201D1F: execute_ex (zend_vm_execute.h:54835)
==11127== 
==11127== Invalid read of size 1
==11127==    at 0xF02415: _php_stream_free (streams.c:384)
==11127==    by 0xA4775A: phar_destroy_phar_data (phar.c:252)
==11127==    by 0xA4790F: phar_archive_delref (phar.c:277)
==11127==    by 0xA484CE: phar_entry_delref (phar.c:451)
==11127==    by 0xA34ED1: phar_stream_close (stream.c:355)
==11127==    by 0xF02795: _php_stream_free (streams.c:460)
==11127==    by 0xF07195: stream_resource_regular_dtor (streams.c:1586)
==11127==    by 0x10216EC: zend_resource_dtor (zend_list.c:74)
==11127==    by 0x1022113: zend_close_rsrc (zend_list.c:228)
==11127==    by 0x10177FE: zend_hash_reverse_apply (zend_hash.c:1836)
==11127==    by 0x102215F: zend_close_rsrc_list (zend_list.c:236)
==11127==    by 0xFAEC44: shutdown_executor (zend_execute_API.c:265)
==11127==  Address 0x15fcc560 is 96 bytes inside a block of size 224 free'd
==11127==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==11127==    by 0xF73AC3: _efree (zend_alloc.c:2500)
==11127==    by 0xF02BCD: _php_stream_free (streams.c:504)
==11127==    by 0xF07195: stream_resource_regular_dtor (streams.c:1586)
==11127==    by 0x10216EC: zend_resource_dtor (zend_list.c:74)
==11127==    by 0x1022113: zend_close_rsrc (zend_list.c:228)
==11127==    by 0x10177FE: zend_hash_reverse_apply (zend_hash.c:1836)
==11127==    by 0x102215F: zend_close_rsrc_list (zend_list.c:236)
==11127==    by 0xFAEC44: shutdown_executor (zend_execute_API.c:265)
==11127==    by 0xFE155A: zend_deactivate (zend.c:1152)
==11127==    by 0xECED79: php_request_shutdown (main.c:1932)
==11127==    by 0x122E45A: do_cli (php_cli.c:1164)
==11127==  Block was alloc'd at
==11127==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==11127==    by 0xF777FD: __zend_malloc (zend_alloc.c:2896)
==11127==    by 0xF6F869: _emalloc_224 (zend_alloc.c:2413)
==11127==    by 0xF02054: _php_stream_alloc (streams.c:272)
==11127==    by 0xF10A01: _php_stream_fopen_from_fd_int (plain_wrapper.c:184)
==11127==    by 0xF10D3F: _php_stream_fopen_from_fd (plain_wrapper.c:246)
==11127==    by 0xF12F54: _php_stream_fopen (plain_wrapper.c:1054)
==11127==    by 0xF1355A: php_plain_files_stream_opener (plain_wrapper.c:1110)
==11127==    by 0xF0955B: _php_stream_open_wrapper_ex (streams.c:2024)
==11127==    by 0xA58F59: phar_flush (phar.c:3175)
==11127==    by 0xA6ED9F: zim_Phar_setStub (phar_object.c:2905)
==11127==    by 0x1201D1F: ZEND_DO_FCALL_SPEC_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:990)
==11127==    by 0x1201D1F: execute_ex (zend_vm_execute.h:54835)
==11127== 

 

Generated at Sat, 01 Dec 2018 10:41:11 +0000 (9 days ago)

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