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

==20338== Syscall param writev(vector[...]) points to uninitialised byte(s)
==20338==    at 0xCFCFCDB: writev (in /lib64/libc-2.12.so)
==20338==    by 0x1411BDB6: zend_file_cache_script_store (zend_file_cache.c:863)
==20338==    by 0x140F648F: cache_script_in_shared_memory (ZendAccelerator.c:1451)
==20338==    by 0x140F8E6B: persistent_compile_file (ZendAccelerator.c:1947)
==20338==    by 0x10EFF49: zend_execute_scripts (zend.c:1490)
==20338==    by 0xFE0F2D: php_execute_script (main.c:2590)
==20338==    by 0x1371993: do_cli (php_cli.c:1011)
==20338==    by 0x137341D: main (php_cli.c:1404)
==20338==  Address 0x1ffeffbf98 is on thread 1's stack
==20338==  in frame #1, created by zend_file_cache_script_store (zend_file_cache.c:796)
==20338== 

 

Generated at Thu, 20 Sep 2018 00:48:51 +0000 (6 days ago)

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