1、ulimit,改完退出重登shell 即发现已生效,这个不行就ulimit -c unlimited吧

/etc/security/limits.conf
* soft core unlimited
* hard core unlimited

2、文件地址

echo "/tmp/core.%p" > /proc/sys/kernel/core_pattern

3、php-fpm

process.dumpable = yes
rlimit_core = unlimited

4、重启php-fpm,如果是通过systemctl 启动的还需要注意 

PrivateTmp=true

5、安装分析工具debuginfo 

https://blog.csdn.net/github_40094105/article/details/81287572

 6、很牛逼的一步来了,直接bt 和 bt full展示出来的东西都很垃圾,看不懂

gdb /opt/php/sbin/php-fpm core.27086
php安装包里面的:
source /opt/soft/php7lnmp/sourcepackages/php-7.3.16/.gdbinit
zbacktrace

 7、上面要是debuginfo玩不了了,可以去一个网站自行下载

http://debuginfo.centos.org/7/x86_64/

  

相关文章:

  • 2022-01-13
  • 2021-10-21
  • 2021-12-01
  • 2021-10-28
  • 2021-08-28
  • 2022-02-10
  • 2022-12-23
  • 2021-06-25
猜你喜欢
  • 2021-12-19
  • 2021-12-02
  • 2021-10-23
  • 2022-12-23
  • 2021-06-11
  • 2021-06-15
相关资源
相似解决方案