PHP  
 PHP_7_2
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Valgrind Report for sapi/phpdbg/tests/bug73794.phpt ('Bug #73794 (Crash (out of memory) when using run and # command separator)')

Script

1: <?php
2:
echo $argv[1];
3:
?>
4:

Report

==21377== Invalid write of size 1
==21377==    at 0x139D036: phpdbg_do_run (phpdbg_prompt.c:904)
==21377==    by 0x13C6B75: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==21377==    by 0x13C6F94: phpdbg_stack_execute (phpdbg_cmd.c:733)
==21377==    by 0x13A17A5: phpdbg_interactive (phpdbg_prompt.c:1635)
==21377==    by 0x138D5D2: main (phpdbg.c:2001)
==21377==  Address 0x15b3c961 is 0 bytes after a block of size 1 alloc'd
==21377==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==21377==    by 0x109A8CA: __zend_malloc (zend_alloc.c:2830)
==21377==    by 0x109904A: _emalloc (zend_alloc.c:2431)
==21377==    by 0x139C9A8: phpdbg_do_run (phpdbg_prompt.c:841)
==21377==    by 0x13C6B75: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==21377==    by 0x13C6F94: phpdbg_stack_execute (phpdbg_cmd.c:733)
==21377==    by 0x13A17A5: phpdbg_interactive (phpdbg_prompt.c:1635)
==21377==    by 0x138D5D2: main (phpdbg.c:2001)
==21377== 
==21377== Conditional jump or move depends on uninitialised value(s)
==21377==    at 0x4C2A868: __strlen_sse42 (vg_replace_strmem.c:462)
==21377==    by 0x1014F4F: php_build_argv (php_variables.c:573)
==21377==    by 0x139D20A: phpdbg_do_run (phpdbg_prompt.c:921)
==21377==    by 0x13C6B75: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==21377==    by 0x13C6F94: phpdbg_stack_execute (phpdbg_cmd.c:733)
==21377==    by 0x13A17A5: phpdbg_interactive (phpdbg_prompt.c:1635)
==21377==    by 0x138D5D2: main (phpdbg.c:2001)
==21377== 
==21377== Invalid read of size 1
==21377==    at 0x10DE173: zend_string_release (zend_string.h:289)
==21377==    by 0x10DE173: destroy_op_array (zend_opcode.c:399)
==21377==    by 0x1385174: php_phpdbg_destroy_file_source (phpdbg.c:131)
==21377==    by 0x1139CDF: zend_hash_destroy (zend_hash.c:1247)
==21377==    by 0x138E24F: main (phpdbg.c:2159)
==21377==  Address 0x15b3adc5 is 5 bytes inside a block of size 32 free'd
==21377==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==21377==    by 0x13D3023: phpdbg_watch_efree (phpdbg_watch.c:1169)
==21377==    by 0x1099364: _efree (zend_alloc.c:2446)
==21377==    by 0x118318C: _str_dtor (zend_string.c:50)
==21377==    by 0x1139BF6: zend_hash_destroy (zend_hash.c:1236)
==21377==    by 0x1184302: zend_interned_strings_deactivate (zend_string.c:205)
==21377==    by 0xFF41B5: php_request_shutdown (main.c:1925)
==21377==    by 0x138DB42: main (phpdbg.c:2098)
==21377==  Block was alloc'd at
==21377==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==21377==    by 0x109A8CA: __zend_malloc (zend_alloc.c:2830)
==21377==    by 0x109904A: _emalloc (zend_alloc.c:2431)
==21377==    by 0x106193B: zend_string_alloc (zend_string.h:134)
==21377==    by 0x106193B: zend_string_init (zend_string.h:170)
==21377==    by 0x106193B: lex_scan (zend_language_scanner.l:1869)
==21377==    by 0x10A2ECE: zendlex (zend_compile.c:1728)
==21377==    by 0x10484E8: zendparse (zend_language_parser.c:4222)
==21377==    by 0x1053DBC: zend_compile (zend_language_scanner.l:585)
==21377==    by 0x10541A0: compile_file (zend_language_scanner.l:635)
==21377==    by 0xB8C760: phar_compile_file (phar.c:3332)
==21377==    by 0x13B797C: phpdbg_compile_file (phpdbg_list.c:242)
==21377==    by 0x13B80E6: phpdbg_init_compile_file (phpdbg_list.c:304)
==21377==    by 0x139ADD3: phpdbg_compile (phpdbg_prompt.c:600)
==21377== 

 

Generated at Tue, 14 May 2019 02:32:01 +0000 (8 days ago)

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