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

==30472== Syscall param writev(vector[...]) points to uninitialised byte(s)
==30472==    at 0xDF94CDB: writev (in /lib64/libc-2.12.so)
==30472==    by 0x1572D7D1: zend_file_cache_script_store (zend_file_cache.c:945)
==30472==    by 0x156F69DA: cache_script_in_shared_memory (ZendAccelerator.c:1584)
==30472==    by 0x156F932A: persistent_compile_file (ZendAccelerator.c:2069)
==30472==    by 0xF9A24F: zend_execute_scripts (zend.c:1631)
==30472==    by 0xE87FCD: php_execute_script (main.c:2609)
==30472==    by 0x1218B9A: do_cli (php_cli.c:992)
==30472==    by 0x121A658: main (php_cli.c:1384)
==30472==  Address 0x1ffeffbeb8 is on thread 1's stack
==30472==  in frame #1, created by zend_file_cache_script_store (zend_file_cache.c:882)
==30472== 

 

Generated at Tue, 05 Mar 2019 22:11:22 +0000 (12 days ago)

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