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
本文介绍如何在Apache HTTP服务器中配置core dump目录,确保core文件不会默认保存在根目录下,并通过GDB工具进行进程崩溃时的调试步骤。
941

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



