ulimit -c unlimited
ulimit -c
output: unlimited
vi the httpd.conf,
add "CoreDumpDirectory current _user_home",defaultly the corefile will dump to "/",this directory owner is root.
restart the httpd.
access the url which leads process exit.
gdb httpd_path --core=corefile
info threads
search the kill() or threads oftop n.
thr x
bt
配置HTTPD核心转储及调试
本文介绍如何在HTTPD服务中配置core dump目录,确保核心文件不会默认转储到根目录。通过修改httpd.conf文件并重启服务,可以指定特定用户家目录作为core dump的目标位置。此外,还介绍了如何使用gdb进行core文件调试。
1498

被折叠的 条评论
为什么被折叠?



