On Ubuntu Server 12.04 on amd64 (Intel Xeon E5620 CPU) php5-fpm randomly crashes with the following message:
May 29 06:38:25 srv2 kernel: [315922.148835] php5-fpm[20902]: segfault at 0 ip 00007fecd9032558 sp 00007fff18136898 error 4 in libc-2.15.so[7fecd8f00000+1b3000]
May 29 06:38:25 srv2 kernel: [315922.148849] php5-fpm/20902: potentially unexpected fatal signal 11.
May 29 06:38:25 srv2 kernel: [315922.148851]
May 29 06:38:25 srv2 kernel: [315922.148853] CPU 7
May 29 06:38:25 srv2 kernel: [315922.148854] Modules linked in: vesafb psmouse i7core_edac edac_core ioatdma dca serio_raw joydev mac_hid lp parport usbhid hid e1000e megaraid_sas
May 29 06:38:25 srv2 kernel: [315922.148870]
May 29 06:38:25 srv2 kernel: [315922.148873] Pid: 20902, comm: php5-fpm Not tainted 3.2.0-24-generic #39-Ubuntu Supermicro X8DTT-H/X8DTT-H
May 29 06:38:25 srv2 kernel: [315922.148878] RIP: 0033:[<00007fecd9032558>] [<00007fecd9032558>] 0x7fecd9032557
May 29 06:38:25 srv2 kernel: [315922.148884] RSP: 002b:00007fff18136898 EFLAGS: 00010206
May 29 06:38:25 srv2 kernel: [315922.148887] RAX: 0000000000000000 RBX: 00007fecdb38b000 RCX: 0000000000000011
May 29 06:38:25 srv2 kernel: [315922.148890] RDX: 0000000000000066 RSI: 0000000000af8af5 RDI: 0000000000000000
May 29 06:38:25 srv2 kernel: [315922.148892] RBP: 00000000023cc228 R08: 0000000000000011 R09: 0000000000000000
May 29 06:38:25 srv2 kernel: [315922.148895] R10: 00007fecd9035750 R11: 00007fecd9081710 R12: 0000000000000001
May 29 06:38:25 srv2 kernel: [315922.148897] R13: 0000000000000000 R14: 0000000000000000 R15: 00000000023cc2f0
May 29 06:38:25 srv2 kernel: [315922.148901] FS: 00007fecdb382700(0000) GS:ffff8803332e0000(0000) knlGS:0000000000000000
May 29 06:38:25 srv2 kernel: [315922.148904] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
May 29 06:38:25 srv2 kernel: [315922.148906] CR2: 0000000000000000 CR3: 0000000327434000 CR4: 00000000000006e0
May 29 06:38:25 srv2 kernel: [315922.148909] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
May 29 06:38:25 srv2 kernel: [315922.148912] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
May 29 06:38:25 srv2 kernel: [315922.148915] Process php5-fpm (pid: 20902, threadinfo ffff88032aeec000, task ffff88032aa55bc0)
May 29 06:38:25 srv2 kernel: [315922.148917]
May 29 06:38:25 srv2 kernel: [315922.148919] Call Trace:
GDB information:
Core was generated by `php-fpm: pool mypool '.
Program terminated with signal 11, Segmentation fault.
#0 __strstr_sse42 (s1=0x0, s2=<optimized out>) at ../sysdeps/x86_64/multiarch/strstr.c:175
175 ../sysdeps/x86_64/multiarch/strstr.c: No such file or directory.
(gdb) bt
#0 __strstr_sse42 (s1=0x0, s2=<optimized out>) at ../sysdeps/x86_64/multiarch/strstr.c:175
#1 0x0000000000736d13 in fpm_status_handle_request () at /build/buildd/php5-5.3.10/sapi/fpm/fpm/fpm_status.c:128
#2 0x000000000042b4ab in main (argc=11237155, argv=0x0) at /build/buildd/php5-5.3.10/sapi/fpm/fpm/fpm_main.c:1809
# uname -a
Linux srv2 3.2.0-24-generic #39-Ubuntu SMP Mon May 21 16:52:17 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
# dpkg -l |grep php
ii php-apc 3.1.7-1 APC (Alternative PHP Cache) module for PHP 5
ii php5-cli 5.3.10-1ubuntu3.1 command-line interpreter for the php5 scripting language
ii php5-common 5.3.10-1ubuntu3.1 Common files for packages built from the php5 source
ii php5-curl 5.3.10-1ubuntu3.1 CURL module for php5
ii php5-dbg 5.3.10-1ubuntu3.1 Debug symbols for PHP5
ii php5-fpm 5.3.10-1ubuntu3.1 server-side, HTML-embedded scripting language (FPM-CGI binary)
ii php5-gd 5.3.10-1ubuntu3.1 GD module for php5
ii php5-mcrypt 5.3.5-0ubuntu1 MCrypt module for php5
ii php5-memcache 3.0.6-1 memcache extension module for PHP5
ii php5-mysql 5.3.10-1ubuntu3.1 MySQL module for php5
The crash occurs several times per hour and is repeatable on two different servers with the same software versions.
On Ubuntu Server 12.04 on amd64 (Intel Xeon E5620 CPU) php5-fpm randomly crashes with the following message:
May 29 06:38:25 srv2 kernel: [315922.148835] php5-fpm[20902]: segfault at 0 ip 00007fecd9032558 sp 00007fff18136898 error 4 in libc-2. 15.so[7fecd8f00 000+1b3000] 00007fecd903255 8>] [<00007fecd9032 558>] 0x7fecd9032557 136898 EFLAGS: 00010206 0(0000) GS:ffff8803332e 0000(0000) knlGS:000000000 0000000
May 29 06:38:25 srv2 kernel: [315922.148849] php5-fpm/20902: potentially unexpected fatal signal 11.
May 29 06:38:25 srv2 kernel: [315922.148851]
May 29 06:38:25 srv2 kernel: [315922.148853] CPU 7
May 29 06:38:25 srv2 kernel: [315922.148854] Modules linked in: vesafb psmouse i7core_edac edac_core ioatdma dca serio_raw joydev mac_hid lp parport usbhid hid e1000e megaraid_sas
May 29 06:38:25 srv2 kernel: [315922.148870]
May 29 06:38:25 srv2 kernel: [315922.148873] Pid: 20902, comm: php5-fpm Not tainted 3.2.0-24-generic #39-Ubuntu Supermicro X8DTT-H/X8DTT-H
May 29 06:38:25 srv2 kernel: [315922.148878] RIP: 0033:[<
May 29 06:38:25 srv2 kernel: [315922.148884] RSP: 002b:00007fff18
May 29 06:38:25 srv2 kernel: [315922.148887] RAX: 0000000000000000 RBX: 00007fecdb38b000 RCX: 0000000000000011
May 29 06:38:25 srv2 kernel: [315922.148890] RDX: 0000000000000066 RSI: 0000000000af8af5 RDI: 0000000000000000
May 29 06:38:25 srv2 kernel: [315922.148892] RBP: 00000000023cc228 R08: 0000000000000011 R09: 0000000000000000
May 29 06:38:25 srv2 kernel: [315922.148895] R10: 00007fecd9035750 R11: 00007fecd9081710 R12: 0000000000000001
May 29 06:38:25 srv2 kernel: [315922.148897] R13: 0000000000000000 R14: 0000000000000000 R15: 00000000023cc2f0
May 29 06:38:25 srv2 kernel: [315922.148901] FS: 00007fecdb38270
May 29 06:38:25 srv2 kernel: [315922.148904] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
May 29 06:38:25 srv2 kernel: [315922.148906] CR2: 0000000000000000 CR3: 0000000327434000 CR4: 00000000000006e0
May 29 06:38:25 srv2 kernel: [315922.148909] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
May 29 06:38:25 srv2 kernel: [315922.148912] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
May 29 06:38:25 srv2 kernel: [315922.148915] Process php5-fpm (pid: 20902, threadinfo ffff88032aeec000, task ffff88032aa55bc0)
May 29 06:38:25 srv2 kernel: [315922.148917]
May 29 06:38:25 srv2 kernel: [315922.148919] Call Trace:
GDB information:
Core was generated by `php-fpm: pool mypool '. x86_64/ multiarch/ strstr. c:175 x86_64/ multiarch/ strstr. c: No such file or directory. x86_64/ multiarch/ strstr. c:175 handle_ request () at /build/ buildd/ php5-5. 3.10/sapi/ fpm/fpm/ fpm_status. c:128 buildd/ php5-5. 3.10/sapi/ fpm/fpm/ fpm_main. c:1809
Program terminated with signal 11, Segmentation fault.
#0 __strstr_sse42 (s1=0x0, s2=<optimized out>) at ../sysdeps/
175 ../sysdeps/
(gdb) bt
#0 __strstr_sse42 (s1=0x0, s2=<optimized out>) at ../sysdeps/
#1 0x0000000000736d13 in fpm_status_
#2 0x000000000042b4ab in main (argc=11237155, argv=0x0) at /build/
# uname -a
Linux srv2 3.2.0-24-generic #39-Ubuntu SMP Mon May 21 16:52:17 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
# dpkg -l |grep php
ii php-apc 3.1.7-1 APC (Alternative PHP Cache) module for PHP 5
ii php5-cli 5.3.10-1ubuntu3.1 command-line interpreter for the php5 scripting language
ii php5-common 5.3.10-1ubuntu3.1 Common files for packages built from the php5 source
ii php5-curl 5.3.10-1ubuntu3.1 CURL module for php5
ii php5-dbg 5.3.10-1ubuntu3.1 Debug symbols for PHP5
ii php5-fpm 5.3.10-1ubuntu3.1 server-side, HTML-embedded scripting language (FPM-CGI binary)
ii php5-gd 5.3.10-1ubuntu3.1 GD module for php5
ii php5-mcrypt 5.3.5-0ubuntu1 MCrypt module for php5
ii php5-memcache 3.0.6-1 memcache extension module for PHP5
ii php5-mysql 5.3.10-1ubuntu3.1 MySQL module for php5
The crash occurs several times per hour and is repeatable on two different servers with the same software versions.