We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Centos7 Phalcon segfaults

Hi all,

I'm trying to run an application on Centos7, under PHP7.1 and Phalcon 3.3.x.

I'm seeing extremely unstable behaviour which results in segfaults in phalcon.so:

Oct 23 10:45:10 d7 kernel: php-fpm[6242]: segfault at 18 ip 00007fb5f8f31d08 sp 00007ffd8edaf9a0 error 4 in phalcon.so[7fb5f8eb3000+476000]

In this case crash happens very early in the app, during app modules setup. This is the class that's crashing it:

abstract class ModuleTemplate implements ModuleDefinitionInterface, InjectionAwareInterface
{
....
}

However, sometimes it goes past that point and after that crashes somewhere in MVC models.

Is anyone else experiencing something similar?

Thanks!



51.3k

Got the gdb & backtrace and filed a bug:

https://github.com/phalcon/zephir/issues/1590

I use latest Centos 7 and php7.1 from remi-repo without any issues!

yum install https://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install yum-utils & yum-config-manager --enable remi-php71
yum install php php-mysqlnd php-opcache php-gd php-intl php-mbstring php-xml php-soap php-pecl-apcu php-phalcon3