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

Valgrind Report for Zend/tests/try/finally_goto_001.phpt ('jmp into a finally block 01')

Script

1: <?php
2:
function foo() {
3:     goto 
test;
4:     try {
5:     } 
finally {
6:
test:
7:     }
8: }
9:
?>
10:

Report

==22098== Invalid free() / delete / delete[] / realloc()
==22098==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==22098==    by 0x1095989: _efree (zend_alloc.c:2499)
==22098==    by 0x10DA04C: destroy_op_array (zend_opcode.c:415)
==22098==    by 0x10CD8A6: shutdown_executor (zend_execute_API.c:348)
==22098==    by 0x1100A3C: zend_deactivate (zend.c:1078)
==22098==    by 0xFEB81E: php_request_shutdown (main.c:1765)
==22098==    by 0x136F6E6: do_cli (php_cli.c:1178)
==22098==    by 0x136FFB1: main (php_cli.c:1404)
==22098==  Address 0x14ecdd90 is 160 bytes inside a block of size 192 alloc'd
==22098==    at 0x4C293EC: realloc (vg_replace_malloc.c:784)
==22098==    by 0x10997EF: __zend_realloc (zend_alloc.c:2900)
==22098==    by 0x1095C52: _erealloc (zend_alloc.c:2514)
==22098==    by 0x10DAECA: pass_two (zend_opcode.c:596)
==22098==    by 0x10B95F1: zend_compile_func_decl (zend_compile.c:6032)
==22098==    by 0x10C5A17: zend_compile_stmt (zend_compile.c:8198)
==22098==    by 0x10C5319: zend_compile_top_stmt (zend_compile.c:8116)
==22098==    by 0x10C52C2: zend_compile_top_stmt (zend_compile.c:8111)
==22098==    by 0x104D410: zend_compile (zend_language_scanner.l:601)
==22098==    by 0x104D6A7: compile_file (zend_language_scanner.l:635)
==22098==    by 0xBB8B49: phar_compile_file (phar.c:3339)
==22098==    by 0x1102AA6: zend_execute_scripts (zend.c:1532)
==22098== 

 

Generated at Tue, 12 Dec 2017 23:59:00 +0000 (9 hours ago)

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