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

==28184== Invalid write of size 1
==28184==    at 0x139BE54: phpdbg_do_run (phpdbg_prompt.c:904)
==28184==    by 0x13C5A18: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==28184==    by 0x13C5E37: phpdbg_stack_execute (phpdbg_cmd.c:733)
==28184==    by 0x13A0608: phpdbg_interactive (phpdbg_prompt.c:1631)
==28184==    by 0x138C3F0: main (phpdbg.c:2001)
==28184==  Address 0x15b1c291 is 0 bytes after a block of size 1 alloc'd
==28184==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==28184==    by 0x109946F: __zend_malloc (zend_alloc.c:2829)
==28184==    by 0x1097BEF: _emalloc (zend_alloc.c:2429)
==28184==    by 0x139B7C6: phpdbg_do_run (phpdbg_prompt.c:841)
==28184==    by 0x13C5A18: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==28184==    by 0x13C5E37: phpdbg_stack_execute (phpdbg_cmd.c:733)
==28184==    by 0x13A0608: phpdbg_interactive (phpdbg_prompt.c:1631)
==28184==    by 0x138C3F0: main (phpdbg.c:2001)
==28184== 
==28184== Conditional jump or move depends on uninitialised value(s)
==28184==    at 0x4C2A868: __strlen_sse42 (vg_replace_strmem.c:462)
==28184==    by 0x101428D: php_build_argv (php_variables.c:571)
==28184==    by 0x139C028: phpdbg_do_run (phpdbg_prompt.c:921)
==28184==    by 0x13C5A18: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==28184==    by 0x13C5E37: phpdbg_stack_execute (phpdbg_cmd.c:733)
==28184==    by 0x13A0608: phpdbg_interactive (phpdbg_prompt.c:1631)
==28184==    by 0x138C3F0: main (phpdbg.c:2001)
==28184== 
==28184== Invalid read of size 1
==28184==    at 0x10DC8EB: zend_string_release (zend_string.h:289)
==28184==    by 0x10DC8EB: destroy_op_array (zend_opcode.c:399)
==28184==    by 0x1383EB6: php_phpdbg_destroy_file_source (phpdbg.c:131)
==28184==    by 0x11385D2: zend_hash_destroy (zend_hash.c:1247)
==28184==    by 0x138D06D: main (phpdbg.c:2159)
==28184==  Address 0x15b1a8f5 is 5 bytes inside a block of size 32 free'd
==28184==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==28184==    by 0x13D2140: phpdbg_watch_efree (phpdbg_watch.c:1169)
==28184==    by 0x1097F09: _efree (zend_alloc.c:2444)
==28184==    by 0x1181853: _str_dtor (zend_string.c:50)
==28184==    by 0x11384E9: zend_hash_destroy (zend_hash.c:1236)
==28184==    by 0x11829C9: zend_interned_strings_deactivate (zend_string.c:205)
==28184==    by 0xFF352F: php_request_shutdown (main.c:1925)
==28184==    by 0x138C960: main (phpdbg.c:2098)
==28184==  Block was alloc'd at
==28184==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==28184==    by 0x109946F: __zend_malloc (zend_alloc.c:2829)
==28184==    by 0x1097BEF: _emalloc (zend_alloc.c:2429)
==28184==    by 0x1060B6E: zend_string_alloc (zend_string.h:134)
==28184==    by 0x1060B6E: zend_string_init (zend_string.h:170)
==28184==    by 0x1060B6E: lex_scan (zend_language_scanner.l:1869)
==28184==    by 0x10A1A80: zendlex (zend_compile.c:1721)
==28184==    by 0x104774B: zendparse (zend_language_parser.c:4914)
==28184==    by 0x1052FEF: zend_compile (zend_language_scanner.l:585)
==28184==    by 0x10533D3: compile_file (zend_language_scanner.l:635)
==28184==    by 0xB8B21A: phar_compile_file (phar.c:3329)
==28184==    by 0x13B67CA: phpdbg_compile_file (phpdbg_list.c:274)
==28184==    by 0x13B6D0A: phpdbg_init_compile_file (phpdbg_list.c:317)
==28184==    by 0x1399BF1: phpdbg_compile (phpdbg_prompt.c:600)
==28184== 

 

Generated at Wed, 09 Jan 2019 04:17:14 +0000 (9 days ago)

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