Hi,
one of our servers crashed badly today. php-fpm was segfaulting
several times in a minute producing more that 1k core files and ~x100%
cpu usage. It stopped when I killed all fpm processes and restarted
them again (most processes were in an R state).
I am running php-fpm:
URL: http://svn.php.net/repository/php/php-src/branches/PHP_5_3
Revision: 299968
config and compile options are described in http://bugs.php.net/bug.php?id=52032,
though bt from that bug is different.
here is a bt from one of the thousand core files today, hope it's
useful:
#0 0x00002ac2473f42f5 in raise () from /lib/libc.so.6
(gdb) bt
#0 0x00002ac2473f42f5 in raise () from /lib/libc.so.6
#1 0x00002ac2473f57f1 in abort () from /lib/libc.so.6
#2 0x00002ac2473ed4f9 in __assert_fail () from /lib/libc.so.6
#3 0x00002ac246b74b9c in event_base_free (base=0x555556172bb0) at
event.c:261
#4 0x0000555555a37b24 in fpm_event_cleanup (which=1,
arg=0x555556172bb0)
at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fpm_events.c:24
#5 0x0000555555a35183 in fpm_cleanups_run (type=1) at /home/l3et3r/
php-5.3-r299968/sapi/fpm/fpm/fpm_cleanup.c:46
#6 0x0000555555a341dd in fpm_run (max_requests=0x7fff64ff058c,
base=0x555556172bb0)
at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fpm.c:78
#7 0x0000555555a3b02c in main (argc=1, argv=0x7fff64ff0788)
at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fpm_main.c:1765
I've looked at several of them an all seem to have the above bt.
BTW I am chasing a bad segfault with this server, causing all fpm
processes to die, but haven't got a bt yet (it's somehow hard to
catch).