Bug #71135 [Com]: Random memory corruption with strings

From: Date: Fri, 19 Nov 2021 09:20:03 +0000
Subject: Bug #71135 [Com]: Random memory corruption with strings
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237865@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71135&edit=1

 ID:                 71135
 Comment by:         charle at gmail dot com
 Reported by:        iquito at gmx dot net
 Summary:            Random memory corruption with strings
 Status:             Closed
 Type:               Bug
 Package:            opcache
 Operating System:   Debian Jessie
 PHP Version:        7.0.0
 Assigned To:        laruence
 Block user comment: N
 Private report:     N

 New Comment:

Thanks for sharing these methods for checking the memory corruption issue with the proper strings. I
could trace my project following this method, but currently, I am busy with this https://flirtymania.plus site which is popular for random video
chat facilities with the girls. The students and professionals both are helpful from this command
and I hope you keep sharing for the programmers for motivation. Thanks again, good work!


Previous Comments:
------------------------------------------------------------------------
[2019-05-14 13:04:42] irker@php.net

See this patch: http://git.php.net/?p=php-src.git;a=commit;h=5c4d125d4c2976236e2ecddd1d8c6e7b113ec482

It must fix some cases with broken opcache after reset.

------------------------------------------------------------------------
[2018-01-07 23:24:07] jjones at smugmug dot com

I just heard (today) about and reviewed the patches described here:

https://bugs.php.net/bug.php?id=75579

and from the description of that issue, and what the fix does, I think it's entirely possible
that it will our crashes with file backed caching.  I haven't had time to test it, and
we're running just fine with file based caching disabled for now.  But I wanted to connect the
dots for other people following this bug.

------------------------------------------------------------------------
[2018-01-07 21:09:36] jagoba at tapatalk dot com

We still have this issue. We are now on php 7.2.0, our opcache is configured to 256mb and we not
using file_cache. I saw that in php master there is a commit to change how interned strings works.
Is there posibility that code be merged into next version 7.2.2? will it solve the problem?

------------------------------------------------------------------------
[2017-09-13 04:08:10] rasmus@php.net

It depends on your code, of course, but for a large site you probably need to go to 128M or 256M for
the string buffer.

------------------------------------------------------------------------
[2017-09-13 03:23:31] nick at noodles dot net dot nz

Thanks, I've bumped it from 8MB -> 32MB and will monitor it. I can't see it hitting the
8MB limit when the corruption occurs, but it gets close.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=71135


--
Edit this bug report at https://bugs.php.net/bug.php?id=71135&edit=1


Thread (52 messages)

« previous php.bugs (#237865) next »