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/run_001.phpt ('Test argv passing')

Script

1: <?php
2:
3: var_dump
($argc$argv);
4:

Report

==17763== Invalid read of size 1
==17763==    at 0x10DCF21: zend_string_release (zend_string.h:289)
==17763==    by 0x10DCF21: destroy_op_array (zend_opcode.c:399)
==17763==    by 0x1383EC7: php_phpdbg_destroy_file_source (phpdbg.c:131)
==17763==    by 0x1138A8D: zend_hash_destroy (zend_hash.c:1247)
==17763==    by 0x138CFA2: main (phpdbg.c:2159)
==17763==  Address 0x15b3b1a5 is 5 bytes inside a block of size 32 free'd
==17763==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==17763==    by 0x13D1BF7: phpdbg_watch_efree (phpdbg_watch.c:1169)
==17763==    by 0x109814C: _efree (zend_alloc.c:2446)
==17763==    by 0x1181F3A: _str_dtor (zend_string.c:50)
==17763==    by 0x11389A4: zend_hash_destroy (zend_hash.c:1236)
==17763==    by 0x11830B0: zend_interned_strings_deactivate (zend_string.c:205)
==17763==    by 0xFF311B: php_request_shutdown (main.c:1925)
==17763==    by 0x138C895: main (phpdbg.c:2098)
==17763==  Block was alloc'd at
==17763==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==17763==    by 0x10996B2: __zend_malloc (zend_alloc.c:2830)
==17763==    by 0x1097E32: _emalloc (zend_alloc.c:2431)
==17763==    by 0x1060786: zend_string_alloc (zend_string.h:134)
==17763==    by 0x1060786: zend_string_init (zend_string.h:170)
==17763==    by 0x1060786: lex_scan (zend_language_scanner.l:1869)
==17763==    by 0x10A1CB6: zendlex (zend_compile.c:1728)
==17763==    by 0x1047363: zendparse (zend_language_parser.c:4914)
==17763==    by 0x1052C07: zend_compile (zend_language_scanner.l:585)
==17763==    by 0x1052FEB: compile_file (zend_language_scanner.l:635)
==17763==    by 0xB8BBE9: phar_compile_file (phar.c:3332)
==17763==    by 0x13B659C: phpdbg_compile_file (phpdbg_list.c:274)
==17763==    by 0x13B6ADB: phpdbg_init_compile_file (phpdbg_list.c:317)
==17763==    by 0x1399B26: phpdbg_compile (phpdbg_prompt.c:600)
==17763== 
==17763== Invalid write of size 1
==17763==    at 0x139BD89: phpdbg_do_run (phpdbg_prompt.c:904)
==17763==    by 0x13C556A: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==17763==    by 0x13C5989: phpdbg_stack_execute (phpdbg_cmd.c:733)
==17763==    by 0x13A053D: phpdbg_interactive (phpdbg_prompt.c:1631)
==17763==    by 0x138C325: main (phpdbg.c:2001)
==17763==  Address 0x165a5931 is 0 bytes after a block of size 1 alloc'd
==17763==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==17763==    by 0x10996B2: __zend_malloc (zend_alloc.c:2830)
==17763==    by 0x1097E32: _emalloc (zend_alloc.c:2431)
==17763==    by 0x139B6FB: phpdbg_do_run (phpdbg_prompt.c:841)
==17763==    by 0x13C556A: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==17763==    by 0x13C5989: phpdbg_stack_execute (phpdbg_cmd.c:733)
==17763==    by 0x13A053D: phpdbg_interactive (phpdbg_prompt.c:1631)
==17763==    by 0x138C325: main (phpdbg.c:2001)
==17763== 
==17763== Conditional jump or move depends on uninitialised value(s)
==17763==    at 0x4C2A868: __strlen_sse42 (vg_replace_strmem.c:462)
==17763==    by 0x1013EB5: php_build_argv (php_variables.c:573)
==17763==    by 0x139BF5D: phpdbg_do_run (phpdbg_prompt.c:921)
==17763==    by 0x13C556A: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==17763==    by 0x13C5989: phpdbg_stack_execute (phpdbg_cmd.c:733)
==17763==    by 0x13A053D: phpdbg_interactive (phpdbg_prompt.c:1631)
==17763==    by 0x138C325: main (phpdbg.c:2001)
==17763== 
==17763== Invalid read of size 4
==17763==    at 0xA493562: kpufhndl0 (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17763==    by 0xA499952: kpufhndl (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17763==    by 0xA3635C4: OCIHandleFree (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17763==    by 0xAF989C: zm_shutdown_pdo_oci (pdo_oci.c:145)
==17763==    by 0x1118221: module_destructor (zend_API.c:2564)
==17763==    by 0x110233B: module_destructor_zval (zend.c:690)
==17763==    by 0x113B29A: _zend_hash_del_el_ex (zend_hash.c:998)
==17763==    by 0x113B29A: _zend_hash_del_el (zend_hash.c:1021)
==17763==    by 0x113B29A: zend_hash_graceful_reverse_destroy (zend_hash.c:1477)
==17763==    by 0x11137A1: zend_destroy_modules (zend_API.c:2008)
==17763==    by 0x1102B39: zend_shutdown (zend.c:905)
==17763==    by 0xFF4AE2: php_module_shutdown (main.c:2453)
==17763==    by 0x138D01C: main (phpdbg.c:2162)
==17763==  Address 0x15ae96a0 is 0 bytes inside a block of size 43,632 free'd
==17763==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==17763==    by 0xA789CDE: ssMemFree (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17763==    by 0xA84FED9: sktsfFree (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17763==    by 0xB1DFF6B: kpummefree (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17763==    by 0xA4996E6: kpufhndl0 (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17763==    by 0xA499952: kpufhndl (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17763==    by 0xA3635C4: OCIHandleFree (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17763==    by 0xAF989C: zm_shutdown_pdo_oci (pdo_oci.c:145)
==17763==    by 0x1118221: module_destructor (zend_API.c:2564)
==17763==    by 0x110233B: module_destructor_zval (zend.c:690)
==17763==    by 0x113B29A: _zend_hash_del_el_ex (zend_hash.c:998)
==17763==    by 0x113B29A: _zend_hash_del_el (zend_hash.c:1021)
==17763==    by 0x113B29A: zend_hash_graceful_reverse_destroy (zend_hash.c:1477)
==17763==    by 0x11137A1: zend_destroy_modules (zend_API.c:2008)
==17763==  Block was alloc'd at
==17763==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==17763==    by 0xA789CEC: ssMemMalloc (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17763==    by 0xA84FEEB: sktsfMalloc (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17763==    by 0xB1DFEFD: kpummealloc (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17763==    by 0xA4A3030: kpuinit0 (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17763==    by 0xA4A12FC: kpuenvcr (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17763==    by 0xA3634E9: OCIEnvCreate (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17763==    by 0xAF980A: zm_activate_pdo_oci (pdo_oci.c:123)
==17763==    by 0x11183E2: zend_activate_modules (zend_API.c:2600)
==17763==    by 0xFF233E: php_request_startup (main.c:1694)
==17763==    by 0x138B4DF: main (phpdbg.c:1806)
==17763== 
==17763== Invalid read of size 1
==17763==    at 0x10DCF21: zend_string_release (zend_string.h:289)
==17763==    by 0x10DCF21: destroy_op_array (zend_opcode.c:399)
==17763==    by 0x138492E: zm_shutdown_phpdbg (phpdbg.c:268)
==17763==    by 0x1118221: module_destructor (zend_API.c:2564)
==17763==    by 0x110233B: module_destructor_zval (zend.c:690)
==17763==    by 0x113B29A: _zend_hash_del_el_ex (zend_hash.c:998)
==17763==    by 0x113B29A: _zend_hash_del_el (zend_hash.c:1021)
==17763==    by 0x113B29A: zend_hash_graceful_reverse_destroy (zend_hash.c:1477)
==17763==    by 0x11137A1: zend_destroy_modules (zend_API.c:2008)
==17763==    by 0x1102B39: zend_shutdown (zend.c:905)
==17763==    by 0xFF4AE2: php_module_shutdown (main.c:2453)
==17763==    by 0x138D01C: main (phpdbg.c:2162)
==17763==  Address 0x1595b125 is 5 bytes inside a block of size 32 free'd
==17763==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==17763==    by 0x13D1BF7: phpdbg_watch_efree (phpdbg_watch.c:1169)
==17763==    by 0x109814C: _efree (zend_alloc.c:2446)
==17763==    by 0x1181F3A: _str_dtor (zend_string.c:50)
==17763==    by 0x11389A4: zend_hash_destroy (zend_hash.c:1236)
==17763==    by 0x11830B0: zend_interned_strings_deactivate (zend_string.c:205)
==17763==    by 0xFF311B: php_request_shutdown (main.c:1925)
==17763==    by 0x138C895: main (phpdbg.c:2098)
==17763==  Block was alloc'd at
==17763==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==17763==    by 0x10996B2: __zend_malloc (zend_alloc.c:2830)
==17763==    by 0x1097E32: _emalloc (zend_alloc.c:2431)
==17763==    by 0x1060786: zend_string_alloc (zend_string.h:134)
==17763==    by 0x1060786: zend_string_init (zend_string.h:170)
==17763==    by 0x1060786: lex_scan (zend_language_scanner.l:1869)
==17763==    by 0x10A1CB6: zendlex (zend_compile.c:1728)
==17763==    by 0x1047363: zendparse (zend_language_parser.c:4914)
==17763==    by 0x1052C07: zend_compile (zend_language_scanner.l:585)
==17763==    by 0x1052FEB: compile_file (zend_language_scanner.l:635)
==17763==    by 0xB8BBE9: phar_compile_file (phar.c:3332)
==17763==    by 0x13B659C: phpdbg_compile_file (phpdbg_list.c:274)
==17763==    by 0x13B6ADB: phpdbg_init_compile_file (phpdbg_list.c:317)
==17763==    by 0x1399B26: phpdbg_compile (phpdbg_prompt.c:600)
==17763== 

 

Generated at Wed, 13 Mar 2019 11:02:43 +0000 (5 days ago)

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