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

From: Date: Thu, 20 Aug 2020 09:23:57 +0000
Subject: Bug #80002 [Opn]: calc free space for new interned string is wrong
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-228690@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80002&edit=1

 ID:                 80002
 Updated by:         cmb@php.net
 Reported by:        t-matsuno at colopl dot co dot jp
 Summary:            calc free space for new interned string is wrong
 Status:             Open
 Type:               Bug
 Package:            opcache
-PHP Version:        master-Git-2020-08-20 (Git)
+PHP Version:        PHP 7.3
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Thanks for reporting, and the patch!


Previous Comments:
------------------------------------------------------------------------
[2020-08-20 09:09:48] t-matsuno at colopl dot co dot jp

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 this bug report at https://bugs.php.net/bug.php?id=80002&edit=1


Thread (6 messages)

« previous php.bugs (#228690) next »