Bug #80002 [NEW]: calc free space for new interned string is wrong

From: Date: Thu, 20 Aug 2020 09:09:48 +0000
Subject: Bug #80002 [NEW]: calc free space for new interned string is wrong
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-228688@lists.php.net to get a copy of this message
From:             t-matsuno at colopl dot co dot jp
Operating system: 
PHP version:      master-Git-2020-08-20 (Git)
Package:          opcache
Bug Type:         Bug
Bug description:calc free space for new interned string is wrong

Description:
------------
Hello,

Since I got "Interned string buffer overflow" warning with relatively
large opcache.interned_strings_buffer, I looked ZendAccelerator and
tried some tests.
Through the series of tests, it seems that the calculation for free
space to keep interned strings is wrong and it derives the 1/32 smaller
value than the actual free space and it causes the overflow warning for
some big strings even if there is enough free space.

I hope you look at it.
This happens in PHP7.3 and newer.

Regards,
Takeki.


-- 
Edit bug report at https://bugs.php.net/bug.php?id=80002&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=80002&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=80002&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=80002&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=80002&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=80002&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=80002&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=80002&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=80002&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=80002&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=80002&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80002&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=80002&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=80002&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=80002&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=80002&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=80002&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=80002&r=mysqlcfg


Thread (6 messages)

« previous php.bugs (#228688) next »