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/try_finally_008.phpt ('Try finally (with break in do...while)')

Script

1: <?php
2:
function foo () {
3:     do {
4:         try {
5:             try {
6:             } 
finally {
7:                 break;
8:             }
9:         } catch (
Exception $e) {
10:         } 
finally {
11:         }
12:     } while (
0);
13: }
14:
15:
foo();
16:
?>
17:

Report

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

 

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

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