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

==373== Syscall param writev(vector[...]) points to uninitialised byte(s)
==373==    at 0xD7F4CDB: writev (in /lib64/libc-2.12.so)
==373==    by 0x151A71BB: zend_file_cache_script_store (zend_file_cache.c:923)
==373==    by 0x1517328E: cache_script_in_shared_memory (ZendAccelerator.c:1587)
==373==    by 0x15175D15: persistent_compile_file (ZendAccelerator.c:2087)
==373==    by 0xFE33D4: zend_execute_scripts (zend.c:1610)
==373==    by 0xED11E3: php_execute_script (main.c:2643)
==373==    by 0x122D2D1: do_cli (php_cli.c:997)
==373==    by 0x122ED8F: main (php_cli.c:1389)
==373==  Address 0x1ffeffbee8 is on thread 1's stack
==373==  in frame #1, created by zend_file_cache_script_store (zend_file_cache.c:860)
==373== 

 

Generated at Sat, 01 Dec 2018 10:41:11 +0000 (9 days ago)

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