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

==20265== Invalid free() / delete / delete[] / realloc()
==20265==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==20265==    by 0x109B9A1: _efree (zend_alloc.c:2494)
==20265==    by 0x10E0083: destroy_op_array (zend_opcode.c:412)
==20265==    by 0x10D38FE: shutdown_executor (zend_execute_API.c:350)
==20265==    by 0x1107D39: zend_deactivate (zend.c:1070)
==20265==    by 0xFF0777: php_request_shutdown (main.c:1765)
==20265==    by 0x135604A: do_cli (php_cli.c:1178)
==20265==    by 0x1356915: main (php_cli.c:1404)
==20265==  Address 0x14ed4370 is 160 bytes inside a block of size 192 alloc'd
==20265==    at 0x4C293EC: realloc (vg_replace_malloc.c:784)
==20265==    by 0x109F807: __zend_realloc (zend_alloc.c:2902)
==20265==    by 0x109BC6A: _erealloc (zend_alloc.c:2509)
==20265==    by 0x10E0EE7: pass_two (zend_opcode.c:587)
==20265==    by 0x10BF642: zend_compile_func_decl (zend_compile.c:6089)
==20265==    by 0x10CBA72: zend_compile_stmt (zend_compile.c:8261)
==20265==    by 0x10CB374: zend_compile_top_stmt (zend_compile.c:8179)
==20265==    by 0x10CB31D: zend_compile_top_stmt (zend_compile.c:8174)
==20265==    by 0x10534EC: zend_compile (zend_language_scanner.l:601)
==20265==    by 0x1053783: compile_file (zend_language_scanner.l:635)
==20265==    by 0xBBADB9: phar_compile_file (phar.c:3339)
==20265==    by 0x1109DA3: zend_execute_scripts (zend.c:1524)
==20265== 

 

Generated at Fri, 16 Feb 2018 06:57:12 +0000 (3 days ago)

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