PDA

View Full Version : [all variants] Apache 2 Debug Mode


Gloves
October 22nd, 2009, 11:05 AM
Hi,

I've got a website that I'm developing in PHP that seemingly at random crashes an Apache process resulting in a blank page being served. This is on Apache2/Jaunty/64bit btw. The error in the Apache logs is something like this:

[notice] child pid 12680 exit signal Segmentation fault (11)

It happens on random pages at seemingly random intervals. I've set Apache logging to debug level, but nothing more is actually logged. No error gets generated by PHP either.

I think my only way forward is to run Apache in debug mode, which seems to be done by using this command:

sudo apache2ctl -X -k start

Followed by using gdb. The first problem is that gdb can't find any debugging symbols, and this is possibly preventing the debugging from working properly. There seems to be a package called apache2-dbg somewhere out there, but its not in the ubuntu repositories. Can anyone advise me further on how to go about this, any help will be greatly appreciated.

Thanks
Hans