Topic: Version 5.6.19

There is an upstream bug since 5.6.20 that affects CLI applications, causing a Segmentation Fault on application shut down. It is still not solved, and is braking a lot of my scripts (scripts that rely on php application return code to operating system).

I've upgraded one of my servers to 5.6.22 and the only downgrade available is to 5.6.21, whith has the same bug.

Can you provide the following packages from 5.6.19?

ImageMagick-last-libs.x86_64       6.9.3.8-1.el6.remi                @remi
gd-last.x86_64                     2.1.1-2.el6.remi                  @remi
libbson.x86_64                     1.3.5-1.el6.remi                  @remi
libzip-last.x86_64                 1.1.2-1.el6.remi                  @remi
mongo-c-driver.x86_64              1.3.5-1.el6.remi                  @remi
mongo-c-driver-libs.x86_64         1.3.5-1.el6.remi                  @remi
php.x86_64                         5.6.19-1.el6.remi                 @remi-php56
php-bcmath.x86_64                  5.6.19-1.el6.remi                 @remi-php56
php-cli.x86_64                     5.6.19-1.el6.remi                 @remi-php56
php-common.x86_64                  5.6.19-1.el6.remi                 @remi-php56
php-gd.x86_64                      5.6.19-1.el6.remi                 @remi-php56
php-mbstring.x86_64                5.6.19-1.el6.remi                 @remi-php56
php-mcrypt.x86_64                  5.6.19-1.el6.remi                 @remi-php56
php-mysqlnd.x86_64                 5.6.19-1.el6.remi                 @remi-php56
php-pdo.x86_64                     5.6.19-1.el6.remi                 @remi-php56
php-pecl-apcu.x86_64               4.0.10-1.el6.remi.5.6             @remi-php56
php-pecl-dom-varimport.x86_64      1.11.3-1.el6.remi.5.6             @remi-php56
php-pecl-imagick.x86_64            3.4.2-1.el6.remi.5.6              @remi-php56
php-pecl-jsonc.x86_64              1.3.9-1.el6.remi.5.6              @remi-php56
php-pecl-mongo.x86_64              1.6.13-1.el6.remi.5.6             @remi-php56
php-pecl-zip.x86_64                1.13.2-1.el6.remi.5.6             @remi-php56
php-process.x86_64                 5.6.19-1.el6.remi                 @remi-php56
php-soap.x86_64                    5.6.19-1.el6.remi                 @remi-php56
php-symfony-class-loader.noarch    2.7.11-2.el6.remi                 @remi     
php-symfony-common.noarch          2.7.11-2.el6.remi                 @remi     
php-xml.x86_64                     5.6.19-1.el6.remi                 @remi-php56


Thanks

Alexandre

Re: Version 5.6.19

> There is an upstream bug since 5.6.20 that affects CLI applications, causing a Segmentation Fault on application shut down.

Link to the PHP bug report ?

> Can you provide the following packages from 5.6.19?

Dig in the store (offline archive) : http://rpms.remirepo.net/store/php/

This is not a repo, so you have to download each package and install them manually.

Desktop: Fedora 25 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 26 x86_64 + remi (SCL only)
Hosting Server: CentOS 6.9 x86_64 + EPEL + remi + remi-php70

3 (edited by Alexandre Machado 2016-06-20 12:44:38)

Re: Version 5.6.19

Thank you, Remi

Here is the link to the bug report:

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

Re: Version 5.6.19

I have huge doubt about 71936 being the cause of your issue, as it only affects debug build.

BTW, it is fixed, and will be part of 5.6.24 (in ~1 month)

Desktop: Fedora 25 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 26 x86_64 + remi (SCL only)
Hosting Server: CentOS 6.9 x86_64 + EPEL + remi + remi-php70

5 (edited by Alexandre Machado 2016-06-20 20:49:23)

Re: Version 5.6.19

Maybe it's not 71936 that is causing it.

Is there any way to test if it's the same issue without installing a debug build?

I've start to see the issue on PHP 5.6.20 (on my test server). My production servers are still using 5.6.19 and are working fine. The test script below runs on 5.6.19 and returns the correct return code to the OS while 5.6.20 and more recent versions cause a Segmentation Fault and returns 139.

I've noticed that PHP 5.6.22 on Fedora 23 (distro package, not from Remi's repo) is working as well. Can it be something that Fedora people specifically patched?

Here is a small test script to show the issue:

<?php
echo "Test\n";
exit(5);

It runs, generates as Segmentation Fault and returns 139 to the operating system.

$ php --version
PHP 5.6.22 (cli) (built: May 26 2016 15:44:55) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies

Runing on CentOS Release 6.8


I'm a bit busy here, but if is there anything I can do to help to verify if the reported bug is really the cause or if it's anything else, please ask and I will try to find some time to work on it.

Thanks a lot

Alexandre

UPDATE: You are right, it's not the 71936. I ran the test script ignoring my php.ini and extensions, and it worked. Now I will investigate wich extension is causing the problem.

Re: Version 5.6.19

Solved it:

It was something related with mongodb. I think I had two conflicting packages installed: php-pecl-mongo and php-pecl-mongodb. Removed php-pecl-mongodb and the problem was solved.

I will investigate further to find out why I ended up with both packages installed.

Thanks again to Remi for the wonderful work with the repository and for the support on this issue.

Re: Version 5.6.19

> I've noticed that PHP 5.6.22 on Fedora 23 (distro package, not from Remi's repo) is working as well. Can it be something that Fedora people specifically patched?

FYI, I also maintain Fedora package, and "remi" repo is upstream for Fedora. So exactly same set of patches.

Desktop: Fedora 25 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 26 x86_64 + remi (SCL only)
Hosting Server: CentOS 6.9 x86_64 + EPEL + remi + remi-php70

Re: Version 5.6.19

> It was something related with mongodb. I think I had two conflicting packages installed: php-pecl-mongo and php-pecl-mongodb. Removed php-pecl-mongodb and the problem was solved.

These packages should not conflict, I will dig on it.

BTW, I cannot reproduce your segfault. Which versions was installed ? as latest mongodb should fix a possible conflict in provided symbol.

From Version 1.1.17 changelog:
* PHPC-699: Rename "php_mongo" functions to not conflict with legacy driver

Desktop: Fedora 25 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 26 x86_64 + remi (SCL only)
Hosting Server: CentOS 6.9 x86_64 + EPEL + remi + remi-php70

Re: Version 5.6.19

Remi wrote:

>
These packages should not conflict, I will dig on it.

BTW, I cannot reproduce your segfault. Which versions was installed ? as latest mongodb should fix a possible conflict in provided symbol.

From Version 1.1.17 changelog:
* PHPC-699: Rename "php_mongo" functions to not conflict with legacy driver

Can you wait until the weekend? I will be too busy to look into it now, but I intend to install a fresh copy of CentOS on a VM and try to reproduce it on Saturday, taking notes of the steps.

Re: Version 5.6.19

> Can you wait until the weekend?

Of course, easily wink
(I'm busy with upcoming new php versions)

Desktop: Fedora 25 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 26 x86_64 + remi (SCL only)
Hosting Server: CentOS 6.9 x86_64 + EPEL + remi + remi-php70

11 (edited by Alexandre Machado 2016-06-28 20:34:46)

Re: Version 5.6.19

Managed to reproduce it!

* Fresh CentOS 6.8 minimal install
* Install epel repository
* Install remi repository
* Enable remi php-5.6
* update system
* install httpd, php
* install mongodb-server php-pecl-mongo php-pecl-mongodb
* Run the test file

Versions:

mongodb-server.x86_64 2.4.14-1.el6      @epel                                   
php-pecl-mongo.x86_64 1.6.14-1.el6.remi.5.6
php-pecl-mongodb.x86_64

Re: Version 5.6.19

Which test file ?

Desktop: Fedora 25 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 26 x86_64 + remi (SCL only)
Hosting Server: CentOS 6.9 x86_64 + EPEL + remi + remi-php70

Re: Version 5.6.19

<?php
echo "Test\n";
exit(5);

Re: Version 5.6.19

This doesn't segfault for me... must have something else (Sessions ?)

BTW segfault confirmed, see http://forum.remirepo.net/viewtopic.php?id=3454

Desktop: Fedora 25 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 26 x86_64 + remi (SCL only)
Hosting Server: CentOS 6.9 x86_64 + EPEL + remi + remi-php70