PHP  
 PHP_7_2
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

==8968== Syscall param writev(vector[...]) points to uninitialised byte(s)
==8968==    at 0xD15FCDB: writev (in /lib64/libc-2.12.so)
==8968==    by 0x14D0BF4E: zend_file_cache_script_store (zend_file_cache.c:881)
==8968==    by 0x14CE6408: cache_script_in_shared_memory (ZendAccelerator.c:1476)
==8968==    by 0x14CE90A6: persistent_compile_file (ZendAccelerator.c:2021)
==8968==    by 0x1120509: zend_execute_scripts (zend.c:1492)
==8968==    by 0x1010252: php_execute_script (main.c:2599)
==8968==    by 0x13A26F1: do_cli (php_cli.c:1011)
==8968==    by 0x13A417B: main (php_cli.c:1403)
==8968==  Address 0x1ffeffbb78 is on thread 1's stack
==8968==  in frame #1, created by zend_file_cache_script_store (zend_file_cache.c:814)
==8968== 

 

Generated at Fri, 22 May 2020 15:51:44 +0000 (2 days ago)

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