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

==17898== Invalid write of size 1
==17898==    at 0x1358FEB: phpdbg_do_run (phpdbg_prompt.c:904)
==17898==    by 0x1381A9E: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==17898==    by 0x1381EA9: phpdbg_stack_execute (phpdbg_cmd.c:733)
==17898==    by 0x135D7B8: phpdbg_interactive (phpdbg_prompt.c:1631)
==17898==    by 0x13497A7: main (phpdbg.c:1996)
==17898==  Address 0x14f191c1 is 0 bytes after a block of size 1 alloc'd
==17898==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==17898==    by 0x107AA87: __zend_malloc (zend_alloc.c:2829)
==17898==    by 0x1079182: _emalloc (zend_alloc.c:2429)
==17898==    by 0x1358977: phpdbg_do_run (phpdbg_prompt.c:841)
==17898==    by 0x1381A9E: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==17898==    by 0x1381EA9: phpdbg_stack_execute (phpdbg_cmd.c:733)
==17898==    by 0x135D7B8: phpdbg_interactive (phpdbg_prompt.c:1631)
==17898==    by 0x13497A7: main (phpdbg.c:1996)
==17898== 
==17898== Conditional jump or move depends on uninitialised value(s)
==17898==    at 0x4C2A868: __strlen_sse42 (vg_replace_strmem.c:462)
==17898==    by 0xFF397B: php_build_argv (php_variables.c:571)
==17898==    by 0x13591BF: phpdbg_do_run (phpdbg_prompt.c:921)
==17898==    by 0x1381A9E: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==17898==    by 0x1381EA9: phpdbg_stack_execute (phpdbg_cmd.c:733)
==17898==    by 0x135D7B8: phpdbg_interactive (phpdbg_prompt.c:1631)
==17898==    by 0x13497A7: main (phpdbg.c:1996)
==17898== 
==17898== Invalid read of size 1
==17898==    at 0x10BB0F1: zend_string_release (zend_string.h:289)
==17898==    by 0x10BB0F1: destroy_op_array (zend_opcode.c:399)
==17898==    by 0x13411E3: php_phpdbg_destroy_file_source (phpdbg.c:131)
==17898==    by 0x1116686: zend_hash_destroy (zend_hash.c:1245)
==17898==    by 0x134A36A: main (phpdbg.c:2154)
==17898==  Address 0x14f17825 is 5 bytes inside a block of size 32 free'd
==17898==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==17898==    by 0x138DE01: phpdbg_watch_efree (phpdbg_watch.c:1169)
==17898==    by 0x10794A5: _efree (zend_alloc.c:2444)
==17898==    by 0x115ED9B: _str_dtor (zend_string.c:50)
==17898==    by 0x111659D: zend_hash_destroy (zend_hash.c:1234)
==17898==    by 0x115FF3F: zend_interned_strings_deactivate (zend_string.c:199)
==17898==    by 0xFD2361: php_request_shutdown (main.c:1925)
==17898==    by 0x1349D19: main (phpdbg.c:2093)
==17898==  Block was alloc'd at
==17898==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==17898==    by 0x107AA87: __zend_malloc (zend_alloc.c:2829)
==17898==    by 0x1079182: _emalloc (zend_alloc.c:2429)
==17898==    by 0x1040B6A: zend_string_alloc (zend_string.h:134)
==17898==    by 0x1040B6A: zend_string_init (zend_string.h:170)
==17898==    by 0x1040B6A: lex_scan (zend_language_scanner.l:1869)
==17898==    by 0x1082C7E: zendlex (zend_compile.c:1721)
==17898==    by 0x1026F87: zendparse (zend_language_parser.c:4914)
==17898==    by 0x1032D88: zend_compile (zend_language_scanner.l:585)
==17898==    by 0x1033164: compile_file (zend_language_scanner.l:635)
==17898==    by 0xB7898A: phar_compile_file (phar.c:3320)
==17898==    by 0x1373139: phpdbg_compile_file (phpdbg_list.c:274)
==17898==    by 0x137364E: phpdbg_init_compile_file (phpdbg_list.c:317)
==17898==    by 0x1356EED: phpdbg_compile (phpdbg_prompt.c:600)
==17898== 

 

Generated at Sat, 09 Dec 2017 10:21:20 +0000 (3 days ago)

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