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

==25873== Syscall param writev(vector[...]) points to uninitialised byte(s)
==25873==    at 0xDA63CDB: writev (in /lib64/libc-2.12.so)
==25873==    by 0x14DE0483: zend_file_cache_script_store (zend_file_cache.c:966)
==25873==    by 0x14DA6BA8: cache_script_in_shared_memory (ZendAccelerator.c:1576)
==25873==    by 0x14DA9480: persistent_compile_file (ZendAccelerator.c:2061)
==25873==    by 0xF27260: zend_execute_scripts (zend.c:1623)
==25873==    by 0xE15279: php_execute_script (main.c:2650)
==25873==    by 0x119DB6F: do_cli (php_cli.c:985)
==25873==    by 0x119F611: main (php_cli.c:1375)
==25873==  Address 0x1ffeffbed8 is on thread 1's stack
==25873==  in frame #1, created by zend_file_cache_script_store (zend_file_cache.c:896)
==25873== 

 

Generated at Mon, 06 May 2019 17:58:35 +0000 (295 days ago)

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