php-cgi segfaults in messages?

Discussion in 'ISPConfig 3 Priority Support' started by craig baker, Aug 27, 2014.

  1. craig baker

    craig baker Member HowtoForge Supporter

    I've just noticed the occasional (but common) errors in my log like these:

    Jul 27 03:31:40 ns9 kernel: php-cgi[1976]: segfault at 7f8f5d6acde6 ip 00000000005926a8 sp 00007fff89b3d4a0 error 4 in php-cgi[400000+2c3000]
    Jul 27 03:31:40 ns9 abrtd: Directory 'ccpp-2014-07-27-03:31:40-1976' creation detected
    Jul 27 03:31:40 ns9 abrt[12947]: Saved core dump of pid 1976 (/usr/bin/php-cgi) to /var/spool/abrt/ccpp-2014-07-27-03:31:40-1976 (102449152 bytes)

    any ideas why php-cgi would be segfaulting?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Secfaults can be caused by hardware as well as software problems. Is this a custom php version or the default one from the linux distribution? Do you get segfaults in other applications as well? Are these segfualts just in this one website or in all websites?
     
  3. craig baker

    craig baker Member HowtoForge Supporter

    it only started very recently. and no information as to what website is the cause - how can I see which generated the php-cgi call?
    I see folks reporting this error with [40000+2c3000] after a php update
    the error_log in httpd shows these kinds of errors
    [Wed Aug 27 08:13:50 2014] [error] mod_fcgid: process /var/www/php-fcgi-scripts/web46/.php-fcgi-starter(21323) exit(communication error), get signal 11, possible coredump generated
    [Wed Aug 27 08:30:14 2014] [error] mod_fcgid: process /var/www/php-fcgi-scripts/web46/.php-fcgi-starter(25668) exit(communication error), get signal 11, possible coredump generated
    [Wed Aug 27 08:32:21 2014] [error] mod_fcgid: process /var/www/php-fcgi-scripts/web46/.php-fcgi-starter(25840) exit(communication error), get signal 11, possible coredump generated

    Another fellow reports that its APC throwing sefaults. and recommends updating to 3.1.13 - which I've now done.
    phpinfo reports 3.1.13 installed - I'll keep my fingers crossed and report further

    the update still leads to segfaults - I've now disabled apc completely and segfaults seem much rarer. any good alternative to apc?
    abrt file contains lines:
    6b000+21000]
    Aug 27 09:06:45 ns9 abrt[13091]: Saved core dump of pid 4041 (/usr/bin/php-cgi) to /var/spool/abrt/ccpp-2014-08-27-09:06:42-4041 (94199808 bytes)
    Aug 27 09:16:04 ns9 kernel: php-cgi[16756]: segfault at 7f11f90d2f5e ip 00000000005926a8 sp 00007fffb0a46930 error 4 in php-cgi[400000+2c3000]
    Aug 27 09:16:07 ns9 abrt[16874]: Saved core dump of pid 16756 (/usr/bin/php-cgi) to /var/spool/abrt/ccpp-2014-08-27-09:16:04-16756 (60837888 bytes)
    Aug 27 09:18:18 ns9 kernel: php-cgi[11804]: segfault at 3e3c000 ip 00000038f7c8e764 sp 00007fff83d974a8 error 6 in libc-2.12.so[38f7c00000+18b000]
    Aug 27 09:18:18 ns9 abrt[18995]: Saved core dump of pid 11804 (/usr/bin/php-cgi) to /var/spool/abrt/ccpp-2014-08-27-09:18:18-11804 (116441088 bytes)

    I have several php versions (ala howtoforge) installed. presumably php-cgi is fastcgi from one of the version. I cannot tell what websites are being impacted,
    but this cannot be good can it? LOL

    sigh. any ideas?
     
    Last edited: Aug 27, 2014
  4. craig baker

    craig baker Member HowtoForge Supporter

    Till - BIG problem need help immediately!!!!!!

    ok I've determined that one of the websites was throwing errors and causing abrt messages. but I've also discovered that apparently my ispconfig3 plugins are segfaulting.

    anytime I click on phpmyadmin which I installed as a clickable link under databases (link on each database line) - apache error_log records a segfault.
    and webpage returns an empty 'server reset' page
    anytime I click on webmail (I installed roundcube) - apache error_log records a segfault.
    and webpage returns an empty 'server reset' page.
    apparently this behaviour just started a few days ago - two or three. people were using roundcube 4 days ago just fine.

    I also had net2ftp installed and working - but when I click on the link it goes to
    https://ns9.cdbsystems.com:8080/net2ftp -and get 'server reset error' on the page. and error_log records a segfault!

    apparently none of the ispconfig3 managed components are working properly anymore!


    these always used to work great!!

    I recently did an ISPCONFIG3 upgrade though not to the newest version - I'm one behind.
    what on earth could cause it?

    where can I look to see whats causing the segfaults???

    can I get some (paid) assistance? if so how much and how quick??


    **** UPDATE **** this is getting surreal. it seems httpd itself segfaulted, and all of a sudden ispconfig things seem to work (roundcube, phpmyadmin).

    I'm perusing logs now in a most perplexed and worried manner.
     
    Last edited: Aug 28, 2014

Share This Page