PHP  
 PHP_7_2
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.txt8[E<?php __HALT_COMPILER();.^kg=,d-GBMB

Report

==16161== Invalid read of size 8
==16161==    at 0x10148AA: _php_stream_free (streams.c:373)
==16161==    by 0xB6B50F: phar_destroy_phar_data (phar.c:254)
==16161==    by 0xB6B6C5: phar_archive_delref (phar.c:279)
==16161==    by 0xB6C1FF: phar_entry_delref (phar.c:453)
==16161==    by 0xB5984B: phar_stream_close (stream.c:354)
==16161==    by 0x1014CB2: _php_stream_free (streams.c:467)
==16161==    by 0x10194FA: stream_resource_regular_dtor (streams.c:1591)
==16161==    by 0x1137D93: zend_resource_dtor (zend_list.c:76)
==16161==    by 0x11387B8: zend_close_rsrc (zend_list.c:230)
==16161==    by 0x112D800: zend_hash_reverse_apply (zend_hash.c:1599)
==16161==    by 0x1138804: zend_close_rsrc_list (zend_list.c:238)
==16161==    by 0x10C004C: shutdown_executor (zend_execute_API.c:263)
==16161==  Address 0x15b36ee0 is 144 bytes inside a block of size 224 free'd
==16161==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==16161==    by 0x10891CA: _efree (zend_alloc.c:2444)
==16161==    by 0x10150EA: _php_stream_free (streams.c:511)
==16161==    by 0x10194FA: stream_resource_regular_dtor (streams.c:1591)
==16161==    by 0x1137D93: zend_resource_dtor (zend_list.c:76)
==16161==    by 0x11387B8: zend_close_rsrc (zend_list.c:230)
==16161==    by 0x112D800: zend_hash_reverse_apply (zend_hash.c:1599)
==16161==    by 0x1138804: zend_close_rsrc_list (zend_list.c:238)
==16161==    by 0x10C004C: shutdown_executor (zend_execute_API.c:263)
==16161==    by 0x10F3D9B: zend_deactivate (zend.c:1036)
==16161==    by 0xFE4827: php_request_shutdown (main.c:1904)
==16161==    by 0x1378AA5: do_cli (php_cli.c:1178)
==16161==  Block was alloc'd at
==16161==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==16161==    by 0x108A730: __zend_malloc (zend_alloc.c:2829)
==16161==    by 0x1084EF2: _emalloc_224 (zend_alloc.c:2352)
==16161==    by 0x1014504: _php_stream_alloc (streams.c:274)
==16161==    by 0x10226AA: _php_stream_fopen_from_fd_int (plain_wrapper.c:186)
==16161==    by 0x10229E8: _php_stream_fopen_from_fd (plain_wrapper.c:248)
==16161==    by 0x1024B6D: _php_stream_fopen (plain_wrapper.c:1024)
==16161==    by 0x10250A8: php_plain_files_stream_opener (plain_wrapper.c:1080)
==16161==    by 0x101B844: _php_stream_open_wrapper_ex (streams.c:2027)
==16161==    by 0xB7BC76: phar_flush (phar.c:3160)
==16161==    by 0xB9209D: zim_Phar_setStub (phar_object.c:2960)
==16161==    by 0x134D9C6: ZEND_DO_FCALL_SPEC_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:907)
==16161==    by 0x134D9C6: execute_ex (zend_vm_execute.h:59765)
==16161== 
==16161== Invalid read of size 4
==16161==    at 0x10148F8: _php_stream_free (streams.c:376)
==16161==    by 0xB6B50F: phar_destroy_phar_data (phar.c:254)
==16161==    by 0xB6B6C5: phar_archive_delref (phar.c:279)
==16161==    by 0xB6C1FF: phar_entry_delref (phar.c:453)
==16161==    by 0xB5984B: phar_stream_close (stream.c:354)
==16161==    by 0x1014CB2: _php_stream_free (streams.c:467)
==16161==    by 0x10194FA: stream_resource_regular_dtor (streams.c:1591)
==16161==    by 0x1137D93: zend_resource_dtor (zend_list.c:76)
==16161==    by 0x11387B8: zend_close_rsrc (zend_list.c:230)
==16161==    by 0x112D800: zend_hash_reverse_apply (zend_hash.c:1599)
==16161==    by 0x1138804: zend_close_rsrc_list (zend_list.c:238)
==16161==    by 0x10C004C: shutdown_executor (zend_execute_API.c:263)
==16161==  Address 0x15b36ec4 is 116 bytes inside a block of size 224 free'd
==16161==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==16161==    by 0x10891CA: _efree (zend_alloc.c:2444)
==16161==    by 0x10150EA: _php_stream_free (streams.c:511)
==16161==    by 0x10194FA: stream_resource_regular_dtor (streams.c:1591)
==16161==    by 0x1137D93: zend_resource_dtor (zend_list.c:76)
==16161==    by 0x11387B8: zend_close_rsrc (zend_list.c:230)
==16161==    by 0x112D800: zend_hash_reverse_apply (zend_hash.c:1599)
==16161==    by 0x1138804: zend_close_rsrc_list (zend_list.c:238)
==16161==    by 0x10C004C: shutdown_executor (zend_execute_API.c:263)
==16161==    by 0x10F3D9B: zend_deactivate (zend.c:1036)
==16161==    by 0xFE4827: php_request_shutdown (main.c:1904)
==16161==    by 0x1378AA5: do_cli (php_cli.c:1178)
==16161==  Block was alloc'd at
==16161==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==16161==    by 0x108A730: __zend_malloc (zend_alloc.c:2829)
==16161==    by 0x1084EF2: _emalloc_224 (zend_alloc.c:2352)
==16161==    by 0x1014504: _php_stream_alloc (streams.c:274)
==16161==    by 0x10226AA: _php_stream_fopen_from_fd_int (plain_wrapper.c:186)
==16161==    by 0x10229E8: _php_stream_fopen_from_fd (plain_wrapper.c:248)
==16161==    by 0x1024B6D: _php_stream_fopen (plain_wrapper.c:1024)
==16161==    by 0x10250A8: php_plain_files_stream_opener (plain_wrapper.c:1080)
==16161==    by 0x101B844: _php_stream_open_wrapper_ex (streams.c:2027)
==16161==    by 0xB7BC76: phar_flush (phar.c:3160)
==16161==    by 0xB9209D: zim_Phar_setStub (phar_object.c:2960)
==16161==    by 0x134D9C6: ZEND_DO_FCALL_SPEC_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:907)
==16161==    by 0x134D9C6: execute_ex (zend_vm_execute.h:59765)
==16161== 
==16161== Invalid read of size 1
==16161==    at 0x101491F: _php_stream_free (streams.c:389)
==16161==    by 0xB6B50F: phar_destroy_phar_data (phar.c:254)
==16161==    by 0xB6B6C5: phar_archive_delref (phar.c:279)
==16161==    by 0xB6C1FF: phar_entry_delref (phar.c:453)
==16161==    by 0xB5984B: phar_stream_close (stream.c:354)
==16161==    by 0x1014CB2: _php_stream_free (streams.c:467)
==16161==    by 0x10194FA: stream_resource_regular_dtor (streams.c:1591)
==16161==    by 0x1137D93: zend_resource_dtor (zend_list.c:76)
==16161==    by 0x11387B8: zend_close_rsrc (zend_list.c:230)
==16161==    by 0x112D800: zend_hash_reverse_apply (zend_hash.c:1599)
==16161==    by 0x1138804: zend_close_rsrc_list (zend_list.c:238)
==16161==    by 0x10C004C: shutdown_executor (zend_execute_API.c:263)
==16161==  Address 0x15b36eb0 is 96 bytes inside a block of size 224 free'd
==16161==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==16161==    by 0x10891CA: _efree (zend_alloc.c:2444)
==16161==    by 0x10150EA: _php_stream_free (streams.c:511)
==16161==    by 0x10194FA: stream_resource_regular_dtor (streams.c:1591)
==16161==    by 0x1137D93: zend_resource_dtor (zend_list.c:76)
==16161==    by 0x11387B8: zend_close_rsrc (zend_list.c:230)
==16161==    by 0x112D800: zend_hash_reverse_apply (zend_hash.c:1599)
==16161==    by 0x1138804: zend_close_rsrc_list (zend_list.c:238)
==16161==    by 0x10C004C: shutdown_executor (zend_execute_API.c:263)
==16161==    by 0x10F3D9B: zend_deactivate (zend.c:1036)
==16161==    by 0xFE4827: php_request_shutdown (main.c:1904)
==16161==    by 0x1378AA5: do_cli (php_cli.c:1178)
==16161==  Block was alloc'd at
==16161==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==16161==    by 0x108A730: __zend_malloc (zend_alloc.c:2829)
==16161==    by 0x1084EF2: _emalloc_224 (zend_alloc.c:2352)
==16161==    by 0x1014504: _php_stream_alloc (streams.c:274)
==16161==    by 0x10226AA: _php_stream_fopen_from_fd_int (plain_wrapper.c:186)
==16161==    by 0x10229E8: _php_stream_fopen_from_fd (plain_wrapper.c:248)
==16161==    by 0x1024B6D: _php_stream_fopen (plain_wrapper.c:1024)
==16161==    by 0x10250A8: php_plain_files_stream_opener (plain_wrapper.c:1080)
==16161==    by 0x101B844: _php_stream_open_wrapper_ex (streams.c:2027)
==16161==    by 0xB7BC76: phar_flush (phar.c:3160)
==16161==    by 0xB9209D: zim_Phar_setStub (phar_object.c:2960)
==16161==    by 0x134D9C6: ZEND_DO_FCALL_SPEC_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:907)
==16161==    by 0x134D9C6: execute_ex (zend_vm_execute.h:59765)
==16161== 
==16161== Invalid read of size 1
==16161==    at 0x1014932: _php_stream_free (streams.c:391)
==16161==    by 0xB6B50F: phar_destroy_phar_data (phar.c:254)
==16161==    by 0xB6B6C5: phar_archive_delref (phar.c:279)
==16161==    by 0xB6C1FF: phar_entry_delref (phar.c:453)
==16161==    by 0xB5984B: phar_stream_close (stream.c:354)
==16161==    by 0x1014CB2: _php_stream_free (streams.c:467)
==16161==    by 0x10194FA: stream_resource_regular_dtor (streams.c:1591)
==16161==    by 0x1137D93: zend_resource_dtor (zend_list.c:76)
==16161==    by 0x11387B8: zend_close_rsrc (zend_list.c:230)
==16161==    by 0x112D800: zend_hash_reverse_apply (zend_hash.c:1599)
==16161==    by 0x1138804: zend_close_rsrc_list (zend_list.c:238)
==16161==    by 0x10C004C: shutdown_executor (zend_execute_API.c:263)
==16161==  Address 0x15b36eb0 is 96 bytes inside a block of size 224 free'd
==16161==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==16161==    by 0x10891CA: _efree (zend_alloc.c:2444)
==16161==    by 0x10150EA: _php_stream_free (streams.c:511)
==16161==    by 0x10194FA: stream_resource_regular_dtor (streams.c:1591)
==16161==    by 0x1137D93: zend_resource_dtor (zend_list.c:76)
==16161==    by 0x11387B8: zend_close_rsrc (zend_list.c:230)
==16161==    by 0x112D800: zend_hash_reverse_apply (zend_hash.c:1599)
==16161==    by 0x1138804: zend_close_rsrc_list (zend_list.c:238)
==16161==    by 0x10C004C: shutdown_executor (zend_execute_API.c:263)
==16161==    by 0x10F3D9B: zend_deactivate (zend.c:1036)
==16161==    by 0xFE4827: php_request_shutdown (main.c:1904)
==16161==    by 0x1378AA5: do_cli (php_cli.c:1178)
==16161==  Block was alloc'd at
==16161==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==16161==    by 0x108A730: __zend_malloc (zend_alloc.c:2829)
==16161==    by 0x1084EF2: _emalloc_224 (zend_alloc.c:2352)
==16161==    by 0x1014504: _php_stream_alloc (streams.c:274)
==16161==    by 0x10226AA: _php_stream_fopen_from_fd_int (plain_wrapper.c:186)
==16161==    by 0x10229E8: _php_stream_fopen_from_fd (plain_wrapper.c:248)
==16161==    by 0x1024B6D: _php_stream_fopen (plain_wrapper.c:1024)
==16161==    by 0x10250A8: php_plain_files_stream_opener (plain_wrapper.c:1080)
==16161==    by 0x101B844: _php_stream_open_wrapper_ex (streams.c:2027)
==16161==    by 0xB7BC76: phar_flush (phar.c:3160)
==16161==    by 0xB9209D: zim_Phar_setStub (phar_object.c:2960)
==16161==    by 0x134D9C6: ZEND_DO_FCALL_SPEC_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:907)
==16161==    by 0x134D9C6: execute_ex (zend_vm_execute.h:59765)
==16161== 

 

Generated at Mon, 08 Oct 2018 02:05:35 +0000 (8 days ago)

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