PHP  
 PHP_HEAD
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Valgrind Report for ext/opcache/tests/bug76275.phpt ('Bug #76275: Assertion failure in file cache when unserializing empty try_catch_array')

Script

1: <?php
2:
if (PHP_VERSION_ID >= 70000) {
3:     echo 
"Done";
4:     return;
5: }
6: if (!
is_callable('random_bytes')) {
7:     try {
8:     } catch (
com_exception $e) {
9:     }
10:     function 
random_bytes($length)
11:     {
12:         throw new 
Exception(
13:             
'There is no suitable CSPRNG installed on your system'
14:         
);
15:         return 
'';
16:     }
17: }
18:

Report

==16167== Syscall param writev(vector[...]) points to uninitialised byte(s)
==16167==    at 0xD1D7CDB: writev (in /lib64/libc-2.12.so)
==16167==    by 0x14126606: zend_file_cache_script_store (zend_file_cache.c:902)
==16167==    by 0x140FB65B: cache_script_in_shared_memory (ZendAccelerator.c:1589)
==16167==    by 0x140FE0A5: persistent_compile_file (ZendAccelerator.c:2091)
==16167==    by 0x117AD6D: zend_execute_scripts (zend.c:1556)
==16167==    by 0x1069796: php_execute_script (main.c:2642)
==16167==    by 0x13C71A6: do_cli (php_cli.c:997)
==16167==    by 0x13C8C64: main (php_cli.c:1390)
==16167==  Address 0x1ffeffbf08 is on thread 1's stack
==16167==  in frame #1, created by zend_file_cache_script_store (zend_file_cache.c:839)
==16167== 

 

Generated at Sat, 15 Sep 2018 00:36:54 +0000 (11 days ago)

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