Bug #75373 [Com]: Warning Internal error: wrong size calculation
| From: | tm8544 at hotmail dot com | Date: | Sun, 15 Oct 2017 11:17:43 +0000 |
| Subject: | Bug #75373 [Com]: Warning Internal error: wrong size calculation | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-211695@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75373&edit=1
ID: 75373
Comment by: tm8544 at hotmail dot com
Reported by: tm8544 at hotmail dot com
Summary: Warning Internal error: wrong size calculation
Status: Open
Type: Bug
Package: opcache
Operating System: Windows 10 x64
PHP Version: 7.2.0RC4
Block user comment: N
Private report: N
New Comment:
The first comment led me thinking that after all, what if it is about an already cached script?
I my PHP.ini some opcache config options were commented out, so they were in their default values.
I changed this so that I specifically gave those options the default value.
For opcache.file_cache_consistency_checks I also changed the value, even though file_cache is not
used.
Here are all config options, changed lines are marked with ***, left is the new value / right is the
old value.
opcache.enable=1 / opcache.enable=1
opcache.enable_cli=0 / opcache.enable_cli=0
opcache.memory_consumption=128 / opcache.memory_consumption=128
opcache.interned_strings_buffer=8 / opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000 / opcache.max_accelerated_files=4000
*** opcache.max_wasted_percentage=5 / ;opcache.max_wasted_percentage=5
*** opcache.use_cwd=1 / ;opcache.use_cwd=1
opcache.validate_timestamps=1 / opcache.validate_timestamps=1
opcache.revalidate_freq=60 / opcache.revalidate_freq=60
opcache.file_update_protection=3600 / opcache.file_update_protection=3600
opcache.revalidate_path=1 / opcache.revalidate_path=1
opcache.save_comments=1 / opcache.save_comments=1
opcache.load_comments=1 / opcache.load_comments=1
opcache.fast_shutdown=0 / opcache.fast_shutdown=0
*** opcache.enable_file_override=0 / ;opcache.enable_file_override=0
opcache.optimization_level=0xffffffff / opcache.optimization_level=0xffffffff
*** opcache.inherited_hack=1 / ;opcache.inherited_hack=1
*** opcache.dups_fix=0 / ;opcache.dups_fix=0
opcache.blacklist_filename=c:\PHP\php.ini.opcache_blacklist.txt /
opcache.blacklist_filename=c:\PHP\php.ini.opcache_blacklist.txt
*** opcache.max_file_size=0 / ;opcache.max_file_size=0
*** opcache.consistency_checks=0 / ;opcache.consistency_checks=0
opcache.force_restart_timeout=15 / opcache.force_restart_timeout=15
*** opcache.error_log="" / ;opcache.error_log=
opcache.log_verbosity_level=2 / opcache.log_verbosity_level=2
*** opcache.preferred_memory_model="" / ;opcache.preferred_memory_model=
*** opcache.protect_memory=0 / opcache.protect_memory=0
*** opcache.restrict_api="" / ;opcache.restrict_api=
opcache.mmap_base=0x20000000 / opcache.mmap_base=0x20000000
*** opcache.file_cache="" / ;opcache.file_cache=
*** opcache.file_cache_only=0 / ;opcache.file_cache_only=0
*** opcache.file_cache_consistency_checks=0 / ;opcache.file_cache_consistency_checks=1
*** opcache.file_cache_fallback=0 / ;opcache.file_cache_fallback=1
*** opcache.huge_code_pages=0 / ;opcache.huge_code_pages=1
*** opcache.validate_permission=0 / ;opcache.validate_permission=0
*** opcache.validate_root=0 / ;opcache.validate_root=0
After this, I have not seen any warning of wrong size calculation in Apache log.
Could it be that PHP7.2.0 handles opcache config option default values differently than e.g. 7.1 or
previous versions?
Previous Comments:
------------------------------------------------------------------------
[2017-10-15 06:28:20] tm8544 at hotmail dot com
In this case, I believe it is not a about replacing an already cached script. It happens even when
the server is restarted, so there should be no cached scripts in memory.
It is always those three scripts, values for 'start', 'end' and 'real'
change from time to time
------------------------------------------------------------------------
[2017-10-13 18:14:19] spam2 at rhsoft dot net
I faced this "internal size error" randomly after upgrade to php 7.1.x in production but
can't trigger it reliable - when it happens it is always after replace a already cached script
------------------------------------------------------------------------
[2017-10-13 17:37:51] tm8544 at hotmail dot com
Description:
------------
7.2.0RC4 and also 7.2.0RC3 caused following lines in Apache error.log after server or Apache service
(re)start.
In this case, on Thursday evening after updating to 7.2.0RC4 + Apache restart,
and on Friday Morning after scheduled server restart.
Line 491: Thu Oct 12 22:25:05 2017 (4844): Warning Internal error: wrong size calculation:
D:\-folder-name-replaced-\kauppa\includes\classes\seo.class.php start=0x0000000021275750,
end=0x00000000212c4b70, real=0x00000000212c4a50
Line 493: Thu Oct 12 22:25:05 2017 (4844): Warning Internal error: wrong size calculation:
D:\-folder-name-replaced-\kauppa\includes\functions\information.php start=0x0000000021308bd0,
end=0x000000002130cea0, real=0x000000002130ce80
Line 495: Thu Oct 12 22:53:46 2017 (4844): Warning Internal error: wrong size calculation:
D:\HTTPS-SERVER-D\mysqladm1n007\libraries\core.lib.php start=0x0000000021c23ce0,
end=0x0000000021c39480, real=0x0000000021c39460
Line 515: Fri Oct 13 05:53:52 2017 (7392): Warning Internal error: wrong size calculation:
D:\-folder-name-replaced-\kauppa\includes\classes\seo.class.php start=0x0000000021264278,
end=0x00000000212b3698, real=0x00000000212b3578
Line 517: Fri Oct 13 05:53:53 2017 (7392): Warning Internal error: wrong size calculation:
D:\-folder-name-replaced-\kauppa\includes\functions\information.php start=0x00000000212f76f8,
end=0x00000000212fb9c8, real=0x00000000212fb9a8
Line 519: Fri Oct 13 05:54:11 2017 (7392): Warning Internal error: wrong size calculation:
D:\HTTPS-SERVER-D\mysqladm1n007\libraries\core.lib.php start=0x0000000021abfc30,
end=0x0000000021ad53d0, real=0x0000000021ad53b0
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75373&edit=1