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

==32385== Invalid write of size 1
==32385==    at 0x1389111: phpdbg_do_run (phpdbg_prompt.c:904)
==32385==    by 0x13B2CD5: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==32385==    by 0x13B30F4: phpdbg_stack_execute (phpdbg_cmd.c:733)
==32385==    by 0x138D8C5: phpdbg_interactive (phpdbg_prompt.c:1631)
==32385==    by 0x13796AD: main (phpdbg.c:2001)
==32385==  Address 0x14f36371 is 0 bytes after a block of size 1 alloc'd
==32385==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==32385==    by 0x10872AE: __zend_malloc (zend_alloc.c:2829)
==32385==    by 0x1085A2E: _emalloc (zend_alloc.c:2429)
==32385==    by 0x1388A83: phpdbg_do_run (phpdbg_prompt.c:841)
==32385==    by 0x13B2CD5: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==32385==    by 0x13B30F4: phpdbg_stack_execute (phpdbg_cmd.c:733)
==32385==    by 0x138D8C5: phpdbg_interactive (phpdbg_prompt.c:1631)
==32385==    by 0x13796AD: main (phpdbg.c:2001)
==32385== 
==32385== Conditional jump or move depends on uninitialised value(s)
==32385==    at 0x4C2A868: __strlen_sse42 (vg_replace_strmem.c:462)
==32385==    by 0x10022E2: php_build_argv (php_variables.c:571)
==32385==    by 0x13892E5: phpdbg_do_run (phpdbg_prompt.c:921)
==32385==    by 0x13B2CD5: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==32385==    by 0x13B30F4: phpdbg_stack_execute (phpdbg_cmd.c:733)
==32385==    by 0x138D8C5: phpdbg_interactive (phpdbg_prompt.c:1631)
==32385==    by 0x13796AD: main (phpdbg.c:2001)
==32385== 
==32385== Invalid read of size 1
==32385==    at 0x10CA5C3: zend_string_release (zend_string.h:289)
==32385==    by 0x10CA5C3: destroy_op_array (zend_opcode.c:399)
==32385==    by 0x1371173: php_phpdbg_destroy_file_source (phpdbg.c:131)
==32385==    by 0x112624B: zend_hash_destroy (zend_hash.c:1245)
==32385==    by 0x137A32A: main (phpdbg.c:2159)
==32385==  Address 0x14f349d5 is 5 bytes inside a block of size 32 free'd
==32385==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==32385==    by 0x13BF3FD: phpdbg_watch_efree (phpdbg_watch.c:1169)
==32385==    by 0x1085D48: _efree (zend_alloc.c:2444)
==32385==    by 0x116F4DA: _str_dtor (zend_string.c:50)
==32385==    by 0x1126162: zend_hash_destroy (zend_hash.c:1234)
==32385==    by 0x1170650: zend_interned_strings_deactivate (zend_string.c:205)
==32385==    by 0xFE159B: php_request_shutdown (main.c:1925)
==32385==    by 0x1379C1D: main (phpdbg.c:2098)
==32385==  Block was alloc'd at
==32385==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==32385==    by 0x10872AE: __zend_malloc (zend_alloc.c:2829)
==32385==    by 0x1085A2E: _emalloc (zend_alloc.c:2429)
==32385==    by 0x104EB96: zend_string_alloc (zend_string.h:134)
==32385==    by 0x104EB96: zend_string_init (zend_string.h:170)
==32385==    by 0x104EB96: lex_scan (zend_language_scanner.l:1869)
==32385==    by 0x108F8DA: zendlex (zend_compile.c:1721)
==32385==    by 0x1035773: zendparse (zend_language_parser.c:4914)
==32385==    by 0x1041017: zend_compile (zend_language_scanner.l:585)
==32385==    by 0x10413FB: compile_file (zend_language_scanner.l:635)
==32385==    by 0xB77D7C: phar_compile_file (phar.c:3320)
==32385==    by 0x13A3A87: phpdbg_compile_file (phpdbg_list.c:274)
==32385==    by 0x13A3FC7: phpdbg_init_compile_file (phpdbg_list.c:317)
==32385==    by 0x1386EAE: phpdbg_compile (phpdbg_prompt.c:600)
==32385== 

 

Generated at Thu, 21 Jun 2018 04:44:28 +0000 (30 hours ago)

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