I am having problems with my 14.10 Ubuntu Server. Upon performing certain actions my apache2 restarts with a segmentation fault error. In order to debug this issue I would like to create a core dump. I have done the following:
CoreDumpDirectory /tmp/apache-coredumpsto the config file
ulimit -c unlimited
apt-get install apache2-dbg php5-dbg
apacheand caused the error. The log claims there may be a core dump in the directory, however it is empty.
I also tried to use gdb directly on the executable of apache2, but apache won't start unless started through
service apache2 start.
How can I get a core dump to debug my issue OR how can I attach
gdb directly to apache?