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_002.phpt ('Stdin and escaped args being passed to run command')

Script

1: <?php
2:
3: var_dump
($argv);
4:
var_dump(stream_get_contents(STDIN));
5:
6: echo 
"ok\n";
7:

Report

==17965== Invalid read of size 1
==17965==    at 0x10BB0F1: zend_string_release (zend_string.h:289)
==17965==    by 0x10BB0F1: destroy_op_array (zend_opcode.c:399)
==17965==    by 0x13411E3: php_phpdbg_destroy_file_source (phpdbg.c:131)
==17965==    by 0x1116686: zend_hash_destroy (zend_hash.c:1245)
==17965==    by 0x134A36A: main (phpdbg.c:2154)
==17965==  Address 0x14f17995 is 5 bytes inside a block of size 32 free'd
==17965==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==17965==    by 0x138DE01: phpdbg_watch_efree (phpdbg_watch.c:1169)
==17965==    by 0x10794A5: _efree (zend_alloc.c:2444)
==17965==    by 0x115ED9B: _str_dtor (zend_string.c:50)
==17965==    by 0x111659D: zend_hash_destroy (zend_hash.c:1234)
==17965==    by 0x115FF3F: zend_interned_strings_deactivate (zend_string.c:199)
==17965==    by 0xFD2361: php_request_shutdown (main.c:1925)
==17965==    by 0x1349D19: main (phpdbg.c:2093)
==17965==  Block was alloc'd at
==17965==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==17965==    by 0x107AA87: __zend_malloc (zend_alloc.c:2829)
==17965==    by 0x1079182: _emalloc (zend_alloc.c:2429)
==17965==    by 0x1040B6A: zend_string_alloc (zend_string.h:134)
==17965==    by 0x1040B6A: zend_string_init (zend_string.h:170)
==17965==    by 0x1040B6A: lex_scan (zend_language_scanner.l:1869)
==17965==    by 0x1082C7E: zendlex (zend_compile.c:1721)
==17965==    by 0x1026F87: zendparse (zend_language_parser.c:4914)
==17965==    by 0x1032D88: zend_compile (zend_language_scanner.l:585)
==17965==    by 0x1033164: compile_file (zend_language_scanner.l:635)
==17965==    by 0xB7898A: phar_compile_file (phar.c:3320)
==17965==    by 0x1373139: phpdbg_compile_file (phpdbg_list.c:274)
==17965==    by 0x137364E: phpdbg_init_compile_file (phpdbg_list.c:317)
==17965==    by 0x1356EED: phpdbg_compile (phpdbg_prompt.c:600)
==17965== 
==17965== Invalid read of size 4
==17965==    at 0xA0EA562: kpufhndl0 (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17965==    by 0xA0F0952: kpufhndl (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17965==    by 0x9FBA5C4: OCIHandleFree (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17965==    by 0xAE72EC: zm_shutdown_pdo_oci (pdo_oci.c:140)
==17965==    by 0x10F5CBB: module_destructor (zend_API.c:2564)
==17965==    by 0x10DFC11: module_destructor_zval (zend.c:690)
==17965==    by 0x1118EE4: _zend_hash_del_el_ex (zend_hash.c:996)
==17965==    by 0x1118EE4: _zend_hash_del_el (zend_hash.c:1019)
==17965==    by 0x1118EE4: zend_hash_graceful_reverse_destroy (zend_hash.c:1475)
==17965==    by 0x10F11B3: zend_destroy_modules (zend_API.c:2008)
==17965==    by 0x10E0400: zend_shutdown (zend.c:905)
==17965==    by 0xFD3CC9: php_module_shutdown (main.c:2453)
==17965==    by 0x134A3E2: main (phpdbg.c:2157)
==17965==  Address 0x14ec5e10 is 0 bytes inside a block of size 43,632 free'd
==17965==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==17965==    by 0xA3E0CDE: ssMemFree (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17965==    by 0xA4A6ED9: sktsfFree (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17965==    by 0xAE36F6B: kpummefree (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17965==    by 0xA0F06E6: kpufhndl0 (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17965==    by 0xA0F0952: kpufhndl (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17965==    by 0x9FBA5C4: OCIHandleFree (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17965==    by 0xAE72EC: zm_shutdown_pdo_oci (pdo_oci.c:140)
==17965==    by 0x10F5CBB: module_destructor (zend_API.c:2564)
==17965==    by 0x10DFC11: module_destructor_zval (zend.c:690)
==17965==    by 0x1118EE4: _zend_hash_del_el_ex (zend_hash.c:996)
==17965==    by 0x1118EE4: _zend_hash_del_el (zend_hash.c:1019)
==17965==    by 0x1118EE4: zend_hash_graceful_reverse_destroy (zend_hash.c:1475)
==17965==    by 0x10F11B3: zend_destroy_modules (zend_API.c:2008)
==17965==  Block was alloc'd at
==17965==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==17965==    by 0xA3E0CEC: ssMemMalloc (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17965==    by 0xA4A6EEB: sktsfMalloc (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17965==    by 0xAE36EFD: kpummealloc (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17965==    by 0xA0FA030: kpuinit0 (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17965==    by 0xA0F82FC: kpuenvcr (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17965==    by 0x9FBA4E9: OCIEnvCreate (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==17965==    by 0xAE7260: zm_activate_pdo_oci (pdo_oci.c:118)
==17965==    by 0x10F5E78: zend_activate_modules (zend_API.c:2600)
==17965==    by 0xFD159B: php_request_startup (main.c:1694)
==17965==    by 0x1348990: main (phpdbg.c:1806)
==17965== 
==17965== Invalid read of size 1
==17965==    at 0x10BB0F1: zend_string_release (zend_string.h:289)
==17965==    by 0x10BB0F1: destroy_op_array (zend_opcode.c:399)
==17965==    by 0x1341C47: zm_shutdown_phpdbg (phpdbg.c:268)
==17965==    by 0x10F5CBB: module_destructor (zend_API.c:2564)
==17965==    by 0x10DFC11: module_destructor_zval (zend.c:690)
==17965==    by 0x1118EE4: _zend_hash_del_el_ex (zend_hash.c:996)
==17965==    by 0x1118EE4: _zend_hash_del_el (zend_hash.c:1019)
==17965==    by 0x1118EE4: zend_hash_graceful_reverse_destroy (zend_hash.c:1475)
==17965==    by 0x10F11B3: zend_destroy_modules (zend_API.c:2008)
==17965==    by 0x10E0400: zend_shutdown (zend.c:905)
==17965==    by 0xFD3CC9: php_module_shutdown (main.c:2453)
==17965==    by 0x134A3E2: main (phpdbg.c:2157)
==17965==  Address 0x163e2135 is 5 bytes inside a block of size 32 free'd
==17965==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==17965==    by 0x138DE01: phpdbg_watch_efree (phpdbg_watch.c:1169)
==17965==    by 0x10794A5: _efree (zend_alloc.c:2444)
==17965==    by 0x115ED9B: _str_dtor (zend_string.c:50)
==17965==    by 0x111659D: zend_hash_destroy (zend_hash.c:1234)
==17965==    by 0x115FF3F: zend_interned_strings_deactivate (zend_string.c:199)
==17965==    by 0xFD2361: php_request_shutdown (main.c:1925)
==17965==    by 0x1349D19: main (phpdbg.c:2093)
==17965==  Block was alloc'd at
==17965==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==17965==    by 0x107AA87: __zend_malloc (zend_alloc.c:2829)
==17965==    by 0x1079182: _emalloc (zend_alloc.c:2429)
==17965==    by 0x1040B6A: zend_string_alloc (zend_string.h:134)
==17965==    by 0x1040B6A: zend_string_init (zend_string.h:170)
==17965==    by 0x1040B6A: lex_scan (zend_language_scanner.l:1869)
==17965==    by 0x1082C7E: zendlex (zend_compile.c:1721)
==17965==    by 0x1026F87: zendparse (zend_language_parser.c:4914)
==17965==    by 0x1032D88: zend_compile (zend_language_scanner.l:585)
==17965==    by 0x1033164: compile_file (zend_language_scanner.l:635)
==17965==    by 0xB7898A: phar_compile_file (phar.c:3320)
==17965==    by 0x1373139: phpdbg_compile_file (phpdbg_list.c:274)
==17965==    by 0x137364E: phpdbg_init_compile_file (phpdbg_list.c:317)
==17965==    by 0x1356EED: phpdbg_compile (phpdbg_prompt.c:600)
==17965== 

 

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

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