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

==8938== Syscall param writev(vector[...]) points to uninitialised byte(s)
==8938==    at 0xD586CDB: writev (in /lib64/libc-2.12.so)
==8938==    by 0x14F325C7: zend_file_cache_script_store (zend_file_cache.c:880)
==8938==    by 0x14F0AA23: cache_script_in_shared_memory (ZendAccelerator.c:1613)
==8938==    by 0x14F0D778: persistent_compile_file (ZendAccelerator.c:2167)
==8938==    by 0x1190308: zend_execute_scripts (zend.c:1562)
==8938==    by 0x107C733: php_execute_script (main.c:2637)
==8938==    by 0x13DD66B: do_cli (php_cli.c:1000)
==8938==    by 0x13DF1BD: main (php_cli.c:1396)
==8938==  Address 0x1ffeffbaf8 is on thread 1's stack
==8938==  in frame #1, created by zend_file_cache_script_store (zend_file_cache.c:817)
==8938== 

 

Generated at Fri, 26 Nov 2021 01:14:57 +0000 (4 days ago)

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