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_004.phpt ('jmp into a finally block 03')

Script

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

Report

==27293== Invalid free() / delete / delete[] / realloc()
==27293==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==27293==    by 0x10E5F6E: _efree (zend_alloc.c:2506)
==27293==    by 0x112F52B: destroy_op_array (zend_opcode.c:406)
==27293==    by 0x1121CF1: shutdown_executor (zend_execute_API.c:350)
==27293==    by 0x1153A1E: zend_deactivate (zend.c:1106)
==27293==    by 0x1042AC4: php_request_shutdown (main.c:1765)
==27293==    by 0x13A6122: do_cli (php_cli.c:1178)
==27293==    by 0x13A6A57: main (php_cli.c:1404)
==27293==  Address 0x14f05720 is 160 bytes inside a block of size 192 alloc'd
==27293==    at 0x4C293EC: realloc (vg_replace_malloc.c:784)
==27293==    by 0x10E9E34: __zend_realloc (zend_alloc.c:2917)
==27293==    by 0x10E622F: _erealloc (zend_alloc.c:2521)
==27293==    by 0x1130570: pass_two (zend_opcode.c:565)
==27293==    by 0x110BAC0: zend_compile_func_decl (zend_compile.c:6004)
==27293==    by 0x111934A: zend_compile_stmt (zend_compile.c:8174)
==27293==    by 0x1118C38: zend_compile_top_stmt (zend_compile.c:8092)
==27293==    by 0x1118BE1: zend_compile_top_stmt (zend_compile.c:8087)
==27293==    by 0x10A650F: zend_compile (zend_language_scanner.l:603)
==27293==    by 0x10A67A9: compile_file (zend_language_scanner.l:637)
==27293==    by 0xBD7058: phar_compile_file (phar.c:3337)
==27293==    by 0x115585C: zend_execute_scripts (zend.c:1558)
==27293== 

 

Generated at Mon, 18 Jun 2018 17:33:50 +0000 (5 days ago)

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