Author Topic: php-fpm segfault  (Read 2956 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
php-fpm segfault
« on: January 11, 2021, 09:52:04 PM »
I've recently started having php-fpm (for php-fpm73) start segfaulting :

Jan 11 21:11:41 kern info kernel php-fpm[1397]: segfault at 104 ip 0000000000957c52 sp 00007ffd3b6526c0 error 4 in php-fpm[400000+da8000]
Jan 11 21:11:41 daemon notice systemd php-fpm73.service: main process exited, code=killed, status=11/SEGV
Jan 11 21:11:41 daemon notice systemd Unit php-fpm73.service entered failed state.
Jan 11 21:11:41 daemon warning systemd php-fpm73.service failed.

I was thinking that maybe I had done something that rebuilt php-fpm but as you can see, all the datestamps are old :

[root@web3 conf]# ls -lart /opt/alt/php-fpm73/usr/sbin/
total 48532
-rwxr-xr-x 1 root root 49687528 Dec 17  2018 php-fpm
drwxr-xr-x 2 root root     4096 Dec 17  2018 .
drwxr-xr-x 9 root root     4096 Dec 17  2018 ..
[root@web3 conf]# ls -lart /opt/alt/php-fpm73/usr/etc/p
pear.conf             php-fpm.conf          php-fpm.conf.default  php-fpm.d/           
[root@web3 conf]# ls -lart /opt/alt/php-fpm73/usr/etc/p*
-rw-r--r-- 1 root root 5417 Dec 17  2018 /opt/alt/php-fpm73/usr/etc/php-fpm.conf.default
-rw-r--r-- 1 root root 1321 Dec 17  2018 /opt/alt/php-fpm73/usr/etc/pear.conf
-rw-r--r-- 1 root root   52 Dec 17  2018 /opt/alt/php-fpm73/usr/etc/php-fpm.conf

/opt/alt/php-fpm73/usr/etc/php-fpm.d:
total 40
-rw-r--r-- 1 root root 19252 Dec 17  2018 www.conf.default
-rw-r--r-- 1 root root    58 Dec 17  2018 users.conf
drwxr-xr-x 3 root root  4096 Dec 17  2018 .
-rw-r--r-- 1 root root   632 Dec 17  2018 cwpsvc.conf
drwxr-xr-x 2 root root  4096 Jan  9 16:29 users
drwxr-xr-x 3 root root  4096 Jan 11 16:10 ..

Even my users configs are a couple months old.
running cwp pro on centos 7
all recent updates except for a mysql update

I did change the DNS on one site recently to make it live off my VPS but these are all fairly small websites with little traffic.

monit appears to be restarting things for now, but I would like to track this down if anyone can assist.




Offline
*
Re: php-fpm segfault
« Reply #1 on: January 11, 2021, 10:16:53 PM »
# curl http://dl1.centos-webpanel.com/files/s_scripts/sinfo.sh|sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   899  100   899    0     0   2852      0 --:--:-- --:--:-- --:--:--  2844
===============================================
Kernel:
Linux web3.x.com 3.10.0-1160.6.1.el7.x86_64 #1 SMP Tue Nov 17 13:59:11 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

CPU info:
model name   : AMD EPYC 7601 32-Core Processor

Release:
CentOS Linux release 7.9.2009 (Core)

Arch:
x86_64

Virtualization Type:
kvm

Memory:
              total        used        free      shared  buff/cache   available
Mem:           3789         836         347         353        2605        2313
Swap:          2303         113        2190

MySQL info:
mysql  Ver 15.1 Distrib 10.2.36-MariaDB, for Linux (x86_64) using readline 5.1

Disk Info:
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        1.9G     0  1.9G   0% /dev
tmpfs           1.9G     0  1.9G   0% /dev/shm
tmpfs           1.9G  184M  1.7G  10% /run
tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/sda         79G   22G   53G  30% /
tmpfs           379M     0  379M   0% /run/user/0


#
# /etc/fstab
# Created by anaconda on Thu Aug 16 14:02:01 2018
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/sda /                       ext4    defaults        1 1
/dev/sdb none                    swap    defaults        0 0

/swapfile swap swap defaults 0 0

Apache PHP info:
PHP 7.3.0 (cli) (built: Dec 21 2018 17:34:45) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.0-dev, Copyright (c) 1998-2018 Zend Technologies

Apache start script check:
grep: /etc/init.d/httpd: No such file or directory

CWP Admin check:
/usr/local/cwpsrv/htdocs/admin

CWP version:
0.9.8.1031
===============================================

Re: php-fpm segfault
« Reply #2 on: January 11, 2021, 11:37:57 PM »
Quote
/dev/sda /                       ext4    defaults        1 1
/dev/sdb none                    swap    defaults        0 0

/swapfile swap swap defaults 0 0
::)

Shared hosting is cheap, these days.  :-X

((Goes off to build a newly leased EPYC 4vCore 8/160GB server.. ))

Offline
*
Re: php-fpm segfault
« Reply #3 on: January 29, 2021, 03:28:49 PM »
I rebuilt php 7.3  - it was originally showing php 7.3.0 - rebuilt to the latest 7.3.26 I believe.

I have not had a single crash since