Topic: PHP72 SCL segmentation fault on start

PHP72 SCL running on RHEL6

When I start the service I always get a segfault

/sbin/service php72-php-fpm start
Starting php-fpm: /bin/bash: line 1: 119399 Segmentation fault      (core dumped) /opt/remi/php72/root/usr/sbin/php-fpm --daemonize
                                                           [FAILED]

Then I run a status

/sbin/service php72-php-fpm status
php-fpm (pid  119400) is running...


What I have in error_log file

[23-May-2018 23:00:36] NOTICE: Terminating ...
[23-May-2018 23:00:36] NOTICE: exiting, bye-bye!
[23-May-2018 23:00:40] NOTICE: fpm is running, pid 119400
[23-May-2018 23:00:40] NOTICE: ready to handle connections

Have you ever seen this ?

Thanks !

Re: PHP72 SCL segmentation fault on start

Sorry, but I cannot reproduce with minimal set of extensions + default provided configuration

May be related to some installed extensions ("php72 -m" and "rpm -qa php72\*")

Also, a gdb backtrace can help.

Desktop: Fedora 27 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 28 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test

Re: PHP72 SCL segmentation fault on start

Here is the info

[PHP Modules]
apc
apcu
bz2
calendar
Core
couchbase
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
geoip
gettext
gmp
hash
iconv
igbinary
imagick
imap
intl
json
ldap
libxml
mbstring
mcrypt
memcache
memcached
msgpack
mysqli
mysqlnd
openssl
pcntl
pcre
pcs
PDO
pdo_mysql
pdo_sqlite
Phar
posix
pspell
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
sqlite3
ssh2
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

php72-php-pspell-7.2.5-1.el6.remi.x86_64
php72-php-cli-7.2.5-1.el6.remi.x86_64
php72-php-tidy-7.2.5-1.el6.remi.x86_64
php72-php-mysqlnd-7.2.5-1.el6.remi.x86_64
php72-runtime-1.0-1.el6.remi.x86_64
php72-php-fpm-7.2.5-1.el6.remi.x86_64
php72-php-pear-1.10.5-6.el6.remi.noarch
php72-php-pecl-imagick-3.4.3-8.el6.remi.x86_64
php72-php-opcache-7.2.5-1.el6.remi.x86_64
php72-php-ldap-7.2.5-1.el6.remi.x86_64
php72-1.0-1.el6.remi.x86_64
php72-php-pecl-memcache-3.0.9-0.9.20170802.e702b5f.el6.remi.x86_64
php72-php-pecl-mcrypt-1.0.1-4.el6.remi.x86_64
php72-php-common-7.2.5-1.el6.remi.x86_64
php72-php-xmlrpc-7.2.5-1.el6.remi.x86_64
php72-php-intl-7.2.5-1.el6.remi.x86_64
php72-php-gd-7.2.5-1.el6.remi.x86_64
php72-php-pecl-pcs-1.3.3-3.el6.remi.x86_64
php72-php-pecl-apcu-5.1.11-1.el6.remi.x86_64
php72-php-xml-7.2.5-1.el6.remi.x86_64
php72-php-process-7.2.5-1.el6.remi.x86_64
php72-php-pecl-igbinary-2.0.5-1.el6.remi.x86_64
php72-php-mbstring-7.2.5-1.el6.remi.x86_64
php72-php-pecl-msgpack-2.0.2-4.el6.remi.x86_64
php72-php-pecl-ssh2-1.1.2-1.el6.remi.x86_64
php72-php-pecl-apcu-bc-1.0.4-1.el6.remi.x86_64
php72-php-imap-7.2.5-1.el6.remi.x86_64
php72-php-pecl-zip-1.15.2-1.el6.remi.x86_64
php72-php-pecl-couchbase2-2.4.6-1.el6.remi.x86_64
php72-php-pdo-7.2.5-1.el6.remi.x86_64
php72-php-soap-7.2.5-1.el6.remi.x86_64
php72-php-pecl-memcached-3.0.4-1.el6.remi.x86_64
php72-php-json-7.2.5-1.el6.remi.x86_64
php72-php-gmp-7.2.5-1.el6.remi.x86_64
php72-php-pecl-geoip-1.1.1-4.el6.remi.x86_64

But I'll try to install it on a "clean" system. I'm using a chroot env with a copy of system libs (Maybe I'm using a too old version of some libs... I'm thinking about libcouchbase )

Thanks for your time smile

Re: PHP72 SCL segmentation fault on start

> I'm using a chroot env with a copy of system libs

Hmm... a don't think this is needed.
libraries are loaded at FPM startup, before the chroot

BUT /usr/share/zoneinfo is required

Also try to disable some extension (espacially pcs... do you really need it ?)

Desktop: Fedora 27 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 28 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test

Re: PHP72 SCL segmentation fault on start

I removed php72-php-pecl-couchbase2-2.4.6-1.el6.remi.x86_64 and it's all working fine. (But I'm using it so I'll have to figure out why smile )