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

==11589== Invalid read of size 1
==11589==    at 0x10C8EDC: zend_string_release (zend_string.h:289)
==11589==    by 0x10C8EDC: destroy_op_array (zend_opcode.c:399)
==11589==    by 0x136FA63: php_phpdbg_destroy_file_source (phpdbg.c:131)
==11589==    by 0x1124B3B: zend_hash_destroy (zend_hash.c:1245)
==11589==    by 0x1378C1A: main (phpdbg.c:2159)
==11589==  Address 0x14f34985 is 5 bytes inside a block of size 32 free'd
==11589==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==11589==    by 0x13BDCED: phpdbg_watch_efree (phpdbg_watch.c:1169)
==11589==    by 0x1084661: _efree (zend_alloc.c:2444)
==11589==    by 0x116DDCA: _str_dtor (zend_string.c:50)
==11589==    by 0x1124A52: zend_hash_destroy (zend_hash.c:1234)
==11589==    by 0x116EF40: zend_interned_strings_deactivate (zend_string.c:205)
==11589==    by 0xFDFEB4: php_request_shutdown (main.c:1925)
==11589==    by 0x137850D: main (phpdbg.c:2098)
==11589==  Block was alloc'd at
==11589==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==11589==    by 0x1085BC7: __zend_malloc (zend_alloc.c:2829)
==11589==    by 0x1084347: _emalloc (zend_alloc.c:2429)
==11589==    by 0x104D4AF: zend_string_alloc (zend_string.h:134)
==11589==    by 0x104D4AF: zend_string_init (zend_string.h:170)
==11589==    by 0x104D4AF: lex_scan (zend_language_scanner.l:1869)
==11589==    by 0x108E1F3: zendlex (zend_compile.c:1721)
==11589==    by 0x103408C: zendparse (zend_language_parser.c:4914)
==11589==    by 0x103F930: zend_compile (zend_language_scanner.l:585)
==11589==    by 0x103FD14: compile_file (zend_language_scanner.l:635)
==11589==    by 0xB78314: phar_compile_file (phar.c:3320)
==11589==    by 0x13A2377: phpdbg_compile_file (phpdbg_list.c:274)
==11589==    by 0x13A28B7: phpdbg_init_compile_file (phpdbg_list.c:317)
==11589==    by 0x138579E: phpdbg_compile (phpdbg_prompt.c:600)
==11589== 
==11589== Invalid read of size 4
==11589==    at 0xA304562: kpufhndl0 (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==11589==    by 0xA30A952: kpufhndl (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==11589==    by 0xA1D45C4: OCIHandleFree (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==11589==    by 0xAE6FA9: zm_shutdown_pdo_oci (pdo_oci.c:140)
==11589==    by 0x11042BE: module_destructor (zend_API.c:2564)
==11589==    by 0x10EE3A7: module_destructor_zval (zend.c:690)
==11589==    by 0x1127348: _zend_hash_del_el_ex (zend_hash.c:996)
==11589==    by 0x1127348: _zend_hash_del_el (zend_hash.c:1019)
==11589==    by 0x1127348: zend_hash_graceful_reverse_destroy (zend_hash.c:1475)
==11589==    by 0x10FF83E: zend_destroy_modules (zend_API.c:2008)
==11589==    by 0x10EEBA5: zend_shutdown (zend.c:905)
==11589==    by 0xFE1897: php_module_shutdown (main.c:2453)
==11589==    by 0x1378C94: main (phpdbg.c:2162)
==11589==  Address 0x14ee2e00 is 0 bytes inside a block of size 43,632 free'd
==11589==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==11589==    by 0xA5FACDE: ssMemFree (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==11589==    by 0xA6C0ED9: sktsfFree (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==11589==    by 0xB050F6B: kpummefree (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==11589==    by 0xA30A6E6: kpufhndl0 (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==11589==    by 0xA30A952: kpufhndl (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==11589==    by 0xA1D45C4: OCIHandleFree (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==11589==    by 0xAE6FA9: zm_shutdown_pdo_oci (pdo_oci.c:140)
==11589==    by 0x11042BE: module_destructor (zend_API.c:2564)
==11589==    by 0x10EE3A7: module_destructor_zval (zend.c:690)
==11589==    by 0x1127348: _zend_hash_del_el_ex (zend_hash.c:996)
==11589==    by 0x1127348: _zend_hash_del_el (zend_hash.c:1019)
==11589==    by 0x1127348: zend_hash_graceful_reverse_destroy (zend_hash.c:1475)
==11589==    by 0x10FF83E: zend_destroy_modules (zend_API.c:2008)
==11589==  Block was alloc'd at
==11589==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==11589==    by 0xA5FACEC: ssMemMalloc (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==11589==    by 0xA6C0EEB: sktsfMalloc (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==11589==    by 0xB050EFD: kpummealloc (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==11589==    by 0xA314030: kpuinit0 (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==11589==    by 0xA3122FC: kpuenvcr (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==11589==    by 0xA1D44E9: OCIEnvCreate (in /u01/app/oracle/product/11.2.0/xe/lib/libclntsh.so.11.1)
==11589==    by 0xAE6F17: zm_activate_pdo_oci (pdo_oci.c:118)
==11589==    by 0x110447F: zend_activate_modules (zend_API.c:2600)
==11589==    by 0xFDF0D7: php_request_startup (main.c:1694)
==11589==    by 0x1377157: main (phpdbg.c:1806)
==11589== 
==11589== Invalid read of size 1
==11589==    at 0x10C8EDC: zend_string_release (zend_string.h:289)
==11589==    by 0x10C8EDC: destroy_op_array (zend_opcode.c:399)
==11589==    by 0x13704CA: zm_shutdown_phpdbg (phpdbg.c:268)
==11589==    by 0x11042BE: module_destructor (zend_API.c:2564)
==11589==    by 0x10EE3A7: module_destructor_zval (zend.c:690)
==11589==    by 0x1127348: _zend_hash_del_el_ex (zend_hash.c:996)
==11589==    by 0x1127348: _zend_hash_del_el (zend_hash.c:1019)
==11589==    by 0x1127348: zend_hash_graceful_reverse_destroy (zend_hash.c:1475)
==11589==    by 0x10FF83E: zend_destroy_modules (zend_API.c:2008)
==11589==    by 0x10EEBA5: zend_shutdown (zend.c:905)
==11589==    by 0xFE1897: php_module_shutdown (main.c:2453)
==11589==    by 0x1378C94: main (phpdbg.c:2162)
==11589==  Address 0x163ff3e5 is 5 bytes inside a block of size 32 free'd
==11589==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==11589==    by 0x13BDCED: phpdbg_watch_efree (phpdbg_watch.c:1169)
==11589==    by 0x1084661: _efree (zend_alloc.c:2444)
==11589==    by 0x116DDCA: _str_dtor (zend_string.c:50)
==11589==    by 0x1124A52: zend_hash_destroy (zend_hash.c:1234)
==11589==    by 0x116EF40: zend_interned_strings_deactivate (zend_string.c:205)
==11589==    by 0xFDFEB4: php_request_shutdown (main.c:1925)
==11589==    by 0x137850D: main (phpdbg.c:2098)
==11589==  Block was alloc'd at
==11589==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==11589==    by 0x1085BC7: __zend_malloc (zend_alloc.c:2829)
==11589==    by 0x1084347: _emalloc (zend_alloc.c:2429)
==11589==    by 0x104D4AF: zend_string_alloc (zend_string.h:134)
==11589==    by 0x104D4AF: zend_string_init (zend_string.h:170)
==11589==    by 0x104D4AF: lex_scan (zend_language_scanner.l:1869)
==11589==    by 0x108E1F3: zendlex (zend_compile.c:1721)
==11589==    by 0x103408C: zendparse (zend_language_parser.c:4914)
==11589==    by 0x103F930: zend_compile (zend_language_scanner.l:585)
==11589==    by 0x103FD14: compile_file (zend_language_scanner.l:635)
==11589==    by 0xB78314: phar_compile_file (phar.c:3320)
==11589==    by 0x13A2377: phpdbg_compile_file (phpdbg_list.c:274)
==11589==    by 0x13A28B7: phpdbg_init_compile_file (phpdbg_list.c:317)
==11589==    by 0x138579E: phpdbg_compile (phpdbg_prompt.c:600)
==11589== 

 

Generated at Wed, 16 May 2018 17:38:03 +0000 (7 days ago)

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