Bug #75710 [Com]: single-char vars get lost

From: Date: Wed, 20 Jun 2018 08:22:30 +0000
Subject: Bug #75710 [Com]: single-char vars get lost
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215804@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75710&edit=1

 ID:                 75710
 Comment by:         benjamin dot zikarsky at jaumo dot com
 Reported by:        benjamin dot roth at jaumo dot com
 Summary:            single-char vars get lost
 Status:             Open
 Type:               Bug
 Package:            Scripting Engine problem
 Operating System:   Ubuntu
 PHP Version:        7.1.12
 Block user comment: N
 Private report:     N

 New Comment:

Possibly related to https://bugs.php.net/bug.php?id=76281?


Previous Comments:
------------------------------------------------------------------------
[2018-04-27 12:15:42] benjamin dot zikarsky at jaumo dot com

The servers run with the following modules.

root@php1:~# php -v
PHP 7.2.4-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Apr  5 2018 08:53:57) ( NTS )                
                                               
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.4-1+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend
Technologies                

root@php1:~# php -m                                                                                 
                                                
[PHP Modules]                                                                                       
                                                
calendar                                                                                            
                                                
cassandra
Core
ctype
curl
date
dom
event
exif
fileinfo
filter
ftp
gd
gearman
gettext
gmagick
hash
iconv
igbinary
inotify
intl
json
libxml
mbstring
memcached
msgpack
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_pgsql
pgsql
Phar
posix
rdkafka
readline
redis
Reflection
session
shmop
SimpleXML
soap
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache


Some thoughts about this: OPcache is enabled of course. There are also 5 less common extensions. We
build and package (.deb) them ourselves:

php7.2-cassandra                     1.3.2                                              
php7.2-event                         2.3.0                                             
php7.2-inotify                       2.0.0                                              
php7.2-rdkafka                       3.0.5                                              
php7.2-redis                         3.1.6

------------------------------------------------------------------------
[2018-04-26 12:20:29] nikic@php.net

How often are you seeing this issue? Which extensions are you using? In particular interested in
anything using shared memory, such as opcache and apcu.

------------------------------------------------------------------------
[2018-04-26 12:07:21] benjamin dot zikarsky at jaumo dot com

We triggered this bug again today. Now on PHP 7.2.4.

Many long-running processes (to be more specific: Gearman worker running an Amp-loop) started
throwing exceptions: "Undefined variable: m" in this source-file: https://github.com/aws/aws-sdk-php/blob/master/src/Api/Serializer/RestSerializer.php#L112

This source-file is obviously completely unrelated to Amp or our custom codebase. Also it can be
assumed to be rather battletested as it is part of the AWS SDK for PHP.

We are reasonable sure that the same process ran through the same function multiple times before the
error without throwing the exception.

------------------------------------------------------------------------
[2018-04-08 19:10:52] benjamin dot roth at jaumo dot com

If a $var is 'null' one line after its creation. How could that be caused by _any_
userland code?

------------------------------------------------------------------------
[2018-04-07 22:14:34] cmb@php.net

> Our observations have been made when serving PHP requests with
> amp/aerys.

Would it be possible that the strange behavior is caused by
amphp/aerys in the first place?

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


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=75710


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


Thread (7 messages)

« previous php.bugs (#215804) next »