cphalcon: v3.0.1
php: 7.0.10
os: Centos7
php-fpm.log:
child 4372 exited on signal 11 (SIGSEGV) after 484.350438 seconds from start
issue:
class A {
public static function A1() {
return B::B1();
}
}
class B {
public static function B1() {
return C::C1();
}
}
class C {
public static function C1() {
return D::D1();
}
}
class D {
public static function D1() {
return 1;
}
}
A::A1(); // when run this line will show 502 page, and log file is SIGSEGV。
It can not call mutil functions?
This means that there is probably crash dump file generated. Try to post backtrace from gdb:
https://bugs.php.net/bugs-generating-backtrace.php
Also i don't see how this is related to phalcon ? I don't see here any phalcon classes call.
I just tested your code with exactly the same PHP/Phalcon versions. There was no crash. The line you pointed out returns 1.
I can echo A::A1();
The only difference between your setup and mine being architecture - I'm on ARM, and both PHP-FPM and Phalcon binaries are 32-bit, as the OS itself.
Bottom line: your code does not even call Phalcon anywhere, so I guess you have larger scale problem on your CentOS.
For me this should be closed, there are no phalcon calls so this is not phalcon framework related.