php segmentation故障崩溃,如何深入检查核心转储文件

时间:2018-10-02 08:29:08

标签: php linux debugging gdb coredump

我的php应用程序崩溃了php-fpm,这导致了核心转储文件。使用MERGE INTO `s1`.`t1` `t` USING ( Select `q`.`a1`, `q`.`a2` FROM ( SELECT `r`.`a1`, `r`.`a2`, ROW_NUMBER() OVER ( PARTITION BY `r`.a1 ORDER BY CAST(`r`.`a3` AS STRING) DESC ) `rank` FROM `s2`.`t2`) q where q.rank = 1 limit 10000 ) `s` ON ( `t`.`a1` = `s`.`a1`) WHEN MATCHED THEN UPDATE SET ... WHEN NOT MATCHED THEN INSERT VALUES .. 显示以下内容:

gdb php core.2416

所以我按照建议去做:

Reading symbols from /usr/bin/php...(no debugging symbols found)...done.

warning: core file may not match specified executable file.
[New Thread 2416]
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/lib64/ld-2.12.so.debug...done.
done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Core was generated by `php-fpm: pool commando       '.
Program terminated with signal 11, Segmentation fault.
#0  0x000000000058bccb in ?? ()
Missing separate debuginfos, use: debuginfo-install php54w-cli-5.4.45-2.w6.x86_64

现在看:

debuginfo-install php54w-cli-5.4.45-2.w6.x86_64

如何继续执行此操作?这是php核心中的错误吗?我正在运行旧版本的php 5.4.45,由于应用程序和php扩展名依赖性,升级不可行。

0 个答案:

没有答案