php-fpm crashing daily

Discussion in 'General' started by walle24, May 22, 2025.

  1. walle24

    walle24 New Member

    Hello,
    Multiple versions of php-fpm on my web server crash daily with messages like these:
    Code:
    2025-05-22T07:20:28.376283+02:00 web02 systemd[1]: php7.3-fpm.service: Main process exited, code=dumped, status=11/SEGV
    2025-05-22T07:20:28.396229+02:00 web02 systemd[1]: php7.3-fpm.service: Failed with result 'core-dump'.
    2025-05-22T07:20:28.396465+02:00 web02 systemd[1]: Failed to start php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager.
    2025-05-22T07:20:28.673841+02:00 web02 systemd[1]: php7.3-fpm.service: Scheduled restart job, restart counter is at 1.
    2025-05-22T07:20:28.679590+02:00 web02 systemd[1]: Starting php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager...
    2025-05-22T07:20:28.706473+02:00 web02 kernel: php-fpm7.3[593659]: segfault at 60 ip 00007d97792aafa5 sp 00007ffe08408c00 error 4 in libc.so.6[7d9779228000+188000] likely on CPU 2 (core 0, socket 4)
    2025-05-22T07:20:28.706491+02:00 web02 kernel: Code: e0 16 12 00 e8 6c 03 f9 ff 66 66 2e 0f 1f 84 00 00 00 00 00 90 55 48 89 e5 41 57 41 56 41 55 4c 8d 2c 16 41 54 53 48 83 ec 08 <48> 8b 47 60 48 39 f0 0f 84 3e 01 00 00 49 89 ff 48 89 f3 49 89 d4
    2025-05-22T07:20:28.859528+02:00 web02 systemd[1]: php7.3-fpm.service: Failed with result 'core-dump'.
    2025-05-22T07:20:28.859719+02:00 web02 systemd[1]: Failed to start php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager.
    ...
    2025-05-22T07:20:31.864532+02:00 web02 systemd[1]: php7.4-fpm.service: Failed with result 'core-dump'.
    2025-05-22T07:20:31.864732+02:00 web02 systemd[1]: Failed to start php7.4-fpm.service - The PHP 7.4 FastCGI Process Manager.
    
    2025-05-22T07:20:32.174233+02:00 web02 systemd[1]: php7.4-fpm.service: Scheduled restart job, restart counter is at 2.
    2025-05-22T07:20:32.180619+02:00 web02 systemd[1]: Starting php7.4-fpm.service - The PHP 7.4 FastCGI Process Manager...
    2025-05-22T07:20:32.188490+02:00 web02 php8.3-fpm: php_invoke calendar: already enabled for PHP 8.3 fpm sapi
    2025-05-22T07:20:32.205479+02:00 web02 php-fpm7.4[595919]: munmap_chunk(): invalid pointer
    2025-05-22T07:20:32.347018+02:00 web02 systemd[1]: php7.4-fpm.service: Main process exited, code=dumped, status=6/ABRT
    2025-05-22T07:20:32.361565+02:00 web02 systemd[1]: php7.4-fpm.service: Failed with result 'core-dump'.
    2025-05-22T07:20:32.361761+02:00 web02 systemd[1]: Failed to start php7.4-fpm.service - The PHP 7.4 FastCGI Process Manager.
    Also none of them can be restarted using systemctl restart. The output of that is:
    Code:
    Job for php8.3-fpm.service failed because a fatal signal was delivered causing the control process to dump core.
    See "systemctl status php8.3-fpm.service" and "journalctl -xeu php8.3-fpm.service" for details.
    I found no other way to start them up than a server reboot. This problem seems to have something to do with the systemd script. Reinstalling php-fpm didn't help. Is anyone else experiencing problems like these?

    Here is the output of the test script from the server:

    Code:
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Ubuntu 24.04.2 LTS
    
    [INFO] uptime:  15:58:08 up  8:31,  1 user,  load average: 0.08, 0.15, 0.10
    
    [INFO] memory:
                   total        used        free      shared  buff/cache   available
    Mem:            15Gi       1.6Gi        11Gi       563Mi       3.7Gi        13Gi
    Swap:          4.0Gi          0B       4.0Gi
    
    [INFO] systemd failed services status:
      UNIT                    LOAD   ACTIVE SUB    DESCRIPTION
    ● [email protected]       loaded failed failed Postfix Mail Transport Agent (instance -)
    ● aibolit-resident.socket loaded failed failed AibolitResident Startup Socket
    
    Legend: LOAD   → Reflects whether the unit definition was properly loaded.
            ACTIVE → The high-level unit activation state, i.e. generalization of SUB.
            SUB    → The low-level unit activation state, values depend on unit type.
    
    2 loaded units listed.
    
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.2.12p1
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 8.3.20
    [INFO] php-cgi (used for cgi php in default vhost!) is version 8.4.6
    
    ##### PORT CHECK #####
    
    [WARN] Port 8080 (ISPConfig) seems NOT to be listening
    [WARN] Port 143 (IMAP server) seems NOT to be listening
    [WARN] Port 993 (IMAP server SSL) seems NOT to be listening
    [WARN] Port 110 (POP3 server) seems NOT to be listening
    [WARN] Port 995 (POP3 server SSL) seems NOT to be listening
    [WARN] Port 25 (SMTP server) seems NOT to be listening
    [WARN] Port 465 (SMTP server SSL) seems NOT to be listening
    [WARN] Port 25 (SMTP server) seems NOT to be listening
    
    ##### MAIL SERVER CHECK #####
    
    [WARN] I found no "submission" entry in your postfix master.cf
    [INFO] this is not critical, but if you want to offer port 587 for smtp connections you have to enable this.
    [WARN] I found no "smtps" entry in your postfix master.cf
    [INFO] this is not critical, but if you want to offer SSL for smtp (not TLS) connections you have to enable this.
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
            Apache 2 (PID 4275)
    [WARN] I could not determine which mail server is running.
    [WARN] I could not determine which pop3 server is running.
    [WARN] I could not determine which imap server is running.
    [INFO] I found the following ftp server(s):
            PureFTP (PID 4142)
    
    ##### LISTENING PORTS #####
    (only           ()
    Local           (Address)
    [anywhere]:21           (4142/pure-ftpd)
    ***.***.***.***:53              (875/systemd-resolve)
    [anywhere]:52223                (4206/im360:)
    ***.***.***.***:53              (1083/named)
    ***.***.***.***:53              (1083/named)
    ***.***.***.***:53              (1083/named)
    ***.***.***.***:53              (1083/named)
    [anywhere]:52224                (4206/im360:)
    [anywhere]:3306         (4060/mariadbd)
    [localhost]:953         (1083/named)
    [localhost]:953         (1083/named)
    [localhost]:953         (1083/named)
    [localhost]:953         (1083/named)
    [localhost]:53          (1083/named)
    [localhost]:53          (1083/named)
    [localhost]:53          (1083/named)
    [localhost]:53          (1083/named)
    [localhost]:11211               (1082/memcached)
    ***.***.***.***:53              (875/systemd-resolve)
    [localhost]:38637               (4088/avagent.bin)
    *:*:*:*::*:21           (4142/pure-ftpd)
    *:*:*:*::*:22           (1/init)
    *:*:*:*::*:80           (4275/apache2)
    *:*:*:*::**:*:*:*::*53          (1083/named)
    *:*:*:*::**:*:*:*::*53          (1083/named)
    *:*:*:*::**:*:*:*::*53          (1083/named)
    *:*:*:*::**:*:*:*::*53          (1083/named)
    *:*:*:*::*:443          (4275/apache2)
    *:*:*:*::*:953          (1083/named)
    *:*:*:*::*:953          (1083/named)
    *:*:*:*::*:953          (1083/named)
    *:*:*:*::*:953          (1083/named)
    *:*:*:*::*:53           (1083/named)
    *:*:*:*::*:53           (1083/named)
    *:*:*:*::*:53           (1083/named)
    *:*:*:*::*:53           (1083/named)
    *:*:*:*::*:52223                (4206/im360:)
    *:*:*:*::*:52224                (4206/im360:)
    *:*:*:*::*:3306         (4060/mariadbd)
    *:*:*:*::*:28002                (4088/avagent.bin)
    *:*:*:*::*:30002                (4088/avagent.bin)
    *:*:*:*::*:8081         (4275/apache2)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination
    INPUT_imunify360  0    --  [anywhere]/0            [anywhere]/0
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination
    ACCEPT     6    --  [anywhere]/0            [anywhere]/0            tcp dpt:9999 owner UID match 0
    OUTPUT_imunify360  0    --  [anywhere]/0            [anywhere]/0
    ACCEPT     6    --  [anywhere]/0            [anywhere]/0            tcp dpt:9999 owner UID match 0
    ACCEPT     6    --  [anywhere]/0            [anywhere]/0            tcp dpt:9999 owner UID match 0
    ACCEPT     6    --  [anywhere]/0            [anywhere]/0            tcp dpt:9999 owner UID match 0
    
    Chain INPUT_imunify360 (1 references)
    target     prot opt source               destination
    imunify360_webshield_ports  6    --  [anywhere]/0            [anywhere]/0            multiport dports 52223,52224
    ACCEPT     6    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.remote_proxy src multiport dports 52223,52224
    ACCEPT     6    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.remote_proxy_static src multiport dports 52223,52224
    NFLOG      0    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.whitelist.full_access src nflog-prefix im360-whitelist nflog-group 36005
    RETURN     0    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.whitelist.full_access src
    INPUT_imunify360_bp  0    --  [anywhere]/0            [anywhere]/0
    NFLOG      0    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.whitelist.host_ips src nflog-prefix im360-whitelist nflog-group 36005
    RETURN     0    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.whitelist.host_ips src
    NFLOG      0    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.i360_whitelist.static src nflog-prefix im360-whitelist nflog-group 36005
    RETURN     0    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.i360_whitelist.static src
    NFLOG      0    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.whitelist.custom src nflog-prefix im360-whitelist nflog-group 36005
    RETURN     0    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.whitelist.custom src
    NFLOG      0    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.whitelist src nflog-prefix im360-whitelist nflog-group 36005
    RETURN     0    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.whitelist src
    NFLOG      0    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.white.sync src nflog-prefix im360-whitelist nflog-group 36005
    RETURN     0    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.white.sync src
    imunify360_country_whitelist  0    --  [anywhere]/0            [anywhere]/0
    imunify360_log_bl  0    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.blacklist src
    imunify360_log_bl  0    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.blacklist.custom src
    imunify360_country_blacklist  0    --  [anywhere]/0            [anywhere]/0
    NFLOG      0    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.whitelist.static src nflog-prefix im360-whitelist nflog-group 36005
    RETURN     0    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.whitelist.static src
    imunify360_log_bl  0    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.drop.sync src
    RETURN     0    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.ignorelist src
    ACCEPT     6    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.graysplashlist src multiport dports 52223,52224
    ACCEPT     6    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.graylist src multiport dports 52223,52224
    imunify360_log_gl  0    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.graylist src
    ACCEPT     6    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.splashscreen.sync src multiport dports 52223,52224
    ACCEPT     6    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.captcha.sync src multiport dports 52223,52224
    imunify360_log_gl  0    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.captcha.sync src
    
    Chain INPUT_imunify360_bp (1 references)
    target     prot opt source               destination
    
    Chain OUTPUT_imunify360 (1 references)
    target     prot opt source               destination
    RETURN     0    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.whitelist.full_access dst
    
    Chain OUTPUT_imunify360_bp (0 references)
    target     prot opt source               destination
    
    Chain imunify360_country_blacklist (1 references)
    target     prot opt source               destination
    
    Chain imunify360_country_whitelist (1 references)
    target     prot opt source               destination
    
    Chain imunify360_log_bl (3 references)
    target     prot opt source               destination
    NFLOG      0    --  [anywhere]/0            [anywhere]/0            nflog-prefix im360-blacklist nflog-group 36005
    DROP       0    --  [anywhere]/0            [anywhere]/0
    
    Chain imunify360_log_bl_country (0 references)
    target     prot opt source               destination
    NFLOG      0    --  [anywhere]/0            [anywhere]/0            nflog-prefix im360-blacklisted-country nflog-group 36005
    DROP       0    --  [anywhere]/0            [anywhere]/0
    
    Chain imunify360_log_gl (2 references)
    target     prot opt source               destination
    NFLOG      0    --  [anywhere]/0            [anywhere]/0            nflog-prefix im360-graylist nflog-group 36005
    DROP       0    --  [anywhere]/0            [anywhere]/0
    
    Chain imunify360_log_port_block (1 references)
    target     prot opt source               destination
    NFLOG      0    --  [anywhere]/0            [anywhere]/0            nflog-prefix im360-blocked-by-port nflog-group 36005
    REJECT     0    --  [anywhere]/0            [anywhere]/0            reject-with icmp-port-unreachable
    
    Chain imunify360_webshield_ports (1 references)
    target     prot opt source               destination
    RETURN     6    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.remote_proxy src multiport dports 52223,52224
    RETURN     6    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.remote_proxy_static src multiport dports 52223,52224
    RETURN     6    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.graysplashlist src multiport dports 52223,52224
    RETURN     6    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.graylist src multiport dports 52223,52224
    RETURN     6    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.splashscreen.sync src multiport dports 52223,52224
    RETURN     6    --  [anywhere]/0            [anywhere]/0            match-set i360.ipv4.captcha.sync src multiport dports 52223,52224
    ACCEPT     0    --  [localhost]            [anywhere]/0
    imunify360_log_port_block  0    --  [anywhere]/0            [anywhere]/0
    
    
    
    
    ##### LET'S ENCRYPT #####
    acme.sh is installed in /root/.acme.sh/acme.sh
     
  2. pyte

    pyte Well-Known Member HowtoForge Supporter

    These issues are not ISPConfig related. I think we can't help you here. You need quiet some expirience to debug segfaults. Please refer to upstream bug tracker for further information. There are a few open issues regarding segfault:
    https://github.com/php/php-src/issues?q=is:issue state:open segfault
     

Share This Page