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

==21921== Invalid write of size 1
==21921==    at 0x13B9D07: phpdbg_do_run (phpdbg_prompt.c:904)
==21921==    by 0x13E3830: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==21921==    by 0x13E3C4F: phpdbg_stack_execute (phpdbg_cmd.c:733)
==21921==    by 0x13BE476: phpdbg_interactive (phpdbg_prompt.c:1635)
==21921==    by 0x13AA2A3: main (phpdbg.c:2001)
==21921==  Address 0x15b3ca01 is 0 bytes after a block of size 1 alloc'd
==21921==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==21921==    by 0x10B6C44: __zend_malloc (zend_alloc.c:2835)
==21921==    by 0x10B53C4: _emalloc (zend_alloc.c:2436)
==21921==    by 0x13B9679: phpdbg_do_run (phpdbg_prompt.c:841)
==21921==    by 0x13E3830: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==21921==    by 0x13E3C4F: phpdbg_stack_execute (phpdbg_cmd.c:733)
==21921==    by 0x13BE476: phpdbg_interactive (phpdbg_prompt.c:1635)
==21921==    by 0x13AA2A3: main (phpdbg.c:2001)
==21921== 
==21921== Conditional jump or move depends on uninitialised value(s)
==21921==    at 0x4C2A868: __strlen_sse42 (vg_replace_strmem.c:462)
==21921==    by 0x10310AA: php_build_argv (php_variables.c:573)
==21921==    by 0x13B9EDB: phpdbg_do_run (phpdbg_prompt.c:921)
==21921==    by 0x13E3830: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==21921==    by 0x13E3C4F: phpdbg_stack_execute (phpdbg_cmd.c:733)
==21921==    by 0x13BE476: phpdbg_interactive (phpdbg_prompt.c:1635)
==21921==    by 0x13AA2A3: main (phpdbg.c:2001)
==21921== 
==21921== Invalid read of size 1
==21921==    at 0x10FA538: zend_string_release (zend_string.h:289)
==21921==    by 0x10FA538: destroy_op_array (zend_opcode.c:399)
==21921==    by 0x13A1E45: php_phpdbg_destroy_file_source (phpdbg.c:131)
==21921==    by 0x1156179: zend_hash_destroy (zend_hash.c:1247)
==21921==    by 0x13AAF20: main (phpdbg.c:2159)
==21921==  Address 0x15b3aec5 is 5 bytes inside a block of size 32 free'd
==21921==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==21921==    by 0x13EFCDE: phpdbg_watch_efree (phpdbg_watch.c:1169)
==21921==    by 0x10B56DE: _efree (zend_alloc.c:2451)
==21921==    by 0x119F8DC: _str_dtor (zend_string.c:50)
==21921==    by 0x1156090: zend_hash_destroy (zend_hash.c:1236)
==21921==    by 0x11A0A52: zend_interned_strings_deactivate (zend_string.c:205)
==21921==    by 0x10102F9: php_request_shutdown (main.c:1925)
==21921==    by 0x13AA813: main (phpdbg.c:2098)
==21921==  Block was alloc'd at
==21921==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==21921==    by 0x10B6C44: __zend_malloc (zend_alloc.c:2835)
==21921==    by 0x10B53C4: _emalloc (zend_alloc.c:2436)
==21921==    by 0x1077617: zend_string_alloc (zend_string.h:134)
==21921==    by 0x1077617: zend_string_init (zend_string.h:170)
==21921==    by 0x1077617: lex_scan (zend_language_scanner.l:1870)
==21921==    by 0x10BF248: zendlex (zend_compile.c:1728)
==21921==    by 0x10648B3: zendparse (zend_language_parser.c:4222)
==21921==    by 0x1070182: zend_compile (zend_language_scanner.l:586)
==21921==    by 0x1070566: compile_file (zend_language_scanner.l:636)
==21921==    by 0xBA786F: phar_compile_file (phar.c:3333)
==21921==    by 0x13D4769: phpdbg_compile_file (phpdbg_list.c:257)
==21921==    by 0x13D4DA1: phpdbg_init_compile_file (phpdbg_list.c:305)
==21921==    by 0x13B7AA4: phpdbg_compile (phpdbg_prompt.c:600)
==21921== 

 

Generated at Thu, 17 Oct 2019 23:21:35 +0000 (2 days ago)

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