26 (edited by patrik_cevela 2014-10-29 22:03:53)

Re: kernel: php: segfault

Hello guys,

at first, many thanks for repo Remi smile

At second, I'm experiencing segmentation fault in this environment

CentOS 7 + Apache 2.4.6 + mod_php + mpm-worker + PHP 5.4.34

PHP loaded modules

php -m
bcmath
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
igbinary
imagick
json
libxml
mbstring
mcrypt
mhash
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
raphf
readline
recode
redis
Reflection
session
shmop
SimpleXML
sockets
SPL
sqlite3
standard
suhosin
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
wddx
XCache
XCache Cacher
XCache Coverager
XCache Optimizer
xml
xmlreader
xmlwriter
xsl
zip
zlib

[Zend Modules]
Suhosin
XCache
XCache Cacher
XCache Coverager
XCache Optimizer

Here is list of all installed php rpms

rpm -qa php\* | sort
php-5.4.34-1.el7.remi.x86_64
php-bcmath-5.4.34-1.el7.remi.x86_64
php-channel-nrk-1.3-1.el7.noarch
php-channel-phpseclib-1.3-1.el7.noarch
php-cli-5.4.34-1.el7.remi.x86_64
php-common-5.4.34-1.el7.remi.x86_64
php-fpm-5.4.34-1.el7.remi.x86_64
php-gd-5.4.34-1.el7.remi.x86_64
php-mbstring-5.4.34-1.el7.remi.x86_64
php-mcrypt-5.4.34-1.el7.remi.x86_64
phpMyAdmin-4.2.10.1-1.el7.remi.noarch
php-mysql-5.4.34-1.el7.remi.x86_64
php-pdo-5.4.34-1.el7.remi.x86_64
php-pear-1.9.5-3.el7.remi.noarch
php-pecl-igbinary-1.2.1-1.el7.remi.5.4.x86_64
php-pecl-imagick-3.1.2-4.el7.remi.5.4.x86_64
php-pecl-raphf-1.0.4-3.el7.remi.5.4.x86_64
php-pecl-redis-2.2.5-5.el7.remi.5.4.x86_64
php-php-gettext-1.0.11-10.el7.noarch
php-phpseclib-crypt-aes-0.3.8-1.el7.remi.noarch
php-phpseclib-crypt-base-0.3.8-1.el7.remi.noarch
php-phpseclib-crypt-rijndael-0.3.8-1.el7.remi.noarch
php-process-5.4.34-1.el7.remi.x86_64
php-recode-5.4.34-1.el7.remi.x86_64
php-suhosin-0.9.36-1.el7.remi.5.4.x86_64
php-tcpdf-6.0.097-1.el7.remi.noarch
php-tcpdf-dejavu-sans-fonts-6.0.097-1.el7.remi.noarch
php-tidy-5.4.34-1.el7.remi.x86_64
php-xcache-3.1.1-1.el7.remi.5.4.x86_64
php-xml-5.4.34-1.el7.remi.x86_64

The thing is, I can't generate kernel logs because machine is running inside OpenVZ container and I can't edit crucial /proc files. I have ABRT installed but either I can't configure it correctly, or my Apache is self-minded and don't want to produce core dump... Can I somehow trace bug in realtime attaching to running process? (I'm really new in this in deep debugging stuff - never done this before smile)

I tried to disable xcache, suhosin, mod_security didn't helped. I also found your bugreport about gdm at php.net so I've tried disable it and that also didn't resolve issue.

Do you have some sort of guidance with this issue? I literally read hundreds of pages with SegFault topics with no luck...

Thank you very much

Re: kernel: php: segfault

apache in worker is really something we cannot support
read: http://fr2.php.net/manual/en/install.unix.apache2.php

With worker, I recommend to use
- prefork mode
or
- php-fpm instead of mod_php (ok, not easy until SetHandler to proxy is supported, so have to use

To get coredump, you just have to set the CoreDumpDirectory directive in apache configuration, and install the debuginfo packages.

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: kernel: php: segfault

Well it looks like switch to prefork solved problem smile

Thanks!