Php-cgi segfaults on x86_64
Hi - seems php-cgi is segfaulting in Alpine >2.6.5 x86_64
Linux xxxxxxxxx 3.10.17-1-grsec #2-Alpine SMP Wed Oct 23 14:29:15 UTC 2013 x86_64 Linux
xxxxxxxxx:/etc# tail -f /var/log/messages
Nov 7 02:00:45 xxxxxxxxx syslogd 1.5.0: restart (remote reception).
Nov 7 05:23:27 xxxxxxxxx kernel: [685717.635032] php-cgi[17135]: segfault at 7411f1867000 ip 00000d366f70b218 sp 0 0007411f1862770 error 6 in php-cgi[d366f505000+72a000]
Nov 7 05:23:31 xxxxxxxxx kernel: [685721.365420] php-cgi[23232]: segfault at 7411f1867000 ip 00000d366f70b218 sp 0 0007411f1862770 error 6 in php-cgi[d366f505000+72a000]
xxxxxxxxx:/var/log# tail -f /var/log/lighttpd/error.log
2013-11-07 05:23:27: (mod_fastcgi.c.2543) unexpected end-of-file (perhaps the fastcgi process died): pid: 16614 socket: unix:/var/run/lighttpd/lighttpd-fastcgi-php-16601.socket-3
2013-11-07 05:23:27: (mod_fastcgi.c.3329) response not received, request sent: 1034 on socket: unix:/var/run/lighttpd/lighttpd-fastcgi-php-16601.socket-3 for /zabbix/index.php?, closing connection
2013-11-07 05:23:31: (mod_fastcgi.c.2543) unexpected end-of-file (perhaps the fastcgi process died): pid: 16614 socket: unix:/var/run/lighttpd/lighttpd-fastcgi-php-16601.socket-3
2013-11-07 05:23:31: (mod_fastcgi.c.3329) response not received, request sent: 1063 on socket: unix:/var/run/lighttpd/lighttpd-fastcgi-php-16601.socket-3 for /zabbix/index.php?, closing connection
This is running a zabbix web front-end. However, we get the same problem when trying to access something like PhpMyAdmin. I have tested with Apache2 as well:
xxxxxxxxx:/var/log# tail -f /var/log/apache2/error.log
[Thu Nov 07 07:11:16.230609 2013] [core:notice] [pid 4021] AH00052: child pid 4028 exit signal Segmentation fault (11)
I haven’t been able to test on x86 versions. Is it possible there is a bug, or some misconfiguration somewhere else on our system?
Many thanks,
Duane Hughes
(from redmine: issue id 2297, created on 2013-11-07, closed on 2016-11-03)