SIGSEGV在php-fpm中

时间:2016-05-09 21:38:48

标签: php strace shopware

我发现了一些问题,提到了PHP 5.5.x及更高版本以及php-fpm的问题,其中php崩溃了:

WARNING: [pool pool_name] child 9757 exited on signal 11 (SIGSEGV - core dumped) after 24.790363 seconds from start

在apache错误日志中,您可以看到此消息

(104)Connection reset by peer: FastCGI: comm with server "/path/to/pool/php56-fcgi-pool_name" aborted: read failed

在我的设置中,我运行php 5.6.21,我在Shopware实例上收到此错误,我可以重现它。我试图启用php的调试,但由于Shopware需要离子立方体加载器,因此无法使用调试符号和离子立方体加载器运行php。

作为第二次尝试,我使用此脚本为每个php-fpm实例创建跟踪:https://gist.github.com/hydra35/1893093。对于我的错误,此跟踪看起来像这样:

     0.000036 access("/home/user/www/www.example.org/htdocs/engine/Shopware/Plugins/Community/Core/CouchCommerce/Bootstrap.php", R_OK) = 0
 0.000415 gettimeofday({1462828780, 911678}, NULL) = 0
 0.000042 gettimeofday({1462828780, 911719}, NULL) = 0
 0.000057 gettimeofday({1462828780, 911780}, NULL) = 0
 0.000036 lstat("/home/user/www/www.example.org/htdocs/engine/Shopware/Plugins/Community/Core/CouchCommerce/Bootstrap.php", {st_mode=S_IFREG|0644, st_size=17113, ...}) = 0
 0.000057 lstat("/home/user/www/www.example.org/htdocs/engine/Shopware/Plugins/Community/Core/CouchCommerce", {st_mode=S_IFDIR|S_ISGID|0755, st_size=4096, ...}) = 0
 0.000044 lstat("/home/user/www/www.example.org/htdocs/engine/Shopware/Plugins/Community/Core", {st_mode=S_IFDIR|S_ISGID|0775, st_size=4096, ...}) = 0
 0.000048 lstat("/home/user/www/www.example.org/htdocs/engine/Shopware/Plugins/Community", {st_mode=S_IFDIR|S_ISGID|0775, st_size=4096, ...}) = 0
 0.000045 lstat("/home/user/www/www.example.org/htdocs/engine/Shopware/Plugins", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
 0.000073 gettimeofday({1462828780, 912082}, NULL) = 0
 0.000035 lstat("/home/user/www/www.example.org/htdocs/engine/Shopware/Plugins/Community/Core/CouchCommerce/Bootstrap.php", {st_mode=S_IFREG|0644, st_size=17113, ...}) = 0
 0.000051 lstat("/home/user/www/www.example.org/htdocs/engine/Shopware/Plugins/Community/Core/CouchCommerce", {st_mode=S_IFDIR|S_ISGID|0755, st_size=4096, ...}) = 0
 0.000046 lstat("/home/user/www/www.example.org/htdocs/engine/Shopware/Plugins/Community/Core", {st_mode=S_IFDIR|S_ISGID|0775, st_size=4096, ...}) = 0
 0.000059 lstat("/home/user/www/www.example.org/htdocs/engine/Shopware/Plugins/Community", {st_mode=S_IFDIR|S_ISGID|0775, st_size=4096, ...}) = 0
 0.000042 lstat("/home/user/www/www.example.org/htdocs/engine/Shopware/Plugins", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
 0.000048 open("/home/user/www/www.example.org/htdocs/engine/Shopware/Plugins/Community/Core/CouchCommerce/Bootstrap.php", O_RDONLY) = 5
 0.000479 fstat(5, {st_mode=S_IFREG|0644, st_size=17113, ...}) = 0
 0.000049 fstat(5, {st_mode=S_IFREG|0644, st_size=17113, ...}) = 0
 0.000038 fstat(5, {st_mode=S_IFREG|0644, st_size=17113, ...}) = 0
 0.000035 mmap(NULL, 17113, PROT_READ, MAP_SHARED, 5, 0) = 0x7fc756a10000
 0.000844 brk(0x2ea5000)            = 0x2ea5000
 0.000359 munmap(0x7fc756a10000, 17113) = 0
 0.000075 close(5)                  = 0
 0.000051 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x3d} ---
 0.051948 +++ killed by SIGSEGV (core dumped) +++

真正发表声明需要多少时间?怎么可能为这个应用程序调试php来解决导致这次崩溃的错误?

感谢您的帮助 岸堤

0 个答案:

没有答案