YY-LIN 发表于 2017-1-3 12:15:19

make a apache core file

  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
  

  

  

  

  
页: [1]
查看完整版本: make a apache core file