From:             maxsem dot wiki at gmail dot com
Operating system: Debian 10
PHP version:      Next Major Version
Package:          Testing related
Bug Type:         Bug
Bug description:Valgrind errors during PHP initialization

Description:
------------
Running php compiled from git master, revision
4e69970fb746970655a865cee116c91b7b09d36b

$ valgrind php -r 'echo "foo";'
==17149== Memcheck, a memory error detector
==17149== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et
al.
==17149== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright
info
==17149== Command: php -r echo\ "foo";
==17149== 
==17149== Conditional jump or move depends on uninitialised value(s)
==17149==    at 0x70DEB4: zend_string_equal_val (zend_string.c:403)
==17149==    by 0x6E3928: zend_string_equal_content (zend_string.h:310)
==17149==    by 0x6E5BDE: zend_hash_find_bucket (zend_hash.c:644)
==17149==    by 0x6EAE2D: zend_hash_find (zend_hash.c:2220)
==17149==    by 0x6523CB: cfg_get_entry_ex (php_ini.c:900)
==17149==    by 0x6470B3: php_get_configuration_directive_for_zend
(main.c:1589)
==17149==    by 0x6D24E1: zend_get_configuration_directive
(zend.c:1246)
==17149==    by 0x6F77BF: zend_register_ini_entries (zend_ini.c:245)
==17149==    by 0x64843A: php_module_startup (main.c:2239)
==17149==    by 0x7A38FF: php_cli_startup (php_cli.c:402)
==17149==    by 0x7A562A: main (php_cli.c:1318)
==17149== 
==17149== Conditional jump or move depends on uninitialised value(s)
==17149==    at 0x70DEB4: zend_string_equal_val (zend_string.c:403)
==17149==    by 0x70D2FB: zend_string_equal_content (zend_string.h:310)
==17149==    by 0x70D962: zend_interned_string_ht_lookup
(zend_string.c:154)
==17149==    by 0x70DA7A: zend_new_interned_string_permanent
(zend_string.c:194)
==17149==    by 0x6F7829: zend_register_ini_entries (zend_ini.c:248)
==17149==    by 0x64843A: php_module_startup (main.c:2239)
==17149==    by 0x7A38FF: php_cli_startup (php_cli.c:402)
==17149==    by 0x7A562A: main (php_cli.c:1318)
==17149== 
==17149== Conditional jump or move depends on uninitialised value(s)
==17149==    at 0x70DEB4: zend_string_equal_val (zend_string.c:403)
==17149==    by 0x6E3928: zend_string_equal_content (zend_string.h:310)
==17149==    by 0x6E818F: zend_hash_del (zend_hash.c:1361)
==17149==    by 0x6E0CE7: zend_declare_typed_property (zend_API.c:3588)
==17149==    by 0x6E1600: zend_declare_property_ex (zend_API.c:3775)
==17149==    by 0x6E1665: zend_declare_property (zend_API.c:3782)
==17149==    by 0x6E1761: zend_declare_property_long (zend_API.c:3811)
==17149==    by 0x3F6C48: zm_startup_dom (php_dom.c:589)
==17149==    by 0x6DA6F8: zend_startup_module_ex (zend_API.c:1751)
==17149==    by 0x6DA753: zend_startup_module_zval (zend_API.c:1766)
==17149==    by 0x6E992C: zend_hash_apply (zend_hash.c:1815)
==17149==    by 0x6DAD52: zend_startup_modules (zend_API.c:1877)
==17149== 
foo==17149== 
==17149== HEAP SUMMARY:
==17149==     in use at exit: 1,094 bytes in 20 blocks
==17149==   total heap usage: 12,317 allocs, 12,297 frees, 1,763,396
bytes allocated
==17149== 
==17149== LEAK SUMMARY:
==17149==    definitely lost: 0 bytes in 0 blocks
==17149==    indirectly lost: 0 bytes in 0 blocks
==17149==      possibly lost: 0 bytes in 0 blocks
==17149==    still reachable: 1,094 bytes in 20 blocks
==17149==         suppressed: 0 bytes in 0 blocks
==17149== Rerun with --leak-check=full to see details of leaked memory
==17149== 
==17149== For counts of detected and suppressed errors, rerun with: -v
==17149== Use --track-origins=yes to see where uninitialised values come
from
==17149== ERROR SUMMARY: 262 errors from 3 contexts (suppressed: 0 from
0)



-- 
Edit bug report at https://bugs.php.net/bug.php?id=79457&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=79457&r=fixed
Fixed in release:                 
https://bugs.php.net/fix.php?id=79457&r=alreadyfixed
Need backtrace:                   
https://bugs.php.net/fix.php?id=79457&r=needtrace
Need Reproduce Script:            
https://bugs.php.net/fix.php?id=79457&r=needscript
Try newer version:                
https://bugs.php.net/fix.php?id=79457&r=oldversion
Not developer issue:              
https://bugs.php.net/fix.php?id=79457&r=support
Expected behavior:                
https://bugs.php.net/fix.php?id=79457&r=notwrong
Not enough info:                  
https://bugs.php.net/fix.php?id=79457&r=notenoughinfo
Submitted twice:                  
https://bugs.php.net/fix.php?id=79457&r=submittedtwice
register_globals:                 
https://bugs.php.net/fix.php?id=79457&r=globals
PHP version support discontinued: 
https://bugs.php.net/fix.php?id=79457&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=79457&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=79457&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=79457&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=79457&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=79457&r=nozend
MySQL Configuration Error:        
https://bugs.php.net/fix.php?id=79457&r=mysqlcfg

Reply via email to