Linux程序运行遇到异常问题可以通过corefile文件来定位,文件一般位于系统后台/xx/corefile目录,名称为core-xx-xxxx-31480-slot0-cpu0-20210607222740.gz或.bak之类。
取出corefile文件,解压,gunzip core-xx.gz,将解压出的corefile文件放到系统后台,用gdb工具进行定位, gdb /usr/local/bin/secmng core-xxx。举例如下
./gdb /usr/local/bin/xxx core-xxx-query-pool-15526-slot0-cpu0-20221029155421-xxx
xxx代表进程名。
如果有warning: Can't read pathname for load map: Unknown error -1
可以执行ulimit -s unlimited进一步查看。