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

==13570== Invalid free() / delete / delete[] / realloc()
==13570==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==13570==    by 0x10603FD: _efree (zend_alloc.c:2499)
==13570==    by 0x10A531C: destroy_op_array (zend_opcode.c:415)
==13570==    by 0x1098C4A: shutdown_executor (zend_execute_API.c:348)
==13570==    by 0x10CB834: zend_deactivate (zend.c:1050)
==13570==    by 0xFB5A7C: php_request_shutdown (main.c:1767)
==13570==    by 0x133E61E: do_cli (php_cli.c:1178)
==13570==    by 0x133EEE9: main (php_cli.c:1404)
==13570==  Address 0x14f1a870 is 416 bytes inside a block of size 480 alloc'd
==13570==    at 0x4C293EC: realloc (vg_replace_malloc.c:784)
==13570==    by 0x1064263: __zend_realloc (zend_alloc.c:2900)
==13570==    by 0x10606C6: _erealloc (zend_alloc.c:2514)
==13570==    by 0x10A619A: pass_two (zend_opcode.c:596)
==13570==    by 0x1083D5B: zend_compile_func_decl (zend_compile.c:5994)
==13570==    by 0x10901AF: zend_compile_stmt (zend_compile.c:8163)
==13570==    by 0x108FAB1: zend_compile_top_stmt (zend_compile.c:8081)
==13570==    by 0x108FA5A: zend_compile_top_stmt (zend_compile.c:8076)
==13570==    by 0x1017EA0: zend_compile (zend_language_scanner.l:601)
==13570==    by 0x1018137: compile_file (zend_language_scanner.l:635)
==13570==    by 0xB80CF5: phar_compile_file (phar.c:3339)
==13570==    by 0x10CD89E: zend_execute_scripts (zend.c:1504)
==13570== 

 

Generated at Sun, 12 Nov 2017 21:17:35 +0000 (29 days ago)

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