跳转至

XenServer PV模式导致程序coredump


2016-06-07 by dongnan

问题描述

某台 xenserver 虚拟机,发现如果创建的虚拟机是 pv模式则php程序会coredump,如果虚拟机使用hvm模式php程序则不会coredmp,特此记录。

环境描述

虚拟化服务器: XenServer 6.5
虚拟机操作系统: CentOS 6.7
PHP-FPM: 5.6

错误信息

php-fpm 日志

[24-Mar-2016 17:00:09.848375] WARNING: pid 20014, fpm_children_bury(), 
line 252: [pool www] child 20017 exited on signal 4 (SIGILL - core dumped) 
after 18.072100 seconds from start

core-dump 日志

Mar 24 17:00:09 test01 abrt[20122]: Saved core dump of pid 20017 (/usr/local/php/sbin/php-fpm) to /var/spool/abrt/ccpp-2016-03-24-17:00:05-20017 (548155392 bytes)
Mar 24 17:00:09 test01 abrtd: Directory 'ccpp-2016-03-24-17:00:05-20017' creation detected
Mar 24 17:00:09 test01 abrtd: Executable '/usr/local/php/sbin/php-fpm' doesn't belong to any package and ProcessUnpackaged is set to 'no'
Mar 24 17:00:09 test01 abrtd: 'post-create' on '/var/spool/abrt/ccpp-2016-03-24-17:00:05-20017' exited with 1
Mar 24 17:00:09 test01 abrtd: Deleting problem directory '/var/spool/abrt/ccpp-2016-03-24-17:00:05-20017'

dmesg信息

php-fpm[20017] trap invalid opcode ip:7f9667949d60 sp:7ffda5e49ac8 error:0 in libfreeblpriv3.so[7f96678f7000+72000]

配置core变量

echo "/tmp/core.%e.%p" >/proc/sys/kernel/core_pattern # ulimit -c unlimited

参考

XEN 半虚拟化(PV) 和 完全虚拟化(HVM)

回到页面顶部