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_007.phpt ('Try finally (with goto previous label)')

Script

1: <?php
2:
function foo () {
3:     try {
4:
label:
5:         echo 
"label"
6:         try {
7:         } 
finally {
8:             goto 
label;
9:             echo 
"dummy";
10:         }
11:     } catch (
Exception $e) {
12:     } 
finally {
13:     }
14: }
15:
16:
foo();
17:
?>
18:

Report

==6049== Invalid free() / delete / delete[] / realloc()
==6049==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==6049==    by 0x10D9476: _efree (zend_alloc.c:2506)
==6049==    by 0x1123064: destroy_op_array (zend_opcode.c:379)
==6049==    by 0x1115E08: shutdown_executor (zend_execute_API.c:351)
==6049==    by 0x1146E95: zend_deactivate (zend.c:1106)
==6049==    by 0x1035097: php_request_shutdown (main.c:1904)
==6049==    by 0x13986D9: do_cli (php_cli.c:1169)
==6049==    by 0x139900E: main (php_cli.c:1395)
==6049==  Address 0x14f154e0 is 448 bytes inside a block of size 544 alloc'd
==6049==    at 0x4C293EC: realloc (vg_replace_malloc.c:784)
==6049==    by 0x10DD33C: __zend_realloc (zend_alloc.c:2917)
==6049==    by 0x10D9737: _erealloc (zend_alloc.c:2521)
==6049==    by 0x11240B3: pass_two (zend_opcode.c:538)
==6049==    by 0x10FF7BC: zend_compile_func_decl (zend_compile.c:6079)
==6049==    by 0x110CF96: zend_compile_stmt (zend_compile.c:8234)
==6049==    by 0x110C884: zend_compile_top_stmt (zend_compile.c:8152)
==6049==    by 0x110C82D: zend_compile_top_stmt (zend_compile.c:8147)
==6049==    by 0x109992D: zend_compile (zend_language_scanner.l:604)
==6049==    by 0x1099BC7: compile_file (zend_language_scanner.l:638)
==6049==    by 0xBCB9F6: phar_compile_file (phar.c:3335)
==6049==    by 0x1148CD3: zend_execute_scripts (zend.c:1558)
==6049== 

 

Generated at Thu, 19 Jul 2018 09:51:32 +0000 (13 hours ago)

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