Topic: php 5.6 --> php-fpm crashes

Hello,

I tried both upgrading from 5.5 and also a fresh installation of php56.
phpinfo file loads ok but any other php file i try to load on my webserver causes php-fpm to crash

[03-Sep-2014 17:34:22] NOTICE: ready to handle connections
[03-Sep-2014 17:34:22] NOTICE: systemd monitor interval set to 10000ms
[03-Sep-2014 17:44:05] NOTICE: Terminating ...
[03-Sep-2014 17:44:05] NOTICE: exiting, bye-bye!
[03-Sep-2014 17:45:30] NOTICE: fpm is running, pid 11266
[03-Sep-2014 17:45:30] NOTICE: ready to handle connections
[03-Sep-2014 17:45:30] NOTICE: systemd monitor interval set to 10000ms
[03-Sep-2014 17:46:52] WARNING: [pool ww-w] child 11271 exited on signal 11 (SIGSEGV) after 82.052084 seconds from start
[03-Sep-2014 17:46:52] NOTICE: [pool ww-w] child 11286 started
[03-Sep-2014 17:47:07] WARNING: [pool ww-w] child 11267 exited on signal 11 (SIGSEGV) after 96.585540 seconds from start
[03-Sep-2014 17:47:07] NOTICE: [pool ww-w] child 11288 started
[03-Sep-2014 17:49:08] WARNING: [pool ww-w] child 11288 exited on signal 11 (SIGSEGV) after 121.817835 seconds from start
[03-Sep-2014 17:49:08] NOTICE: [pool ww-w] child 11294 started
[03-Sep-2014 18:40:57] NOTICE: Terminating ...
[03-Sep-2014 18:40:57] NOTICE: exiting, bye-bye!
[03-Sep-2014 18:40:57] NOTICE: fpm is running, pid 11355
[03-Sep-2014 18:40:57] NOTICE: ready to handle connections
[03-Sep-2014 18:40:57] NOTICE: systemd monitor interval set to 10000ms


what am i missing? (added a "-" so it won't count as links)

Re: php 5.6 --> php-fpm crashes

Distro ? Version ? Arch ? Packages installed ? Base or SCL ? ...

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: php 5.6 --> php-fpm crashes

i tried both on centos 6.5 and 7 (used the repos accordingly). 64 bit. i also have phalcon installed.

php.x86_64                           5.6.0-1.el7.remi                @remi-php56
php-cli.x86_64                       5.6.0-1.el7.remi                @remi-php56
php-common.x86_64                    5.6.0-1.el7.remi                @remi-php56
php-devel.x86_64                     5.6.0-1.el7.remi                @remi-php56
php-fpm.x86_64                       5.6.0-1.el7.remi                @remi-php56
php-gd.x86_64                        5.6.0-1.el7.remi                @remi-php56
php-mbstring.x86_64                  5.6.0-1.el7.remi                @remi-php56
php-mcrypt.x86_64                    5.6.0-1.el7.remi                @remi-php56
php-mysqlnd.x86_64                   5.6.0-1.el7.remi                @remi-php56
php-pdo.x86_64                       5.6.0-1.el7.remi                @remi-php56
php-pear.noarch                      1:1.9.5-2.el7.remi              @remi      
php-pecl-apcu.x86_64                 4.0.6-1.el7.remi.5.6            @remi-php56
php-pecl-igbinary.x86_64             1.2.1-1.el7.remi.5.6            @remi-php56
php-pecl-jsonc.x86_64                1.3.6-1.el7.remi.5.6.1          @remi-php56
php-pecl-jsonc-devel.x86_64          1.3.6-1.el7.remi.5.6.1          @remi-php56
php-pecl-memcache.x86_64             3.0.8-4.el7.remi.5.6            @remi-php56
php-pecl-memcached.x86_64            2.2.0-3.el7.remi.5.6            @remi-php56
php-pecl-mongo.x86_64                1.5.5-1.el7.remi.5.6            @remi-php56
php-pecl-msgpack.x86_64              0.5.5-7.el7.remi.5.6            @remi-php56
php-pecl-zip.x86_64                  1.12.4-2.el7.remi.5.6           @remi-php56
php-pgsql.x86_64                     5.6.0-1.el7.remi                @remi-php56
php-process.x86_64                   5.6.0-1.el7.remi                @remi-php56
php-xml.x86_64                       5.6.0-1.el7.remi                @remi-php56
php56.x86_64                         1.0-1.el7.remi                  @remi      
php56-php-cli.x86_64                 5.6.0-1.el7.remi                @remi      
php56-php-common.x86_64              5.6.0-1.el7.remi                @remi      
php56-php-pear.noarch                1:1.9.5-1.el7.remi              @remi      
php56-php-pecl-jsonc.x86_64          1.3.6-1.el7.remi                @remi      
php56-php-pecl-zip.x86_64            1.12.4-2.el7.remi               @remi      
php56-php-process.x86_64             5.6.0-1.el7.remi                @remi      
php56-php-xml.x86_64                 5.6.0-1.el7.remi                @remi      
php56-runtime.x86_64                 1.0-1.el7.remi                  @remi

Re: php 5.6 --> php-fpm crashes

> i also have phalcon installed.
So try without.

P.S. you should also choose between base package (php-5.6.0) and SCL package (php56-*)

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: php 5.6 --> php-fpm crashes

yes but we're working with it and it's a must in my enviroment.

any idea?

Re: php 5.6 --> php-fpm crashes

I use those packages daily without any issue (including on this server)
So I strongly suspect phalcon is not yet compatible with php 5.6

If you can provide a gdb backtrace...

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: php 5.6 --> php-fpm crashes

http://forum.phalconphp.com/discussion/ … x-phalcon-

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: php 5.6 --> php-fpm crashes

[root@s2 /]# gdb /usr/sbin/php-fpm /tmp/systemd-private-WENpSv/tmp/core-php-fpm.20298
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-51.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <link>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<link>...
Reading symbols from /usr/sbin/php-fpm...Reading symbols from /usr/sbin/php-fpm...(no debugging symbols found)...done.
(no debugging symbols found)...done.
[New LWP 20298]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `php-fpm: pool www              '.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f68eef1a785 in _zend_mm_realloc_int ()
Missing separate debuginfos, use: debuginfo-install php-fpm-5.6.0-1.el7.remi.x86_64
(gdb) bt
#0  0x00007f68eef1a785 in _zend_mm_realloc_int ()
#1  0x00007f68d84d635d in phalcon_concat_sv () from /usr/lib64/php/modules/phalcon.so
#2  0x00007f68d862484c in zim_Phalcon_Mvc_View_Engine_Volt_Compiler_attributeReader () from /usr/lib64/php/modules/phalcon.so
#3  0x00007f68eef3202b in dtrace_execute_internal ()
#4  0x00007f68e4bd3936 in xdebug_execute_internal (current_execute_data=0x7fffdafd4e70, fci=0x7fffdafd4fa0, return_value_used=1) at /var/tmp/xdebug/xdebug.c:1551
#5  0x00007f68eef33e04 in zend_call_function ()
#6  0x00007f68d84cb242 in phalcon_call_user_function () from /usr/lib64/php/modules/phalcon.so
#7  0x00007f68d84cbb17 in phalcon_call_class_method_aparams () from /usr/lib64/php/modules/phalcon.so
#8  0x00007f68d869899f in zim_Phalcon_Mvc_View_Engine_Volt_Compiler_expression () from /usr/lib64/php/modules/phalcon.so
#9  0x00007f68eef3202b in dtrace_execute_internal ()
#10 0x00007f68e4bd3936 in xdebug_execute_internal (current_execute_data=0x7fffdafd5480, fci=0x7fffdafd55b0, return_value_used=1) at /var/tmp/xdebug/xdebug.c:1551
#11 0x00007f68eef33e04 in zend_call_function ()
#12 0x00007f68d84cb242 in phalcon_call_user_function () from /usr/lib64/php/modules/phalcon.so
#13 0x00007f68d84cbb17 in phalcon_call_class_method_aparams () from /usr/lib64/php/modules/phalcon.so
#14 0x00007f68d85e321f in zim_Phalcon_Mvc_View_Engine_Volt_Compiler_compileEcho () from /usr/lib64/php/modules/phalcon.so
#15 0x00007f68eef3202b in dtrace_execute_internal ()
#16 0x00007f68e4bd3936 in xdebug_execute_internal (current_execute_data=0x7fffdafd59b0, fci=0x7fffdafd5ae0, return_value_used=1) at /var/tmp/xdebug/xdebug.c:1551
#17 0x00007f68eef33e04 in zend_call_function ()
#18 0x00007f68d84cb242 in phalcon_call_user_function () from /usr/lib64/php/modules/phalcon.so
#19 0x00007f68d84cbb17 in phalcon_call_class_method_aparams () from /usr/lib64/php/modules/phalcon.so
#20 0x00007f68d869629b in zim_Phalcon_Mvc_View_Engine_Volt_Compiler__statementList () from /usr/lib64/php/modules/phalcon.so
#21 0x00007f68eef3202b in dtrace_execute_internal ()
#22 0x00007f68e4bd3936 in xdebug_execute_internal (current_execute_data=0x7fffdafd5fb0, fci=0x7fffdafd60e0, return_value_used=1) at /var/tmp/xdebug/xdebug.c:1551
#23 0x00007f68eef33e04 in zend_call_function ()
#24 0x00007f68d84cb242 in phalcon_call_user_function () from /usr/lib64/php/modules/phalcon.so
#25 0x00007f68d84cbb17 in phalcon_call_class_method_aparams () from /usr/lib64/php/modules/phalcon.so
#26 0x00007f68d866ef63 in zim_Phalcon_Mvc_View_Engine_Volt_Compiler__compileSource () from /usr/lib64/php/modules/phalcon.so
#27 0x00007f68eef3202b in dtrace_execute_internal ()
#28 0x00007f68e4bd3936 in xdebug_execute_internal (current_execute_data=0x7fffdafd6520, fci=0x7fffdafd6650, return_value_used=1) at /var/tmp/xdebug/xdebug.c:1551
#29 0x00007f68eef33e04 in zend_call_function ()
#30 0x00007f68d84cb242 in phalcon_call_user_function () from /usr/lib64/php/modules/phalcon.so
#31 0x00007f68d84cbb17 in phalcon_call_class_method_aparams () from /usr/lib64/php/modules/phalcon.so
#32 0x00007f68d85571d7 in zim_Phalcon_Mvc_View_Engine_Volt_Compiler_compileFile () from /usr/lib64/php/modules/phalcon.so
#33 0x00007f68eef3202b in dtrace_execute_internal ()
#34 0x00007f68e4bd3936 in xdebug_execute_internal (current_execute_data=0x7fffdafd6a30, fci=0x7fffdafd6b60, return_value_used=1) at /var/tmp/xdebug/xdebug.c:1551
#35 0x00007f68eef33e04 in zend_call_function ()
#36 0x00007f68d84cb242 in phalcon_call_user_function () from /usr/lib64/php/modules/phalcon.so
#37 0x00007f68d84cbb17 in phalcon_call_class_method_aparams () from /usr/lib64/php/modules/phalcon.so
#38 0x00007f68d8604bde in zim_Phalcon_Mvc_View_Engine_Volt_Compiler_compile () from /usr/lib64/php/modules/phalcon.so
#39 0x00007f68eef3202b in dtrace_execute_internal ()
#40 0x00007f68e4bd3936 in xdebug_execute_internal (current_execute_data=0x7fffdafd7070, fci=0x7fffdafd71a0, return_value_used=1) at /var/tmp/xdebug/xdebug.c:1551
#41 0x00007f68eef33e04 in zend_call_function ()
#42 0x00007f68d84cb242 in phalcon_call_user_function () from /usr/lib64/php/modules/phalcon.so
#43 0x00007f68d84cbb17 in phalcon_call_class_method_aparams () from /usr/lib64/php/modules/phalcon.so
#44 0x00007f68d85fd98c in zim_Phalcon_Mvc_View_Engine_Volt_render () from /usr/lib64/php/modules/phalcon.so
#45 0x00007f68eef3202b in dtrace_execute_internal ()
#46 0x00007f68e4bd3936 in xdebug_execute_internal (current_execute_data=0x7fffdafd7570, fci=0x7fffdafd76a0, return_value_used=1) at /var/tmp/xdebug/xdebug.c:1551
#47 0x00007f68eef33e04 in zend_call_function ()
#48 0x00007f68d84cb242 in phalcon_call_user_function () from /usr/lib64/php/modules/phalcon.so
#49 0x00007f68d84cbb17 in phalcon_call_class_method_aparams () from /usr/lib64/php/modules/phalcon.so
#50 0x00007f68d86434ff in zim_Phalcon_Mvc_View__engineRender () from /usr/lib64/php/modules/phalcon.so
#51 0x00007f68eef3202b in dtrace_execute_internal ()
#52 0x00007f68e4bd3936 in xdebug_execute_internal (current_execute_data=0x7fffdafd7b60, fci=0x7fffdafd7c90, return_value_used=1) at /var/tmp/xdebug/xdebug.c:1551
#53 0x00007f68eef33e04 in zend_call_function ()
#54 0x00007f68d84cb242 in phalcon_call_user_function () from /usr/lib64/php/modules/phalcon.so
#55 0x00007f68d84cbb17 in phalcon_call_class_method_aparams () from /usr/lib64/php/modules/phalcon.so
#56 0x00007f68d863d84b in zim_Phalcon_Mvc_View_render () from /usr/lib64/php/modules/phalcon.so
#57 0x00007f68eef3202b in dtrace_execute_internal ()
#58 0x00007f68e4bd3936 in xdebug_execute_internal (current_execute_data=0x7fffdafd8180, fci=0x7fffdafd82b0, return_value_used=1) at /var/tmp/xdebug/xdebug.c:1551
#59 0x00007f68eef33e04 in zend_call_function ()
#60 0x00007f68d84cb242 in phalcon_call_user_function () from /usr/lib64/php/modules/phalcon.so
#61 0x00007f68d84cbb17 in phalcon_call_class_method_aparams () from /usr/lib64/php/modules/phalcon.so
#62 0x00007f68d85e6532 in zim_Phalcon_Mvc_Application_handle () from /usr/lib64/php/modules/phalcon.so
#63 0x00007f68eef3202b in dtrace_execute_internal ()
---Type <return> to continue, or q <return> to quit---
#64 0x00007f68e4bd3936 in xdebug_execute_internal (current_execute_data=0x7f68eecb4a58, fci=0x0, return_value_used=1) at /var/tmp/xdebug/xdebug.c:1551
#65 0x00007f68eefea548 in zend_do_fcall_common_helper_SPEC ()
#66 0x00007f68eef80148 in execute_ex ()
#67 0x00007f68eef31f09 in dtrace_execute_ex ()
#68 0x00007f68e4bd2ebc in xdebug_execute_ex (execute_data=0x7f68eecb4a58) at /var/tmp/xdebug/xdebug.c:1437
#69 0x00007f68eef44f1b in zend_execute_scripts ()
#70 0x00007f68eeee09b5 in php_execute_script ()
#71 0x00007f68eedc583f in main ()

Re: php 5.6 --> php-fpm crashes

So this confirm phalcon is not ready for 5.6.

Even the test suite provided with phalcon fails and raises some segfaults.
Mostly in try to erealloc some string (probably with some interned empty string).

Need to be reported at phalcon upstream.


P.S. see in UPGRADING.INTERNALS => "f. empty strings are interned"

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

10 (edited by subzero1122 2014-09-04 11:41:31)

Re: php 5.6 --> php-fpm crashes

by the way, the guys at phalcon told us that there's a bug with phalcon.

http://forum.phalconphp.com/discussion/ … x-phalcon-

Re: php 5.6 --> php-fpm crashes

yes this is our PHP programmer. he sits next to me.

Re: php 5.6 --> php-fpm crashes

Patch pending....

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: php 5.6 --> php-fpm crashes

https://github.com/phalcon/cphalcon/pull/2770

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: php 5.6 --> php-fpm crashes

IN fact https://github.com/phalcon/cphalcon/pull/2772 (against 1.3.3)
Merged wink

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: php 5.6 --> php-fpm crashes

will check that out. thanks!

Re: php 5.6 --> php-fpm crashes

Or perhaps you can give a try to php-phalcon ?

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