Bug #74055 [Com]: Warning Internal error: wrong size calculation
[email protected] ("tom60 at op dot pl")
| Newsgroups | php.bugs |
|---|---|
| Message-ID | <[email protected]> |
Edit report at https://bugs.php.net/bug.php?id=74055&edit=1 ID: 74055 Comment by: tom60 at op dot pl Reported by: tom60 at op dot pl Summary: Warning Internal error: wrong size calculation Status: Open Type: Bug Package: opcache Operating System: Debian Jessie 64 bit PHP Version: 7.1.1 Block user comment: N Private report: N New Comment: The issue happens sporadically 3-10 times a day on our server, even after upgrading to PHP 7.1.3. Previous Comments: ------------------------------------------------------------------------ [2017-03-11 12:40:06] [email protected] Is this error reproducible reliably or does it happen sporadically? I was not able to reproduce the issue when running the provided files standalone. ------------------------------------------------------------------------ [2017-03-11 11:47:51] paul at totallytechy dot com Same as below, since upgrading from 7.0.x opcache: Sat Mar 11 11:46:45 2017 (3200): Warning Internal error: wrong size calculation: /var/www/redacted/includes/common.inc start=0x00007f7d55c9d440, end=0x00007f7d55d419c0, real=0x00007f7d55d419a0 64bit Amazon Linux 2016.09 v2.5.1 PHP 7.1.2-4+deb.sury.org~trusty+1 (cli) (built: Mar 2 2017 13:23:06) ( NTS ) [opcache] opcache.enable=1 opcache.dups_fix=1 opcache.enable_cli=1 opcache.memory_consumption=128 opcache.use_cwd=1 opcache.blacklist_filename=/etc/php/7.1/opcache-blacklist.txt opcache.error_log=/var/log/php/opcache.err.log opcache.log_verbosity_level=2 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=10000 opcache.revalidate_freq=0 ;opcache.revalidate_freq=5 opcache.fast_shutdown=1 opcache.validate_timestamps=1 opcache.revalidate_path=1 ------------------------------------------------------------------------ [2017-02-07 12:23:28] tom60 at op dot pl Description: ------------ After upgrading to PHP 7.1.1 from 7.0.13 we started seeing "wrong size calculation" warnings in the logs for the following files: https://gist.github.com/pako-pl/37f436353e397b9a8bc2dd92470080d2 Test script: --------------- Opcache configuration: zend_extension=opcache.so opcache.enable=1 opcache.enable_cli=0 opcache.memory_consumption=120 opcache.interned_strings_buffer=20 opcache.max_accelerated_files=6000 opcache.max_wasted_percentage=5 opcache.use_cwd=1 opcache.validate_timestamps=0 opcache.revalidate_freq=0 opcache.revalidate_path=1 opcache.save_comments=1 opcache.load_comments=1 opcache.fast_shutdown=0 opcache.enable_file_override=0 opcache.max_file_size=0 opcache.consistency_checks=0 opcache.log_verbosity_level=2 Actual result: -------------- apache-error: Tue Feb 7 13:08:59 2017 (32223): Warning Internal error: wrong size calculation: /home/www/vendor/pclzip/pclzip/pclzip.lib.php start=0x00007fb492588e00, end=0x00007fb4925eae90, real=0x00007fb4925eae50 apache-error: Tue Feb 7 12:59:21 2017 (6597): Warning Internal error: wrong size calculation: /home/www/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/Auth/CramMd5Authenticator.php start=0x00007fb492117480, end=0x00007fb492119900, real=0x00007fb4921198a0 apache-error: Tue Feb 7 12:23:04 2017 (7560): Warning Internal error: wrong size calculation: /home/www/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5.php start=0x00007fb49290b840, end=0x00007fb492925e30, real=0x00007fb492925e10 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74055&edit=1