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/issue0149.phpt ('ISSUE #149 (Phar mount points not working this OPcache enabled)')

Script

1: <?php
2: $stub 
"<?php header('Content-Type: text/plain;');
3: Phar::mount('this.file', '"
__FILE__ "');
4: echo 'OK\n';
5: __HALT_COMPILER(); ?>"
;
6:
$p = new Phar(__DIR__ '/issue0149.phar.php'0'this');
7:
$p['index.php'] = "";  # A Phar must have at least one file, hence this dummy
8:
$p->setStub($stub);
9: unset(
$p);
10:
11: include 
"php_cli_server.inc";
12:
php_cli_server_start('-d opcache.enable=1 -d opcache.enable_cli=1 -d extension=phar.'.PHP_SHLIB_SUFFIX);
13: echo 
file_get_contents('http://' PHP_CLI_SERVER_ADDRESS '/issue0149.phar.php');
14: echo 
file_get_contents('http://' PHP_CLI_SERVER_ADDRESS '/issue0149.phar.php');
15: echo 
file_get_contents('http://' PHP_CLI_SERVER_ADDRESS '/issue0149.phar.php');
16:
?>
17:

Report

==12326== Jump to the invalid address stated on the next line
==12326==    at 0x4FE: ???
==12326==    by 0x40056AF: open_verify (in /lib64/ld-2.12.so)
==12326==    by 0x4005D5A: open_path (in /lib64/ld-2.12.so)
==12326==    by 0x4008973: _dl_map_object (in /lib64/ld-2.12.so)
==12326==    by 0x400C701: openaux (in /lib64/ld-2.12.so)
==12326==    by 0x400E5E5: _dl_catch_error (in /lib64/ld-2.12.so)
==12326==    by 0x400CDE4: _dl_map_object_deps (in /lib64/ld-2.12.so)
==12326==    by 0x40034C7: dl_main (in /lib64/ld-2.12.so)
==12326==    by 0x401640D: _dl_sysdep_start (in /lib64/ld-2.12.so)
==12326==    by 0x40014D3: _dl_start (in /lib64/ld-2.12.so)
==12326==    by 0x4000B37: ??? (in /lib64/ld-2.12.so)
==12326==    by 0xA: ???
==12326==  Address 0x4fe is not stack'd, malloc'd or (recently) free'd
==12326== 
==12326== 
==12326== Process terminating with default action of signal 11 (SIGSEGV)
==12326==  Bad permissions for mapped region at address 0x4FE
==12326==    at 0x4FE: ???
==12326==    by 0x40056AF: open_verify (in /lib64/ld-2.12.so)
==12326==    by 0x4005D5A: open_path (in /lib64/ld-2.12.so)
==12326==    by 0x4008973: _dl_map_object (in /lib64/ld-2.12.so)
==12326==    by 0x400C701: openaux (in /lib64/ld-2.12.so)
==12326==    by 0x400E5E5: _dl_catch_error (in /lib64/ld-2.12.so)
==12326==    by 0x400CDE4: _dl_map_object_deps (in /lib64/ld-2.12.so)
==12326==    by 0x40034C7: dl_main (in /lib64/ld-2.12.so)
==12326==    by 0x401640D: _dl_sysdep_start (in /lib64/ld-2.12.so)
==12326==    by 0x40014D3: _dl_start (in /lib64/ld-2.12.so)
==12326==    by 0x4000B37: ??? (in /lib64/ld-2.12.so)
==12326==    by 0xA: ???

 

Generated at Mon, 15 Jan 2018 23:48:43 +0000 (6 days ago)

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