Bug #76094 [NEW]: Access violation when using opcache
From: mlocati at gmail dot com
Operating system: Windows 10
PHP version: 7.2.3
Package: opcache
Bug Type: Bug
Bug description:Access violation when using opcache
Description:
------------
We have an access violation issue when using opcache.
I can't replicate it with a simple script, but here's a list of steps to
reproduce the crash:
1. Install and configure MySQL, and create an empty database
2. Download
https://github.com/concrete5/concrete5-legacy/archive/master.zip
3. Extract it (eg to C:\bug)
4. Create a file named C:\bug\bug.ini file with this contents:
date.timezone=UTC
extension_dir=ext
extension=mysqli
extension=gd2
zend_extension=opcache
opcache.enable=1
5. Launch this command:
php -c C:\bug\bug.ini -S 127.0.0.1:2888 -t C:\bug\web
6. Browse to http://127.0.0.1:2888 and install concrete5 (hint:
for a
faster setup, choose "Empty Site" in the "Sample Content" section)
7. Browse to http://127.0.0.1:2888/index.php/dashboard/files/search/
8. Hit the the "Browse..." button
9. Specify the location of a PNG or JPG file (for instance you can
download and use
https://documentation.concrete5.org/packages/concrete5_theme/themes/concrete5/images/logo.png
)
10. Hit "Upload File"
11. CRASH!
I have a full Windows dump of the crash (created following the
instructions at
https://msdn.microsoft.com/it-it/library/windows/desktop/bb787181%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
) if anyone needs it.
Windows version: 10.0.16299.248 (Fall Creators Update with latest
patches)
PHP version: PHP 7.2.3 - ZTS MSVC15 (Visual C++ 2017) x86
Actual result:
--------------
Unhandled exception in 0x14F7EFB2 (php7ts.dll) in php.exe: 0xC0000005:
access violation while reading 0xF4C3C01A.
> php7ts.dll!add_next_index_stringl(_zval_struct * arg, const char *
str, unsigned int length) Row 1584
php7ts.dll!php_pcre_match_impl(pcre_cache_entry * pce, char * subject,
int subject_len, _zval_struct * return_value, _zval_struct * subpats,
int global, int use_flags, int flags, int start_offset) Row 1061
php7ts.dll!php_do_pcre_match(_zend_execute_data * execute_data,
_zval_struct * return_value, int global) Row 734
php7ts.dll!zif_preg_match(_zend_execute_data * execute_data,
_zval_struct * return_value) Row 1147
php7ts.dll!ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER(_zend_execute_data *
execute_data) Row 627
php7ts.dll!execute_ex(_zend_execute_data * ex) Row 59723
php7ts.dll!zend_execute(_zend_op_array * op_array, _zval_struct *
return_value) Row 63761
php7ts.dll!zend_execute_scripts(int type, _zval_struct * retval, int
file_count, ...) Row 1496
php7ts.dll!php_execute_script(_zend_file_handle * primary_file) Row
2590
php.exe!php_cli_server_dispatch_script(php_cli_server * server,
php_cli_server_client * client) Row 1987
php.exe!php_cli_server_dispatch(php_cli_server * server,
php_cli_server_client * client) Row 2162
php.exe!php_cli_server_recv_event_read_request(php_cli_server *
server, php_cli_server_client * client) Row 2382
php.exe!php_cli_server_do_event_for_each_fd_callback(void * _params,
unsigned int fd, int event) Row 2460
[Frame inline]
php.exe!php_cli_server_poller_iter_on_active(php_cli_server_poller *)
[Frame inline]
php.exe!php_cli_server_do_event_for_each_fd(php_cli_server *)
php.exe!php_cli_server_do_event_loop(php_cli_server *) Row 2488
php.exe!do_cli_server(int argc, char * * argv) Row 2611
php.exe!main(int argc, char * * argv) Row 1407
--
Edit bug report at https://bugs.php.net/bug.php?id=76094&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76094&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76094&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76094&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76094&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76094&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76094&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76094&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76094&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76094&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76094&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76094&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76094&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76094&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76094&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76094&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76094&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76094&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76094&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76094&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76094&r=mysqlcfg
Thread (2 messages)
- mlocati at gmail dot com