PHP  
 PHP_7_1
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:
3:
if (PHP_VERSION_ID >= 70000) {
4:     echo 
"Done";
5:     return;
6: }
7:
8: if (!
is_callable('random_bytes')) {
9:     try {
10:     } catch (
com_exception $e) {
11:     }
12:
13:     function 
random_bytes($length)
14:     {
15:         throw new 
Exception(
16:             
'There is no suitable CSPRNG installed on your system'
17:         
);
18:         return 
'';
19:     }
20: }
21:

Report

==21033== Syscall param writev(vector[...]) points to uninitialised byte(s)
==21033==    at 0xD371CDB: writev (in /lib64/libc-2.12.so)
==21033==    by 0x14F16512: zend_file_cache_script_store (zend_file_cache.c:854)
==21033==    by 0x14EEFA6E: cache_script_in_shared_memory (ZendAccelerator.c:1408)
==21033==    by 0x14EF242E: persistent_compile_file (ZendAccelerator.c:1904)
==21033==    by 0xFF612D: zend_execute_scripts (zend.c:1476)
==21033==    by 0xEE987D: php_execute_script (main.c:2577)
==21033==    by 0x123EA50: do_cli (php_cli.c:993)
==21033==    by 0x12404E9: main (php_cli.c:1381)
==21033==  Address 0x1ffeffbfe8 is on thread 1's stack
==21033==  in frame #1, created by zend_file_cache_script_store (zend_file_cache.c:787)
==21033== 

 

Generated at Sat, 08 Dec 2018 23:47:55 +0000 (2 days ago)

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