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/finally_goto_004.phpt ('jmp into a finally block 03')

Script

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

Report

==9596== Invalid free() / delete / delete[] / realloc()
==9596==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==9596==    by 0x110E83A: _efree (zend_alloc.c:2504)
==9596==    by 0x11577A1: destroy_op_array (zend_opcode.c:377)
==9596==    by 0x114A563: shutdown_executor (zend_execute_API.c:337)
==9596==    by 0x117BC2C: zend_deactivate (zend.c:1104)
==9596==    by 0x1069E5E: php_request_shutdown (main.c:1926)
==9596==    by 0x13CA612: do_cli (php_cli.c:1164)
==9596==    by 0x13CAF47: main (php_cli.c:1390)
==9596==  Address 0x14f220e0 is 160 bytes inside a block of size 192 alloc'd
==9596==    at 0x4C293EC: realloc (vg_replace_malloc.c:784)
==9596==    by 0x1112700: __zend_realloc (zend_alloc.c:2915)
==9596==    by 0x110EAFB: _erealloc (zend_alloc.c:2519)
==9596==    by 0x11587F0: pass_two (zend_opcode.c:536)
==9596==    by 0x1134874: zend_compile_func_decl (zend_compile.c:6041)
==9596==    by 0x1142191: zend_compile_stmt (zend_compile.c:8208)
==9596==    by 0x1141A7F: zend_compile_top_stmt (zend_compile.c:8126)
==9596==    by 0x1141A28: zend_compile_top_stmt (zend_compile.c:8121)
==9596==    by 0x10CEEFD: zend_compile (zend_language_scanner.l:602)
==9596==    by 0x10CF197: compile_file (zend_language_scanner.l:636)
==9596==    by 0xBCD8D9: phar_compile_file (phar.c:3332)
==9596==    by 0x117DA6A: zend_execute_scripts (zend.c:1556)
==9596== 

 

Generated at Fri, 17 Aug 2018 22:19:01 +0000 (41 hours ago)

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