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

From: Date: Mon, 28 Aug 2017 23:03:32 +0000
Subject: Bug #71135 [Csd]: Random memory corruption with strings
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-210861@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
 Updated by:         nikic@php.net
 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:

If you are still experiencing this problem or something similar to it, please try the suggestion
from @laruence earlier in this thread: Enable the opcache.protect_memory ini option, which will
(likely) trigger a crash instead of silently corrupting the memory. It's hard to do anything
about this if we don't know where the invalid write occurs.


Previous Comments:
------------------------------------------------------------------------
[2017-08-28 22:52:47] jagoba at tapatalk dot com

We do have this problem too on production, during heavy loading we got errors about sql queries that
get mistery changed to "SELECT * FRPM" (notice the P), or links in our pages with www
changed to vww.

We got this issues both in php 7.1.8 and 7.1.3 with opcache, any hint or workaround is welcome.

------------------------------------------------------------------------
[2017-08-28 08:28:18] spam2 at rhsoft dot net

i face this below with 7.1.8 on the first production machine with 7.1.x randomly when under light
load shared files are updated - maybe related?

Sun Aug 20 19:45:38 2017 (3066): Warning Internal error: wrong size calculation:
global_mysql_ext.inc.php start=0x00007feba814c580, end=0x00007feba816fc60, real=0x00007feba816fc40

------------------------------------------------------------------------
[2017-08-28 00:06:51] nick at noodles dot net dot nz

I'm starting to see this problem on PHP 7.1.8. Seems the opcache is randomly being corrupted
one character at a time. This is on a high traffic website with multiple web servers.

------------------------------------------------------------------------
[2017-07-03 10:38:37] kalyanceg at gmail dot com

We are facing this issue on debian stretch with php7.0-opcache 7.0.19-1
We see opcache getting corrupted after some days of apache running continuously and gets fixed only
on restart of apache

------------------------------------------------------------------------
[2016-08-16 10:19:45] teohhanhui at gmail dot com

We're still running into this problem in production on PHP 7.0.8

It happens every few days or so.

Examples of corruption:

Symfony -> Sylfony
Bundle -> Bumdle

(both cases happen to FQCN stored in variables)

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


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 (#210861) next »