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

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

 

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

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