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

Script

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

Report

==16831== Invalid free() / delete / delete[] / realloc()
==16831==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==16831==    by 0x10C9DCC: _efree (zend_alloc.c:2506)
==16831==    by 0x11111D1: destroy_op_array (zend_opcode.c:406)
==16831==    by 0x11045B9: shutdown_executor (zend_execute_API.c:350)
==16831==    by 0x1139414: zend_deactivate (zend.c:1106)
==16831==    by 0x1027C45: php_request_shutdown (main.c:1765)
==16831==    by 0x1389D33: do_cli (php_cli.c:1178)
==16831==    by 0x138A668: main (php_cli.c:1404)
==16831==  Address 0x14f03320 is 192 bytes inside a block of size 224 alloc'd
==16831==    at 0x4C293EC: realloc (vg_replace_malloc.c:784)
==16831==    by 0x10CDAC6: __zend_realloc (zend_alloc.c:2914)
==16831==    by 0x10CA08D: _erealloc (zend_alloc.c:2521)
==16831==    by 0x111205B: pass_two (zend_opcode.c:565)
==16831==    by 0x10EECC1: zend_compile_func_decl (zend_compile.c:6004)
==16831==    by 0x10FC0C0: zend_compile_stmt (zend_compile.c:8174)
==16831==    by 0x10FB9AE: zend_compile_top_stmt (zend_compile.c:8092)
==16831==    by 0x10FB957: zend_compile_top_stmt (zend_compile.c:8087)
==16831==    by 0x108A52C: zend_compile (zend_language_scanner.l:603)
==16831==    by 0x108A7C6: compile_file (zend_language_scanner.l:637)
==16831==    by 0xBCCAEB: phar_compile_file (phar.c:3337)
==16831==    by 0x113B298: zend_execute_scripts (zend.c:1560)
==16831== 

 

Generated at Mon, 14 May 2018 06:22:31 +0000 (7 days ago)

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