1 (edited by jjuszczyk 2015-08-10 08:02:06)

Topic: Random bug in php-fpm with not proper key

Hi

I installed Remi Repo with PHP 5.6 almost two months ago on two servers with Red hat Enterprise Linux Server 6.7.
Everything was well, until few days ago, servers reports this bugs:

File '/usr/sbin/php-fpm' seems to be deleted
Not saving repeating crash in '/usr/sbin/php-fpm'
Package 'php-fpm' isn't signed with proper key

Problem is revealed with gateways and for now the only solution is to restart php-fpm service. Problem concerns both servers randomly (1-2 times in day).

Version of PHP: 5.6.12.

Can anybody help me?

Re: Random bug in php-fpm with not proper key

> File '/usr/sbin/php-fpm' seems to be deleted
Strange never encounter this

> Package 'php-fpm' isn't signed with proper key
All my packages are signed.

Please rpm -qa php\*
And rpm -V php\*
And sha1sum /usr/sbin/php-fpm

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Random bug in php-fpm with not proper key

rpm -qa php\* :

php-pdo-5.6.12-1.el6.remi.x86_64
php-pecl-igbinary-1.2.1-1.el6.remi.5.6.x86_64
php-intl-5.6.12-1.el6.remi.x86_64
php-pecl-apcu-4.0.7-2.el6.remi.5.6.x86_64
php-pecl-redis-2.2.7-1.el6.remi.5.6.x86_64
php-phpseclib-crypt-base-0.3.9-1.el6.remi.noarch
php-pecl-jsonc-1.3.7-1.el6.remi.5.6.x86_64
php-bcmath-5.6.12-1.el6.remi.x86_64
php-soap-5.6.12-1.el6.remi.x86_64
php-common-5.6.12-1.el6.remi.x86_64
php-phpseclib-crypt-random-0.3.9-1.el6.remi.noarch
php-mcrypt-5.6.12-1.el6.remi.x86_64
php-fpm-5.6.12-1.el6.remi.x86_64
php-xml-5.6.12-1.el6.remi.x86_64
php-process-5.6.12-1.el6.remi.x86_64
php-opcache-5.6.12-1.el6.remi.x86_64
php-pear-1.9.5-3.el6.remi.noarch
php-channel-phpseclib-1.3-1.el6.remi.noarch
php-phpseclib-crypt-aes-0.3.9-1.el6.remi.noarch
phpMyAdmin-4.3.8-1.el6.remi.noarch
php-php-gettext-1.0.11-4.el6.remi.noarch
php-5.6.12-1.el6.remi.x86_64
php-pecl-zip-1.12.5-1.el6.remi.5.6.x86_64
php-mbstring-5.6.12-1.el6.remi.x86_64
php-gd-5.6.12-1.el6.remi.x86_64
php-devel-5.6.12-1.el6.remi.x86_64
php-imap-5.6.12-1.el6.remi.x86_64
php-dba-5.6.12-1.el6.remi.x86_64
php-pecl-runkit-1.0.4-0.7.git5e179e9.el6.remi.5.6.x86_64
php-phpseclib-crypt-rijndael-0.3.9-2.el6.noarch
php-cli-5.6.12-1.el6.remi.x86_64
php-tcpdf-6.2.8-1.el6.noarch
php-pecl-jsonc-devel-1.3.7-1.el6.remi.5.6.x86_64
php-mysqlnd-5.6.12-1.el6.remi.x86_64
php-ldap-5.6.12-1.el6.remi.x86_64
php-tidy-5.6.12-1.el6.remi.x86_64
php-tcpdf-dejavu-sans-fonts-6.2.8-1.el6.noarch
php-recode-5.6.12-1.el6.remi.x86_64

sha1sum /usr/sbin/php-fpm
6d433eae62f006216ba1ee8cd24d50fba0982508  /usr/sbin/php-fpm

Second command not work. This bug "isnt't signed with proper key" is occured by abrt-hook-ccpp service. And it's normal situation with third-party apps.

Additional in php-fpm log i have many messages like this:
WARNING: [pool www] child 16463 exited on signal 11 (SIGSEGV) after 75.906478 seconds from start

Re: Random bug in php-fpm with not proper key

rpm -V php\* is to check the content of the packages.

I don't have the same sha1sum... could be related to prelink

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

5 (edited by jjuszczyk 2015-08-10 14:28:32)

Re: Random bug in php-fpm with not proper key

Command "rpm -V php\*"  not work.
Output: "package php* is not installed"

Command: "rpm -V php-fpm" work.
Output: "S.5....T.  c /etc/php-fpm.d/www.conf".

My checksums of this file are different on both servers (probably by prelink, as you mentioned).
As far APC cache I turned off and shrunk pm.max_requests to 1500. Maybe this will help.

By the way, thanks for fast answer.

Re: Random bug in php-fpm with not proper key

APC ?

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Random bug in php-fpm with not proper key

Yes. APCU module. But today problem occured again. The only information about problem is thousands of logs like this:
WARNING: [pool www] child 641 exited on signal 11 (SIGSEGV) after 16.265825 seconds from start.

I don't know whats going on. You would help to suggest any solution?

Re: Random bug in php-fpm with not proper key

> Everything was well, until few days ago, servers reports this bugs:

So 1st try to downgrade to 5.6.11 to ensure this is a new bug specific to 5.6.12

Then a "backtrace" is really needed, the simple segfault message is really not enough.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Random bug in php-fpm with not proper key

Hi Remi. I probably found bug. Situation on my servers was very similar to this: https://bugs.php.net/bug.php?id=70023
In my script was very much constant arrays. After change them to normal variables, error disappeared (at least so far). In any case, the culprit turned out to be opcache, who probably still should not be the default cache system for PHP 5.6.
Thank you for your help smile

Re: Random bug in php-fpm with not proper key

Thanks for link.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi