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

==15733== Invalid write of size 1
==15733==    at 0x13B9090: phpdbg_do_run (phpdbg_prompt.c:904)
==15733==    by 0x13E2BB9: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==15733==    by 0x13E2FD8: phpdbg_stack_execute (phpdbg_cmd.c:733)
==15733==    by 0x13BD7FF: phpdbg_interactive (phpdbg_prompt.c:1635)
==15733==    by 0x13A962C: main (phpdbg.c:2001)
==15733==  Address 0x15b43ae1 is 0 bytes after a block of size 1 alloc'd
==15733==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==15733==    by 0x10B5E3F: __zend_malloc (zend_alloc.c:2835)
==15733==    by 0x10B45BF: _emalloc (zend_alloc.c:2436)
==15733==    by 0x13B8A02: phpdbg_do_run (phpdbg_prompt.c:841)
==15733==    by 0x13E2BB9: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==15733==    by 0x13E2FD8: phpdbg_stack_execute (phpdbg_cmd.c:733)
==15733==    by 0x13BD7FF: phpdbg_interactive (phpdbg_prompt.c:1635)
==15733==    by 0x13A962C: main (phpdbg.c:2001)
==15733== 
==15733== Conditional jump or move depends on uninitialised value(s)
==15733==    at 0x4C2A868: __strlen_sse42 (vg_replace_strmem.c:462)
==15733==    by 0x1030213: php_build_argv (php_variables.c:577)
==15733==    by 0x13B9264: phpdbg_do_run (phpdbg_prompt.c:921)
==15733==    by 0x13E2BB9: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==15733==    by 0x13E2FD8: phpdbg_stack_execute (phpdbg_cmd.c:733)
==15733==    by 0x13BD7FF: phpdbg_interactive (phpdbg_prompt.c:1635)
==15733==    by 0x13A962C: main (phpdbg.c:2001)
==15733== 
==15733== Invalid read of size 1
==15733==    at 0x10F9733: zend_string_release (zend_string.h:289)
==15733==    by 0x10F9733: destroy_op_array (zend_opcode.c:399)
==15733==    by 0x13A11CE: php_phpdbg_destroy_file_source (phpdbg.c:131)
==15733==    by 0x1155374: zend_hash_destroy (zend_hash.c:1247)
==15733==    by 0x13AA2A9: main (phpdbg.c:2159)
==15733==  Address 0x15b41fa5 is 5 bytes inside a block of size 32 free'd
==15733==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==15733==    by 0x13EF067: phpdbg_watch_efree (phpdbg_watch.c:1169)
==15733==    by 0x10B48D9: _efree (zend_alloc.c:2451)
==15733==    by 0x119EC11: _str_dtor (zend_string.c:50)
==15733==    by 0x115528B: zend_hash_destroy (zend_hash.c:1236)
==15733==    by 0x119FD87: zend_interned_strings_deactivate (zend_string.c:205)
==15733==    by 0x100F436: php_request_shutdown (main.c:1925)
==15733==    by 0x13A9B9C: main (phpdbg.c:2098)
==15733==  Block was alloc'd at
==15733==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==15733==    by 0x10B5E3F: __zend_malloc (zend_alloc.c:2835)
==15733==    by 0x10B45BF: _emalloc (zend_alloc.c:2436)
==15733==    by 0x1076812: zend_string_alloc (zend_string.h:134)
==15733==    by 0x1076812: zend_string_init (zend_string.h:170)
==15733==    by 0x1076812: lex_scan (zend_language_scanner.l:1870)
==15733==    by 0x10BE443: zendlex (zend_compile.c:1728)
==15733==    by 0x1063AAE: zendparse (zend_language_parser.c:4222)
==15733==    by 0x106F37D: zend_compile (zend_language_scanner.l:586)
==15733==    by 0x106F761: compile_file (zend_language_scanner.l:636)
==15733==    by 0xBA64BF: phar_compile_file (phar.c:3333)
==15733==    by 0x13D3AF2: phpdbg_compile_file (phpdbg_list.c:257)
==15733==    by 0x13D412A: phpdbg_init_compile_file (phpdbg_list.c:305)
==15733==    by 0x13B6E2D: phpdbg_compile (phpdbg_prompt.c:600)
==15733== 

 

Generated at Fri, 16 Oct 2020 02:28:14 +0000 (5 days ago)

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