Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/232.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
gdb回溯中的PHP-FPM未知调用方_Php_Gdb_Fpm - Fatal编程技术网

gdb回溯中的PHP-FPM未知调用方

gdb回溯中的PHP-FPM未知调用方,php,gdb,fpm,Php,Gdb,Fpm,我正在我的php应用程序中调试一个segfault,我使用--enable debug选项编译php,在segfault期间php fpm转储core后,我运行: $ gdb /usr/local/sbin/php-fpm core GNU gdb (GDB) 7.12.1 Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org

我正在我的php应用程序中调试一个segfault,我使用
--enable debug
选项编译php,在segfault期间php fpm转储core后,我运行:

$ gdb /usr/local/sbin/php-fpm core
GNU gdb (GDB) 7.12.1

Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-alpine-linux-musl".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/sbin/php-fpm...(no debugging symbols found)...done.
[New LWP 2110]

warning: Can't read pathname for load map: No error information.
Core was generated by `php-fpm:'.
Program terminated with signal SIGBUS, Bus error.
#0  0x000055c27ba1f291 in ?? ()
(gdb) bt
#0  0x000055c27ba1f291 in ?? ()
#1  0x000055c27ba21bce in _efree ()
#2  0x000055c27ba6c8b2 in ?? ()
#3  0x000055c27ba70cee in zend_array_destroy ()
#4  0x000055c27ba56fbd in _zval_dtor_func ()
#5  0x000055c27ba6cce4 in ?? ()
#6  0x000055c27ba70cc8 in zend_array_destroy ()
#7  0x000055c27ba56fbd in _zval_dtor_func ()
#8  0x000055c27ba6cce4 in ?? ()
#9  0x000055c27ba70c8a in zend_array_destroy ()
#10 0x000055c27ba56fbd in _zval_dtor_func ()
#11 0x000055c27ba6cce4 in ?? ()
#12 0x000055c27ba70cc8 in zend_array_destroy ()
#13 0x000055c27ba56fbd in _zval_dtor_func ()
#14 0x000055c27ba44b75 in ?? ()
#15 0x000055c27ba450fe in zend_cleanup_user_class_data ()
#16 0x000055c27ba3f473 in ?? ()
#17 0x000055c27ba5971b in zend_deactivate ()
#18 0x000055c27b9bf1df in php_request_shutdown ()
#19 0x000055c27bb55015 in ?? ()
#20 0x00007f7fb743e964 in __libc_start_main () from /lib/ld-musl-x86_64.so.1
#21 0x0000000000000000 in ?? ()
$gdb/usr/local/sbin/php-fpm-core
GNU gdb(gdb)7.12.1
版权所有(C)2017免费软件基金会。
许可证GPLv3+:GNU GPL版本3或更高版本
这是自由软件:您可以自由更改和重新发布它。
在法律允许的范围内,不存在任何担保。键入“显示复制”
和“显示保修”了解详细信息。
此GDB配置为“x86_64-alpine-linux-musl”。
键入“显示配置”以获取配置详细信息。
有关错误报告说明,请参阅:
.
在线查找GDB手册和其他文档资源,网址为:
.
要获得帮助,请键入“帮助”。
键入“apropos word”以搜索与“word”相关的命令。。。
正在从/usr/local/sbin/php fpm…读取符号(未找到调试符号)…完成。
[新LWP 2110]
警告:无法读取加载映射的路径名:无错误信息。
核心是由“php fpm:”生成的。
程序以信号SIGBUS终止,总线错误。
#0 0x000055c27ba1f291英寸??()
(gdb)英国电信
#0 0x000055c27ba1f291英寸??()
#1 0x000055c27ba21bce in_efree()
#2 0x000055c27ba6c8b2英寸??()
#zend_阵列中的3 0x000055c27ba70cee_销毁()
#4 0x000055c27ba56fbd在功能中
#5 0x000055c27ba6cce4英寸??()
#zend_阵列中的6 0x000055c27ba70cc8销毁()
#7 0x000055c27ba56fbd,位于功能区内
#8 0x000055c27ba6cce4英寸??()
#zend_阵列中的9 0x000055c27ba70c8a销毁()
#10 0x000055c27ba56fbd在功能中
#11 0x000055c27ba6cce4英寸??()
#zend_阵列中的12 0x000055c27ba70cc8销毁()
#13 0x000055c27ba56fbd在功能中
#14 0x000055c27ba44b75英寸??()
#zend_清理_用户_类_数据中的15 0x000055c27ba450fe()
#16 0x000055c27ba3f473英寸??()
#zend_中的17 0x000055c27ba5971b停用()
#php请求中的18 0x000055c27b9bf1df关闭()
#19 0x000055C27BB5015英寸??()
#20 0x00007f7fb743e964位于/lib/ld-musl-x86_64.so.1的uu libc_start_main()中
#21 0x0000000000000000英寸??()
我还将php源代码与核心文件一起放入目录,并将
set auto-load-safe-path/
设置为
~/.gdbinit
(但不确定它有何帮助)

正如您所看到的,回溯中有
,这一点都没有帮助。应该是这样吗?有没有办法找到真正的来电者

应该是这样吗

没有

有没有办法找到真正的来电者

可能吧

堆栈跟踪表明
/usr/local/sbin/php fpm
已完全剥离(已删除其符号表)。您可以通过
文件/usr/local/sbin/php-fpm
确认这一点

makeinstall
完全剥离二进制文件并不少见。您应该尝试使用“编译”二进制文件(而不是现在使用的“安装时”)
gdb/path/to/build/tree/php-fpm-core