Entry
How can I get PHP to dump core?
How can I get a coredump from PHP for debugging purposes?
Jun 27th, 1999 17:01
Nathan Wallace, Sascha Schumann
Here is a summary:
- Compile Apache with CFLAGS="-g -O"
- Compile PHP with --enable-debug and compile it as a static
Apache module (others may work - this will always work)
- cd into Apache apache-1.3.x/src directory
- run "gdb httpd"
- enter "r -X"
- now access the web server - it should receive a SIGSEGV shortly
- enter "bt" and enter the output into the bugs database at
http://bugs.php.net
Explore http://bugs.php.net for more information