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_005.phpt ('Try finally (with long goto)')

Script

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

Report

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

 

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

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